We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 919f3f5 commit 5fbe8d4Copy full SHA for 5fbe8d4
Makefile
@@ -66,7 +66,7 @@ docker:
66
define lint-template
67
.PHONY: lint-$1
68
lint-$1:
69
- docker run --rm -v .:/go/smartnode --workdir /go/smartnode/$1 golangci/golangci-lint:v2.1-alpine golangci-lint fmt --diff
+ 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
70
endef
71
$(foreach module,$(MODULES),$(eval $(call lint-template,$(module))))
72
.PHONY: lint
0 commit comments