mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
golang: Share build cache across package builds
This also adds a config option GOLANG_BUILD_CACHE_DIR to customize the location of the build cache directory. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -77,8 +77,7 @@ define Build/Configure
|
||||
mkdir -p $(GO_PKG_BUILD_DIR)/bin \
|
||||
$(GO_PKG_BUILD_DIR)/src \
|
||||
$(GO_PKG_BUILD_DIR)/src/$(GO_PKG)/ \
|
||||
$(GO_PKG_CACHE_DIR) \
|
||||
$(GO_PKG_TMP_DIR)
|
||||
$(GO_BUILD_CACHE_DIR)
|
||||
$(LN) $(PKG_BUILD_DIR)/cli $(GO_PKG_BUILD_DIR)/src/$(GO_PKG)/cli
|
||||
$(LN) $(PKG_BUILD_DIR)/engine $(GO_PKG_BUILD_DIR)/src/$(GO_PKG)/docker
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user