guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit eaf454a68bee887b19eadb091df7d7d05122b4e1
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Mon Jun 2 12:58:24 2025 +0900
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 <[email protected]>
---
gnu/packages/golang-build.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index efc50a07bb..117b16376c 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -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")