diff --git a/hack/make/go.mk b/hack/make/go.mk index 240f650..bf22226 100644 --- a/hack/make/go.mk +++ b/hack/make/go.mk @@ -144,18 +144,7 @@ coverage/ci: ## Takes packages test coverage, and output coverage results to CI ## lint .PHONY: lint -lint: lint/vet lint/golangci-lint ## Run all linters. - -$(GO_PATH)/bin/vet: - @GO111MODULE=off go get -u golang.org/x/tools/go/analysis/cmd/vet golang.org/x/tools/go/analysis/passes/... - -.PHONY: cmd/vet -cmd/vet: $(GO_PATH)/bin/vet # go get 'vet' binary - -.PHONY: lint/vet -lint/vet: cmd/vet - $(call target) - @GO111MODULE=on vet -asmdecl -assign -atomic -atomicalign -bool -bools -buildtag -buildtags -cgocall -compositewhitelist -copylocks -errorsas -httpresponse -loopclosure -lostcancel -methods -nilfunc -nilness -printfuncs -rangeloops -shift -source -stdmethods -structtag -tags -tests -unmarshal -unreachable -unsafeptr -unusedfuncs -unusedstringmethods $(GO_PKGS) +lint: lint/golangci-lint ## Run all linters. $(GO_PATH)/bin/golangci-lint: @GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint