diff options
author | William Hubbs <williamh@gentoo.org> | 2022-10-21 17:52:27 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2022-10-21 17:52:27 -0500 |
commit | 733b4944c1a061269f96219cc96530f89d8f439e (patch) | |
tree | ec96f822ccb4a0ff3e120f890af0d6ecc079097c /eclass | |
parent | net-irc/znc-palaver: add 1.2.2 (diff) | |
download | gentoo-733b4944c1a061269f96219cc96530f89d8f439e.tar.gz gentoo-733b4944c1a061269f96219cc96530f89d8f439e.tar.bz2 gentoo-733b4944c1a061269f96219cc96530f89d8f439e.zip |
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/go-module.eclass | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |