commit: 83f421d8ed39fc11f4ca87f95a8d707bac656f9c Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Fri Feb 18 16:33:51 2022 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Fri Feb 18 16:35:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83f421d8
go-module.eclass: set a default for GOMODCACHE Signed-off-by: William Hubbs <williamh <AT> gentoo.org> eclass/go-module.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass index 00f5169ea6e2..53f4a0269421 100644 --- a/eclass/go-module.eclass +++ b/eclass/go-module.eclass @@ -82,6 +82,12 @@ export GO111MODULE=on # See "go help environment" for information on this setting 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" + # The following go flags should be used for all builds. # -modcacherw makes the build cache read/write # -v prints the names of packages as they are compiled