From 0586f4cba2db5769d22f123f4e814d55e21408c2 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 29 Dec 2020 15:42:06 +0000 Subject: [PATCH] Mount Go build cache from host This speeds up subsequent compilations --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 2bd6b9df5..bc061d907 100644 --- a/Makefile +++ b/Makefile @@ -91,6 +91,7 @@ $(SCOPE_EXE) $(RUNSVINIT) lint tests shell prog/staticui/staticui.go prog/extern $(SUDO) docker run $(RM) $(RUN_FLAGS) \ -v $(shell pwd):/go/src/github.com/weaveworks/scope:delegated,z \ -v $(shell pwd)/.pkg:/go/pkg:delegated,z \ + -v $(shell pwd)/.cache:/go/cache:delegated,z \ -u $(shell id -u ${USER}):$(shell id -g ${USER}) \ --net=host \ -e GOARCH -e GOOS -e CIRCLECI -e CIRCLE_BUILD_NUM -e CIRCLE_NODE_TOTAL \