build(deps): bump klauspost/cpuid to v2.3.0 for Go 1.27 - #570
Conversation
cpuid v2.0.4 reaches runtime.sched_getaffinity through //go:linkname in os_linux_arm64.go. Go 1.27 rewrote the linker's checkLinkname to drop the blanket ABI-wrapper exemption that previously allowed this, so linking any binary that pulls cpuid in now fails on linux/arm64:
# github.com/depot/cli/cmd/depot
link: github.com/klauspost/cpuid/v2: invalid reference to runtime.sched_getaffinity
cpuid removed the linkname in v2.2.3. It arrives here indirectly via moby/buildkit -> minio/sha256-simd, so bumping the existing indirect require is enough.
|
Checked live head 627f8a6 against main (still The stated failure is real: v2.0.4 Two small things on this head:
v2.3.0 still has Would merge after tidy + CI green. |
cpuid v2.0.4 reaches runtime.sched_getaffinity through //go:linkname in os_linux_arm64.go. Go 1.27 rewrote the linker's checkLinkname to drop the blanket ABI-wrapper exemption that previously allowed this, so linking any binary that pulls cpuid in now fails on linux/arm64:
cpuid removed the linkname in v2.2.3. It arrives here indirectly via moby/buildkit -> minio/sha256-simd, so bumping the existing indirect require is enough.
Note
Low Risk
Indirect dependency version bump only; no application logic, auth, or data-handling changes.
Overview
Bumps the indirect
github.com/klauspost/cpuid/v2require from v2.0.4 to v2.3.0.Older cpuid used
//go:linknametoruntime.sched_getaffinityon linux/arm64. Go 1.27 no longer allows that, so linking the CLI failed. v2.2.3+ dropped the linkname; this pin (pulled in via buildkit →minio/sha256-simd) is enough to restore builds.Reviewed by Cursor Bugbot for commit 627f8a6. Bugbot is set up for automated code reviews on this repo. Configure here.