ci: ensure golangci-lint is run with Go build tags. (#24364)

This commit is contained in:
James Rasell
2024-11-06 11:12:40 +00:00
committed by GitHub
parent bdee6f04a5
commit b4c397e8e4

View File

@@ -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 .