Re: [PATCH] install-qa-check.d/60go-module-eclass: Check for missing min Go version

Ionen Wolkens <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <afWzXZhh28-pm_ev@eversor>
On Sat, May 02, 2026 at 10:21:49AM +0300, Arthur Zamarin wrote:
> Go over all go.mod files in the source and check if the minimum Go
> version specified matches the minimum version specified in
> BDEPEND/DEPEND. I employ a very basic heuristic to extract the minimum
> Go version from the ebuild, so this might have somne edge cases where it
> doesn't work, but it should be good enough for most cases and is better
> than nothing.
> 
> For EAPI>=9, we make it a hard error if the ebuild doesn't specify the
> correct minimum Go version, to enforce that the ebuild gets updated. All
> EAPI=9 ebuilds where checked.
> 
> Signed-off-by: Arthur Zamarin <[email protected]>
> ---
>  .../install-qa-check.d/60go-module-eclass     | 40 +++++++++++++++++++
>  1 file changed, 40 insertions(+)
>  create mode 100644 metadata/install-qa-check.d/60go-module-eclass
> 

If we're going to do this, we should probably raise the baseline in
go-module.eclass more often so that not every ebuilds will find
themselves needing to specify the dependency for some ancient go
version that's long gone from the tree.

Right now go-module.eclass has:

   BDEPEND=">=dev-lang/go-1.20:="

But the oldest that we have in the tree is go-1.24.
-- 
ionen
signature.asc (application/pgp-signature, 525 B)
-----BEGIN PGP SIGNATURE-----

iQFPBAABCAA5FiEEx3SLh1HBoPy/yLVYskQGsLCsQzQFAmn1s1wbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJELJEBrCwrEM0qhwIAMMVgDIFgFEnXjoxYD83
FRkIY8Knrks+KYmV9jqa3vCI1h95z4CeRGFbPM7bwfIbtb/5ZRojZk7lcLgunOQ8
XjxwmWUKLoRFvHCae/YTHgQyD/tDAX4JxEDUsnlNUhr4WmvIIMXh4FtYiq1wtp8A
K+muddSUnnUyDzRnWB3f3JsM7areE3ChmEu70EC8DRkkCppwEUou59rLdw4KREd+
/l7uPLYbVfub7p54e3Fzfk9ZKzgkuHb6TR4R6GV2CF6N2xwnUBPJpr4AHWVcd5uI
S97UXq2kFrOGa+GUYNTb+rlYFI8UI+SYO4INL8QST19jtmB1lZyiTodtIMGfQONE
ZfU=
=YIKT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.