misc: Use go install instead of go get for build binaries

This commit is contained in:
James Shubin
2022-09-11 20:27:00 -04:00
parent 6bfd781947
commit f6f3298e03

View File

@@ -144,13 +144,12 @@ fi
[ -e "$GOBIN/mgmt" ] && rm -f "$GOBIN/mgmt" # the `go get` version has no -X
fold_start "Install golang tools"
# TODO: change this for golang 1.17
go get github.com/blynn/nex # for lexing
go get golang.org/x/tools/cmd/goyacc # formerly `go tool yacc`
go get golang.org/x/tools/cmd/stringer # for automatic stringer-ing
go get golang.org/x/lint/golint # for `golint`-ing
go get golang.org/x/tools/cmd/goimports # for fmt
go get github.com/dvyukov/go-fuzz/go-fuzz # for fuzzing the mcl lang bits
go install github.com/blynn/nex # for lexing
go install golang.org/x/tools/cmd/goyacc # formerly `go tool yacc`
go install golang.org/x/tools/cmd/stringer # for automatic stringer-ing
go install golang.org/x/lint/golint # for `golint`-ing
go install golang.org/x/tools/cmd/goimports # for fmt
go install github.com/dvyukov/go-fuzz/go-fuzz # for fuzzing the mcl lang bits
if in_ci; then
go get -u gopkg.in/alecthomas/gometalinter.v1 && \
mv "$(dirname $(command -v gometalinter.v1))/gometalinter.v1" "$(dirname $(command -v gometalinter.v1))/gometalinter" && \