Skip to content

Conversation

Juneezee
Copy link
Contributor

@Juneezee Juneezee commented Oct 1, 2025

Dependabot missed updating this dependency. v4 is the latest version with bug fixes and enhancements, notably the removal of CGO implementations on Darwin in v4.24.9.

Note: Due to the library's versioning policy, v4.24.5 is the first v4 release. It introduces a few breaking changes, but we are not affected.

Pre-review checklist

  • Removed debug logging (fmt.Print, log.Print, ...)
  • Logging sensitive data? Make sure it's tagged (e.g. base.UD(docID), base.MD(dbName))
  • Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in docs/api

Dependencies (if applicable)

  • Link upstream PRs
  • Update Go module dependencies when merged

Integration Tests

@Copilot Copilot AI review requested due to automatic review settings October 1, 2025 16:25
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the github.com/shirou/gopsutil dependency from v3 to v4 to take advantage of bug fixes and enhancements, particularly the removal of CGO implementations on Darwin.

  • Updates gopsutil import paths from v3 to v4 across codebase
  • Consolidates dependency management by removing duplicate v3 references
  • Updates related transitive dependencies to compatible versions

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
rest/stats_context.go Updates gopsutil import paths from v3 to v4 for net and cpu packages
rest/server_context.go Updates gopsutil mem package import path to v4
go.mod Consolidates gopsutil dependencies to v4.25.8 and updates related transitive dependencies

v4 is the latest version with bug fixes and enhancements, notably the
removal of CGO implementations on Darwin in v4.24.9 [1].

Note: Due to the library's versioning policy, v4.24.5 is the first v4
release [2].

[1]: https://github.com/shirou/gopsutil/releases/tag/v4.24.9
[2]: https://github.com/shirou/gopsutil/releases/tag/v4.24.5

Signed-off-by: Eng Zer Jun <[email protected]>
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.

1 participant