commit: b0a4dffcac4b7994d1832f69dade037cbabf6997
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 18 23:10:51 2022 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Nov 18 23:10:51 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0a4dffc
go-module.eclass: add a way to allow go mod verify to be nonfatal
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
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 4916b31a1b59..10ed475c5b11 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -360,7 +360,9 @@ go-module_src_unpack() {
default
if [[ ! -d "${S}"/vendor ]]; then
cd "${S}"
- ego mod verify
+ local nf
+ [[ -n ${NONFATAL_VERIFY} ]] && nf=nonfatal
+ ${nf} ego mod verify
fi
fi
}