Mac M1 install sponge failed
xyfacai opened this issue · comments
Describe the bug
Mac M1 install sponge failed
The error is
> go install github.com/zhufuyi/sponge/cmd/sponge@latest
# github.com/shoenig/go-m1cpu
../../pkg/mod/github.com/shoenig/go-m1cpu@v0.1.4/cpu.go:65:33: error: use of undeclared identifier 'kIOMainPortDefault'; did you mean 'kIOMasterPortDefault'?
IOServiceGetMatchingServices(kIOMainPortDefault, matching, &iter);
^~~~~~~~~~~~~~~~~~
kIOMasterPortDefault
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:103:19: note: 'kIOMasterPortDefault' declared here
const mach_port_t kIOMasterPortDefault;
- OS: MacOS 11.2.3
Dependency github.com/shoenig/go-m1cpu v0.1.4 should be upgraded to a more advanced version v1.5.2
In sponge version v1.5.2, the dependency package github.com/shoenig/go-m1cpu
has been updated from v0.1.4
to v0.1.6
.