Error while install gokey command-line utility
saksham-jain opened this issue · 4 comments
After installing go(go version go1.18.3 darwin/amd64) when I run go install github.com/cloudflare/gokey/cmd/gokey@latest
getting following error response-
# golang.org/x/sys/unix
../../../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 # golang.org/x/sys/unix
../../../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 errorsmust 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
Quick fix, Try doing go install github.com/cloudflare/gokey/cmd/gokey@master
and it should work
Long version:
This issue has been fixed in PR #40 and the code has been merged to the master branch.
When @latest
is used with go install, it looks at the releases of this repo. But the fix has not been released yet by the maintainers. so until they tag a new release, @latest
will fail in Macs and the workaround is to use @master
.
Here are my suggestions to the maintainer @ignatk
- We should either change the readme to reflect the installation step at
@master
and not@latest
- Or a new release needs to be made.
Quick fix, Try doing
go install github.com/cloudflare/gokey/cmd/gokey@master
and it should work
Yes, this solved the issue.
I was hoping to add autorelease support to GitHub actions before I tag the release, but may tag without if it would take too much time.