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

Build fails for go go1.16 #335

Closed
grisu48 opened this issue Aug 29, 2023 · 1 comment
Closed

Build fails for go go1.16 #335

grisu48 opened this issue Aug 29, 2023 · 1 comment

Comments

@grisu48
Copy link
Contributor

grisu48 commented Aug 29, 2023

golang.org/x/sys/unix/syscall required go1.17 or later, but the provided go.mod references go1.16 to be used.

[    5s] GO111MODULE=on CGO_ENABLED=0 go build -o amfora -ldflags="-s -w -X main.version= -X main.commit= -X main.builtBy=Makefile"
[    5s] # golang.org/x/sys/unix
[    5s] vendor/golang.org/x/sys/unix/syscall.go:83:28: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
[    5s] vendor/golang.org/x/sys/unix/syscall_linux.go:1018:32: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
[    5s] vendor/golang.org/x/sys/unix/syscall_linux.go:2297:21: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
[    5s] vendor/golang.org/x/sys/unix/syscall_unix.go:118:19: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
[    5s] vendor/golang.org/x/sys/unix/sysvshm_unix.go:33:19: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
[    5s] make: *** [Makefile:16: amfora] Error 2
@makew0rld
Copy link
Owner

Fixed by #336

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