From b4c397e8e4511a0daf9ebb4d878f9968b8907f78 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Wed, 6 Nov 2024 11:12:40 +0000 Subject: [PATCH] ci: ensure golangci-lint is run with Go build tags. (#24364) --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index ce7480af7..9217dd83e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -157,10 +157,10 @@ $(git-dir)/hooks/%: dev/hooks/% .PHONY: check check: ## Lint the source code @echo "==> Linting source code..." - @golangci-lint run + @golangci-lint run --build-tags "$(GO_TAGS)" @echo "==> Linting ./api source code..." - @cd ./api && golangci-lint run --config ../.golangci.yml + @cd ./api && golangci-lint run --config ../.golangci.yml --build-tags "$(GO_TAGS)" @echo "==> Linting hclog statements..." @hclogvet .