commit:     860406f53a5a27be05a3b9fa0b91413ccf1b4299
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 13 09:54:33 2022 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Feb 13 09:54:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=860406f5

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 <AT> gentoo.org>

 eclass/go-module.eclass | 14 ++++++++------
 1 file 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"

Reply via email to