commit: 401b01cb83d2d76d3ae64ca515be3a71eb56190c Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Fri Mar 4 16:21:57 2022 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Fri Mar 4 16:21:57 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=401b01cb
go-module.eclass: put the go module cache under the work directory Signed-off-by: William Hubbs <williamh <AT> gentoo.org> eclass/go-module.eclass | 4 +--- 1 file changed, 1 insertion(+), 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