From 5a877607027bc01f593d2c2ad2e00b6aceaf1137 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 17 Feb 2020 05:24:08 -0500 Subject: [PATCH] makefile: Update code path for golangci-lint (#8751) While `golangci-lint run` is the same as `golangci-lint run ./...` running it without a path seems to throw warning messages related to its cache, which is confusing. This change sets an explicit path for golangci-lint when calling `make lint` or `make ci-lint`. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7a5fd9fb8..ddbbef53e 100644 --- a/Makefile +++ b/Makefile @@ -76,13 +76,13 @@ lint: install-lint-deps ## Lint Go code echo "golangci-lint run ./$(PKG_NAME)/..."; \ golangci-lint run ./$(PKG_NAME)/...; \ else \ - echo "golangci-lint run"; \ - golangci-lint run; \ + echo "golangci-lint run ./..."; \ + golangci-lint run ./...; \ fi ci-lint: install-lint-deps ## On ci only lint newly added Go source files @echo "==> Running linter on newly added Go source files..." - GO111MODULE=on golangci-lint run --new-from-rev=origin/master + GO111MODULE=on golangci-lint run --new-from-rev=origin/master ./... fmt: ## Format Go code