From 4a16fbdbbd9a5d7bd263de7b7aeaf5d2de4596f3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 6 Mar 2026 09:47:00 +0000 Subject: [PATCH] gnu: go-howett-net-plist: Build with default go. * gnu/packages/golang-xyz.scm (go-howett-net-plist): [source] : Remove experimental command. Substitute gopkg.in/yaml.v1 with gopkg.in/yaml.v2. [arguments] : Use default (1.24) : Run tests over whole library. : 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