commit:     daa82b31d06f22e506687af38d5f2f46a4fc5a47
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  6 23:37:57 2019 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Fri Sep  6 23:42:59 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=daa82b31

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 <zmedico <AT> gentoo.org>

 app-emulation/reg/reg-0.16.0_p20190102.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-emulation/reg/reg-0.16.0_p20190102.ebuild 
b/app-emulation/reg/reg-0.16.0_p20190102.ebuild
index 3d7a774209c..e1be9fc0449 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
 }
 

Reply via email to