gnu: go-github-com-evanphx-json-patch: Update to 4.13.0.

* gnu/packages/golang-web.scm (go-github-com-evanphx-json-patch): Update
to 4.13.0.
[arguments] <go>: Use default, go-1.24.
<unpack-path>: Add it.
<test-flags>: Add "-vet=off".
[description]: Fix indentation.
(go-github-com-evanphx-json-patch-v5): Fix indentation.
[arguments]: Do not overwrite, but substitute <import-path> only.

Change-Id: Ied53f8d51fb514f9bd2e82b4526f807bf2359a30
This commit is contained in:
Sharlatan Hellseher 2025-09-07 14:47:55 +01:00
parent 158a30fc03
commit 9e88bddbe4
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -2919,37 +2919,7 @@ protocol definition.")
(define-public go-github-com-evanphx-json-patch
(package
(name "go-github-com-evanphx-json-patch")
(version "4.12.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/evanphx/json-patch")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1z0bmsvzm4nchfbi7h9pdvkfgrnf0fvhn39pgb0q2az8cql58q56"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.23
#:import-path "github.com/evanphx/json-patch"))
(propagated-inputs
(list go-github-com-jessevdk-go-flags go-github-com-pkg-errors))
(home-page "https://github.com/evanphx/json-patch")
(synopsis "Apply and create JSON (RFC6902 and RFC7386) patches for Golang")
(description
"@code{jsonpatch} is a library which provides functionality for both
applying @url{http://tools.ietf.org/html/rfc6902,RFC6902 JSON patches} against
documents, as well as for calculating & applying
@url{https://tools.ietf.org/html/rfc7396,RFC7396 JSON merge patches}.")
(license license:bsd-3)))
(define-public go-github-com-evanphx-json-patch-v5
(package
(inherit go-github-com-evanphx-json-patch)
(name "go-github-com-evanphx-json-patch-v5")
(version "5.9.11")
(version "4.13.0")
(source
(origin
(method git-fetch)
@ -2962,9 +2932,42 @@ documents, as well as for calculating & applying
(build-system go-build-system)
(arguments
(list
#:go go-1.23
#:import-path "github.com/evanphx/json-patch/v5"
#:unpack-path "github.com/evanphx/json-patch"))))
#:import-path "github.com/evanphx/json-patch"
#:unpack-path "github.com/evanphx/json-patch"
;; Tests are not copatible with Go 1.24+.
#:test-flags #~(list "-vet=off")))
(propagated-inputs
(list go-github-com-jessevdk-go-flags
go-github-com-pkg-errors))
(home-page "https://github.com/evanphx/json-patch")
(synopsis "Apply and create JSON (RFC6902 and RFC7386) patches for Golang")
(description
"@code{jsonpatch} is a library which provides functionality for both
applying @url{http://tools.ietf.org/html/rfc6902, RFC6902 JSON patches}
against documents, as well as for calculating & applying
@url{https://tools.ietf.org/html/rfc7396, RFC7396 JSON merge patches}.")
(license license:bsd-3)))
(define-public go-github-com-evanphx-json-patch-v5
(package
(inherit go-github-com-evanphx-json-patch)
(name "go-github-com-evanphx-json-patch-v5")
(version "5.9.11")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/evanphx/json-patch")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0sydllg5hsmvwdr1276qzl8v3xsr3jjrimvvgl9096rn3kf3664m"))))
(build-system go-build-system)
(arguments
(substitute-keyword-arguments
(package-arguments go-github-com-evanphx-json-patch)
((#:import-path "github.com/evanphx/json-patch")
"github.com/evanphx/json-patch/v5")))))
(define-public go-github-com-fasthttp-router
(package