summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-03-04 10:21:57 -0600
committerWilliam Hubbs <williamh@gentoo.org>2022-03-04 10:21:57 -0600
commit401b01cb83d2d76d3ae64ca515be3a71eb56190c (patch)
treed705205ea70119f8374b1a7321764408fbfd4df9 /eclass/go-module.eclass
parentgo-module.eclass: use ego helper function (diff)
downloadgentoo-401b01cb83d2d76d3ae64ca515be3a71eb56190c.tar.gz
gentoo-401b01cb83d2d76d3ae64ca515be3a71eb56190c.tar.bz2
gentoo-401b01cb83d2d76d3ae64ca515be3a71eb56190c.zip
go-module.eclass: put the go module cache under the work directory
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'eclass/go-module.eclass')
-rw-r--r--eclass/go-module.eclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index b5949e60b4ea..290ced8c2b4e 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -83,10 +83,8 @@ export GO111MODULE=on
export GOCACHE="${T}/go-build"
# Set the default for the go module cache
-# This could potentially be shared so that all go packages put the
-# modules they download in a shared location.
# See "go help environment" for information on this setting
-export GOMODCACHE="${T}/go-mod"
+export GOMODCACHE="${WORKDIR}/go-mod"
# The following go flags should be used for all builds.
# -modcacherw makes the build cache read/write