commit: 733b4944c1a061269f96219cc96530f89d8f439e
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 21 22:52:27 2022 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Oct 21 22:52:27 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=733b4944
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 <williamh <AT> gentoo.org>
eclass/go-module.eclass | 4 ++++
1 file changed, 4 insertions(+)
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
}