Skip to content

Commit 5d7cc34

Browse files
committed
Add tools package to formatter
Signed-off-by: Timo Sand <[email protected]>
1 parent bb66b71 commit 5d7cc34

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

GNUmakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ bin/golangci-lint:
3232
mkdir -p $(BIN)
3333
GOBIN=$(BIN) go install github.com/golangci/golangci-lint/v2/cmd/[email protected]
3434

35-
bin/custom-gcl: bin/golangci-lint $(shell find tools \( -name '*.go' -or -name '*.mod' -or -name '*.sum' \) -and -not -name '*_test.go' -maxdepth 4)
35+
tools_go_files = $(shell find tools \( -name '*.go' -or -name '*.mod' -or -name '*.sum' \) -and -not -name '*_test.go' -maxdepth 4)
36+
bin/custom-gcl: bin/golangci-lint $(tools_go_files)
3637
$(BIN)/golangci-lint custom --name custom-gcl --destination $(BIN)
3738

3839
tools: bin/custom-gcl go.sum
@@ -45,7 +46,7 @@ build: lintcheck
4546

4647
fmt: tools
4748
@echo "==> Fixing source code formatting..."
48-
$(BIN)/custom-gcl fmt ./...
49+
$(BIN)/custom-gcl fmt ./... ./tools/...
4950

5051
lint: tools
5152
@echo "==> Checking source code against linters and fixing..."

0 commit comments

Comments
 (0)