Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading gopsutil module to v3 #1133

Merged
merged 3 commits into from
Apr 17, 2023
Merged

Upgrading gopsutil module to v3 #1133

merged 3 commits into from
Apr 17, 2023

Conversation

seejdev
Copy link
Contributor

@seejdev seejdev commented Apr 17, 2023

This upgrades the gopsutil dependency to it's latest release, which moves us to the v3 implementation.

The initial impetus for upgrading this was to resolve this annoying build warning:

go run cmd/make/make.go -targets=launcher -linkstamp   
# github.com/shirou/gopsutil/host
smc_darwin.c:75:41: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:133:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here

The only non-trivial change I had to make was accounting for a breaking API change where the Process.Status() method now returns a slice of strings instead of string. This was very simple, as gopsutil is putting the equivalent value in the first element.

directionless
directionless previously approved these changes Apr 17, 2023
RebeccaMahany
RebeccaMahany previously approved these changes Apr 17, 2023
pkg/log/log.go Show resolved Hide resolved
Co-authored-by: Rebecca Mahany-Horton <rebeccamahany@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants