From a438bc1777601d9d6296a9e4f93e3a6621c27a34 Mon Sep 17 00:00:00 2001 From: Eran Cohen Date: Mon, 19 Sep 2022 10:07:01 +0300 Subject: [PATCH] Install golangci-lint from source See https://github.com/golangci/golangci-lint/issues/2374 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 50e4493d..3d463ad9 100644 --- a/Makefile +++ b/Makefile @@ -165,7 +165,7 @@ mockgen: ## Download mockgen locally if necessary. GOLINT = $(shell pwd)/bin/golangci-lint golint: ## Download golangci-lint locally if necessary. - @[ -f $(GOLINT) ] || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell pwd)/bin v1.43.0 + $(call go-get-tool,$(GOLINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2) # go-get-tool will 'go get' any package $2 and install it to $1. PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))