diff --git a/Makefile b/Makefile index 9a92155f..70440871 100644 --- a/Makefile +++ b/Makefile @@ -37,11 +37,12 @@ checkcoverage: .PHONY: lint lint: + @rm -f $(gopath)/bin/golangci-lint @if ! $(gopath)/bin/golangci-lint --version &>/dev/null; then \ echo "Installing linters..."; \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(gopath)/bin v1.55.2; \ fi - @$(gopath)/bin/golangci-lint run --deadline=10m --tests --disable-all \ + GOLANGCI_LINT_CACHE=/tmp/.golangci-lint $(gopath)/bin/golangci-lint run --deadline=10m --tests --disable-all \ --enable=misspell \ --enable=vet \ --enable=ineffassign \