From bde22f207cc99be7f8b1c62a1f9461099fc9a6de Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 9 Dec 2019 19:33:53 -0800 Subject: [PATCH] app-emulation/reg: export -n GOCACHE Closes: https://bugs.gentoo.org/680166 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Zac Medico --- app-emulation/reg/reg-0.16.1.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app-emulation/reg/reg-0.16.1.ebuild b/app-emulation/reg/reg-0.16.1.ebuild index 7a75f0dd2c52..bfd5ac25d064 100644 --- a/app-emulation/reg/reg-0.16.1.ebuild +++ b/app-emulation/reg/reg-0.16.1.ebuild @@ -35,8 +35,9 @@ src_prepare() { } src_compile() { + export -n GOCACHE GOPATH XDG_CACHE_HOME pushd src/${EGO_PN} || die - GOPATH="${S}" GO111MODULE=on go build -mod=vendor -v -ldflags "-X ${EGO_PN}/version.GITCOMMIT=${GIT_COMMIT} -X ${EGO_PN}/version.VERSION=${PV}" -o "${S}"/bin/reg . || die + GO111MODULE=on go build -mod=vendor -v -ldflags "-X ${EGO_PN}/version.GITCOMMIT=${GIT_COMMIT} -X ${EGO_PN}/version.VERSION=${PV}" -o "${S}"/bin/reg . || die popd || die } -- 2.26.2