mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
71e1b44f58
commit
0e25b7c1b6
1 changed files with 10 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue