mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 09:08:26 +01:00
fix lint && add cache clean for linter (#17943)
fix lint && add cache clean for linter Signed-off-by: yminer <yminer@vmware.com>
This commit is contained in:
parent
c4a58433cf
commit
c678d6cc76
2
Makefile
2
Makefile
@ -523,7 +523,7 @@ GOLANGCI_LINT := $(shell go env GOPATH)/bin/golangci-lint
|
||||
lint:
|
||||
@echo checking lint
|
||||
@echo $(GOLANGCI_LINT)
|
||||
@cd ./src/; $(GOLANGCI_LINT) -v run ./... --timeout=10m;
|
||||
@cd ./src/; $(GOLANGCI_LINT) cache clean; $(GOLANGCI_LINT) -v run ./... --timeout=10m;
|
||||
|
||||
# go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
GOVULNCHECK := $(shell go env GOPATH)/bin/govulncheck
|
||||
|
Loading…
Reference in New Issue
Block a user