From c9a61d37e39d93c36140a25ad6e004f4e1442ec3 Mon Sep 17 00:00:00 2001 From: MinerYang Date: Wed, 17 Aug 2022 14:55:41 +0800 Subject: [PATCH] adjust golangci-lint installation hint (#17418) Signed-off-by: yminer update --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 519f27502..5ee4c73a3 100644 --- a/Makefile +++ b/Makefile @@ -532,7 +532,8 @@ misspell: @echo checking misspell... @find . -type d \( -path ./src/vendor -o -path ./tests \) -prune -o -name '*.go' -print | xargs misspell -error -# go get -u github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2 +# golangci-lint binary installation or refer to https://golangci-lint.run/usage/install/#local-installation +# curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2 GOLANGCI_LINT := $(shell go env GOPATH)/bin/golangci-lint lint: @echo checking lint