Use go install instead of deprecated go get

In go 1.18 'go install' needs to be used to install an executable. See
https://go.dev/doc/go-get-install-deprecation and
https://go.dev/doc/manage-install
This commit is contained in:
Brian C. Lane 2022-11-08 13:31:52 -08:00 committed by Ondřej Budai
parent 1612d9cb80
commit d73171fdde
4 changed files with 7 additions and 7 deletions

View file

@ -6,8 +6,8 @@ GO_VERSION=1.16.12
GO_BINARY=$(go env GOPATH)/bin/go$GO_VERSION
# this is the official way to get a different version of golang
# see https://golang.org/doc/install#extra_versions
go get golang.org/dl/go$GO_VERSION
# see https://go.dev/doc/manage-install
go install golang.org/dl/go$GO_VERSION@latest
$GO_BINARY download
# ensure that go.mod and go.sum are up to date, ...