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:
MinerYang 2022-12-08 15:04:10 +08:00 committed by GitHub
parent c4a58433cf
commit c678d6cc76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -523,7 +523,7 @@ GOLANGCI_LINT := $(shell go env GOPATH)/bin/golangci-lint
lint: lint:
@echo checking lint @echo checking lint
@echo $(GOLANGCI_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 # go install golang.org/x/vuln/cmd/govulncheck@latest
GOVULNCHECK := $(shell go env GOPATH)/bin/govulncheck GOVULNCHECK := $(shell go env GOPATH)/bin/govulncheck