Update gopsutil to v3.21.12 for Deprecated Function Warning Fix #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the gopsutil dependency from v3.21.11+incompatible to v3.21.12 in our project. This update is necessary to address a deprecation warning that arises when running make build and make test on macOS.
Issue:
While executing these commands, the following warning appears:
Cause:
This warning is due to the deprecation of the IOMasterPort function in macOS 12.0. The recommended solution is to use kIOMainPortDefault as an alternative. However, kIOMainPortDefault is not available in macOS versions prior to 12.0. Therefore, a conditional compilation approach is needed for compatibility with both older and newer versions of macOS.
Solution:
By updating gopsutil to v3.21.12, this warning is resolved. The new version of gopsutil likely includes the necessary conditional compilation to maintain compatibility across different macOS versions.
Testing:
Ensure to run make build and make test to verify that the warning no longer appears and that everything functions as expected.