golang-build.eclass: add GOCACHE setting in src_compile for Go 1.11
authorWilliam Hubbs <william.hubbs@sony.com>
Thu, 20 Dec 2018 00:17:35 +0000 (18:17 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Thu, 20 Dec 2018 00:21:15 +0000 (18:21 -0600)
Copyright: Sony Interactive Entertainment inc.
Signed-off-by: William Hubbs <williamh@gentoo.org>
eclass/golang-build.eclass

index 4d5bcdf731897268aa01f319249b6e309be18f28..bb662ad45baf6eb7abef927779d4342934dfb59e 100644 (file)
@@ -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