Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] go-module.eclass: set a reasonable default for the go build cache
Date: Mon, 06 Jan 2020 17:22:51
Message-Id: 20200106172243.GA30952@linux1.home
In Reply to: [gentoo-dev] [PATCH] go-module.eclass: set a reasonable default for the go build cache by William Hubbs
1 On Sat, Jan 04, 2020 at 08:13:36PM -0600, William Hubbs wrote:
2 > Signed-off-by: William Hubbs <williamh@g.o>
3 > ---
4 > eclass/go-module.eclass | 4 ++++
5 > 1 file changed, 4 insertions(+)
6 >
7 > diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
8 > index 9c11959fdf8..89b32ed1201 100644
9 > --- a/eclass/go-module.eclass
10 > +++ b/eclass/go-module.eclass
11 > @@ -59,6 +59,10 @@ BDEPEND=">=dev-lang/go-1.12"
12 > # this will become the default in the future.
13 > export GO111MODULE=on
14 >
15 > +# Set the default for the go build cache
16 > +# See "go help environment" for information on this setting
17 > +export GOCACHE="${T}/go-build"
18 > +
19 > # The following go flags should be used for all builds.
20 > # -mod=vendor stopps downloading of dependencies from the internet.
21 > # -v prints the names of packages as they are compiled
22 > --
23 > 2.24.1
24
25 This is committed.
26
27 Thanks,
28
29 William

Attachments

File name MIME type
signature.asc application/pgp-signature