DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.82k stars 79 forks source link

Fix build with Go 1.18.x on macOS #130

Closed douglaswth closed 2 years ago

douglaswth commented 2 years ago

Building with Go 1.18.x on macOS (darwin) currently fails due to issues in he version of golang.org/x/sys specified in go.sum:

go install github.com/DarthSim/overmind/v2@latest
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:136:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:151:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:166:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/unix/zsyscall_darwin_arm64.go:166:3: too many errors

Updating golang.org/x/sys seems to fix this.

kevingriffin commented 2 years ago

It'd be great to see this merged.

DarthSim commented 2 years ago

Thanks!