From 1a816c9f8b7d47831326b3344d94072ff8350c6c Mon Sep 17 00:00:00 2001 From: vatasha <21329981+vatasha@users.noreply.github.com> Date: Thu, 7 Oct 2021 07:28:12 -0700 Subject: [PATCH] ci: fix downgrading of go packages (#575) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 441e9a96a..3b7bd51fc 100644 --- a/Makefile +++ b/Makefile @@ -155,13 +155,13 @@ ifeq (, $(shell which golangci-lint)) curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v$(GOLANGCILINTVERSION) endif ifeq (, $(shell which goimports)) - go get golang.org/x/tools/cmd/goimports@$(GOIMPORTSVERSION) + GOFLAGS=-mod=readonly go install golang.org/x/tools/cmd/goimports@$(GOIMPORTSVERSION) endif ifeq (, $(shell which gox)) - go get github.com/mitchellh/gox@$(GOXVERSION) + GOFLAGS=-mod=readonly go install github.com/mitchellh/gox@$(GOXVERSION) endif ifeq (, $(shell which gotestsum)) - go get gotest.tools/gotestsum@$(GOTESTSUMVERSION) + GOFLAGS=-mod=readonly go install gotest.tools/gotestsum@$(GOTESTSUMVERSION) endif .PHONY: git-env