commit: 781c114dea8c9dbcc86a2d5208dfc4b805f3ed76
Author: William Hubbs <william.hubbs <AT> sony <DOT> com>
AuthorDate: Thu Dec 20 00:17:35 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Dec 20 00:21:15 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=781c114d
golang-build.eclass: add GOCACHE setting in src_compile for Go 1.11
Copyright: Sony Interactive Entertainment inc.
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
eclass/golang-build.eclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/eclass/golang-build.eclass b/eclass/golang-build.eclass
index 4d5bcdf7318..bb662ad45ba 100644
--- a/eclass/golang-build.eclass
+++ b/eclass/golang-build.eclass
@@ -55,6 +55,7 @@ golang-build_src_compile() {
ego_pn_check
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ GOCACHE="${T}/go-cache" \
go build -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
echo "$@"
"$@" || die