commit: f9ee55e698f8c035fb549a59badbddc5409f3a4b
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 4 16:13:31 2022 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Mar 4 16:13:31 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9ee55e6
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 <AT> gentoo.org>
eclass/go-module.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index 66fe52c9ad72..b5949e60b4ea 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -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
}