From d03c96bf219fa78b99013947b777bc35a2faa300 Mon Sep 17 00:00:00 2001 From: Amogh Rathore Date: Wed, 20 Jul 2022 20:44:35 +0000 Subject: [PATCH] Specify versions for all 'go install' commands --- Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 4927bcf8c89..b1261e52116 100644 --- a/Makefile +++ b/Makefile @@ -336,9 +336,10 @@ goimports: GOPATH=$(shell go env GOPATH) .get-deps-stamp: - go install github.com/golang/mock/mockgen@1.6.0 - cd "${GOPATH}/src/github.com/golang/mock/mockgen@1.6.0" && git checkout 1.3.1 && go install ./... && go install ./... && cd - - go install golang.org/x/tools/cmd/goimports + go install golang.org/x/tools/cmd/cover@latest + go install github.com/golang/mock/mockgen@latest + cd "${GOPATH}/src/github.com/golang/mock/mockgen" && git checkout 1.3.1 && go install ./... && go install ./... && cd - + go install golang.org/x/tools/cmd/goimports@latest GO111MODULE=on go install github.com/fzipp/gocyclo/cmd/gocyclo@v0.3.1 GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck@v0.2.1 touch .get-deps-stamp @@ -346,11 +347,12 @@ GOPATH=$(shell go env GOPATH) get-deps: .get-deps-stamp get-deps-init: - go install golang.org/x/tools/cover - go install github.com/golang/mock/mockgen@1.6.0 - cd "${GOPATH}/src/github.com/golang/mock/mockgen@1.6.0" && git checkout 1.3.1 && go install ./... && go install ./... && cd - + go install golang.org/x/tools/cover@latest + go install golang.org/x/tools/cmd/cover@latest + go install github.com/golang/mock/mockgen@latest + cd "${GOPATH}/src/github.com/golang/mock/mockgen" && git checkout 1.3.1 && go install ./... && go install ./... && cd - GO111MODULE=on go install github.com/fzipp/gocyclo/cmd/gocyclo@v0.3.1 - go install golang.org/x/tools/cmd/goimports + go install golang.org/x/tools/cmd/goimports@latest GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck@v0.2.1 amazon-linux-sources.tgz: