summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-03-24 04:22:21 +0000
committerSam James <sam@gentoo.org>2023-04-17 22:14:34 +0100
commitc52e1f7221e56ef3ef1c91bafbc424636cf6bf90 (patch)
tree9429fa5ba4a24e2c32312bc862be2633600c9b9c /eclass/go-module.eclass
parentpostgres.eclass: add EAPI 8 (diff)
downloadgentoo-c52e1f7221e56ef3ef1c91bafbc424636cf6bf90.tar.gz
gentoo-c52e1f7221e56ef3ef1c91bafbc424636cf6bf90.tar.bz2
gentoo-c52e1f7221e56ef3ef1c91bafbc424636cf6bf90.zip
go-module.eclass: refine go-module_src_unpack eclassdoc
Rephrase to make clear that go-module_src_unpack itself isn't actually deprecated, just one of its modes of operation (the one with EGO_SUM). Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/go-module.eclass')
-rw-r--r--eclass/go-module.eclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index 5cffbb1084d9..f97b69f591c8 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -343,10 +343,11 @@ go-module_setup_proxy() {
# @FUNCTION: go-module_src_unpack
# @DESCRIPTION:
-# If EGO_SUM is set, unpack the base tarball(s) and set up the
-# local go proxy. Also warn that this usage is deprecated.
-# - Otherwise, if EGO_VENDOR is set, bail out.
-# - Otherwise do a normal unpack.
+# Sets up GOFLAGS for the system and then unpacks based on the following rules:
+# 1. If EGO_SUM is set, unpack the base tarball(s) and set up the
+# local go proxy. This mode is deprecated.
+# 2. Otherwise, if EGO_VENDOR is set, bail out, as this functionality was removed.
+# 3. Otherwise, call 'ego mod verify' and then do a normal unpack.
go-module_src_unpack() {
if use amd64 || use arm || use arm64 ||
( use ppc64 && [[ $(tc-endian) == "little" ]] ) || use s390 || use x86; then