1 |
commit: 401b01cb83d2d76d3ae64ca515be3a71eb56190c |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 4 16:21:57 2022 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 4 16:21:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=401b01cb |
7 |
|
8 |
go-module.eclass: put the go module cache under the work directory |
9 |
|
10 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
11 |
|
12 |
eclass/go-module.eclass | 4 +--- |
13 |
1 file changed, 1 insertion(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass |
16 |
index b5949e60b4ea..290ced8c2b4e 100644 |
17 |
--- a/eclass/go-module.eclass |
18 |
+++ b/eclass/go-module.eclass |
19 |
@@ -83,10 +83,8 @@ export GO111MODULE=on |
20 |
export GOCACHE="${T}/go-build" |
21 |
|
22 |
# Set the default for the go module cache |
23 |
-# This could potentially be shared so that all go packages put the |
24 |
-# modules they download in a shared location. |
25 |
# See "go help environment" for information on this setting |
26 |
-export GOMODCACHE="${T}/go-mod" |
27 |
+export GOMODCACHE="${WORKDIR}/go-mod" |
28 |
|
29 |
# The following go flags should be used for all builds. |
30 |
# -modcacherw makes the build cache read/write |