summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-02-17 01:24:45 -0600
committerWilliam Hubbs <williamh@gentoo.org>2022-02-17 01:25:33 -0600
commit52970e8a88acd307c10d19d943663edf434e7941 (patch)
treee6287f3dfe1117afcb568a5ac5ca659f0e3f82ff /eclass/go-module.eclass
parentx11-libs/libXdmcp: Depend on multilib libbsd (diff)
downloadgentoo-52970e8a88acd307c10d19d943663edf434e7941.tar.gz
gentoo-52970e8a88acd307c10d19d943663edf434e7941.tar.bz2
gentoo-52970e8a88acd307c10d19d943663edf434e7941.zip
go-module.eclass: add a manual example of how to extract the content of EGO_SUM
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'eclass/go-module.eclass')
-rw-r--r--eclass/go-module.eclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index 9fa482405fdd..00f5169ea6e2 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -103,6 +103,14 @@ RESTRICT+=" strip"
# You can use some combination of sed/awk/cut to extract the
# contents of EGO_SUM or use the dev-go/get-ego-vendor tool.
#
+# One manual way to do this is the following:
+#
+# @CODE
+#
+# cat go.sum | cut -d" " -f1,2 | awk '{print "\t\"" $0 "\""}'
+#
+# @CODE
+#
# The format of go.sum is described upstream here:
# https://go.dev/ref/mod#go-sum-files
#