summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-02-13 03:54:33 -0600
committerWilliam Hubbs <williamh@gentoo.org>2022-02-13 03:54:33 -0600
commit860406f53a5a27be05a3b9fa0b91413ccf1b4299 (patch)
tree9b5ae583d0971a57755e70757b7449c52013045c /eclass/go-module.eclass
parenteclass/golang-*: fix deprecation notices (diff)
downloadgentoo-860406f53a5a27be05a3b9fa0b91413ccf1b4299.tar.gz
gentoo-860406f53a5a27be05a3b9fa0b91413ccf1b4299.tar.bz2
gentoo-860406f53a5a27be05a3b9fa0b91413ccf1b4299.zip
eclass/go-module.eclass: documentation and bdepend adjustment
Update the documentation to not refer to golang* eclasses. Bump the go dependency to 1.16 so the behavior for modules is consistent. Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'eclass/go-module.eclass')
-rw-r--r--eclass/go-module.eclass14
1 files changed, 8 insertions, 6 deletions
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index 984698bfbafa..da786934ceca 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -12,12 +12,14 @@
# @DESCRIPTION:
# This eclass provides basic settings and functions needed by all software
# written in the go programming language that uses modules.
+# If the software you are packaging has a file named go.mod in its top level
+# directory, it uses modules.
+#
+# Modules have been the preferred method of tracking dependencies in software
+# written in Go since version 1.16,
+# so if the software isn't using modules, it should be updated.
#
-# If the software you are packaging has a file named go.mod in its top
-# level directory, it uses modules and your ebuild should inherit this
-# eclass. If it does not, your ebuild should use the golang-* eclasses.
-#
-# If, besides go.mod, your software has a directory named vendor in its
+# If the software has a directory named vendor in its
# top level directory, the only thing you need to do is inherit the
# eclass. If there is no vendor directory, you need to also populate
# EGO_SUM and call go-module_set_globals as discussed below.
@@ -56,7 +58,7 @@ if [[ -z ${_GO_MODULE} ]]; then
_GO_MODULE=1
if [[ ! ${GO_OPTIONAL} ]]; then
- BDEPEND=">=dev-lang/go-1.12"
+ BDEPEND=">=dev-lang/go-1.16"
# Workaround for pkgcheck false positive: https://github.com/pkgcore/pkgcheck/issues/214
# MissingUnpackerDep: version ...: missing BDEPEND="app-arch/unzip"