We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fcc6ec + f8e5c88 commit d7efd69Copy full SHA for d7efd69
.gitignore
@@ -5,6 +5,7 @@
5
6
# Folders
7
.cache
8
+.modcache
9
_obj
10
_test
11
Makefile
@@ -184,7 +184,7 @@ endef
184
185
# $(call DOCKER, image, command)
186
define DOCKER
187
- docker run --rm -e GOCACHE=/app/.cache -e IN_DOCKER=1 --user $(shell id -u):$(shell id -g) -w /app -v $(PWD):/app:Z -v $(GOPATH):/go:Z --init $(1) /bin/bash -c '$(2)'
+ docker run --rm -e GOCACHE=/app/.cache -e GOPATH=/go -e GOMODCACHE=/app/.modcache -e IN_DOCKER=1 --user $(shell id -u):$(shell id -g) -w /app -v $(PWD):/app:Z -v $(GOPATH):/go:Z --init $(1) /bin/bash -c '$(2)'
188
endef
189
190
ifeq ($(BUILD_IN_DOCKER),y)
0 commit comments