Skip to content

Commit bc9381b

Browse files
committed
Install golangci-lint from source
See golangci/golangci-lint#2374
1 parent b52e21c commit bc9381b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ mockgen: ## Download mockgen locally if necessary.
165165

166166
GOLINT = $(shell pwd)/bin/golangci-lint
167167
golint: ## Download golangci-lint locally if necessary.
168-
@[ -f $(GOLINT) ] || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell pwd)/bin v1.43.0
168+
$(call go-get-tool,$(GOLINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2)
169169

170170
# go-get-tool will 'go get' any package $2 and install it to $1.
171171
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))

0 commit comments

Comments
 (0)