gnu: go-github-com-google-go-cmdtest: Fix build with Go 1.24.

* gnu/packages/golang-build.scm (go-github-com-google-go-cmdtest)
[phases] <patch-source>: New phase.

Change-Id: I2c066ed43d9b2e32f34b6f1a0defb9870e6039a8
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Maxim Cournoyer 2025-06-02 12:58:24 +09:00 committed by Sharlatan Hellseher
parent 71e1b44f58
commit 0e25b7c1b6
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -188,7 +188,16 @@ as an ordered, mutable data structure.")
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/google/go-cmdtest"))
#:import-path "github.com/google/go-cmdtest"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda _
(substitute* "src/github.com/google/go-cmdtest/cmdtest_test.go"
;; Since Go 1.24, fmt procedures are checked to use a constant
;; format string.
(("t.Errorf\\(diff)")
"t.Errorf(\"%s\", diff)")))))))
(propagated-inputs
(list go-github-com-google-renameio go-github-com-google-go-cmp))
(home-page "https://github.com/google/go-cmdtest")