From 68746d8443ca152fcc52f1260fd0018ac9a75f4f Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 10 Mar 2020 17:44:16 -0500 Subject: [PATCH] go-module.eclass: replace GOFLAGS if EGO_VENDOR is being used We can't repeat the -mod flag, so we need to replace the GOFLAGS if EGO_VENDOR is being used. Closes: https://bugs.gentoo.org/7111640 Signed-off-by: William Hubbs --- eclass/go-module.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass index c3ad5159bad8..4edffa70e42b 100644 --- a/eclass/go-module.eclass +++ b/eclass/go-module.eclass @@ -388,7 +388,9 @@ _go-module_src_unpack_vendor() { -f "${DISTDIR}/${tarball}" || die eend done - [[ ${#EGO_VENDOR[@]} -gt 0 ]] && GOFLAGS+=" -mod=vendor" + # replace GOFLAGS if EGO_VENDOR is being used + [[ ${#EGO_VENDOR[@]} -gt 0 ]] && + GOFLAGS="-v -x -mod=vendor" eqawarn "${P}.ebuild: EGO_VENDOR will be removed in the future." eqawarn "Please request that the author migrate to EGO_SUM." } -- 2.26.2