* [gentoo-dev] [PATCH] go-module.eclass: set a reasonable default for the go build cache
@ 2020-01-05 2:13 William Hubbs
2020-01-06 17:22 ` William Hubbs
0 siblings, 1 reply; 2+ messages in thread
From: William Hubbs @ 2020-01-05 2:13 UTC (permalink / raw
To: gentoo-dev; +Cc: William Hubbs
Signed-off-by: William Hubbs <williamh@gentoo.org>
---
eclass/go-module.eclass | 4 ++++
1 file changed, 4 insertions(+)
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
--
2.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] [PATCH] go-module.eclass: set a reasonable default for the go build cache
2020-01-05 2:13 [gentoo-dev] [PATCH] go-module.eclass: set a reasonable default for the go build cache William Hubbs
@ 2020-01-06 17:22 ` William Hubbs
0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2020-01-06 17:22 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
On Sat, Jan 04, 2020 at 08:13:36PM -0600, William Hubbs wrote:
> Signed-off-by: William Hubbs <williamh@gentoo.org>
> ---
> eclass/go-module.eclass | 4 ++++
> 1 file changed, 4 insertions(+)
>
> 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
> --
> 2.24.1
This is committed.
Thanks,
William
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-06 17:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-05 2:13 [gentoo-dev] [PATCH] go-module.eclass: set a reasonable default for the go build cache William Hubbs
2020-01-06 17:22 ` William Hubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox