Skip to content

Commit

Permalink
Merge pull request #198 from MrHohn/golang-1-10-cache
Browse files Browse the repository at this point in the history
Ensure .go/cache in build
  • Loading branch information
nicksardo authored Apr 10, 2018
2 parents b0feb66 + 6968b83 commit 094dfba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ $(GO_BINARIES): build-dirs
-v $$(pwd):/go/src/$(PKG) \
-v $$(pwd)/bin/$(ARCH):/go/bin/linux_$(ARCH) \
-v $$(pwd)/.go/std/$(ARCH):/usr/local/go/pkg/linux_$(ARCH)_static \
-v $$(pwd)/.go/cache:/.cache/go-build \
-w /go/src/$(PKG) \
$(BUILD_IMAGE) \
/bin/sh -c " \
Expand Down Expand Up @@ -191,6 +192,7 @@ test: build-dirs
-v $$(pwd):/go/src/$(PKG) \
-v $$(pwd)/bin/$(ARCH):/go/bin \
-v $$(pwd)/.go/std/$(ARCH):/usr/local/go/pkg/linux_$(ARCH)_static \
-v $$(pwd)/.go/cache:/.cache/go-build \
-w /go/src/$(PKG) \
$(BUILD_IMAGE) \
/bin/sh -c " \
Expand Down Expand Up @@ -235,7 +237,7 @@ version:
.PHONY: build-dirs
build-dirs:
@mkdir -p bin/$(ARCH)
@mkdir -p .go/src/$(PKG) .go/pkg .go/bin .go/std/$(ARCH)
@mkdir -p .go/src/$(PKG) .go/pkg .go/bin .go/std/$(ARCH) .go/cache

.PHONY: clean
clean: container-clean bin-clean images-clean
Expand Down

0 comments on commit 094dfba

Please sign in to comment.