Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Cc: William Hubbs <williamh@g.o>
Subject: [gentoo-dev] [PATCH] go-module.eclass: set a reasonable default for the go build cache
Date: Sun, 05 Jan 2020 02:14:17
Message-Id: 20200105021336.15800-1-williamh@gentoo.org
1 Signed-off-by: William Hubbs <williamh@g.o>
2 ---
3 eclass/go-module.eclass | 4 ++++
4 1 file changed, 4 insertions(+)
5
6 diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
7 index 9c11959fdf8..89b32ed1201 100644
8 --- a/eclass/go-module.eclass
9 +++ b/eclass/go-module.eclass
10 @@ -59,6 +59,10 @@ BDEPEND=">=dev-lang/go-1.12"
11 # this will become the default in the future.
12 export GO111MODULE=on
13
14 +# Set the default for the go build cache
15 +# See "go help environment" for information on this setting
16 +export GOCACHE="${T}/go-build"
17 +
18 # The following go flags should be used for all builds.
19 # -mod=vendor stopps downloading of dependencies from the internet.
20 # -v prints the names of packages as they are compiled
21 --
22 2.24.1

Replies