~ruther/guix-local

0e25b7c1b6594a7f01e26c618763131555f365b3 — Maxim Cournoyer 10 months ago 71e1b44
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>
1 files changed, 10 insertions(+), 1 deletions(-)

M gnu/packages/golang-build.scm
M gnu/packages/golang-build.scm => gnu/packages/golang-build.scm +10 -1
@@ 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")