adjust golangci-lint installation hint (#17418)

Signed-off-by: yminer <yminer@vmware.com>

update
This commit is contained in:
MinerYang 2022-08-17 14:55:41 +08:00 committed by GitHub
parent 548b27a0c6
commit c9a61d37e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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