summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-10-21 17:52:27 -0500
committerWilliam Hubbs <williamh@gentoo.org>2022-10-21 17:52:27 -0500
commit733b4944c1a061269f96219cc96530f89d8f439e (patch)
treeec96f822ccb4a0ff3e120f890af0d6ecc079097c /eclass
parentnet-irc/znc-palaver: add 1.2.2 (diff)
downloadgentoo-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.eclass4
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
}