Closed 06kellyjac closed 1 year ago
We will update to the latest gopsutil version when released. Note that while we build for darwin/arm64
on CI, we do so with cgo
disabled, since recommend against using cgo for portability reasons.
the go-m1cpu dependency requires cgo though?
This package requires the use of CGO.
Or are you saying if you force gco off it avoids using go-m1cpu for the build?
Or are you saying if you force gco off it avoids using go-m1cpu for the build?
That's it, gopsutil can be used with cgo off (with reduced functionality), so I assume since our build is passing, the go-m1cpu
dependency is not being used
Yep disabling CGO avoided that codepath so the update patch was no-longer necessary.
https://github.com/NixOS/nixpkgs/pull/232231
We'll keep it GCO disabled in line with upstream so we'll hopefully not run into any extra issues not caught in upstream CI
I'm happy to close this
Thanks for following up, I agree that this seems resolved :)
Describe the bug A clear and concise description of what the bug is.
This has been fixed upstream: https://github.com/shoenig/go-m1cpu/pull/8
And https://github.com/shirou/gopsutil @ latest has been updated but there's not been a tagged release