commit:     13e742b871c4a90a7545545cd0a04cc838b938ed
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 23 21:09:39 2021 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Sep 23 21:10:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13e742b8

go-modules.eclass: allow the module cache to be read/write

This allows the modules to be cleaned up on prefix systems.

More information is available here:
https://github.com/golang/go/issues/27161

I would like to thank Raffaele Spinelli <rafspiny <AT> gmail.com> for the
original patch this was based on.

Closes: https://bugs.gentoo.org/812977
Closes: https://github.com/gentoo/gentoo/pull/22365

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 eclass/go-module.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index d1e81babf1f..3ad8542a28a 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -75,7 +75,7 @@ export GOCACHE="${T}/go-build"
 # The following go flags should be used for all builds.
 # -v prints the names of packages as they are compiled
 # -x prints commands as they are executed
-export GOFLAGS="-v -x"
+export GOFLAGS="-v -x -modcacherw"
 
 # Do not complain about CFLAGS etc since go projects do not use them.
 QA_FLAGS_IGNORED='.*'

Reply via email to