From: Zac Medico Date: Fri, 6 Sep 2019 23:37:57 +0000 (-0700) Subject: app-emulation/reg: Fix compile with go-1.13 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=daa82b31d06f22e506687af38d5f2f46a4fc5a47;p=gentoo.git app-emulation/reg: Fix compile with go-1.13 Use GO111MODULE=on together with -mod=vendor since otherwise -mod=vendor fails with go-1.12 like this: build flag -mod=vendor only valid when using modules Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Zac Medico --- diff --git a/app-emulation/reg/reg-0.16.0_p20190102.ebuild b/app-emulation/reg/reg-0.16.0_p20190102.ebuild index 3d7a774209c3..e1be9fc0449f 100644 --- a/app-emulation/reg/reg-0.16.0_p20190102.ebuild +++ b/app-emulation/reg/reg-0.16.0_p20190102.ebuild @@ -36,7 +36,7 @@ src_prepare() { src_compile() { pushd src/${EGO_PN} || die - GOPATH="${S}" go build -v -ldflags "-X ${EGO_PN}/version.GITCOMMIT=${GIT_COMMIT} -X ${EGO_PN}/version.VERSION=${PV}" -o "${S}"/bin/reg . || 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 popd || die }