gnu: Pin some golang packages to use go-1.23.

After the defult Golang version was set to 1.24 some of the older
packages which had no fresh version started failing on the 'check phase,
this change pins them to go-1.23 helping to resolve the issue.

Go 1.24 requires non-constant format strings to be explicitly handled.

The errors might look like these:

    non-constant format string in call to (*testing.common).Errorf
    ExampleParseOptionsLifetime refers to unknown identifier: ParseOptionsLifetime

See <https://tip.golang.org/doc/go1.24#vet>.

Change-Id: Ife5093c4fd98af7cea59abf1a9a29351b66602bb
This commit is contained in:
Sharlatan Hellseher 2025-06-08 12:22:35 +01:00
parent 0e25b7c1b6
commit 87661cea77
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
21 changed files with 163 additions and 23 deletions

View file

@ -96,6 +96,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression)
@ -3374,6 +3375,7 @@ designed for experienced users.")
(build-system go-build-system)
(arguments
(list
#:go go-1.23
;; It helps to resolve <golang.org/x/net/publicsuffix/table.go:63:12>:
;; pattern data/children: cannot embed irregular file data/children
#:embed-files #~(list "children" "nodes" "text")