mirror of
https://github.com/goharbor/harbor
synced 2025-05-17 11:27:56 +00:00
adjust golangci-lint installation hint (#17418)
Signed-off-by: yminer <yminer@vmware.com> update
This commit is contained in:
parent
548b27a0c6
commit
c9a61d37e3
3
Makefile
3
Makefile
@ -532,7 +532,8 @@ misspell:
|
|||||||
@echo checking misspell...
|
@echo checking misspell...
|
||||||
@find . -type d \( -path ./src/vendor -o -path ./tests \) -prune -o -name '*.go' -print | xargs misspell -error
|
@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
|
GOLANGCI_LINT := $(shell go env GOPATH)/bin/golangci-lint
|
||||||
lint:
|
lint:
|
||||||
@echo checking lint
|
@echo checking lint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user