go-module.eclass: use ego helper function

All direct calls to go in eclasses or ebuilds should be done via the ego
helper function.

Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs
2022-03-04 10:13:31 -06:00
parent bd63a60631
commit f9ee55e698
+2 -2
View File
@@ -435,7 +435,7 @@ _go-module_src_unpack_verify_gosum() {
# This will print 'downloading' messages, but it's accessing content from
# the $GOPROXY file:/// URL!
einfo "Tidying go.mod/go.sum"
go mod tidy >/dev/null
ego mod tidy >/dev/null
# This used to call 'go get' to verify by fetching everything from the main
# go.mod. However 'go get' also turns out to recursively try to fetch
@@ -461,7 +461,7 @@ go-module_live_vendor() {
die "${FUNCNAME} only allowed when upstream isn't vendoring"
pushd "${S}" >& /dev/null || die
go mod vendor || die
ego mod vendor
popd >& /dev/null || die
}