mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Merge pull request #383 from elezar/fix-golangci-lint-in-shell
Add GOLANGCI_LINT_CACHE to docker make targets
This commit is contained in:
commit
2733661125
2
Makefile
2
Makefile
@ -110,6 +110,7 @@ $(DOCKER_TARGETS): docker-%:
|
|||||||
--rm \
|
--rm \
|
||||||
-e GOCACHE=/tmp/.cache/go \
|
-e GOCACHE=/tmp/.cache/go \
|
||||||
-e GOMODCACHE=/tmp/.cache/gomod \
|
-e GOMODCACHE=/tmp/.cache/gomod \
|
||||||
|
-e GOLANGCI_LINT_CACHE=/tmp/.cache/golangci-lint \
|
||||||
-v $(PWD):/work \
|
-v $(PWD):/work \
|
||||||
-w /work \
|
-w /work \
|
||||||
--user $$(id -u):$$(id -g) \
|
--user $$(id -u):$$(id -g) \
|
||||||
@ -124,6 +125,7 @@ PHONY: .shell
|
|||||||
-ti \
|
-ti \
|
||||||
-e GOCACHE=/tmp/.cache/go \
|
-e GOCACHE=/tmp/.cache/go \
|
||||||
-e GOMODCACHE=/tmp/.cache/gomod \
|
-e GOMODCACHE=/tmp/.cache/gomod \
|
||||||
|
-e GOLANGCI_LINT_CACHE=/tmp/.cache/golangci-lint \
|
||||||
-v $(PWD):/work \
|
-v $(PWD):/work \
|
||||||
-w /work \
|
-w /work \
|
||||||
--user $$(id -u):$$(id -g) \
|
--user $$(id -u):$$(id -g) \
|
||||||
|
Loading…
Reference in New Issue
Block a user