metaverse / truss

Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code.
Other
734 stars 143 forks source link

Cannot install using go version 1.18 #344

Open alin-simionoiuDE opened 2 years ago

alin-simionoiuDE commented 2 years ago

Steps to repro (assuming you already have go 1.18 installed)

$ echo $GOPATH ~/go

cd $GOPATH/src/github.com/metaverse/truss

make dependencies
go get -u github.com/gogo/protobuf/protoc-gen-gogo@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/gogo/protobuf/protoc-gen-gogofaster@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/gogo/protobuf/proto@21df5aa0e680850681b8643f0024f92d3b09930c
go get -u github.com/kevinburke/go-bindata/go-bindata
 make
go generate github.com/metaverse/truss/gengokit/template
go install -ldflags '-X "main.version=fcd9ff140d" -X "main.date=2021-07-14T06:36:40Z"' github.com/metaverse/truss/cmd/truss
# golang.org/x/sys/unix
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/syscall_darwin.1_13.go:25:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.1_13.go:27:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.1_13.go:40:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20191220142924-d4481acd189f/unix/zsyscall_darwin_amd64.go:121:3: too many errors
make: *** [truss] Error 2
htner commented 1 year ago

This was caused by an old version of golang.org/x/sys (mentioned in this issue). Fix is to update with:

go get -u golang.org/x/sys