gokey icon indicating copy to clipboard operation
gokey copied to clipboard

"Requires go1.17 or later"

Open con-f-use opened this issue 1 year ago • 1 comments

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 avatar Oct 05 '24 22:10 con-f-use

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

con-f-use avatar Oct 05 '24 22:10 con-f-use

Fixed required version in #79

ignatk avatar Nov 19 '25 14:11 ignatk