guix_mirror_bot pushed a commit to branch go-team
in repository guix.

commit f255cbfd9e4e2f2572ed59bfcdd68debb1e712f0
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sun Jun 8 12:22:35 2025 +0100

    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
---
 gnu/packages/bioinformatics.scm  |  2 ++
 gnu/packages/databases.scm       |  1 +
 gnu/packages/education.scm       |  2 ++
 gnu/packages/file-systems.scm    |  3 +-
 gnu/packages/golang-build.scm    |  4 ++-
 gnu/packages/golang-check.scm    | 16 ++++++++-
 gnu/packages/golang-crypto.scm   |  3 ++
 gnu/packages/golang-maths.scm    |  2 ++
 gnu/packages/golang-web.scm      | 49 ++++++++++++++++++++++----
 gnu/packages/golang-xyz.scm      | 76 +++++++++++++++++++++++++++++++++-------
 gnu/packages/irc.scm             |  2 ++
 gnu/packages/linux.scm           |  2 +-
 gnu/packages/messaging.scm       |  2 ++
 gnu/packages/password-utils.scm  |  2 ++
 gnu/packages/syncthing.scm       |  1 +
 gnu/packages/text-editors.scm    |  2 ++
 gnu/packages/textutils.scm       |  1 +
 gnu/packages/version-control.scm |  2 ++
 gnu/packages/video.scm           |  2 ++
 gnu/packages/web-browsers.scm    |  2 ++
 20 files changed, 154 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 4e289baeed..172fe67a98 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -98,6 +98,7 @@
   #:use-module (gnu packages gawk)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gd)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-check)
   #:use-module (gnu packages golang-compression)
@@ -25396,6 +25397,7 @@ functions.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:skip-build? #t
       #:import-path "github.com/biogo/store"))
     (propagated-inputs
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index aea1809853..31f48739f6 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -511,6 +511,7 @@ database later.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:build-flags #~(list "-tags" "external_libzstd")
       #:test-flags #~(list "-tags" "external_libzstd"
                            ;; Skip tests requiring git in PATH.
diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm
index b03066b663..687ad6e65c 100644
--- a/gnu/packages/education.scm
+++ b/gnu/packages/education.scm
@@ -47,6 +47,7 @@
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-check)
   #:use-module (gnu packages golang-web)
@@ -113,6 +114,7 @@
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:install-source? #f
       #:import-path "github.com/xalanq/cf-tool"
       #:phases
diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index a89eed6dfb..3c65379e81 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -472,6 +472,7 @@ is corrupted you'll lose the affected file(s) but not the 
whole back-up.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/google/fscrypt"
       #:install-source? #f
       #:test-flags
@@ -2204,8 +2205,8 @@ memory-efficient.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/oniony/TMSU"
-      #:unpack-path "github.com/oniony/TMSU"
       #:install-source? #f
       #:phases
       #~(modify-phases %standard-phases
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index 117b16376c..cc12a5dbd7 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -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")
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 4ed02df429..12795ac1ac 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -49,6 +49,7 @@
   #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module (gnu packages)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-xyz))
 
@@ -299,7 +300,9 @@ test (using testing.TB's @code{TempDir}) and with a few 
helper methods.")
            "1mkbyzhwq3rby832ikq00nxv3jnckxsm3949wkxd8ya9js2jmg4d"))))
       (build-system go-build-system)
       (arguments
-       '(#:import-path "github.com/cheekybits/is"))
+       (list
+        #:go go-1.23
+        #:import-path "github.com/cheekybits/is"))
       (home-page "https://github.com/cheekybits/is";)
       (synopsis "Mini testing helper for Go")
       (description "A mini testing helper for Go.
@@ -441,6 +444,7 @@ strings which may be used in mock tests.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/DATA-DOG/go-sqlmock"
       #:phases
       #~(modify-phases %standard-phases
@@ -945,6 +949,7 @@ package, but can be used in other contexts too.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/google/gofuzz"
       ;; Tests fail on 32bit
       #:tests? (target-64bit?)))
@@ -1501,6 +1506,7 @@ output capturing, mocking, and much more.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/matryer/is"))
     (home-page "https://github.com/matryer/is";)
     (synopsis "Lightweight testing mini-framework for Golang")
@@ -1553,6 +1559,7 @@ Perl's @url{https://metacpan.org/pod/Test::Deep, 
Test::Deep perl}.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/onsi/ginkgo"
       #:test-flags #~(list "-skip" "TestIntegration")))
     (propagated-inputs
@@ -1667,6 +1674,7 @@ framework.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/otiai10/mint"))
     (home-page "https://github.com/otiai10/mint";)
     (synopsis "Minimal assertion for Golang testing framework")
@@ -1829,6 +1837,9 @@ GIT_TRACE mechanism.")
     (build-system go-build-system)
     (arguments
      (list
+      ;; See the list of supported Golang versions in
+      ;; <testify/.github/workflows/main.yml>.
+      #:go go-1.23
       ;; XXX: Tests are shaky on non x86_64 architectures, check if some may
       ;; be enabled.
       #:tests? (target-x86-64?)
@@ -2035,6 +2046,7 @@ test coverage and has a web user interface that will 
refresh automatically.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/smarty/assertions"))
     (home-page "https://github.com/smarty/assertions";)
     (synopsis "Fluent assertion-style functions")
@@ -2452,6 +2464,7 @@ custom assertions to be used alongside native Go 
testing.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/warpfork/go-testmark"))
     (propagated-inputs
      (list go-github-com-warpfork-go-fsx))
@@ -2482,6 +2495,7 @@ testmark} format, which itself is a subset of Markdown 
format.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/warpfork/go-wish"
       #:test-subdirs #~(list "cmp/..." "wishfix" ".")
       #:test-flags
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 3be5588f3b..0869d6fc98 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -213,6 +213,7 @@ primitives.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/99designs/keyring"
       #:test-flags
       #~(list "-skip" (string-join
@@ -388,6 +389,7 @@ with its management port enabled.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:skip-build? #t
       #:import-path "github.com/blanu/Dust"))
     (propagated-inputs
@@ -568,6 +570,7 @@ described at @url{https://xxhash.com/}.";)
       (build-system go-build-system)
       (arguments
        (list
+        #:go go-1.23
         #:import-path "github.com/chmduquesne/rollinghash/"
         #:phases
         #~(modify-phases %standard-phases
diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm
index e84c1bdd88..7e0b7b75fa 100644
--- a/gnu/packages/golang-maths.scm
+++ b/gnu/packages/golang-maths.scm
@@ -25,6 +25,7 @@
   #:use-module (guix git-download)
   #:use-module (guix packages)
   #:use-module (gnu packages)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build))
 
 ;;; Commentary:
@@ -200,6 +201,7 @@ flow into higher precision types from the @code{math.big} 
library.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/montanaflynn/stats"
       #:phases
       #~(modify-phases %standard-phases
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 350dfc79fa..8f22e15dc7 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -736,6 +736,7 @@ functions.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/aws/aws-sdk-go"
       #:phases
       #~(modify-phases %standard-phases
@@ -1489,6 +1490,7 @@ and RFC 5389).")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/cenkalti/backoff/v4"))
     (home-page "https://github.com/cenkalti/backoff";)
     (synopsis "The exponential backoff algorithm in Go")
@@ -1867,7 +1869,9 @@ Any}.")
         (base32 "180wnxiim622v17xcnrjrg9g07mg4xizmlxxyrl9p42is0abi9c8"))))
     (build-system go-build-system)
     (arguments
-     (list #:import-path "github.com/coreos/go-oidc"))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/coreos/go-oidc"))
     (native-inputs
      (list go-golang-org-x-net))
     (propagated-inputs
@@ -3062,6 +3066,7 @@ Signature headers are to be set (but not both).")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/go-jose/go-jose/v3"))
     (native-inputs
      (list go-github-com-google-go-cmp
@@ -3460,6 +3465,7 @@ projects.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:embed-files #~(list "jsonschema-draft-04\\.json" "schema\\.json")
       #:import-path "github.com/go-openapi/validate"
       #:phases
@@ -3614,6 +3620,7 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/gobwas/httphead"))
     (home-page "https://github.com/gobwas/httphead";)
     (synopsis "Tiny HTTP header value parsing library in Golang")
@@ -3760,6 +3767,7 @@ APIs.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:skip-build? #t
       #:import-path "github.com/gogo/protobuf"
       ;; protoc: exec: "protoc-min-version": executable file not found in $PATH
@@ -4030,7 +4038,9 @@ parameters.")
         (base32 "0j2xjy8xrk9y9k6bqpvimj84i6hg1wwsyvwsb0axhmp49cmnrp86"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/google/safehtml"))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/google/safehtml"))
     (propagated-inputs
      (list go-golang-org-x-text))
     (home-page "https://github.com/google/safehtml";)
@@ -4770,8 +4780,10 @@ authenticated identities and their attributes.")
         (base32 "1rv495j8j2x6avw5hqpf7rpiakr5gdsx6pv8rfn0ff7vi35zfa62"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/jcmturner/gokrb5/v8"
-       #:unpack-path "github.com/jcmturner/gokrb5"))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/jcmturner/gokrb5/v8"
+      #:unpack-path "github.com/jcmturner/gokrb5"))
     (native-inputs
      (list go-github-com-stretchr-testify))
     (propagated-inputs
@@ -4873,7 +4885,9 @@ Call}.")
         (base32 "1mlgnk0y0d8njx7h66w6bhr95zh2ccg1hxlnm15i2lfh6l58s60q"))))
     (build-system go-build-system)
     (arguments
-     (list #:import-path "github.com/jhillyerd/enmime"))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/jhillyerd/enmime"))
     (native-inputs
      (list go-github-com-go-test-deep
            go-github-com-stretchr-testify))
@@ -4906,6 +4920,7 @@ geared towards parsing MIME encoded emails.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/jlaffaye/ftp"))
     (native-inputs
      (list go-github-com-stretchr-testify))
@@ -4933,7 +4948,9 @@ described in 
@url{https://www.rfc-editor.org/rfc/rfc959,RFC 959}.")
         (base32 "18zyr9nlywmwp3wpzcjxrgq9s9d2mmc6zg6xhsna00m663nkyc3n"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/jmespath/go-jmespath"))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/jmespath/go-jmespath"))
     (native-inputs
      (list go-github-com-davecgh-go-spew
            go-github-com-pmezard-go-difflib
@@ -5010,6 +5027,7 @@ controlled.  It is based on netlink messages.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/json-iterator/go"
       #:test-flags
       ;; XXX: Try to skip just "Test_symmetric/map[test.stringKeyType]string".
@@ -5182,6 +5200,7 @@ protocol in Go language.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:skip-build? #t
       #:import-path "github.com/labbsr0x/goh"))
     (propagated-inputs
@@ -5748,6 +5767,7 @@ fixed.")
            go-golang-org-x-text))
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/makeworld-the-better-one/go-gemini"))
     (home-page "https://github.com/makew0rld/go-gemini";)
     (synopsis "Client/server library for the Gemini protocol, in Go")
@@ -7025,6 +7045,7 @@ higher-level API for doing so.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pascaldekloe/goe"
       #:phases
       #~(modify-phases %standard-phases
@@ -7086,6 +7107,7 @@ API.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/perimeterx/marshmallow"))
     (native-inputs
      (list go-github-com-go-test-deep))
@@ -7333,6 +7355,7 @@ part of @url{https://github.com/pion, Pion} WebRTC 
implementation.")
         (base32 "0f9jy80law69zb26rkb6kl6w1c66vdghdrmifhwlmzngb644ihdb"))))
     (arguments
      (list
+      #:go go-1.23
       #:tests? #f ;Tests require network access.
       #:import-path "github.com/pion/ice/v3"))
     (propagated-inputs
@@ -7638,6 +7661,7 @@ Protocol,SCTP} as specified in
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pion/stun"))
     (native-inputs
      (list go-github-com-stretchr-testify))
@@ -7672,6 +7696,7 @@ Protocol,SCTP} as specified in
         (base32 "0zli55ls5izpr6cw0wj0gy44872xn9rk20i8ay9cfk7j2rb60y60"))))
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pion/stun/v2"))
     (propagated-inputs
      (list go-github-com-pion-dtls-v2
@@ -7696,6 +7721,7 @@ Protocol,SCTP} as specified in
         (base32 "0yavl76y0fida9f1jfdmzdg7rm5jhp6kvdgn3smsf93jad1vbr2x"))))
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pion/stun/v3"))
     (propagated-inputs
      (list go-github-com-pion-dtls-v3
@@ -7802,6 +7828,7 @@ throughout the @url{https://github.com/pion, Pion} 
modules.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pion/turn"
       #:test-flags
       #~(list "-skip"
@@ -8332,6 +8359,7 @@ protocol.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/quic-go/webtransport-go"
       ;; Error: "68" is not greater than "80"
       #:test-flags #~(list "-skip" "TestDatagrams")))
@@ -8903,6 +8931,7 @@ StatHat} account.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/swaggo/swag"
       #:unpack-path "github.com/swaggo/swag"
       #:embed-files
@@ -9261,6 +9290,7 @@ encoding library for the MessagePack, CBOR, JSON and the 
Binc formats.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/urfave/negroni"))
     (home-page "https://github.com/urfave/negroni";)
     (synopsis "Idiomatic HTTP Middleware for Golang")
@@ -9286,6 +9316,7 @@ tiny,non-intrusive, and encourages use of @code{net/http} 
Handlers.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/urfave/negroni/v3"))))
 
 (define-public go-github-com-valyala-fasthttp
@@ -9724,6 +9755,7 @@ programming language.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       ;; validation of time strings.  only RFC3339 not all of ISO 8601 are
       ;; valid.  expects: false, given true Schema: {"format":"time"} Data:
       ;; "01:01:01,1111"
@@ -10090,6 +10122,7 @@ Go.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       ;; Project provides a Go library and also CLI builds.
       #:skip-build? #t
       #:import-path
@@ -10236,6 +10269,7 @@ lists)
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "go.opencensus.io"
       #:test-flags
       #~(list "-skip"
@@ -11057,6 +11091,7 @@ the code or routes.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "maunium.net/go/mautrix"
       #:embed-files
       #~(list
@@ -11257,6 +11292,7 @@ protocol.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:build-flags #~(list (string-append "-ldflags="
                                            "-X main.lyrebirdVersion="
                                            #$version " -s -w"))
@@ -11425,6 +11461,7 @@ go-github-com-tdewolff-minify-v2 source.")))
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:install-source? #f
       #:import-path "github.com/tomnomnom/gron"))
     (native-inputs
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index a669094271..a1ec8a5707 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -142,6 +142,7 @@
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:skip-build? #t
       #:import-path "9fans.net/go"
       #:test-subdirs #~(list "acme/..."
@@ -559,7 +560,9 @@ commands.")
         (base32 "1z64yzr2l5j5r5rqi89jk4madn3ak8hw95lva5ra7gnlyhh2vs05"))))
     (build-system go-build-system)
     (arguments
-     (list #:import-path "git.sr.ht/~rockorager/tcell-term"))
+     (list
+      #:go go-1.23
+      #:import-path "git.sr.ht/~rockorager/tcell-term"))
     (native-inputs
      (list go-github-com-stretchr-testify))
     (propagated-inputs
@@ -973,7 +976,9 @@ on terminals supporting ANSI escape sequences.")
     (build-system go-build-system)
     ;; TODO: Build cmd/chroma and cmd/chromad commands.
     (arguments
-     `(#:import-path "github.com/alecthomas/chroma"))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/alecthomas/chroma"))
     (native-inputs
      (list go-github-com-alecthomas-kong
            go-github-com-alecthomas-kong-hcl
@@ -1392,6 +1397,7 @@ environment and runtime configuration.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/AndreasBriese/bbloom"))
     (home-page "https://github.com/AndreasBriese/bbloom";)
     (synopsis "Bitset Bloom filter for Golang")
@@ -1698,6 +1704,7 @@ cluster segmentation algorithm.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/arbovm/levenshtein"))
     (home-page "https://github.com/arbovm/levenshtein";)
     (synopsis "Levenshtein Distance in Golang")
@@ -1818,6 +1825,7 @@ for Go.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/asaskevich/govalidator"
       #:phases
       #~(modify-phases %standard-phases
@@ -2322,6 +2330,7 @@ based on murmurhash.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       ;; This test fails with Go 1.16.
       #:test-flags #~(list "-skip" "TestMatch")
       #:import-path "github.com/bmatcuk/doublestar"))
@@ -4243,6 +4252,7 @@ parse and compare two semantic version strings.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/coreos/go-systemd/v22"
       #:phases
       #~(modify-phases %standard-phases
@@ -4592,6 +4602,8 @@ structs in the Go programming language.")
     (outputs '("out" "doc"))
     (arguments
      (list
+      ;; See <https://github.com/d5/tengo/issues/466>.
+      #:go go-1.23
       #:import-path "github.com/d5/tengo/v2"
       #:phases
       #~(modify-phases %standard-phases
@@ -6703,6 +6715,7 @@ also favors portability, and includes support for all 
POSIX systems.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/gdey/errors"))
     (home-page "https://github.com/gdey/errors";)
     (synopsis "Augmentation of std @code{errors} library")
@@ -6750,6 +6763,7 @@ library in go standard library.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/ghemawat/stream"))
     (home-page "https://github.com/ghemawat/stream";)
     (synopsis "UNIX pipe-like chained filters")
@@ -6897,6 +6911,7 @@ goroutines.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/go-errors/errors"
       ;; Stack trace does not contain source line: 'a: b(5)'.
       #:test-flags #~(list "-skip" "TestStackFormat")))
@@ -7253,6 +7268,7 @@ professionally translated
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/go-spatial/proj"))
     (native-inputs
      (list go-github-com-stretchr-testify))
@@ -7468,6 +7484,7 @@ native Go structure.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/gobwas/glob"))
     (home-page "https://github.com/gobwas/glob";)
     (synopsis "Go globbing library")
@@ -7565,6 +7582,7 @@ size.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/godbus/dbus"
       #:phases
       #~(modify-phases %standard-phases
@@ -7695,6 +7713,7 @@ execution.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/gogs/chardet"))
     (home-page "https://github.com/gogs/chardet";)
     (synopsis "Character set detection for Go")
@@ -8204,6 +8223,7 @@ provides a buffered io.Writer that is flushed at a timed 
interval.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/goverter/patherr"))
     (home-page "https://github.com/goverter/patherr";)
     (synopsis "Implementation for Goverter's wrapErrorsUsing")
@@ -9875,6 +9895,7 @@ object, which implements simple error-retrying 
functionality.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/jbenet/goprocess"
       #:test-flags
       #~(list "-short"
@@ -10041,6 +10062,7 @@ text, etc. with a heavy emphasis on customization.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/jessevdk/go-flags"
       #:test-flags #~(list "-skip" "TestCompletion|TestParserCompletion")))
     (propagated-inputs
@@ -10525,6 +10547,7 @@ resources located relative to the executable file.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/karrick/godirwalk"))
     ;; To build all examples as a test scenario.
     (native-inputs
@@ -11389,6 +11412,7 @@ structure.  It's a stable fork of 
https://github.com/mndrix/ps.";)
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "layeh.com/gopher-luar"))
     (propagated-inputs (list go-github-com-yuin-gopher-lua))
     (home-page "https://github.com/layeh/gopher-luar";)
@@ -11929,6 +11953,7 @@ generation.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/MakeNowJust/heredoc"))
     (home-page "https://github.com/MakeNowJust/heredoc";)
     (synopsis "Here-documents with indent")
@@ -11988,6 +12013,7 @@ implementing features like:
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/Masterminds/goutils"))
     (home-page "https://github.com/Masterminds/goutils/";)
     (synopsis "Utility functions to manipulate strings")
@@ -12271,14 +12297,16 @@ string.")
          "0l0l5s4hlsrm4z6hygig2pp1qirk5ycrzn9z27ay3yvg9k7zafzx"))))
     (build-system go-build-system)
     (arguments
-     `(#:import-path "github.com/mattn/go-shellwords"
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'patch-sh-path
-           (lambda* (#:key import-path #:allow-other-keys)
-             (substitute* (string-append
-                           "src/" import-path "/util_posix.go")
-               (("/bin/sh") (which "sh"))))))))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/mattn/go-shellwords"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-sh-path
+            (lambda* (#:key import-path #:allow-other-keys)
+              (substitute* (string-append
+                            "src/" import-path "/util_posix.go")
+                (("/bin/sh") (which "sh"))))))))
     (home-page "https://github.com/mattn/go-shellwords";)
     (synopsis "Parse lines into shell words")
     (description "This package parses text into shell arguments.  Based on
@@ -12850,6 +12878,7 @@ parsing.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/moby/sys/mountinfo"
       #:unpack-path "github.com/moby/sys"
       #:test-flags
@@ -13260,6 +13289,7 @@ Authentication Modules, PAM} application API.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/muesli/cancelreader"))
     (propagated-inputs
      (list go-golang-org-x-sys))
@@ -13786,6 +13816,7 @@ pretty printed rendering in Golang.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:skip-build? #t
       #:import-path "github.com/nlpodyssey/spago"))
     (native-inputs
@@ -13908,6 +13939,7 @@ NSQ protocol @url{https://nsq.io/}.";)
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/nxadm/tail"))
     (propagated-inputs
      (list go-github-com-fsnotify-fsnotify
@@ -14326,6 +14358,7 @@ composable way such that accurate error can be reasoned 
about.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/orisano/pixelmatch"))
     (home-page "https://github.com/orisano/pixelmatch";)
     (synopsis "Pixelmatch port to Go")
@@ -14483,6 +14516,7 @@ processes.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pborman/getopt"))
     (home-page "https://github.com/pborman/getopt";)
     (synopsis "Getopt style option parsing for Go")
@@ -14554,7 +14588,9 @@ package (which is based off an earlier version of this 
package).")
         (base32 "1wypjrr1axkrkzp4n5gvams94f2sd7dq1pdpd2i35sgpdz6r2m6g"))))
     (build-system go-build-system)
     (arguments
-     (list #:import-path "github.com/pelletier/go-toml"))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/pelletier/go-toml"))
     (propagated-inputs
      (list go-github-com-burntsushi-toml
            go-github-com-davecgh-go-spew
@@ -14814,6 +14850,7 @@ on top of the standard library @code{flag} package.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pingcap/errors"
       #:test-flags
       #~(list "-skip" (string-join
@@ -14878,6 +14915,7 @@ Pion}.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pkg/diff"))
     (home-page "https://github.com/pkg/diff/";)
     (synopsis "Create and print diffs")
@@ -14967,6 +15005,7 @@ 
https://en.wikipedia.org/wiki/Extended_file_attributes}.";)
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/pmezard/go-difflib/difflib"
       #:unpack-path "github.com/pmezard/go-difflib/"))
     (home-page "https://github.com/pmezard/go-difflib";)
@@ -14991,6 +15030,7 @@ 
https://en.wikipedia.org/wiki/Extended_file_attributes}.";)
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/polydawn/refmt"))
     (propagated-inputs
      (list go-github-com-go-yaml-yaml
@@ -15530,7 +15570,9 @@ logging.")
        (sha256
         (base32 "0d1rg1drrfmabilqjjayklsz5d0n3hkf979sr3wsrw92bfbkivs7"))))
     (arguments
-     (list #:import-path "github.com/russross/blackfriday/v2"))))
+     (list
+      #:go go-1.23
+      #:import-path "github.com/russross/blackfriday/v2"))))
 
 (define-public go-github-com-rwcarlsen-goexif
   ;; No release or version tag, Golang pseudo version:
@@ -15962,6 +16004,7 @@ and branchless algorithms shine.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:skip-build? #t
       #:import-path "github.com/segmentio/encoding"
       #:test-flags #~(list "-skip" "TestUnmarshalFixture|TestDecodeFixture")))
@@ -16293,6 +16336,7 @@ GNU/Linux, this is a proxy for the @command{xdg-open} 
command.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/smacker/go-tree-sitter"))
     (native-inputs (list go-github-com-stretchr-testify))
     (home-page "https://github.com/smacker/go-tree-sitter";)
@@ -16740,6 +16784,7 @@ slices, JSON and other data.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/subosito/gotenv"))
     (native-inputs
      (list go-github-com-stretchr-testify))
@@ -17955,6 +18000,7 @@ weighted moving averages}.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/vmihailenco/msgpack/v4"))
     (native-inputs
      (list go-gopkg-in-check-v1))
@@ -18079,6 +18125,7 @@ Redis.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/warpfork/go-fsx"))
     (home-page "https://github.com/warpfork/go-fsx";)
     (synopsis "Extended filesystem interface for Golang")
@@ -18696,6 +18743,7 @@ common sequence} values from two arbitrary arrays.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "github.com/yuin/gopher-lua"
       #:phases
       #~(modify-phases %standard-phases
@@ -19421,6 +19469,7 @@ written in YAML or JSON.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "go.mongodb.org/mongo-driver"
       #:test-flags
       #~(list "-skip"
@@ -19862,6 +19911,7 @@ APIs may be unstable
       (build-system go-build-system)
       (arguments
        (list
+        #:go go-1.23
         #:skip-build? #t
         #:import-path "go4.org"
         #:test-subdirs
@@ -20449,6 +20499,7 @@ dependencies.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "howett.net/plist"
       ;; cmd requires gopkg.in/yaml.v1
       #:test-subdirs #~(list "internal/..." ".")))
@@ -20523,6 +20574,7 @@ split out here for ease of reuse and maintainability.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "k8s.io/klog/v2"
       #:test-flags
       #~(list "-skip"
diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index a37654fa21..bee4149a75 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -72,6 +72,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-web)
@@ -1231,6 +1232,7 @@ seen, tell, and what.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:install-source? #f
       #:import-path "codeberg.org/emersion/soju"
       #:phases
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index bf93bd57b7..facbe06ae7 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4933,7 +4933,7 @@ from the module-init-tools project.")
         (list
           ;; For the test suite.
           cppcheck
-          go)))
+          go-1.23)))
     (home-page "https://github.com/rfjakob/earlyoom";)
     (synopsis "Simple out of memory (OOM) daemon for the Linux kernel")
     (description "Early OOM is a minimalist out of memory (OOM) daemon that
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 6bbea44341..fdfeee65f6 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -94,6 +94,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)
@@ -3327,6 +3328,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")
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 2f2e7a8a18..0416b9e714 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -94,6 +94,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-crypto)
   #:use-module (gnu packages golang-xyz)
@@ -150,6 +151,7 @@
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:install-source? #f
       #:import-path "github.com/99designs/aws-vault"
       #:build-flags
diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm
index 85015f0794..f7894be9cd 100644
--- a/gnu/packages/syncthing.scm
+++ b/gnu/packages/syncthing.scm
@@ -65,6 +65,7 @@
     (outputs '("out" "utils"))
     (arguments
      (list
+      #:go go-1.23
        #:modules '((srfi srfi-26) ; for cut
                    (guix build utils)
                    (guix build go-build-system))
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index b4468f7138..2b7913bec6 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -95,6 +95,7 @@
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-check)
   #:use-module (gnu packages golang-xyz)
@@ -179,6 +180,7 @@ extensions over the standard utility.")
       (build-system go-build-system)
       (arguments
        (list
+        #:go go-1.23
         #:install-source? #f
         #:import-path "github.com/zyedidia/micro/v2/cmd/micro"
         #:unpack-path "github.com/zyedidia/micro/v2"
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 83f74ba999..516c306720 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -1285,6 +1285,7 @@ formats (e.g. Bibtex, RIS, etc.) using a common XML 
intermediate.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:install-source? #f
       #:import-path "github.com/benhoyt/goawk"
       #:phases
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 7d7e4fd250..24b320a2f4 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -4228,6 +4228,7 @@ file contents on a remote server.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "git.sr.ht/~ngraves/lfs-s3"))
     (inputs (list git-lfs))
     (propagated-inputs
@@ -4796,6 +4797,7 @@ developer workflow, and project and release management.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "git.sr.ht/~xenrox/hut"
       #:phases
       #~(modify-phases %standard-phases
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index dc3dd52219..fe6672abad 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -156,6 +156,7 @@
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnunet)
   #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-xyz)
   #:use-module (gnu packages gstreamer)
@@ -3361,6 +3362,7 @@ playlists.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:install-source? #f
       #:import-path "github.com/Kethsar/ytarchive"
       #:embed-files #~(list "children" "nodes" "text")
diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index e3e069f01e..34f27951a5 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -75,6 +75,7 @@
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnome-xyz)
   #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
@@ -920,6 +921,7 @@ history, and page outlines.")
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:import-path "tildegit.org/sloum/bombadillo"
       #:install-source? #f
       #:phases


Reply via email to