Skip to content

Commit aa9e0be

Browse files
committed
Makefile: fix tools and lint/golangci-lint
1 parent 96d531f commit aa9e0be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ pkg/install:
5757

5858
.PHONY: tools
5959
tools: ## Install tools
60-
@cd tools; \
60+
cd tools; \
61+
go mod vendor -v; \
6162
for t in $$(go list -f '{{ join .Imports " " }}' -tags=tools); do \
6263
GOBIN=${CURDIR}/bin go install -v -x -mod=vendor "$${t}" > /dev/null 2>&1; \
6364
done
@@ -97,7 +98,7 @@ lint: lint/golangci-lint ## Run all linters.
9798
.PHONY: lint/golangci-lint
9899
lint/golangci-lint: tools .golangci.yml ## Run golangci-lint.
99100
$(call target)
100-
@golangci-lint run $(strip ${GO_LINT_FLAGS}) ./...
101+
@${TOOLS_BIN}/golangci-lint run $(strip ${GO_LINT_FLAGS}) ./...
101102

102103

103104
##@ clean

0 commit comments

Comments
 (0)