summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-09-23 16:09:39 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-09-23 16:10:23 -0500
commit13e742b871c4a90a7545545cd0a04cc838b938ed (patch)
tree12b612de34d8576b4def59918b7a6c932ae8b94c /eclass/go-module.eclass
parentapp-portage/recover-broken-vdb: add 0.0.3 (diff)
downloadgentoo-13e742b871c4a90a7545545cd0a04cc838b938ed.tar.gz
gentoo-13e742b871c4a90a7545545cd0a04cc838b938ed.tar.bz2
gentoo-13e742b871c4a90a7545545cd0a04cc838b938ed.zip
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@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@gentoo.org>
Diffstat (limited to 'eclass/go-module.eclass')
-rw-r--r--eclass/go-module.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index d1e81babf1f8..3ad8542a28ae 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='.*'