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

"Requires go1.17 or later" #75

Open
con-f-use opened this issue Oct 5, 2024 · 1 comment
Open

"Requires go1.17 or later" #75

con-f-use opened this issue Oct 5, 2024 · 1 comment

Comments

@con-f-use
Copy link

con-f-use commented Oct 5, 2024

I'm getting these messages, when trying to build gokey:

vendor/golang.org/x/sys/unix/mremap.go:41:10: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall.go:82:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_linux.go:1018:20: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_linux.go:2298:9: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_unix.go:117:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/sysvshm_unix.go:32:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)

eventough my go version is:

$ go version
go version go1.22.5 linux/amd64

Could it be that you need to bump your minimal go version in go.mod?

@con-f-use
Copy link
Author

con-f-use commented Oct 5, 2024

Btw. gokey's CLI could also use a gokey --version command, to print the current version.

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

No branches or pull requests

2 participants
@con-f-use and others