mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
ci: ensure golangci-lint is run with Go build tags. (#24364)
This commit is contained in:
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user