Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.gentoo.dev > #70492

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

From Ionen Wolkens <ionen@gentoo.org>
Newsgroups linux.gentoo.dev
Subject Re: [gentoo-dev] [PATCH] install-qa-check.d/60go-module-eclass: Check for missing min Go version
Date 2026-05-02 10:20 +0200
Message-ID <MQdJT-1Zd7-5@gated-at.bofh.it> (permalink)
References <MQcXv-1YAX-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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 <arthurzam@gentoo.org>
> ---
>  .../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

Back to linux.gentoo.dev | Previous | NextPrevious in thread | Find similar


Thread

[gentoo-dev] [PATCH] install-qa-check.d/60go-module-eclass: Check for missing min Go version Arthur Zamarin <arthurzam@gentoo.org> - 2026-05-02 09:30 +0200
  Re: [gentoo-dev] [PATCH] install-qa-check.d/60go-module-eclass:  Check for missing min Go version Ionen Wolkens <ionen@gentoo.org> - 2026-05-02 10:20 +0200

csiph-web