summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-01-06 11:07:34 -0600
committerWilliam Hubbs <williamh@gentoo.org>2020-01-06 11:08:39 -0600
commit7524c55724becb3c8825336d0fa451e053052be5 (patch)
tree6b4b0f37d89948677333c77a42ba643d586805c2
parentapp-office/pybliographer: remove tex project (diff)
downloadgentoo-7524c55724becb3c8825336d0fa451e053052be5.tar.gz
gentoo-7524c55724becb3c8825336d0fa451e053052be5.tar.bz2
gentoo-7524c55724becb3c8825336d0fa451e053052be5.zip
go-module.eclass: set a reasonable default for the go build cache
Signed-off-by: William Hubbs <williamh@gentoo.org>
-rw-r--r--eclass/go-module.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index 9c11959fdf8..89b32ed1201 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -59,6 +59,10 @@ BDEPEND=">=dev-lang/go-1.12"
# this will become the default in the future.
export GO111MODULE=on
+# Set the default for the go build cache
+# See "go help environment" for information on this setting
+export GOCACHE="${T}/go-build"
+
# The following go flags should be used for all builds.
# -mod=vendor stopps downloading of dependencies from the internet.
# -v prints the names of packages as they are compiled