Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Package not installing on Mac #45

Closed
IgnorantSapient opened this issue Jul 11, 2022 · 2 comments · Fixed by #40
Closed

Package not installing on Mac #45

IgnorantSapient opened this issue Jul 11, 2022 · 2 comments · Fixed by #40

Comments

@IgnorantSapient
Copy link

When I run go install github.com/cloudflare/gokey/cmd/gokey@latest I am getting the following error

../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:136:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:151:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:166:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190626221950-04f50cda93cb/unix/zsyscall_darwin_amd64.go:166:3: too many errors

When I am on a Linux machine, it works like a charm. But when I do this on a Mac(OS version 11.2) I run into this issue. go version go1.18.3 darwin/amd64

A few issues for reference: golang/go#49219, golang/go#51706

@danielledeleo
Copy link
Contributor

The dependencies need to be updated (fixed in #40)

@IgnorantSapient
Copy link
Author

@jagger27 You beat me to it 😂 !

https://github.com/IgnorantSapient/gokey/tree/update-dependency-to-make-command-work-on-mac

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 a pull request may close this issue.

2 participants