From 733b4944c1a061269f96219cc96530f89d8f439e Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 21 Oct 2022 17:52:27 -0500 Subject: go-module.eclass: run "go mod verify" on modules from dependency tarball It appears that go build does not completely detect whether a module has been modified since it was downloaded, so we need this step. Signed-off-by: William Hubbs --- eclass/go-module.eclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'eclass') diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass index 8047d498b08d..4916b31a1b59 100644 --- a/eclass/go-module.eclass +++ b/eclass/go-module.eclass @@ -358,6 +358,10 @@ go-module_src_unpack() { die "Please update this ebuild" else default + if [[ ! -d "${S}"/vendor ]]; then + cd "${S}" + ego mod verify + fi fi } -- cgit v1.2.3-65-gdbad