Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mac M1 install sponge failed #8

Closed
xyfacai opened this issue Sep 8, 2023 · 2 comments
Closed

Mac M1 install sponge failed #8

xyfacai opened this issue Sep 8, 2023 · 2 comments

Comments

@xyfacai
Copy link

xyfacai commented Sep 8, 2023

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
@xyfacai
Copy link
Author

xyfacai commented Sep 8, 2023

Dependency github.com/shoenig/go-m1cpu v0.1.4 should be upgraded to a more advanced version v1.5.2

shoenig/go-m1cpu#5

@zhufuyi
Copy link
Collaborator

zhufuyi commented Sep 9, 2023

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants