From 4b74c3b92c63b5de7409378b0d1ebd029db9337d Mon Sep 17 00:00:00 2001 From: "Artur M. Wolff" Date: Fri, 9 Dec 2022 13:45:55 +0100 Subject: [PATCH] Makefile: downgrade golangci-lint This downgrades golangci-lint to match storj.io/ci's version and changes the installation method because then if the installation succeeds, it's guaranteed to work with the installed Go version. Change-Id: Ifcb5b72c85b0be27d5ed3c23a9d1fa07f2f96d15 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a2e6787..d32b2ba 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ install-dev-dependencies: ## install-dev-dependencies assumes Go and cURL are in go install honnef.co/go/tools/cmd/staticcheck@latest # golangci-lint: - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.49.0 + go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.3 # shellcheck (TODO(artur): Windows) ifneq ($(shell which apt-get),)