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

@ -44,7 +44,8 @@
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages gcc))
#:use-module (gnu packages gcc)
#:use-module (gnu packages golang))
;;; Commentary:
;;;
@ -388,6 +389,7 @@ primitives in Go.")
(build-system go-build-system)
(arguments
(list
#:go go-1.23
#:import-path "github.com/twitchyliquid64/golang-asm"))
(home-page "https://github.com/twitchyliquid64/golang-asm")
(synopsis "Assembler from the Go compiler, in library form")