guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit 29347f9bb321a19d419d829ffc4445de5d8d35fb
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Mar 6 09:47:00 2026 +0000
gnu: go-howett-net-plist: Build with default go.
* gnu/packages/golang-xyz.scm (go-howett-net-plist):
[source] <snippet>: Remove experimental command. Substitute
gopkg.in/yaml.v1 with gopkg.in/yaml.v2.
[arguments] <go>: Use default (1.24)
<test-subdirs>: Run tests over whole library.
<test-flags>: Do not vet during tests.
[native-inputs]: Add go-gopkg-in-yaml-v2.
[description]: Improve it.
Change-Id: I1d50df20c53355d0a57d80f6d731f3558f4c7217
---
gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++--------
1 file changed, 19 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 9338638d2d..c9d33d5963 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -29599,26 +29599,37 @@ dependencies.")
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/DHowett/go-plist")
- (commit (string-append "v" version))))
+ (url "https://github.com/DHowett/go-plist")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1gcrxkmdj87xq01458asgxvvijrkih74ydbzfmir1p16xr9z0x39"))))
+ (base32 "1gcrxkmdj87xq01458asgxvvijrkih74ydbzfmir1p16xr9z0x39"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; It has to be build with GOOS=js GOARCH=wasm and it is marked as
+ ;; experemental.
+ (delete-file-recursively "cmd/experimental/plait")
+ ;; v1 has been deprecated for a long time use v2 instead.
+ (substitute* (find-files "." "\\.go$")
+ (("gopkg.in/yaml.v1") "gopkg.in/yaml.v2"))))))
(build-system go-build-system)
(arguments
(list
- #:go go-1.23
#:import-path "howett.net/plist"
- ;; cmd requires gopkg.in/yaml.v1
- #:test-subdirs #~(list "internal/..." ".")))
+ #:test-flags
+ #~(list "-vet=off")))
+ (native-inputs
+ (list go-gopkg-in-yaml-v2))
(propagated-inputs
(list go-github-com-jessevdk-go-flags
go-gopkg-in-check-v1))
(home-page "https://github.com/DHowett/go-plist")
(synopsis "Apple property list transcoder")
(description
- "This list transcoder supports encoding/decoding property lists (Apple
-XML, Apple Binary, OpenStep, and GNUStep) from/to arbitrary Go types.")
+ "This package implements a functionality of encoding/decoding property
+lists (Apple XML, Apple Binary, OpenStep and GNUStep) from/to arbitrary Go
+types.")
(license license:giftware)))
(define-public go-k8s-io-api