Skip to content

fix(deps): update module github.com/shirou/gopsutil/v4 to v4.26.8 - #3014

Merged
pikachuren merged 1 commit into
mainfrom
renovate/github.com-shirou-gopsutil-v4-4.x
Sep 1, 2026
Merged

fix(deps): update module github.com/shirou/gopsutil/v4 to v4.26.8#3014
pikachuren merged 1 commit into
mainfrom
renovate/github.com-shirou-gopsutil-v4-4.x

Conversation

@renovate

@renovate renovate Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/shirou/gopsutil/v4 v4.26.7v4.26.8 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

shirou/gopsutil (github.com/shirou/gopsutil/v4)

v4.26.8

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@pikachuren pikachuren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🙏 感谢 @renovate 提交!

🤖 AI 自动审核声明:本评审报告由 AI 自动生成,当前使用 Claude Opus 5 模型进行分析。

⚠️ AI 分析结果仅供参考,可能存在误判或遗漏。如您发现任何问题或有不同意见,欢迎随时提出讨论和纠正。

⚠️ 重要提醒:即使 AI 评审认为代码质量良好且建议合并,最终是否合并仍需由项目维护者进行人工判定。


🎯 结论

建议合并(Approve)。补丁级依赖升级,供应链核查通过,CI 全平台构建成功。

📖 概要

github.com/shirou/gopsutil/v4v4.26.7 升级到 v4.26.8。gopsutil 在本项目中用于采集系统运行指标(CPU、内存、磁盘等)。

🧭 整体方案

Renovate 自动生成的单依赖补丁升级,仅触碰 go.modgo.sum,无业务代码改动。

📊 变更统计

  • 文件:2 个(go.modgo.sum
  • 行数:+3 / -1
  • 上游跨度:20 个 commit,18 个文件
维度 评分 说明
功能 ⭐⭐⭐⭐⭐ 补丁级修复,含平台适配改进
最小改动 ⭐⭐⭐⭐⭐ 仅版本号
前向兼容 ⭐⭐⭐⭐⭐ patch 版本,无 API 破坏
方案设计 ⭐⭐⭐⭐⭐ 自动化依赖管理标准做法

🚨 关键问题

P0 阻塞问题

无。

P1 建议修复

无。

P2 可选优化

无。

🔐 依赖安全审查

v4.26.7...v4.26.8 的上游 diff 做了核查,结论是未发现供应链投毒迹象

1. 变更规模:20 个 commit、18 个文件,对于 gopsutil 这类需要覆盖大量操作系统与架构的库而言,属于正常的补丁节奏。

2. 恶意模式扫描:对新增行 grep 了 exec.Commandos/exechttp.Post(http.Get(net.Dialbase64.InsecureSkipVerify.onion 等模式。命中项全部是 Windows 平台的系统 API 调用:

ret, _, err := procGetLogicalProcessorInformationEx.Call(uintptr(relationship), 0, uintptr(unsafe.Pointer(&length)))
defer syscall.CloseHandle(syscall.Handle(h))

这是查询 Windows 逻辑处理器拓扑信息的标准做法,与 gopsutil「采集系统信息」的核心职责完全自洽。需要特别说明的是:unsafe.Pointersyscall 在这类系统信息采集库中是不可避免且预期内的——调用 Win32 API 必须做指针转换。关键判据是它们没有伴随任何网络外连或命令执行,扫描结果确认了这一点:exec.Command、无 HTTP 请求、无编码混淆

3. 依赖树:本次升级未引入任何新的间接依赖go.sum 中新版本的 /go.mod 哈希与 v4.26.7 完全一致(5O9FjBiXoTDFatIWjZZosqj4pV0DRtLx598xGbBehzM=),从密码学上证明了上游 go.mod 未发生任何变化。

4. 模块归属:仍为 github.com/shirou/gopsutil 原仓库,无迁移、无 fork 替换。

📂 逐文件分析

go.mod

改动意图:提升 gopsutil 补丁版本。

代码逻辑

-	github.com/shirou/gopsutil/v4 v4.26.7
+	github.com/shirou/gopsutil/v4 v4.26.8

问题分析:无。

详细建议:无需改动。

go.sum

改动意图:登记新版本哈希。

代码逻辑:新增 v4.26.8 的两行哈希条目。

问题分析:无。

详细建议:无需改动。

✅ 待处理清单

  • 上游 diff 供应链核查
  • 恶意模式扫描
  • 新增间接依赖核对(无新增)
  • CI 构建验证(全平台通过)

无待办事项。


🎯 结论:建议合并。标准的补丁级升级,核查通过,CI 全绿。感谢您对依赖保鲜的持续维护!

@pikachuren pikachuren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

经 AI 评审与上游供应链核查确认无异常,CI 全绿,批准合并。详见此前评审报告。

@pikachuren
pikachuren merged commit fc23f4e into main Sep 1, 2026
14 checks passed
@renovate
renovate Bot deleted the renovate/github.com-shirou-gopsutil-v4-4.x branch September 1, 2026 15:01
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