Browse Source

Merge pull request #13681 from jefferyto/golang-cache-fixes

golang: Cache fixes
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
365977c54d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      lang/golang/golang-values.mk
  2. +1
    -1
      lang/golang/golang/Config.in

+ 2
- 2
lang/golang/golang-values.mk View File

@ -236,7 +236,7 @@ endif
# General build info # General build info
GO_BUILD_CACHE_DIR:=$(or $(call qstrip,$(CONFIG_GOLANG_BUILD_CACHE_DIR)),$(TOPDIR)/.go-build)
GO_BUILD_CACHE_DIR:=$(or $(call qstrip,$(CONFIG_GOLANG_BUILD_CACHE_DIR)),$(TMP_DIR)/go-build)
GO_MOD_CACHE_DIR:=$(DL_DIR)/go-mod-cache GO_MOD_CACHE_DIR:=$(DL_DIR)/go-mod-cache
GO_MOD_ARGS= \ GO_MOD_ARGS= \
@ -249,6 +249,6 @@ GO_GENERAL_BUILD_CONFIG_VARS= \
GO_MOD_ARGS="$(GO_MOD_ARGS)" GO_MOD_ARGS="$(GO_MOD_ARGS)"
define Go/CacheCleanup define Go/CacheCleanup
$(GENERAL_BUILD_CONFIG_VARS) \
$(GO_GENERAL_BUILD_CONFIG_VARS) \
$(SHELL) $(GO_INCLUDE_DIR)/golang-build.sh cache_cleanup $(SHELL) $(GO_INCLUDE_DIR)/golang-build.sh cache_cleanup
endef endef

+ 1
- 1
lang/golang/golang/Config.in View File

@ -17,7 +17,7 @@ config GOLANG_BUILD_CACHE_DIR
default "" default ""
help help
Store the Go build cache in this directory. Store the Go build cache in this directory.
If not set, uses './.go-build'.
If not set, uses '$(TMP_DIR)/go-build'.
config GOLANG_MOD_CACHE_WORLD_READABLE config GOLANG_MOD_CACHE_WORLD_READABLE
bool "Ensure Go module cache is world-readable" bool "Ensure Go module cache is world-readable"


Loading…
Cancel
Save