Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
fix: Avoid VCS stamping error when linting files in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kurbatov <sir.alkurbatov@yandex.ru>
  • Loading branch information
alkurbatov committed Apr 17, 2023
1 parent 467fe3a commit 446840b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ server: ## Build metrics server
.PHONY: server

staticlint: ## Build static lint utility
go build $(CCFLAGS) -o cmd/$@/$@ cmd/$@/*.go
go build -o cmd/$@/$@ cmd/$@/*.go
.PHONY: staticlint

clean: ## Remove build artifacts and downloaded test tools
Expand All @@ -82,7 +82,7 @@ clean: ## Remove build artifacts and downloaded test tools

lint: ## Run linters on the source code
golangci-lint run
go list ./... | grep -F -v -e docs | xargs ./cmd/staticlint/staticlint
go list -buildvcs=false ./... | grep -F -v -e docs | xargs ./cmd/staticlint/staticlint
.PHONY: lint

unit-tests: ## Run unit tests
Expand Down

0 comments on commit 446840b

Please sign in to comment.