Skip to content

Commit 5fbe8d4

Browse files
committed
Give a cache to the linter
1 parent 919f3f5 commit 5fbe8d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ docker:
6666
define lint-template
6767
.PHONY: lint-$1
6868
lint-$1:
69-
docker run --rm -v .:/go/smartnode --workdir /go/smartnode/$1 golangci/golangci-lint:v2.1-alpine golangci-lint fmt --diff
69+
docker run -e GOCACHE=/go/.cache/go-build -e GOLANGCI_LINT_CACHE=/go/.cache/golangci-lint --user $(shell id -u):$(shell id -g) --rm -v ~/.cache:/go/.cache -v .:/smartnode --workdir /smartnode/$1 golangci/golangci-lint:v2.1-alpine golangci-lint fmt --diff
7070
endef
7171
$(foreach module,$(MODULES),$(eval $(call lint-template,$(module))))
7272
.PHONY: lint

0 commit comments

Comments
 (0)