From a50a541df36b088b64b765d692863f7b6905025f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 23 Nov 2024 21:05:15 +0000 Subject: [PATCH 001/862] gnu: Remove go-github-com-calmh-xdr. * gnu/packages/golang-xyz.scm (go-github-com-calmh-xdr): Delete variable. Change-Id: I5414a14b093819d1f17d5eb9791f29a705daa5fe --- gnu/packages/golang-xyz.scm | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 72216ae2a4f..6fb2594ae68 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1457,33 +1457,6 @@ indicator to any terminal application.") similar to Go's standard library @code{json} and @code{xml} package.") (license license:expat))) -;; XXX: This repository has been archived by the owner on Feb 21, 2018. It is -;; now read-only. -(define-public go-github-com-calmh-xdr - (package - (name "go-github-com-calmh-xdr") - (version "1.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/calmh/xdr") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/calmh/xdr")) - (home-page "https://github.com/calmh/xdr") - (synopsis "XDR marshalling and unmarshalling") - (description - "XDR is an External Data Representation (XDR) -marshalling and unmarshalling library in Go. It uses code generation and not -reflection.") - (license license:expat))) - (define-public go-github-com-caarlos0-env (package (name "go-github-com-caarlos0-env") From ea10355d351b5dde232449da572b792750a67c97 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 23 Nov 2024 21:06:40 +0000 Subject: [PATCH 002/862] gnu: Remove go-github-com-dustin-gojson. It's not maintained for 8y and not in use by any other packages in Guix. * gnu/packages/golang-xyz.scm (go-github-com-dustin-gojson): Delete variable. Change-Id: I0b8d6e0873967d2454654640fa5f5add0b2bfaf3 --- gnu/packages/golang-xyz.scm | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6fb2594ae68..9b929a434e8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2597,41 +2597,6 @@ Implements string conversion functionality for unit prefixes. @end table") (license license:bsd-3))) -(define-public go-github-com-dustin-gojson - (package - (name "go-github-com-dustin-gojson") - (version "v0.0.0-20160307161227-2e71ec9dd5ad") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/dustin/gojson") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1vrmmyn7l568l1k71mxd54iqf3d54pn86cf278i374j86jn0bdxf")) - (modules '((guix build utils))) - (snippet '(begin - ;; Fix the library to work with go-1.21. - (substitute* "decode.go" - (("trying to unmarshal unquoted value into") - "trying to unmarshal unquoted value %v into")) - (substitute* "decode_test.go" - (("t.Fatalf\\(\"Unmarshal: %v\"\\)") - "t.Fatalf(\"Unmarshal: %v\", data)")) ;)))) - (substitute* "scanner.go" - (("s := strconv.Quote\\(string\\(c\\)\\)") - "s := strconv.QuoteRune(rune(c))")))))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/dustin/gojson")) - (home-page "https://github.com/dustin/gojson") - (synopsis "Extended Golang's @code{encoding/json} module with the public scanner API") - (description - "This package provides a fork of Golang's @code{encoding/json} with the -scanner API made public.") - (license license:bsd-3))) - (define-public go-github-com-dustin-go-humanize (package (name "go-github-com-dustin-go-humanize") From 5eaf8fdd9fbf6993fd0538b84f853da147250c91 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 23 Nov 2024 21:13:43 +0000 Subject: [PATCH 003/862] gnu: go-github-com-russross-blackfriday: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-russross-blackfriday, go-github-com-russross-blackfriday-v2): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I004efdcd797da670a87e2f319b4df1b072e5bf10 --- gnu/packages/golang-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 43 ------------------------------------ 2 files changed, 44 insertions(+), 43 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9b929a434e8..5a2eda0c2e0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6801,6 +6801,50 @@ Included are the following: logging.") (license license:expat))) +(define-public go-github-com-russross-blackfriday + (package + (name "go-github-com-russross-blackfriday") + (version "1.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/russross/blackfriday") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "036028ynpq52z9snmd2b1kjzyvv6n9sg71k651ndznggnw19aamp")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/russross/blackfriday")) + (native-inputs + (list go-github-com-pmezard-go-difflib)) + (propagated-inputs + (list go-github-com-shurcool-sanitized-anchor-name)) + (home-page "https://github.com/russross/blackfriday") + (synopsis "Markdown processor in Go") + (description + "Blackfriday is a Markdown processor in Go.") + (license license:bsd-2))) + +(define-public go-github-com-russross-blackfriday-v2 + (package + (inherit go-github-com-russross-blackfriday) + (name "go-github-com-russross-blackfriday-v2") + (version "2.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/russross/blackfriday") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0d1rg1drrfmabilqjjayklsz5d0n3hkf979sr3wsrw92bfbkivs7")))) + (arguments + (list #:import-path "github.com/russross/blackfriday/v2")))) + + (define-public go-github-com-ryanuber-columnize (package (name "go-github-com-ryanuber-columnize") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b1ea9e5a287..c7b5b03ce0f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4509,49 +4509,6 @@ back to netrc format, while preserving any whitespace that was present in the source file.") (license license:expat)))) -(define-public go-github-com-russross-blackfriday - (package - (name "go-github-com-russross-blackfriday") - (version "1.6.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/russross/blackfriday") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "036028ynpq52z9snmd2b1kjzyvv6n9sg71k651ndznggnw19aamp")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/russross/blackfriday")) - (propagated-inputs - (list go-github-com-shurcool-sanitized-anchor-name)) - (native-inputs - (list go-github-com-pmezard-go-difflib)) - (home-page "https://github.com/russross/blackfriday") - (synopsis "Markdown processor in Go") - (description "Blackfriday is a Markdown processor in Go.") - (license license:bsd-2))) - -(define-public go-github-com-russross-blackfriday-v2 - (package - (inherit go-github-com-russross-blackfriday) - (name "go-github-com-russross-blackfriday-v2") - (version "2.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/russross/blackfriday") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0d1rg1drrfmabilqjjayklsz5d0n3hkf979sr3wsrw92bfbkivs7")))) - (arguments - (list #:import-path "github.com/russross/blackfriday/v2")))) - (define-public go-github-com-rubyist-tracerx (let ((commit "787959303086f44a8c361240dfac53d3e9d53ed2") (revision "0")) From bdedac98641c054aafcef06584a8befcd0da0e7c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 23 Nov 2024 21:18:16 +0000 Subject: [PATCH 004/862] gnu: go-github-com-go-md2man: Update to 2.0.5. * gnu/packages/golang.scm (go-github-com-go-md2man): Update to 2.0.5. [source]: Remove, as no longer exists. Change-Id: Iee88ae6665cc26203520e11dc1c665f70427bfbb --- gnu/packages/golang.scm | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c7b5b03ce0f..6285f968527 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4456,7 +4456,7 @@ fast and distributable command line applications in an expressive way.") (define-public go-github-com-go-md2man (package (name "go-github-com-go-md2man") - (version "2.0.0") + (version "2.0.5") (source (origin (method git-fetch) @@ -4465,21 +4465,18 @@ fast and distributable command line applications in an expressive way.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "0r1f7v475dxxgzqci1mxfliwadcrk86ippflx9n411325l4g3ghv")) - (modules '((guix build utils))) - (snippet '(begin - (delete-file-recursively "vendor") - #t)))) + (base32 "0gqlkv1pv8cpvcj8g77d1hzy5bnp5a3k3xs02iahlr3a65m4azsi")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/cpuguy83/go-md2man")) + (list + #:import-path "github.com/cpuguy83/go-md2man")) (propagated-inputs (list go-github-com-russross-blackfriday-v2)) (home-page "https://github.com/cpuguy83/go-md2man") (synopsis "Convert markdown into roff") - (description "Go-md2man is a Go program that converts markdown to roff for -the purpose of building man pages.") + (description + "Go-md2man is a Go program that converts markdown to roff for the purpose +of building man pages.") (license license:expat))) (define-public go-github-com-git-lfs-go-netrc From c253c9db5d319abc85eaf7d0a391c0108b622ce4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 10:44:08 +0000 Subject: [PATCH 005/862] gnu: go-github-com-kylelemons-godebug: Improve style. * gnu/packages/golang.scm (go-github-com-kylelemons-godebug): Provide "diff" and "pritty" modules together. [arguments]: Remove 'build, add custom 'check. Change-Id: I4815d3476025c0c16645e32c675de601ba582f6d --- gnu/packages/golang.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6285f968527..12abc75266d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4667,8 +4667,17 @@ have super fancy logs.") "0dkk3friykg8p6wgqryx6745ahhb9z1j740k7px9dac6v5xjp78c")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/kylelemons/godebug/diff" - #:unpack-path "github.com/kylelemons/godebug")) + (list + #:import-path "github.com/kylelemons/godebug" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (delete 'build) + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) (home-page "https://github.com/kylelemons/godebug") (synopsis "Pretty printer for Go values") (description From c2c4998e61ca5a0bc2ff30c0aaff3d55b19df675 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:03:46 +0000 Subject: [PATCH 006/862] gnu: go-github-com-kylelemons-godebug: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-kylelemons-godebug, go-github-com-kylelemons-godebug-pretty): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I8dad929a25526a0aa08a9a6fc958e8b2034d702e --- gnu/packages/golang-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 45 ------------------------------------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5a2eda0c2e0..a2360a2e183 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Joseph LaFreniere ;;; Copyright © 2020 Oleg Pykhalov +;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2020, 2021 raingloom ;;; Copyright © 2021 Arun Isaac ;;; Copyright © 2021 Collin J. Doering @@ -4728,6 +4729,50 @@ allocation. @code{fastime} is returning the approximate time.") "This package provides a pretty printer for Go values.") (license license:expat))) +(define-public go-github-com-kylelemons-godebug + (package + (name "go-github-com-kylelemons-godebug") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kylelemons/godebug") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0dkk3friykg8p6wgqryx6745ahhb9z1j740k7px9dac6v5xjp78c")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kylelemons/godebug" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (delete 'build) + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (home-page "https://github.com/kylelemons/godebug") + (synopsis "Pretty printer for Go values") + (description + "This package will pretty print a compact representation of a Go data +structure. It can also produce a much more verbose, one-item-per-line +representation suitable for computing diffs.") + (license license:asl2.0))) + +;; TODO: Merge with go-github-com-kylelemons-godebug and provide both module; +;; for go-team. +(define-public go-github-com-kylelemons-godebug-pretty + (package + (inherit go-github-com-kylelemons-godebug) + (name "go-github-com-kylelemons-godebug-pretty") + (arguments + '(#:import-path "github.com/kylelemons/godebug/pretty" + #:unpack-path "github.com/kylelemons/godebug")))) + (define-public go-github-com-lestrrat-go-envload (package (name "go-github-com-lestrrat-go-envload") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 12abc75266d..2aee5b6bee0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4651,51 +4651,6 @@ have super fancy logs.") "The fs package provides file-system-related Go functions.") (license license:bsd-3)))) -(define-public go-github-com-kylelemons-godebug - (package - (name "go-github-com-kylelemons-godebug") - (version "1.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kylelemons/godebug") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0dkk3friykg8p6wgqryx6745ahhb9z1j740k7px9dac6v5xjp78c")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/kylelemons/godebug" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Replace when go-build-system supports nested path. - (delete 'build) - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) - (home-page "https://github.com/kylelemons/godebug") - (synopsis "Pretty printer for Go values") - (description - "This package will pretty print a compact representation of a Go data -structure. It can also produce a much more verbose, one-item-per-line -representation suitable for computing diffs.") - (license license:asl2.0))) - -;; TODO: Merge with go-github-com-kylelemons-godebug and provide both module; -;; for go-team. -(define-public go-github-com-kylelemons-godebug-pretty - (package - (inherit go-github-com-kylelemons-godebug) - (name "go-github-com-kylelemons-godebug-pretty") - (arguments - '(#:import-path "github.com/kylelemons/godebug/pretty" - #:unpack-path "github.com/kylelemons/godebug")))) - (define-public go-github-com-kr-text (package (name "go-github-com-kr-text") From 05e408d5e8cefe9519e3071da7822204986edf9b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:26:26 +0000 Subject: [PATCH 007/862] gnu: go-github-com-cyphar-filepath-securejoin: Update to 0.3.4. * gnu/packages/golang-xyz.scm (go-github-com-cyphar-filepath-securejoin): Update to 0.3.4. [source]: Fix typo in URL. Change-Id: Iee8bc25e03ebe760ddfe5ec5e2b9f20a80b9e806 --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a2360a2e183..a0ae53bebf5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2074,7 +2074,7 @@ metrics to Graphite.") (define-public go-github-com-cyphar-filepath-securejoin (package (name "go-github-com-cyphar-filepath-securejoin") - (version "0.3.2") + (version "0.3.4") (source (origin (method git-fetch) @@ -2083,7 +2083,7 @@ metrics to Graphite.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "10clm1hfzndwhi7lwz5ph72apxwbxr3vg4nln5xsrrx26j6qv6v2")))) + (base32 "1iflclxcm5a4g2qp980q5qr1g4dwdxn02nnvvx3pi4sa1gk5bmr3")))) (build-system go-build-system) (arguments (list From b5a55f662d238bf1f31fee8bd4bc32e90417ad29 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 10:26:27 +0000 Subject: [PATCH 008/862] gnu: go-github-com-spf13-afero: Update to 1.6.0. * gnu/packages/golang.scm (go-github-com-spf13-afero): Update to 1.6.0. Change-Id: Iee577be145783146c9312ac0469ae91dddb89227 --- gnu/packages/golang.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2aee5b6bee0..ed5fa4a916c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3182,7 +3182,9 @@ containers.") (define-public go-github-com-spf13-afero (package (name "go-github-com-spf13-afero") - (version "1.2.2") + ;; TODO: It's the latest version which does not require + ;; google.golang.org/api, pulling 400+ missing dependencies. + (version "1.6.0") (source (origin (method git-fetch) @@ -3192,7 +3194,7 @@ containers.") (file-name (git-file-name name version)) (sha256 (base32 - "0j9r65qgd58324m85lkl49vk9dgwd62g7dwvkfcm3k6i9dc555a9")))) + "0yi8p0yxiidpcg4cagxg2iyqcaapsng89rak4qyxmgails2fqg37")))) (build-system go-build-system) (arguments `(#:import-path "github.com/spf13/afero")) From 9372925b277f647f8524d571968314dc14e5e24a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 10:26:32 +0000 Subject: [PATCH 009/862] gnu: go-github-com-spf13-cast: Update to 1.7.0. * gnu/packages/golang.scm (go-github-com-spf13-cast): Update to 1.7.0. [native-inputs]: Remove go-github-com-stretchr-testify; add go-github-com-frankban-quicktest. Change-Id: Ifb1e93fa7fcb2d662f0c083e2c4f7ec41f9ff039 --- gnu/packages/golang.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ed5fa4a916c..93934670f4f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3208,7 +3208,7 @@ containers.") (define-public go-github-com-spf13-cast (package (name "go-github-com-spf13-cast") - (version "1.3.1") + (version "1.7.0") (source (origin (method git-fetch) @@ -3218,12 +3218,12 @@ containers.") (file-name (git-file-name name version)) (sha256 (base32 - "0lb84788glr0qzrq2ifi36rgvp96qrgywvxrr3ggq5hrbr38hgn1")))) + "1l39v7zd8i8vvwls2frfxc583im5nj5x5lrdss4pcc36cd5a9vf4")))) (build-system go-build-system) (arguments `(#:import-path "github.com/spf13/cast")) (native-inputs - (list go-github-com-stretchr-testify)) + (list go-github-com-frankban-quicktest)) (home-page "https://github.com/spf13/cast") (synopsis "Safe and easy casting from one type to another in Go") (description "Safe and easy casting from one type to another in Go") From 4f1772e0faf1d10e63a3168460c7e90e9b9c1f94 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 10:26:32 +0000 Subject: [PATCH 010/862] gnu: go-github-com-spf13-pflag: Add a maintenance note. * gnu/packages/golang.scm (go-github-com-spf13-pflag): Add a maintenance note. Change-Id: Id563c7b0024477fe7f64af00c20857845b2cb64d --- gnu/packages/golang.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 93934670f4f..34822604741 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3253,6 +3253,8 @@ containers.") (description "Go logging library") (license license:expat))) +;; XXX: Not maintained for 3y, see +;; . (define-public go-github-com-spf13-pflag (package (name "go-github-com-spf13-pflag") From 9b7f4d0124230f16f89b3c2462c7f26f96df5aba Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 10:26:32 +0000 Subject: [PATCH 011/862] gnu: go-github-com-spf13-viper: Update to 1.8.1. * gnu/packages/golang.scm (go-github-com-spf13-viper): Update to 1.8.1. [arguments]: Enable them. Change-Id: I999b3cd7416a342ef399b9d47a2d71b8c6d6853f --- gnu/packages/golang.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 34822604741..f978fc48475 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3295,7 +3295,7 @@ GNU extensions} to the POSIX recommendations for command-line options.") (package (name "go-github-com-spf13-viper") ;; Refreshing to a newer version requires long chain of missing packages. - (version "1.7.0") + (version "1.8.1") (source (origin (method git-fetch) @@ -3305,11 +3305,10 @@ GNU extensions} to the POSIX recommendations for command-line options.") (file-name (git-file-name name version)) (sha256 (base32 - "099n2g7fg6r8hqyszqw2axr775qyhyvwhsykvgw0f0s16ql48h5c")))) + "0jcsvd9l05pv10rma6zicp44q2mlvxj0qlhnf4zcg2pymb5i0hq6")))) (build-system go-build-system) (arguments (list - #:tests? #f #:import-path "github.com/spf13/viper")) (propagated-inputs (list go-github-com-fsnotify-fsnotify From ee4982bde6f1dadec251ab7cebc998a8b7fa7158 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 10:39:57 +0000 Subject: [PATCH 012/862] gnu: go-github-com-spf13-afero: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-spf13-afero): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I9c4fe91acd0e09eb588664f01ec745d229178488 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a0ae53bebf5..12e495b5e0e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7205,6 +7205,34 @@ Use waterutil with it to work with TUN/TAP packets/frames.") "Quant provides an interface for image color quantizers.") (license license:expat))) +(define-public go-github-com-spf13-afero + (package + (name "go-github-com-spf13-afero") + ;; TODO: It's the latest version which does not require + ;; google.golang.org/api, pulling 400+ missing dependencies. + (version "1.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spf13/afero") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0yi8p0yxiidpcg4cagxg2iyqcaapsng89rak4qyxmgails2fqg37")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/spf13/afero")) + (propagated-inputs + (list go-github-com-pkg-sftp + go-golang-org-x-text)) + (home-page "https://github.com/spf13/afero") + (synopsis "File system abstraction for Go") + (description + "This package provides a file system abstraction for Go.") + (license license:asl2.0))) + (define-public go-github-com-spf13-cobra (package (name "go-github-com-spf13-cobra") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f978fc48475..b759034b98a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3179,32 +3179,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-spf13-afero - (package - (name "go-github-com-spf13-afero") - ;; TODO: It's the latest version which does not require - ;; google.golang.org/api, pulling 400+ missing dependencies. - (version "1.6.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/spf13/afero") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0yi8p0yxiidpcg4cagxg2iyqcaapsng89rak4qyxmgails2fqg37")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/spf13/afero")) - (propagated-inputs (list go-github-com-pkg-sftp go-golang-org-x-text)) - (home-page "https://github.com/spf13/afero") - (synopsis "File system abstraction for Go") - (description - "This package provides a file system abstraction for Go.") - (license license:asl2.0))) - (define-public go-github-com-spf13-cast (package (name "go-github-com-spf13-cast") From 92e1d3229f7768935e83c9eaefcc69e75097ea98 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:14:38 +0000 Subject: [PATCH 013/862] gnu: go-github-com-spf13-afero: Run all tests. * gnu/packages/golang-xyz.scm (go-github-com-spf13-afero): Enable all tests from subdirectories. [arguments]: Use custom 'check. Change-Id: Iada2f737c19c6fe18038da56c316717e6e0ce3ac --- gnu/packages/golang-xyz.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 12e495b5e0e..b8e623eafc9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7223,7 +7223,15 @@ Use waterutil with it to work with TUN/TAP packets/frames.") (build-system go-build-system) (arguments (list - #:import-path "github.com/spf13/afero")) + #:import-path "github.com/spf13/afero" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) (propagated-inputs (list go-github-com-pkg-sftp go-golang-org-x-text)) From d19bd6cf3800da53ac35d4106e6df3ccbc0cecb0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:31:46 +0000 Subject: [PATCH 014/862] gnu: go-github-com-spf13-cast: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-spf13-cast): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Iba26cf7fc5c85c32b78d1ee0d9eb4e1117c62c12 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b8e623eafc9..23b97df6dcb 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7241,6 +7241,31 @@ Use waterutil with it to work with TUN/TAP packets/frames.") "This package provides a file system abstraction for Go.") (license license:asl2.0))) +(define-public go-github-com-spf13-cast + (package + (name "go-github-com-spf13-cast") + (version "1.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spf13/cast") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1l39v7zd8i8vvwls2frfxc583im5nj5x5lrdss4pcc36cd5a9vf4")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/spf13/cast")) + (native-inputs + (list go-github-com-frankban-quicktest)) + (home-page "https://github.com/spf13/cast") + (synopsis "Safe and easy casting from one type to another in Go") + (description + "Safe and easy casting from one type to another in Go.") + (license license:expat))) + (define-public go-github-com-spf13-cobra (package (name "go-github-com-spf13-cobra") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b759034b98a..0dd907a12cd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3179,30 +3179,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-spf13-cast - (package - (name "go-github-com-spf13-cast") - (version "1.7.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/spf13/cast") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1l39v7zd8i8vvwls2frfxc583im5nj5x5lrdss4pcc36cd5a9vf4")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/spf13/cast")) - (native-inputs - (list go-github-com-frankban-quicktest)) - (home-page "https://github.com/spf13/cast") - (synopsis "Safe and easy casting from one type to another in Go") - (description "Safe and easy casting from one type to another in Go") - (license license:expat))) - (define-public go-github-com-spf13-jwalterweatherman (package (name "go-github-com-spf13-jwalterweatherman") From 7bc90911801751ec394e0b259240eb8cbdcb963e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:34:28 +0000 Subject: [PATCH 015/862] gnu: go-github-com-spf13-jwalterweatherman: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-spf13-jwalterweatherman): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Icb52b710679d4ee51e7ae9a47ae9b12f3f9b3203 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 23b97df6dcb..724e36f01e7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7292,6 +7292,30 @@ Use waterutil with it to work with TUN/TAP packets/frames.") well as a program to generate applications and command files.") (license license:asl2.0))) +(define-public go-github-com-spf13-jwalterweatherman + (package + (name "go-github-com-spf13-jwalterweatherman") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spf13/jwalterweatherman") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ywmkwci5zyd88ijym6f30fj5c0k2yayxarkmnazf5ybljv50q7b")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/spf13/jwalterweatherman")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/spf13/jwalterweatherman") + (synopsis "Go logging library") + (description "Go logging library") + (license license:expat))) + (define-public go-github-com-stathat-go (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0dd907a12cd..f0263e8dc50 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3179,30 +3179,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-spf13-jwalterweatherman - (package - (name "go-github-com-spf13-jwalterweatherman") - (version "1.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/spf13/jwalterweatherman") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1ywmkwci5zyd88ijym6f30fj5c0k2yayxarkmnazf5ybljv50q7b")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/spf13/jwalterweatherman")) - (native-inputs - (list go-github-com-stretchr-testify)) - (home-page "https://github.com/spf13/jwalterweatherman") - (synopsis "Go logging library") - (description "Go logging library") - (license license:expat))) - ;; XXX: Not maintained for 3y, see ;; . (define-public go-github-com-spf13-pflag From 46337c1b07447e7dfc5b16825d80c07996dfed7f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:38:07 +0000 Subject: [PATCH 016/862] gnu: go-github-com-spf13-jwalterweatherman: Improve description. * gnu/packages/golang-xyz.scm (go-github-com-spf13-jwalterweatherman) [description]: Add more details from project's README. Change-Id: I6e86b52098624dffc56bfb052295ef5256e92a9e --- gnu/packages/golang-xyz.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 724e36f01e7..ae1b600fe58 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7313,7 +7313,15 @@ well as a program to generate applications and command files.") (list go-github-com-stretchr-testify)) (home-page "https://github.com/spf13/jwalterweatherman") (synopsis "Go logging library") - (description "Go logging library") + (description + "JWW is primarily a wrapper around the standard log library. It provides +a few advantages over using the standard log library alone. + +@itemize +@item ready to go out of the box +@item one library for both printing to the terminal and logging (to files) +@item really easy to log to either a temp file or a file you specify +@end itemize") (license license:expat))) (define-public go-github-com-stathat-go From fe056422ac05cbc393d36e9c09fba4bdd5a27f89 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:42:43 +0000 Subject: [PATCH 017/862] gnu: go-github-com-spf13-pflag: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-spf13-pflag): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I15be5ebbc1b2c200267676ae0c8b88fc2e062e85 --- gnu/packages/golang-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++- gnu/packages/golang.scm | 38 ----------------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ae1b600fe58..3ba2879400b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2019 Brian Leung ;;; Copyright © 2019, 2021 Vagrant Cascadian ;;; Copyright © 2019-2021 Martin Becze -;;; Copyright © 2019-2022, 2024 Efraim Flashner +;;; Copyright © 2019-2024 Efraim Flashner ;;; Copyright © 2020 Alex Griffin ;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2020 Jack Hill @@ -7324,6 +7324,44 @@ a few advantages over using the standard log library alone. @end itemize") (license license:expat))) +;; XXX: Not maintained for 3y, see +;; . +(define-public go-github-com-spf13-pflag + (package + (name "go-github-com-spf13-pflag") + (version "1.0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spf13/pflag") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gpmacngd0gpslnbkzi263f5ishigzgh6pbdv9hp092rnjl4nd31")) + (snippet + #~(begin + (use-modules (guix build utils)) + ;; Fix compatibility with go-1.19+ + ;; https://github.com/spf13/pflag/issues/368 + (substitute* "flag_test.go" + (("fmt\\.Println") "fmt.Print") + (("\\+ got\\)") "+ got + \"\\n\")") + (("\\+ defaultOutput\\)") "+ defaultOutput + \"\\n\")")))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/spf13/pflag")) + (home-page "https://github.com/spf13/pflag") + (synopsis "Replacement for Go's @code{flag} package") + (description + "Pflag is library to replace Go's @code{flag} package. It implements +POSIX/GNU-style command-line options with double hyphens. It is is compatible +with the +@uref{https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html, +GNU extensions} to the POSIX recommendations for command-line options.") + (license license:bsd-3))) + (define-public go-github-com-stathat-go (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f0263e8dc50..21979fdd7f7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3179,44 +3179,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -;; XXX: Not maintained for 3y, see -;; . -(define-public go-github-com-spf13-pflag - (package - (name "go-github-com-spf13-pflag") - (version "1.0.5") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/spf13/pflag") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0gpmacngd0gpslnbkzi263f5ishigzgh6pbdv9hp092rnjl4nd31")) - (snippet - #~(begin - (use-modules (guix build utils)) - ;; Fix compatibility with go-1.19+ - ;; https://github.com/spf13/pflag/issues/368 - (substitute* "flag_test.go" - (("fmt\\.Println") "fmt.Print") - (("\\+ got\\)") "+ got + \"\\n\")") - (("\\+ defaultOutput\\)") "+ defaultOutput + \"\\n\")")))))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/spf13/pflag")) - (home-page "https://github.com/spf13/pflag") - (synopsis "Replacement for Go's @code{flag} package") - (description - "Pflag is library to replace Go's @code{flag} package. It implements -POSIX/GNU-style command-line options with double hyphens. It is is compatible -with the -@uref{https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html, -GNU extensions} to the POSIX recommendations for command-line options.") - (license license:bsd-3))) - (define-public go-github-com-spf13-viper (package (name "go-github-com-spf13-viper") From 34163d83d548ceb3751096651c7dd47c3d869674 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:49:25 +0000 Subject: [PATCH 018/862] gnu: go-github-com-spf13-viper: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-spf13-viper): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I752e96566094db0a30d24b76e2d4ca0d0e937b75 --- gnu/packages/golang-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 42 ------------------------------------- 2 files changed, 41 insertions(+), 42 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3ba2879400b..9fb33b08c15 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7362,6 +7362,47 @@ with the GNU extensions} to the POSIX recommendations for command-line options.") (license license:bsd-3))) +(define-public go-github-com-spf13-viper + (package + (name "go-github-com-spf13-viper") + ;; Refreshing to a newer version requires long chain of missing packages. + (version "1.8.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spf13/viper") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jcsvd9l05pv10rma6zicp44q2mlvxj0qlhnf4zcg2pymb5i0hq6")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/spf13/viper")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-fsnotify-fsnotify + go-github-com-hashicorp-hcl + go-github-com-magiconair-properties + go-github-com-mitchellh-mapstructure + go-github-com-pelletier-go-toml + go-github-com-spf13-afero + go-github-com-spf13-cast + go-github-com-spf13-jwalterweatherman + go-github-com-spf13-pflag + go-github-com-subosito-gotenv + go-gopkg-in-ini-v1 + go-gopkg-in-yaml-v2)) + (home-page "https://github.com/spf13/viper") + (synopsis "Go configuration with fangs") + (description + "Viper is a complete configuration solution for Go applications including +12-Factor apps. It is designed to work within an application, and can handle +all types of configuration needs and formats.") + (license license:expat))) + (define-public go-github-com-stathat-go (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 21979fdd7f7..95c707fea22 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3179,48 +3179,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-spf13-viper - (package - (name "go-github-com-spf13-viper") - ;; Refreshing to a newer version requires long chain of missing packages. - (version "1.8.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/spf13/viper") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0jcsvd9l05pv10rma6zicp44q2mlvxj0qlhnf4zcg2pymb5i0hq6")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/spf13/viper")) - (propagated-inputs - (list go-github-com-fsnotify-fsnotify - go-github-com-hashicorp-hcl - go-github-com-magiconair-properties - go-github-com-mitchellh-mapstructure - go-github-com-pelletier-go-toml - go-github-com-spf13-afero - go-github-com-spf13-cast - go-github-com-spf13-jwalterweatherman - go-github-com-spf13-pflag - go-github-com-subosito-gotenv - go-gopkg-in-ini-v1 - go-gopkg-in-yaml-v2)) - (native-inputs - (list go-github-com-stretchr-testify)) - (home-page "https://github.com/spf13/viper") - (synopsis "Go configuration with fangs") - (description - "Viper is a complete configuration solution for Go applications including -12-Factor apps. It is designed to work within an application, and can handle -all types of configuration needs and formats.") - (license license:expat))) - (define-public go-github-com-nxadm-tail (package (name "go-github-com-nxadm-tail") From 6562b86fd7e677bb999c781f8bd0e591867040d8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:54:48 +0000 Subject: [PATCH 019/862] gnu: go-github-com-nxadm-tail: Update to 1.4.11. * gnu/packages/golang.scm (go-github-com-nxadm-tail): Update to 1.4.11. Change-Id: Idf79c94c6ca973f4662f3ad702e4850d63a6ea8b --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 95c707fea22..7f8da449838 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3182,7 +3182,7 @@ containers.") (define-public go-github-com-nxadm-tail (package (name "go-github-com-nxadm-tail") - (version "1.4.8") + (version "1.4.11") (source (origin (method git-fetch) (uri (git-reference @@ -3191,7 +3191,7 @@ containers.") (file-name (git-file-name name version)) (sha256 (base32 - "1j2gi485fhwdpmyzn42wk62103fclwbfywg42p275z1qv2bsz1rc")))) + "0s8lawq661g8qqf7c1cip5l60cm2138b125jgmv9h548ji9g5yqx")))) (build-system go-build-system) (arguments (list #:import-path "github.com/nxadm/tail")) (propagated-inputs (list go-gopkg-in-tomb-v1 From 505474b8b57c64bb020ea572ae2b2164bfd20267 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 11:56:23 +0000 Subject: [PATCH 020/862] gnu: go-github-com-nxadm-tail: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-nxadm-tail): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I9762891d9c8cd8d2c01e69153eab88aa909ea7d1 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9fb33b08c15..f5e2429539d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6178,6 +6178,31 @@ queue.") NSQ protocol @url{https://nsq.io/}.") (license license:expat))) +(define-public go-github-com-nxadm-tail + (package + (name "go-github-com-nxadm-tail") + (version "1.4.11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nxadm/tail") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s8lawq661g8qqf7c1cip5l60cm2138b125jgmv9h548ji9g5yqx")))) + (build-system go-build-system) + (arguments (list #:import-path "github.com/nxadm/tail")) + (propagated-inputs + (list go-github-com-fsnotify-fsnotify + go-gopkg-in-tomb-v1)) + (home-page "https://github.com/nxadm/tail") + (synopsis "Go implementation of the functionality of @command{tail -f}") + (description + "This package provides a Go library for reading from continuously +updating files, like @command{tail -f}.") + (license license:expat))) + (define-public go-github-com-oklog-run (package (name "go-github-com-oklog-run") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7f8da449838..c5c4cae04c2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3179,30 +3179,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-nxadm-tail - (package - (name "go-github-com-nxadm-tail") - (version "1.4.11") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/nxadm/tail") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0s8lawq661g8qqf7c1cip5l60cm2138b125jgmv9h548ji9g5yqx")))) - (build-system go-build-system) - (arguments (list #:import-path "github.com/nxadm/tail")) - (propagated-inputs (list go-gopkg-in-tomb-v1 - go-github-com-fsnotify-fsnotify)) - (home-page "https://github.com/nxadm/tail") - (synopsis "Go implementation of the functionality of @command{tail -f}") - (description - "This package provides a Go library for reading from continuously -updating files, like @command{tail -f}.") - (license license:expat))) - (define-public go-github-com-magiconair-properties (package (name "go-github-com-magiconair-properties") From 017f374695ae9b2206fc7e624e98ac33ae81e9ed Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:04:01 +0000 Subject: [PATCH 021/862] gnu: go-github-com-twpayne-go-vfs: Update to 5.0.4. * gnu/packages/golang.scm (go-github-com-twpayne-go-vfs): Update to 5.0.4. [arguments]: Use custom 'check. [native-inputs]: Remove go-github-com-bmatcuk-doublestar and go-github-com-stretchr-testify; add go-github-com-alecthomas-assert-v2. Change-Id: I3714118169840883aa5d896d72ba03891bf6d421 --- gnu/packages/golang.scm | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c5c4cae04c2..d01a9efb0cf 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5924,7 +5924,7 @@ temporal directories.") (define-public go-github-com-twpayne-go-vfs (package (name "go-github-com-twpayne-go-vfs") - (version "1.5.0") + (version "5.0.4") (source (origin (method git-fetch) (uri (git-reference @@ -5933,13 +5933,21 @@ temporal directories.") (file-name (git-file-name name version)) (sha256 (base32 - "19dm3gi45znwaqbzxhwcgkiz8059bwa3ank80hc6qhdl579bpjnz")))) + "152hbb6ww2f2ac2bf1d446vw8z8m22n1rsa7gvlzfa060vj9hjgx")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/twpayne/go-vfs")) + (list + #:import-path "github.com/twpayne/go-vfs" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) (native-inputs - (list go-github-com-bmatcuk-doublestar - go-github-com-stretchr-testify)) + (list go-github-com-alecthomas-assert-v2)) (home-page "https://github.com/twpayne/go-vfs/") (synopsis "Abstraction of the @code{os} and @code{ioutil} Go packages") (description "Package @code{vfs} provides an abstraction of the @code{os} From 6816edffcf783a8d85f1f0c2a89e9470ed6c2eff Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:06:21 +0000 Subject: [PATCH 022/862] gnu: go-github-com-twpayne-go-vfs: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-twpayne-go-vfs): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I17966b165d427dcaed1ee06c7b2c32b153f9d2cd --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 33 --------------------------------- 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f5e2429539d..c4b48eae409 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7925,6 +7925,40 @@ supported by the time package @end itemize") (license license:expat))) +(define-public go-github-com-twpayne-go-vfs + (package + (name "go-github-com-twpayne-go-vfs") + (version "5.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twpayne/go-vfs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "152hbb6ww2f2ac2bf1d446vw8z8m22n1rsa7gvlzfa060vj9hjgx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/twpayne/go-vfs" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (native-inputs + (list go-github-com-alecthomas-assert-v2)) + (home-page "https://github.com/twpayne/go-vfs/") + (synopsis "Abstraction of the @code{os} and @code{ioutil} Go packages") + (description + "Package @code{vfs} provides an abstraction of the @code{os} and +@code{ioutil} packages that is easy to test.") + (license license:expat))) + (define-public go-github-com-vitrun-qart (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d01a9efb0cf..0a9d8f4796d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5921,39 +5921,6 @@ temporal directories.") "Package @code{shell} returns a user's shell across multiple platforms.") (license license:expat))) -(define-public go-github-com-twpayne-go-vfs - (package - (name "go-github-com-twpayne-go-vfs") - (version "5.0.4") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/twpayne/go-vfs") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "152hbb6ww2f2ac2bf1d446vw8z8m22n1rsa7gvlzfa060vj9hjgx")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/twpayne/go-vfs" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Replace when go-build-system supports nested path. - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) - (native-inputs - (list go-github-com-alecthomas-assert-v2)) - (home-page "https://github.com/twpayne/go-vfs/") - (synopsis "Abstraction of the @code{os} and @code{ioutil} Go packages") - (description "Package @code{vfs} provides an abstraction of the @code{os} -and @code{ioutil} packages that is easy to test.") - (license license:expat))) - (define-public go-github-com-twpayne-go-vfsafero (package (name "go-github-com-twpayne-go-vfsafero") From 260362f5c87b2d6fb035f53ee28d257e72136af6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:11:54 +0000 Subject: [PATCH 023/862] gnu: go-github-com-bmatcuk-doublestar: Simplify package. * gnu/packages/golang.scm (go-github-com-bmatcuk-doublestar) [arguments]: Move test skip logic here. Change-Id: I8e6929b519585e5150fcc7d12e9c5cda4fb2e3c5 --- gnu/packages/golang.scm | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0a9d8f4796d..384543912ca 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5429,15 +5429,10 @@ maps (because they are not addressable using Go reflection).") "0bk5bixl6rqa8znxghyp6zndbccx9kdyrymjahgyp6qsrp7rk144")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/bmatcuk/doublestar" - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'remove-incompatible-test - ;; This test fails with Go 1.16. - (lambda _ - (substitute* "src/github.com/bmatcuk/doublestar/doublestar_test.go" - (("\\{\"a\\[\", \"a\", false, nil, false\\},.*") - ""))))))) + (list + ;; This test fails with Go 1.16. + #:test-flags #~(list "-skip" "TestMatch") + #:import-path "github.com/bmatcuk/doublestar")) (home-page "https://github.com/bmatcuk/doublestar/") (synopsis "Path pattern matching and globbing supporting doublestar") (description "@code{doublestar} is a Go implementation of path pattern From 0156cbb987355d8e02a86a0e6c14234c4f7d6cd4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:15:43 +0000 Subject: [PATCH 024/862] gnu: go-github-com-bmatcuk-doublestar-v2: Enable tests. * gnu/packages/golang.scm (go-github-com-bmatcuk-doublestar-v2) [arguments]: Preserve most of them, enable tests. Change-Id: If288c91dff37241cf0c96b7322d746dad124b884 --- gnu/packages/golang.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 384543912ca..ec0a16be5f1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5455,10 +5455,9 @@ matching and globbing with support for \"doublestar\" patterns.") (sha256 (base32 "09ma8a9rhs8dg527vjhdf3lsb6lajaq193m6ksssm2k3qajhpi94")))) (arguments - (list - #:tests? #f ; tests have more broken parts - #:unpack-path "github.com/bmatcuk/doublestar/v2" - #:import-path "github.com/bmatcuk/doublestar/v2")))) + (substitute-keyword-arguments + (package-arguments go-github-com-bmatcuk-doublestar) + ((#:import-path _) "github.com/bmatcuk/doublestar/v2"))))) (define-public go-github-com-bmatcuk-doublestar-v3 (package From 86ddf337af924708b4fe469d1e1b2068232a9a6a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:15:43 +0000 Subject: [PATCH 025/862] gnu: go-github-com-bmatcuk-doublestar-v3: Enable tests. * gnu/packages/golang.scm (go-github-com-bmatcuk-doublestar-v3) [arguments]: Preserve most of them, enable tests. Change-Id: I86efb276ae968e0f70ae4f1c468abeb5f22c3fc2 --- gnu/packages/golang.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ec0a16be5f1..dc52260419a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5474,9 +5474,9 @@ matching and globbing with support for \"doublestar\" patterns.") (sha256 (base32 "011h07mlmscbxxjr3h30fjjb4dw3gb245nzczaq520r112xlidhj")))) (arguments - (list - #:tests? #f ; tests have more broken parts - #:import-path "github.com/bmatcuk/doublestar/v3")))) + (substitute-keyword-arguments + (package-arguments go-github-com-bmatcuk-doublestar) + ((#:import-path _) "github.com/bmatcuk/doublestar/v3"))))) (define-public go-github-com-bmatcuk-doublestar-v4 (package From b8e2fe76fafce455090809d48b489ab782453e61 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:20:48 +0000 Subject: [PATCH 026/862] gnu: go-github-com-bmatcuk-doublestar-v4: Update to 4.7.1. * gnu/packages/golang.scm (go-github-com-bmatcuk-doublestar-v4): Update to 4.7.1. Change-Id: Ibe065ddfd379b51519096973fb9750def45165a5 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index dc52260419a..57c1d5b9822 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5482,7 +5482,7 @@ matching and globbing with support for \"doublestar\" patterns.") (package (inherit go-github-com-bmatcuk-doublestar) (name "go-github-com-bmatcuk-doublestar-v4") - (version "4.6.1") + (version "4.7.1") (source (origin (method git-fetch) @@ -5491,7 +5491,7 @@ matching and globbing with support for \"doublestar\" patterns.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "12rf4a9isgg2nh927gikgbmyaynaqp4kjahgscb4qnr04m3vpr41")))) + (base32 "1bvfxqkpl8bkfqxjxjgmz0gd4b4v6dxwrzxq2qzly0r9zrj1lfic")))) (arguments (list #:import-path "github.com/bmatcuk/doublestar/v4")))) From b9aea692761319daa8a5b270d116c1f6f4254aba Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:28:33 +0000 Subject: [PATCH 027/862] gnu: go-github-com-bmatcuk-doublestar: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-bmatcuk-doublestar, go-github-com-bmatcuk-doublestar-v2, go-github-com-bmatcuk-doublestar-v3, go-github-com-bmatcuk-doublestar-v4): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I96ad2e60f6e21caf2a110bba38823c28e453ce6c --- gnu/packages/golang-xyz.scm | 83 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 82 ------------------------------------ 2 files changed, 83 insertions(+), 82 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c4b48eae409..3da4aa5e12b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1341,6 +1341,89 @@ information and periodically output metrics") (delete-file-recursively (string-append "src/" import-path "/examples"))))))))) +(define-public go-github-com-bmatcuk-doublestar + (package + (name "go-github-com-bmatcuk-doublestar") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bmatcuk/doublestar") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0bk5bixl6rqa8znxghyp6zndbccx9kdyrymjahgyp6qsrp7rk144")))) + (build-system go-build-system) + (arguments + (list + ;; This test fails with Go 1.16. + #:test-flags #~(list "-skip" "TestMatch") + #:import-path "github.com/bmatcuk/doublestar")) + (home-page "https://github.com/bmatcuk/doublestar/") + (synopsis "Path pattern matching and globbing supporting doublestar") + (description + "@code{doublestar} is a Go implementation of path pattern +matching and globbing with support for \"doublestar\" patterns.") + (license license:expat))) + +;; For chezmoi-1.8.11 +(define-public go-github-com-bmatcuk-doublestar-v2 + (package + (inherit go-github-com-bmatcuk-doublestar) + (name "go-github-com-bmatcuk-doublestar-v2") + (version "2.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bmatcuk/doublestar") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09ma8a9rhs8dg527vjhdf3lsb6lajaq193m6ksssm2k3qajhpi94")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-bmatcuk-doublestar) + ((#:import-path _) "github.com/bmatcuk/doublestar/v2"))))) + +(define-public go-github-com-bmatcuk-doublestar-v3 + (package + (inherit go-github-com-bmatcuk-doublestar) + (name "go-github-com-bmatcuk-doublestar-v3") + (version "3.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bmatcuk/doublestar") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "011h07mlmscbxxjr3h30fjjb4dw3gb245nzczaq520r112xlidhj")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-bmatcuk-doublestar) + ((#:import-path _) "github.com/bmatcuk/doublestar/v3"))))) + +(define-public go-github-com-bmatcuk-doublestar-v4 + (package + (inherit go-github-com-bmatcuk-doublestar) + (name "go-github-com-bmatcuk-doublestar-v4") + (version "4.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bmatcuk/doublestar") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bvfxqkpl8bkfqxjxjgmz0gd4b4v6dxwrzxq2qzly0r9zrj1lfic")))) + (arguments + (list + #:import-path "github.com/bmatcuk/doublestar/v4")))) + (define-public go-github-com-bmizerany-perks-quantile (package (name "go-github-com-bmizerany-perks-quantile") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 57c1d5b9822..e9c6a453f9d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5414,88 +5414,6 @@ maps (because they are not addressable using Go reflection).") (native-inputs (list go-gopkg-in-yaml-v3)))) -(define-public go-github-com-bmatcuk-doublestar - (package - (name "go-github-com-bmatcuk-doublestar") - (version "1.3.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bmatcuk/doublestar") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0bk5bixl6rqa8znxghyp6zndbccx9kdyrymjahgyp6qsrp7rk144")))) - (build-system go-build-system) - (arguments - (list - ;; This test fails with Go 1.16. - #:test-flags #~(list "-skip" "TestMatch") - #:import-path "github.com/bmatcuk/doublestar")) - (home-page "https://github.com/bmatcuk/doublestar/") - (synopsis "Path pattern matching and globbing supporting doublestar") - (description "@code{doublestar} is a Go implementation of path pattern -matching and globbing with support for \"doublestar\" patterns.") - (license license:expat))) - -;; For chezmoi-1.8.11 -(define-public go-github-com-bmatcuk-doublestar-v2 - (package - (inherit go-github-com-bmatcuk-doublestar) - (name "go-github-com-bmatcuk-doublestar-v2") - (version "2.0.4") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bmatcuk/doublestar") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "09ma8a9rhs8dg527vjhdf3lsb6lajaq193m6ksssm2k3qajhpi94")))) - (arguments - (substitute-keyword-arguments - (package-arguments go-github-com-bmatcuk-doublestar) - ((#:import-path _) "github.com/bmatcuk/doublestar/v2"))))) - -(define-public go-github-com-bmatcuk-doublestar-v3 - (package - (inherit go-github-com-bmatcuk-doublestar) - (name "go-github-com-bmatcuk-doublestar-v3") - (version "3.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bmatcuk/doublestar") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "011h07mlmscbxxjr3h30fjjb4dw3gb245nzczaq520r112xlidhj")))) - (arguments - (substitute-keyword-arguments - (package-arguments go-github-com-bmatcuk-doublestar) - ((#:import-path _) "github.com/bmatcuk/doublestar/v3"))))) - -(define-public go-github-com-bmatcuk-doublestar-v4 - (package - (inherit go-github-com-bmatcuk-doublestar) - (name "go-github-com-bmatcuk-doublestar-v4") - (version "4.7.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bmatcuk/doublestar") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1bvfxqkpl8bkfqxjxjgmz0gd4b4v6dxwrzxq2qzly0r9zrj1lfic")))) - (arguments - (list - #:import-path "github.com/bmatcuk/doublestar/v4")))) - (define-public go-github-com-olekukonko-tablewriter (package (name "go-github-com-olekukonko-tablewriter") From 75ccb23487660571551c8fe8fa898d2d34404998 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:35:43 +0000 Subject: [PATCH 028/862] gnu: go-github-com-mitchellh-mapstructure: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-mitchellh-mapstructure): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I33ff5f856b6473363a1fcf9701583ce2176e5964 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3da4aa5e12b..a8d80fa37d8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5645,6 +5645,30 @@ colored strings.") "Colorstring provides functions for colorizing strings for terminal output.") (license license:expat))) +;; XXX: This package is in maintenance mode: "This repository has been +;; archived by the owner on Jul 22, 2024. It is now read-only." +(define-public go-github-com-mitchellh-mapstructure + (package + (name "go-github-com-mitchellh-mapstructure") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitchellh/mapstructure") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "10f2v143lkip8h46shd99k5yavfqpgqmd7a6y42v7szc0lcn3mff")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/mitchellh/mapstructure")) + (home-page "https://github.com/mitchellh/mapstructure") + (synopsis "Go library for decoding generic map values") + (description "Go library for decoding generic map values") + (license license:expat))) + (define-public go-github-com-modern-go-concurrent (package (name "go-github-com-modern-go-concurrent") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e9c6a453f9d..2952cc91661 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4104,28 +4104,6 @@ the current user without cgo. This library does that, enabling cross-compilation.") (license license:expat)))) -(define-public go-github-com-mitchellh-mapstructure - (package - (name "go-github-com-mitchellh-mapstructure") - (version "1.5.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mitchellh/mapstructure") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "10f2v143lkip8h46shd99k5yavfqpgqmd7a6y42v7szc0lcn3mff")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/mitchellh/mapstructure")) - (home-page "https://github.com/mitchellh/mapstructure") - (synopsis "Go library for decoding generic map values") - (description "Go library for decoding generic map values") - (license license:expat))) - (define-public go-github-com-mitchellh-reflectwalk (package (name "go-github-com-mitchellh-reflectwalk") From a300855d623c4e69a77323d4c0646237687b7b12 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:38:24 +0000 Subject: [PATCH 029/862] gnu: go-github-com-olekukonko-tablewriter: Update to 0.0.5. * gnu/packages/golang.scm (go-github-com-olekukonko-tablewriter): Update to 0.0.5. Change-Id: I3cd5c978564ae2ff388b28da4bd5c98120249e7d --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2952cc91661..73cd3a90dd9 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5395,7 +5395,7 @@ maps (because they are not addressable using Go reflection).") (define-public go-github-com-olekukonko-tablewriter (package (name "go-github-com-olekukonko-tablewriter") - (version "0.0.4") + (version "0.0.5") (source (origin (method git-fetch) (uri (git-reference @@ -5404,7 +5404,7 @@ maps (because they are not addressable using Go reflection).") (file-name (git-file-name name version)) (sha256 (base32 - "02r0n2b9yh3x8xyf48k17dxlwj234hlgjycylbjxi6qg08hfmz2x")))) + "0zhnrih2px6jm8nxzkz8s7va3lj03bzwxim8wjba9zh7i78bp67z")))) (build-system go-build-system) (arguments `(#:import-path "github.com/olekukonko/tablewriter")) From 32fccedae5cb49ac65f5e863366ab8bf8acb2d8a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:40:41 +0000 Subject: [PATCH 030/862] gnu: go-github-com-olekukonko-tablewriter: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-olekukonko-tablewriter): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I29317ffb579c61cfd3197cfae53aa3158e34ff63 --- gnu/packages/golang-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 40 ------------------------------------ 2 files changed, 41 insertions(+), 40 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a8d80fa37d8..530f1b53e7c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6397,6 +6397,47 @@ millisecond) (list #:import-path "github.com/oklog/ulid/v2")))) +(define-public go-github-com-olekukonko-tablewriter + (package + (name "go-github-com-olekukonko-tablewriter") + (version "0.0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/olekukonko/tablewriter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zhnrih2px6jm8nxzkz8s7va3lj03bzwxim8wjba9zh7i78bp67z")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/olekukonko/tablewriter")) + (propagated-inputs + (list go-github-com-mattn-go-runewidth)) + (home-page "https://github.com/olekukonko/tablewriter/") + (synopsis "Generate ASCII table") + (description "This package generates ASCII tables. Features: +@itemize +@item automatic Padding +@item support Multiple Lines +@item supports Alignment +@item support Custom Separators +@item automatic Alignment of numbers and percentage +@item write directly to http , file etc via @code{io.Writer} +@item read directly from CSV file +@item optional row line via @code{SetRowLine} +@item normalise table header +@item make CSV Headers optional +@item enable or disable table border +@item set custom footer support +@item optional identical cells merging +@item set custom caption +@item optional reflowing of paragrpahs in multi-line cells +@end itemize") + (license license:expat))) + (define-public go-github-com-op-go-logging (package (name "go-github-com-op-go-logging") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 73cd3a90dd9..27f5ffa2fa2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5392,46 +5392,6 @@ maps (because they are not addressable using Go reflection).") (native-inputs (list go-gopkg-in-yaml-v3)))) -(define-public go-github-com-olekukonko-tablewriter - (package - (name "go-github-com-olekukonko-tablewriter") - (version "0.0.5") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/olekukonko/tablewriter") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0zhnrih2px6jm8nxzkz8s7va3lj03bzwxim8wjba9zh7i78bp67z")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/olekukonko/tablewriter")) - (propagated-inputs - (list go-github-com-mattn-go-runewidth)) - (home-page "https://github.com/olekukonko/tablewriter/") - (synopsis "Generate ASCII table") - (description "This package generates ASCII tables. Features: -@itemize -@item automatic Padding -@item support Multiple Lines -@item supports Alignment -@item support Custom Separators -@item automatic Alignment of numbers and percentage -@item write directly to http , file etc via @code{io.Writer} -@item read directly from CSV file -@item optional row line via @code{SetRowLine} -@item normalise table header -@item make CSV Headers optional -@item enable or disable table border -@item set custom footer support -@item optional identical cells merging -@item set custom caption -@item optional reflowing of paragrpahs in multi-line cells -@end itemize\n") - (license license:expat))) - (define-public go-github-com-olekukonko-ts (let ((commit "78ecb04241c0121483589a30b0814836a746187d") (revision "0")) From 3fc31b2d5a3d0505ed8959931a770cf172f71f30 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:45:26 +0000 Subject: [PATCH 031/862] gnu: Add go-csv2table. * gnu/packages/golang-xyz.scm (go-csv2table): New variable. Change-Id: I8e86d510273a147bb068da269672c773c1119ad4 --- gnu/packages/golang-xyz.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 530f1b53e7c..044f332f089 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9181,6 +9181,17 @@ library.") " This package provides an command line interface (CLI) tool.")))) +(define-public go-csv2table + (package/inherit go-github-com-olekukonko-tablewriter + (name "go-csv2table") + (arguments + (list #:install-source? #f + #:import-path "github.com/olekukonko/tablewriter/csv2table" + #:unpack-path "github.com/olekukonko/tablewriter")) + (description + (string-append (package-description go-github-com-olekukonko-tablewriter) + "\nThis package provides a command line interface (CLI) tool.")))) + (define-public go-hclogvet (package (inherit go-github-com-hashicorp-go-hclog) From d82f7280578d0f058772459763e9925d23b00e0b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 12:47:32 +0000 Subject: [PATCH 032/862] gnu: packages/textutils: Remove golang module. * gnu/packages/textutils.scm: As all Golang dependencies were shifted to corresponded submodules, remove not required "golang" module from used ones. Change-Id: Ied355422df939ee21199eb4a86405685b15d5dd4 --- gnu/packages/textutils.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 6091d1ea6d4..59be80c19c7 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -69,7 +69,6 @@ #:use-module (gnu packages compression) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) - #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-compression) From 85a9366d607a600b449baf8a7e6055756e6cc01d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 18:11:01 +0000 Subject: [PATCH 033/862] gnu: Add go-github-com-xrash-smetrics. * gnu/packages/golang-xyz.scm (go-github-com-xrash-smetrics): New variable. Change-Id: I5f3d2e41810452cd3c77d5147039819c692222af --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 044f332f089..849f7dbd396 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8393,6 +8393,40 @@ similar string with weeks or days too.") "This package provides a simple ASCII tree composing tool.") (license license:expat))) +(define-public go-github-com-xrash-smetrics + (package + (name "go-github-com-xrash-smetrics") + (version "0.0.0-20240521201337-686a1a2994c1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xrash/smetrics") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "057wgbz16n416zp23j5iv2lsd0nidbd92r4f1h8s3c1svkkqvk0a")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xrash/smetrics" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (home-page "https://github.com/xrash/smetrics") + (synopsis "String metrics library") + (description + "Package smetrics provides a bunch of algorithms for calculating the +distance between strings. There are implementations for calculating the +popular Levenshtein distance (aka Edit Distance or Wagner-Fischer), as well as +the Jaro distance, the Jaro-Winkler distance, and more.") + (license license:expat))) + (define-public go-github-com-yuin-gopher-lua (package (name "go-github-com-yuin-gopher-lua") From 94cefaab3af82f96e2e7a910627a0f393c2b5446 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 18:14:58 +0000 Subject: [PATCH 034/862] gnu: go-github-com-urfave-cli: Update to 1.22.16. * gnu/packages/golang.scm (go-github-com-urfave-cli): Update to 1.22.16. [source]: Remove patch. [native-iputs]: Add go-github-com-stretchr-testify. * gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch: Delete file. * gnu/local.mk: Deregister patch. Change-Id: If4f1db104fbdcd5b603003065c88110746d12ebb --- gnu/local.mk | 1 - gnu/packages/golang.scm | 10 ++++--- .../go-github-com-urfave-cli-fix-tests.patch | 28 ------------------- 3 files changed, 6 insertions(+), 33 deletions(-) delete mode 100644 gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch diff --git a/gnu/local.mk b/gnu/local.mk index 5091f93eb8c..957726989e5 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1506,7 +1506,6 @@ dist_patch_DATA = \ %D%/packages/patches/go-fix-script-tests.patch \ %D%/packages/patches/go-gopkg-in-yaml-v3-32bit.patch \ %D%/packages/patches/go-github-com-golang-snappy-32bit-test.patch \ - %D%/packages/patches/go-github-com-urfave-cli-fix-tests.patch \ %D%/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch \ %D%/packages/patches/go-github-com-warpfork-go-wish-fix-tests.patch \ %D%/packages/patches/go-github-com-wraparound-wrap-free-fonts.patch \ diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 27f5ffa2fa2..a1e4c73ef31 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4212,7 +4212,7 @@ references.") (define-public go-github-com-urfave-cli (package (name "go-github-com-urfave-cli") - (version "1.22.2") + (version "1.22.16") (source (origin (method git-fetch) @@ -4222,11 +4222,13 @@ references.") (file-name (git-file-name name version)) (sha256 (base32 - "10mcnvi5qmn00vpyk6si8gjka7p654wr9hac4zc9w5h3ickhvbdc")) - (patches (search-patches "go-github-com-urfave-cli-fix-tests.patch")))) + "022abbjwr3g2vbyfbdc1hg09d753hfba21b69n2nkrx168ag5ahd")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/urfave/cli")) + (list + #:import-path "github.com/urfave/cli")) + (native-inputs + (list go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-go-md2man)) (home-page "https://github.com/urfave/cli") diff --git a/gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch b/gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch deleted file mode 100644 index 7408d4ec168..00000000000 --- a/gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch +++ /dev/null @@ -1,28 +0,0 @@ -Backported from upstream PR: https://github.com/urfave/cli/pull/1299 ---- -diff --git a/app_test.go b/app_test.go -index 33024ff..6b3aaa3 100644 ---- a/app_test.go -+++ b/app_test.go -@@ -513,18 +513,18 @@ func TestApp_RunAsSubcommandParseFlags(t *testing.T) { - func TestApp_RunAsSubCommandIncorrectUsage(t *testing.T) { - a := App{ - Flags: []Flag{ -- StringFlag{Name: "--foo"}, -+ StringFlag{Name: "foo"}, - }, - Writer: bytes.NewBufferString(""), - } - - set := flag.NewFlagSet("", flag.ContinueOnError) -- _ = set.Parse([]string{"", "---foo"}) -+ _ = set.Parse([]string{"", "-bar"}) - c := &Context{flagSet: set} - - err := a.RunAsSubcommand(c) - -- expect(t, err, errors.New("bad flag syntax: ---foo")) -+ expect(t, err.Error(), "flag provided but not defined: -bar") - } - - func TestApp_CommandWithFlagBeforeTerminator(t *testing.T) { From b789eff407015c35a95cd35c1fe78515dc3efd5b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 18:11:08 +0000 Subject: [PATCH 035/862] gnu: go-github-com-urfave-cli-v2: Update to 2.27.5. * gnu/packages/golang.scm (go-github-com-urfave-cli-v2): Update to 2.27.5. [source]: Remove patch as no longer required. [propagated-inputs]: Add go-github-com-burntsushi-toml, go-github-com-go-md2man, go-github-com-xrash-smetrics, and go-gopkg-in-yaml-v3. * gnu/packages/patches/go-github-com-urfave-cli-fix-v2-tests.patch: Delete file. * gnu/local.mk: Deregister patch. Change-Id: I18c5b778b18d44bb8a6508440174cd87f5ec390a --- gnu/local.mk | 1 - gnu/packages/golang.scm | 14 ++++--- ...o-github-com-urfave-cli-v2-fix-tests.patch | 37 ------------------- 3 files changed, 8 insertions(+), 44 deletions(-) delete mode 100644 gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch diff --git a/gnu/local.mk b/gnu/local.mk index 957726989e5..d4ebfbeb65e 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1506,7 +1506,6 @@ dist_patch_DATA = \ %D%/packages/patches/go-fix-script-tests.patch \ %D%/packages/patches/go-gopkg-in-yaml-v3-32bit.patch \ %D%/packages/patches/go-github-com-golang-snappy-32bit-test.patch \ - %D%/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch \ %D%/packages/patches/go-github-com-warpfork-go-wish-fix-tests.patch \ %D%/packages/patches/go-github-com-wraparound-wrap-free-fonts.patch \ %D%/packages/patches/go-skip-gc-test.patch \ diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a1e4c73ef31..3784ec9a420 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4242,7 +4242,7 @@ fast and distributable command line applications in an expressive way.") (package (inherit go-github-com-urfave-cli) (name "go-github-com-urfave-cli-v2") - (version "2.3.0") + (version "2.27.5") (source (origin (method git-fetch) @@ -4251,12 +4251,14 @@ fast and distributable command line applications in an expressive way.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08pvn7gyfznni72xrxfh2x6xxa8ykr7l1ka278js8g8qkh71bj8l")) - ;; XXX: Remove patch when updating. - (patches - (search-patches "go-github-com-urfave-cli-v2-fix-tests.patch")))) + (base32 "03237hi2jqvms9cif4varyap3j1dhzcf1mr809dm7ncvzk7gxg83")))) (arguments - '(#:import-path "github.com/urfave/cli/v2")))) + '(#:import-path "github.com/urfave/cli/v2")) + (propagated-inputs + (list go-github-com-burntsushi-toml + go-github-com-go-md2man + go-github-com-xrash-smetrics + go-gopkg-in-yaml-v3)))) (define-public go-github-com-go-md2man (package diff --git a/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch b/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch deleted file mode 100644 index 87ccc2b6555..00000000000 --- a/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch +++ /dev/null @@ -1,37 +0,0 @@ -From upstream PR: https://github.com/urfave/cli/pull/1299 - -From: William Wilson -Date: Tue, 31 Aug 2021 14:19:17 -0500 -Subject: Make test case compatible with Go 1.17 - -As of Go 1.17, the go flag package will panic if given a syntactically invalid -flag. This causes TestApp_RunAsSubCommandIncorrectUsage to panic and therefore -fail. See https://golang.org/doc/go1.17#flag for more information. - ---- -diff --git a/app_test.go b/app_test.go -index 7c38f6048..76e211d68 100644 ---- a/app_test.go -+++ b/app_test.go -@@ -476,18 +476,18 @@ func TestApp_RunAsSubCommandIncorrectUsage(t *testing.T) { - a := App{ - Name: "cmd", - Flags: []Flag{ -- &StringFlag{Name: "--foo"}, -+ &StringFlag{Name: "foo"}, - }, - Writer: bytes.NewBufferString(""), - } - - set := flag.NewFlagSet("", flag.ContinueOnError) -- _ = set.Parse([]string{"", "---foo"}) -+ _ = set.Parse([]string{"", "-bar"}) - c := &Context{flagSet: set} - - err := a.RunAsSubcommand(c) - -- expect(t, err, errors.New("bad flag syntax: ---foo")) -+ expect(t, err.Error(), "flag provided but not defined: -bar") - } - - func TestApp_CommandWithFlagBeforeTerminator(t *testing.T) { From a89d6ee3f5840f23c2f417ef3603b736bc296054 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 18:26:33 +0000 Subject: [PATCH 036/862] gnu: go-github-com-urfave-cli: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-urfave-cli, go-github-com-urfave-cli-v2): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/curl.scm: Add golang-xyz module. Change-Id: Ic6fc7a312c0c7bccb47451ec2b9500c8ab1927de --- gnu/packages/curl.scm | 1 + gnu/packages/golang-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 51 ------------------------------------ 3 files changed, 53 insertions(+), 51 deletions(-) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index e5e3342b6dd..ecc13a04e5f 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -51,6 +51,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages guile) #:use-module (gnu packages kerberos) #:use-module (gnu packages logging) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 849f7dbd396..3895c98e391 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8107,6 +8107,58 @@ supported by the time package @code{ioutil} packages that is easy to test.") (license license:expat))) +(define-public go-github-com-urfave-cli + (package + (name "go-github-com-urfave-cli") + (version "1.22.16") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/urfave/cli") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "022abbjwr3g2vbyfbdc1hg09d753hfba21b69n2nkrx168ag5ahd")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/urfave/cli")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-go-md2man)) + (home-page "https://github.com/urfave/cli") + (synopsis "Simple, fast, and fun package for building command line apps in Go") + (description + "@command{cli} is a simple, fast, and fun package for building command +line apps in Go. The goal is to enable developers to write fast and +distributable command line applications in an expressive way.") + (license license:expat))) + +(define-public go-github-com-urfave-cli-v2 + (package + (inherit go-github-com-urfave-cli) + (name "go-github-com-urfave-cli-v2") + (version "2.27.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/urfave/cli") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03237hi2jqvms9cif4varyap3j1dhzcf1mr809dm7ncvzk7gxg83")))) + (arguments + (list #:import-path "github.com/urfave/cli/v2")) + (propagated-inputs + (list go-github-com-burntsushi-toml + go-github-com-go-md2man + go-github-com-xrash-smetrics + go-gopkg-in-yaml-v3)))) + + (define-public go-github-com-vitrun-qart (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3784ec9a420..7bc97083e05 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4209,57 +4209,6 @@ references.") (description "A @command{.gitignore} parser for Go.") (license license:expat)))) -(define-public go-github-com-urfave-cli - (package - (name "go-github-com-urfave-cli") - (version "1.22.16") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/urfave/cli") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "022abbjwr3g2vbyfbdc1hg09d753hfba21b69n2nkrx168ag5ahd")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/urfave/cli")) - (native-inputs - (list go-github-com-stretchr-testify)) - (propagated-inputs - (list go-github-com-go-md2man)) - (home-page "https://github.com/urfave/cli") - (synopsis "Simple, fast, and fun package for building command line apps in Go") - (description "@command{cli} is a simple, fast, and fun package for -building command line apps in Go. The goal is to enable developers to write -fast and distributable command line applications in an expressive way.") - (license license:expat))) - -(define-public go-github-com-urfave-cli-v2 - (package - (inherit go-github-com-urfave-cli) - (name "go-github-com-urfave-cli-v2") - (version "2.27.5") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/urfave/cli") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "03237hi2jqvms9cif4varyap3j1dhzcf1mr809dm7ncvzk7gxg83")))) - (arguments - '(#:import-path "github.com/urfave/cli/v2")) - (propagated-inputs - (list go-github-com-burntsushi-toml - go-github-com-go-md2man - go-github-com-xrash-smetrics - go-gopkg-in-yaml-v3)))) - (define-public go-github-com-go-md2man (package (name "go-github-com-go-md2man") From 6194fd781f3acd30a469198df9c962273c0b24e7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 19:40:24 +0000 Subject: [PATCH 037/862] gnu: go-github-com-xdg-go-scram: Update to 1.1.2. * gnu/packages/golang.scm (go-github-com-xdg-go-scram): Update to 1.1.2. Change-Id: Id28ab2ae051d2633357f9e0e418698c7b113dcea --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7bc97083e05..cea26aac587 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5824,7 +5824,7 @@ and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.") (define-public go-github-com-xdg-go-scram (package (name "go-github-com-xdg-go-scram") - (version "1.0.2") + (version "1.1.2") (source (origin (method git-fetch) @@ -5833,7 +5833,7 @@ and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1jyv4qgc1dgh3v96pazmgljpp9ij25k8hwn0v4fck18g16i0nccm")))) + (base32 "1bkznny84fdn4sy3wq5680v424glsq9nh2169qy51213bah6by84")))) (build-system go-build-system) (arguments '(#:import-path "github.com/xdg-go/scram")) (propagated-inputs From 44a782900b06f1f2821b9fe1bb5c1ea213809488 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 19:47:39 +0000 Subject: [PATCH 038/862] gnu: go-github-com-xdg-go-scram: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-xdg-go-scram): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I1aacfb2fe0b0adfa0142774c29557f6dd6751e85 --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 6d1a0c1eaed..afc4348e6e7 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5988,6 +5988,34 @@ missing it. It address the issues @url{https://github.com/golang/go/issues/68082, #68082}.") (license license:bsd-3))) +(define-public go-github-com-xdg-go-scram + (package + (name "go-github-com-xdg-go-scram") + (version "1.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xdg-go/scram") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bkznny84fdn4sy3wq5680v424glsq9nh2169qy51213bah6by84")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xdg-go/scram")) + (propagated-inputs + (list go-github-com-xdg-go-stringprep + go-github-com-xdg-go-pbkdf2)) + (home-page "https://github.com/xdg-go/scram") + (synopsis "Go implementation of RFC-5802") + (description + "Package scram provides client and server implementations of the +@acronym{Salted Challenge Response Authentication Mechanism, SCRAM} described +in RFC-5802 and RFC-7677.") + (license license:asl2.0))) + (define-public go-github-com-xeipuuv-gojsonpointer (let ((commit "4e3ac2762d5f479393488629ee9370b50873b3a6") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cea26aac587..0ac10c07a06 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5821,32 +5821,6 @@ algorithm described in @url{https://rfc-editor.org/rfc/rfc2898.html,RFC 2898} and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.") (license license:asl2.0))) -(define-public go-github-com-xdg-go-scram - (package - (name "go-github-com-xdg-go-scram") - (version "1.1.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/xdg-go/scram") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1bkznny84fdn4sy3wq5680v424glsq9nh2169qy51213bah6by84")))) - (build-system go-build-system) - (arguments '(#:import-path "github.com/xdg-go/scram")) - (propagated-inputs - (list go-github-com-xdg-go-stringprep - go-github-com-xdg-go-pbkdf2)) - (home-page "https://github.com/xdg-go/scram") - (synopsis "Go implementation of RFC-5802") - (description - "Package scram provides client and server implementations of the -@acronym{Salted Challenge Response Authentication Mechanism, SCRAM} described in -RFC-5802 and RFC-7677.") - (license license:asl2.0))) - (define-public go-github-com-godbus-dbus (package (name "go-github-com-godbus-dbus") From d69b39d6088284e173b451592c3e09d7ab37e80b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 19:53:13 +0000 Subject: [PATCH 039/862] gnu: go-github-com-miolini-datacounter: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-miolini-datacounter): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I335a3f8d884ce10054d7a75a223cafbbc9d269af --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3895c98e391..1fbc0f9c1bd 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5622,6 +5622,29 @@ language, namely support for record length-delimited message streaming.") colored strings.") (license license:expat))) +(define-public go-github-com-miolini-datacounter + (package + (name "go-github-com-miolini-datacounter") + (version "1.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/miolini/datacounter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s1hxqy6666qd524rdp1dr3778davc8gx9brg9lkcjvr5l05s9wa")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/miolini/datacounter")) + (home-page "https://github.com/miolini/datacounter") + (synopsis "Counters for Go readers and writers") + (description + "The datacounter package provides counters for Go readers and writers.") + (license license:expat))) + (define-public go-github-com-mitchellh-colorstring (package (name "go-github-com-mitchellh-colorstring") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0ac10c07a06..84fcffd368d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2439,28 +2439,6 @@ writers can be supplied for alternate environments.") (home-page "https://github.com/alsm/ioprogress") (license license:expat)))) -(define-public go-github-com-miolini-datacounter - (package - (name "go-github-com-miolini-datacounter") - (version "1.0.3") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/miolini/datacounter") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0s1hxqy6666qd524rdp1dr3778davc8gx9brg9lkcjvr5l05s9wa")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/miolini/datacounter")) - (home-page "https://github.com/miolini/datacounter") - (synopsis "Counters for Go readers and writers") - (description - "The datacounter package provides counters for Go readers and writers.") - (license license:expat))) - (define-public go-github-com-aki237-nscjar (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06") (revision "0")) From 06902295e6fb344a7d74ae0e66e227dafa4a78ad Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 19:58:02 +0000 Subject: [PATCH 040/862] gnu: restic-rest-server: Update to 0.13.0. * gnu/packages/backup.scm (restic-rest-server): Update to 0.13.0. Change-Id: I0c83ee5a879a62c6859a27390435e93296523a99 --- gnu/packages/backup.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 04abba54f5b..37ae08f8cd0 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -1058,7 +1058,7 @@ precious backup space. (define-public restic-rest-server (package (name "restic-rest-server") - (version "0.12.1") + (version "0.13.0") (source (origin (method git-fetch) (uri (git-reference @@ -1067,7 +1067,7 @@ precious backup space. (file-name (git-file-name name version)) (sha256 (base32 - "18jk93j91dq4639nml4qnq1fq5j3s67ca3gvfka5aafln8ir8ffk")))) + "1ncsmwn4g1j555cgwkk5p8f093s42fip7dajhnh554jp1zx757m3")))) (build-system go-build-system) (arguments (list From f4c42a3154cc3bc351348f56d8dcde3a2a9d5d80 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 20:22:09 +0000 Subject: [PATCH 041/862] gnu: go-github-com-aki237-nscjar: Update to 0.0.0-20210417074043-bbb606196143. * gnu/packages/golang.scm (go-github-com-aki237-nscjar): Update to 0.0.0-20210417074043-bbb606196143. Change-Id: If622ca83d770e3dc2db931f66d34316768c81949 --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 84fcffd368d..14d3729e427 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2440,20 +2440,18 @@ writers can be supplied for alternate environments.") (license license:expat)))) (define-public go-github-com-aki237-nscjar - (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06") - (revision "0")) (package (name "go-github-com-aki237-nscjar") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20210417074043-bbb606196143") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aki237/nscjar") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 - "03y7zzq12qvhsq86lb06sgns8xrkblbn7i7wd886wk3zr5574b96")))) + "0vbagy9g795b17lnnkkm2f3pcrkxrzc4qbzc656g2cdkdprdyb4m")))) (build-system go-build-system) (arguments '(#:import-path "github.com/aki237/nscjar")) @@ -2462,7 +2460,7 @@ writers can be supplied for alternate environments.") Netscape/Mozilla's old-style cookie files. It also implements a simple cookie jar struct to manage the cookies added to the cookie jar.") (home-page "https://github.com/aki237/nscjar") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-gizak-termui (package From 6a156d3d68358f8c53ff716e034f1763f85a6fe3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 20:24:51 +0000 Subject: [PATCH 042/862] gnu: go-github-com-aki237-nscjar: Move to golang-web. * gnu/packages/golang.scm (go-github-com-aki237-nscjar): Move from here ... * gnu/packages/golang-web.scm: ... to here. * gnu/packages/curl.scm: Add golang-web module. Change-Id: I77e9528d925507cbc64acc47cf241d8efe0d5cd4 --- gnu/packages/curl.scm | 1 + gnu/packages/golang-web.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 3 files changed, 26 insertions(+), 23 deletions(-) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index ecc13a04e5f..cbdcfb48718 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -51,6 +51,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages guile) #:use-module (gnu packages kerberos) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index afc4348e6e7..a445f0d3c43 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -171,6 +171,31 @@ API service accounts for Go.") 2019.") (license license:expat))) +(define-public go-github-com-aki237-nscjar + (package + (name "go-github-com-aki237-nscjar") + (version "0.0.0-20210417074043-bbb606196143") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aki237/nscjar") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vbagy9g795b17lnnkkm2f3pcrkxrzc4qbzc656g2cdkdprdyb4m")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/aki237/nscjar")) + (home-page "https://github.com/aki237/nscjar") + (synopsis "Handle Netscape / Mozilla cookies") + (description + "@code{nscjar} is a Go library used to parse and output +Netscape/Mozilla's old-style cookie files. It also implements a simple cookie +jar struct to manage the cookies added to the cookie jar.") + (license license:expat))) + (define-public go-github-com-alexliesenfeld-health (package (name "go-github-com-alexliesenfeld-health") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 14d3729e427..2ec904f2af2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2439,29 +2439,6 @@ writers can be supplied for alternate environments.") (home-page "https://github.com/alsm/ioprogress") (license license:expat)))) -(define-public go-github-com-aki237-nscjar - (package - (name "go-github-com-aki237-nscjar") - (version "0.0.0-20210417074043-bbb606196143") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/aki237/nscjar") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0vbagy9g795b17lnnkkm2f3pcrkxrzc4qbzc656g2cdkdprdyb4m")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/aki237/nscjar")) - (synopsis "Handle Netscape / Mozilla cookies") - (description "@code{nscjar} is a Go library used to parse and output -Netscape/Mozilla's old-style cookie files. It also implements a simple cookie -jar struct to manage the cookies added to the cookie jar.") - (home-page "https://github.com/aki237/nscjar") - (license license:expat))) - (define-public go-github-com-gizak-termui (package (name "go-github-com-gizak-termui") From d23e9c8be0f1aa6d312bf857fbe79b4db9240d92 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 20:28:58 +0000 Subject: [PATCH 043/862] gnu: go-github-com-alsm-ioprogress: Update to 0.0.0-20170412085706-063c3725f436. * gnu/packages/golang.scm (go-github-com-alsm-ioprogress): Update to 0.0.0-20170412085706-063c3725f436. Change-Id: Ic0c5f0e49044c3e0f4f7edebe841dcc303d74842 --- gnu/packages/golang.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2ec904f2af2..29cf235e88d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2414,16 +2414,14 @@ your Go binary to be later served from an http.FileSystem.") (license license:asl2.0))) (define-public go-github-com-alsm-ioprogress - (let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5") - (revision "0")) (package (name "go-github-com-alsm-ioprogress") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20170412085706-063c3725f436") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/alsm/ioprogress") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -2437,7 +2435,7 @@ your Go binary to be later served from an http.FileSystem.") case for these are for command-line applications but alternate progress bar writers can be supplied for alternate environments.") (home-page "https://github.com/alsm/ioprogress") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-gizak-termui (package From 8eb0475af4ccd43fb1aa3619b3be7173574be635 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 20:30:24 +0000 Subject: [PATCH 044/862] gnu: go-github-com-alsm-ioprogress: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-alsm-ioprogress): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I4efb488eff6d1e72acfce5b172444c1cfe5942b3 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1fbc0f9c1bd..8020fea5327 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -831,6 +831,32 @@ newlines until a non-newline.") "This library provides unit multipliers and functions for Go.") (license license:expat)))) +(define-public go-github-com-alsm-ioprogress + (package + (name "go-github-com-alsm-ioprogress") + (version "0.0.0-20170412085706-063c3725f436") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/alsm/ioprogress") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10ym5qlq77nynmkxbk767f2hfwyxg2k7hrzph05hvgzv833dhivh")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/alsm/ioprogress")) + (home-page "https://github.com/alsm/ioprogress") + (synopsis "Textual progress bars in Go") + (description + "@code{ioprogress} is a Go library with implementations of +@code{io.Reader} and @code{io.Writer} that draws progress bars. The primary +use case for these are for command-line applications but alternate progress +bar writers can be supplied for alternate environments.") + (license license:expat))) + (define-public go-github-com-andreasbriese-bbloom (package (name "go-github-com-andreasbriese-bbloom") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 29cf235e88d..bf80cb3d5fb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2413,30 +2413,6 @@ for speed on short messages.") your Go binary to be later served from an http.FileSystem.") (license license:asl2.0))) -(define-public go-github-com-alsm-ioprogress - (package - (name "go-github-com-alsm-ioprogress") - (version "0.0.0-20170412085706-063c3725f436") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/alsm/ioprogress") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "10ym5qlq77nynmkxbk767f2hfwyxg2k7hrzph05hvgzv833dhivh")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/alsm/ioprogress")) - (synopsis "Textual progress bars in Go") - (description "@code{ioprogress} is a Go library with implementations of -@code{io.Reader} and @code{io.Writer} that draws progress bars. The primary use -case for these are for command-line applications but alternate progress bar -writers can be supplied for alternate environments.") - (home-page "https://github.com/alsm/ioprogress") - (license license:expat))) - (define-public go-github-com-gizak-termui (package (name "go-github-com-gizak-termui") From 1d38e22cdfb9bc6ff90b7c8878e3854a575befc8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 20:43:19 +0000 Subject: [PATCH 045/862] gnu: kurly: Improve package style. * gnu/packages/curl.scm (kurly): Use G-expressions. Adjust indentation and fields order. [phases]{install-documentation}: Remove trailing #t from lambda. [description]: Adjust fill column. Change-Id: I9d174bb79e583a305f58f9800847c87bcdaa5329 --- gnu/packages/curl.scm | 67 ++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index cbdcfb48718..6e636744472 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -203,47 +203,50 @@ tunneling, and so on.") (prepend libssh2))) (properties `((hidden? . #t))))) +;; XXX: It looks like unmaintained, last time updated in 2018. (define-public kurly (package (name "kurly") (version "1.2.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://gitlab.com/davidjpeacock/kurly.git") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "003jv2k45hg2svhjpy5253ccd250vi2r17x2zhm51iw54kgwxipm")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/davidjpeacock/kurly") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "003jv2k45hg2svhjpy5253ccd250vi2r17x2zhm51iw54kgwxipm")))) (build-system go-build-system) (arguments - `(#:import-path "gitlab.com/davidjpeacock/kurly" - #:install-source? #f - #:phases - (modify-phases %standard-phases - (add-after 'install 'install-documentation - (lambda* (#:key import-path outputs #:allow-other-keys) - (let* ((source (string-append "src/" import-path)) - (out (assoc-ref outputs "out")) - (doc (string-append out "/share/doc/" ,name "-" ,version)) - (man (string-append out "/share/man/man1"))) - (with-directory-excursion source - (install-file "README.md" doc) - (mkdir-p man) - (copy-file "doc/kurly.man" - (string-append man "/kurly.1"))) - #t)))))) + (list + #:install-source? #f + #:import-path "gitlab.com/davidjpeacock/kurly" + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-documentation + (lambda* (#:key import-path #:allow-other-keys) + (let* ((source (string-append "src/" import-path)) + (doc (string-append #$output "/share/doc/" + #$name "-" #$version)) + (man (string-append #$output "/share/man/man1"))) + (with-directory-excursion source + (install-file "README.md" doc) + (mkdir-p man) + (copy-file "doc/kurly.man" + (string-append man "/kurly.1"))))))))) (inputs - (list go-github-com-alsm-ioprogress go-github-com-aki237-nscjar + (list go-github-com-alsm-ioprogress + go-github-com-aki237-nscjar go-github-com-urfave-cli)) - (synopsis "Command-line HTTP client") - (description "kurly is an alternative to the @code{curl} program written in -Go. kurly is designed to operate in a similar manner to curl, with select -features. Notably, kurly is not aiming for feature parity, but common flags and -mechanisms particularly within the HTTP(S) realm are to be expected. kurly does -not offer a replacement for libcurl.") (home-page "https://gitlab.com/davidjpeacock/kurly") + (synopsis "Command-line HTTP client") + (description + "kurly is an alternative to the @code{curl} program written in Go. kurly +is designed to operate in a similar manner to curl, with select features. +Notably, kurly is not aiming for feature parity, but common flags and +mechanisms particularly within the HTTP(S) realm are to be expected. kurly +does not offer a replacement for libcurl.") (license license:asl2.0))) (define-public guile-curl From 9b7951857b4fbc36abb9fb364b037c4db3ddc205 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 20:50:01 +0000 Subject: [PATCH 046/862] gnu: packages/curl: Remove golang module. * gnu/packages/curl.scm: As all Golang dependencies were shifted to corresponded submodules, remove not required "golang" module from used ones. Change-Id: I3f05a01058f57d6c29a89ccf7333dfe03e88d47c --- gnu/packages/curl.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 6e636744472..3e9cd517a23 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -49,7 +49,6 @@ #:use-module (gnu packages) #:use-module (gnu packages check) #:use-module (gnu packages compression) - #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) From 7589c56b818ec92f755888f05874b05f8d32a4bc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 21:02:05 +0000 Subject: [PATCH 047/862] gnu: Add go-github-com-xuanwo-go-locale. * gnu/packages/golang-xyz.scm (go-github-com-xuanwo-go-locale): New variable. Change-Id: I6792dfab134090fab1677fdf80e127a8ea858758 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8020fea5327..2ff705e88a4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8528,6 +8528,33 @@ popular Levenshtein distance (aka Edit Distance or Wagner-Fischer), as well as the Jaro distance, the Jaro-Winkler distance, and more.") (license license:expat))) +(define-public go-github-com-xuanwo-go-locale + (package + (name "go-github-com-xuanwo-go-locale") + (version "1.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Xuanwo/go-locale") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09d68ay4kcic82xjdl9b3zi5nq0srxanprk5p32n5yxqirb0pbxd")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/Xuanwo/go-locale")) + (propagated-inputs + (list go-golang-org-x-sys + go-golang-org-x-text)) + (home-page "https://github.com/Xuanwo/go-locale") + (synopsis "Locale detection in Golang") + (description + "This package provides a functionality for cross-platform locale +detection.") + (license license:asl2.0))) + (define-public go-github-com-yuin-gopher-lua (package (name "go-github-com-yuin-gopher-lua") From 14d16c94ebb65d3e4050c9fd37e4a0b51d88bb0d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 21:02:13 +0000 Subject: [PATCH 048/862] gnu: lf: Update to 33. * gnu/packages/disk.scm (lf): Update to 33. [native-inputs]: Remove go-gopkg-in-djherbis-times-v1; add go-github-com-fsnotify-fsnotify, go-github-com-xuanwo-go-locale, go-golang-org-x-sys, and go-golang-org-x-text. Change-Id: Ia82629c748254838b2aefbc21bc226b81bb2a660 --- gnu/packages/disk.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index fd9cb8a45ed..97470407fc0 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -1320,7 +1320,7 @@ on your file system and offers to remove it. @command{rmlint} can find: (define-public lf (package (name "lf") - (version "31") + (version "33") (source (origin (method git-fetch) @@ -1329,7 +1329,7 @@ on your file system and offers to remove it. @command{rmlint} can find: (commit (string-append "r" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "03icsf4c3j7295s1d8s6srz5gf09a3lghgw3zfcd86p03zhkzsaf")))) + (base32 "1jmqf27ysi35n3hqahlzs5hym7i4w1mplklrvv0lc0baddzx7av8")))) (build-system go-build-system) (arguments (list @@ -1337,10 +1337,13 @@ on your file system and offers to remove it. @command{rmlint} can find: #:import-path "github.com/gokcehan/lf")) (native-inputs (list go-github-com-djherbis-times + go-github-com-fsnotify-fsnotify go-github-com-gdamore-tcell-v2 go-github-com-mattn-go-runewidth + go-github-com-xuanwo-go-locale + go-golang-org-x-sys go-golang-org-x-term - go-gopkg-in-djherbis-times-v1)) + go-golang-org-x-text)) (home-page "https://github.com/gokcehan/lf") (synopsis "Console file browser similar to Ranger") (description From 80e4d2744beb15be0f686d901c257d2cebbee019 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 21:13:32 +0000 Subject: [PATCH 049/862] gnu: go-github-com-gdamore-tcell: Update to 1.4.0. * gnu/packages/golang.scm (go-github-com-gdamore-tcell): Update to 1.4.0. [inputs]: Add go-golang-org-x-sys. Change-Id: I2a24b67fae07c0198ad8837d1692e7c18e0afa48 --- gnu/packages/golang.scm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index bf80cb3d5fb..44043def48d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4482,22 +4482,19 @@ over strings.") (license license:expat))) (define-public go-github-com-gdamore-tcell - (let ((commit "aaadc574a6ed8dc3abe56036ca130dcee1ee6b6e") - (version "1.1.2") - (revision "1")) (package (name "go-github-com-gdamore-tcell") - (version (git-version version revision commit)) + (version "1.4.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/gdamore/tcell") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "0il2nnxp2cqiy73m49215dnf9in3vd25ji8qxbmq87c5qy7i1q9d")))) + "178h7kj4zb8lcw84nbqanapnxrgvhq4111xw4fj6m56y46anlzwg")))) (build-system go-build-system) (arguments `(#:import-path "github.com/gdamore/tcell")) @@ -4505,6 +4502,7 @@ over strings.") (list go-github-com-mattn-go-runewidth go-github-com-lucasb-eyer-go-colorful go-golang-org-x-text + go-golang-org-x-sys go-github-com-gdamore-encoding)) (home-page "https://github.com/gdamore/tcell") (synopsis "Provide a cell-based view for text terminals") @@ -4512,7 +4510,7 @@ over strings.") terminfo capability strings to avoid hard-coding escape strings for formatting. It also favors portability, and includes support for all POSIX systems.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-gdamore-tcell-v2 (package From b6b95392ad24757f6574e56c357712bd8000daab Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 21:19:12 +0000 Subject: [PATCH 050/862] gnu: go-github-com-gdamore-tcell-v2: Simplify package. There are no any *.gz files in output for the package, this change removes unnecessary custom phase. * gnu/packages/golang.scm (go-github-com-gdamore-tcell-v2) [name]: Adjust it to follow naming style for Glang module variants. [phases]: Remove 'make-file-writable. Change-Id: I1c20b769d1d5426ff4ce36d07764284ac29228dd --- gnu/packages/golang.scm | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 44043def48d..4b5b6e99eb7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4515,7 +4515,7 @@ systems.") (define-public go-github-com-gdamore-tcell-v2 (package (inherit go-github-com-gdamore-tcell) - (name "go-github-com-gdamore-tcell") + (name "go-github-com-gdamore-tcell-v2") (version "2.7.4") (source (origin (method git-fetch) @@ -4527,15 +4527,7 @@ systems.") (base32 "05b22sgyf8lnwjddxlfvlj7i8b67gnidhbnz86vvx8fddggpa5nd")))) (arguments - (list #:import-path "github.com/gdamore/tcell/v2" - #:phases - #~(modify-phases %standard-phases - (add-before 'reset-gzip-timestamps 'make-files-writable - (lambda _ - ;; Make sure .gz files are writable so that the - ;; 'reset-gzip-timestamps' phase can do its work. - (for-each make-file-writable - (find-files #$output "\\.gz$"))))))) + (list #:import-path "github.com/gdamore/tcell/v2")) (propagated-inputs (modify-inputs (package-inputs go-github-com-gdamore-tcell) (prepend go-golang-org-x-term go-golang-org-x-sys))))) From 00dd4534843d840776d8cd9db786d5b3ae3202aa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 21:38:31 +0000 Subject: [PATCH 051/862] gnu: go-github-com-gdamore-tcell: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-gdamore-tcell, go-github-com-gdamore-tcell-v2, go-github-com-delthas-tcell-v2): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/games.scm: Add golang-xyz module. Change-Id: I47dc5ef691bbb9732a1e7e068c74aeaafb07b235 --- gnu/packages/games.scm | 1 + gnu/packages/golang-xyz.scm | 74 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 72 ------------------------------------ 3 files changed, 75 insertions(+), 72 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 3d71a7cf8b9..e3de42ec740 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -157,6 +157,7 @@ #:use-module (gnu packages gnuzilla) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages gperf) #:use-module (gnu packages graphics) #:use-module (gnu packages graphviz) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2ff705e88a4..2f86fe8c134 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -19,6 +19,7 @@ ;;; Copyright © 2021 Collin J. Doering ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Guix Together +;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Raghav Gururajan ;;; Copyright © 2021 Ramana Radhakrishnan ;;; Copyright © 2021 Ricardo Wurmus @@ -3287,6 +3288,79 @@ Differentiation between text and binary files}. @end itemize") (license license:expat))) +(define-public go-github-com-gdamore-tcell + (package + (name "go-github-com-gdamore-tcell") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gdamore/tcell") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "178h7kj4zb8lcw84nbqanapnxrgvhq4111xw4fj6m56y46anlzwg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gdamore/tcell")) + (inputs + (list go-github-com-gdamore-encoding + go-github-com-mattn-go-runewidth + go-github-com-lucasb-eyer-go-colorful + go-golang-org-x-sys + go-golang-org-x-text)) + (home-page "https://github.com/gdamore/tcell") + (synopsis "Provide a cell-based view for text terminals") + (description + "This package includes a full parser and expander for terminfo +capability strings to avoid hard-coding escape strings for formatting. It +also favors portability, and includes support for all POSIX systems.") + (license license:asl2.0))) + +(define-public go-github-com-gdamore-tcell-v2 + (package + (inherit go-github-com-gdamore-tcell) + (name "go-github-com-gdamore-tcell-v2") + (version "2.7.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gdamore/tcell") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05b22sgyf8lnwjddxlfvlj7i8b67gnidhbnz86vvx8fddggpa5nd")))) + (arguments + (list + #:import-path "github.com/gdamore/tcell/v2")) + (propagated-inputs + (modify-inputs (package-inputs go-github-com-gdamore-tcell) + (prepend go-golang-org-x-term go-golang-org-x-sys))))) + +(define-public go-github-com-delthas-tcell-v2 + ;; TODO This variant allows upgrading senpai, and looks to be unnecessary in + ;; the next release of senpai + (hidden-package + (package + (inherit go-github-com-gdamore-tcell) + (name "go-github-com-delthas-tcell") + (version "2.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/delthas/tcell") + (commit "837a7d7"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05zr73q38dawl7hr6g7v4pkyv6mqr0zp2l9qsgn7xmf1p9q4bn7j")))) + (propagated-inputs + (modify-inputs (package-inputs go-github-com-gdamore-tcell) + (prepend go-golang-org-x-term go-golang-org-x-sys)))))) + (define-public go-github-com-go-git-go-billy-v5 (package (name "go-github-com-go-git-go-billy-v5") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4b5b6e99eb7..e075c4a1c7a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4481,78 +4481,6 @@ encoding in Go.") over strings.") (license license:expat))) -(define-public go-github-com-gdamore-tcell - (package - (name "go-github-com-gdamore-tcell") - (version "1.4.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gdamore/tcell") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "178h7kj4zb8lcw84nbqanapnxrgvhq4111xw4fj6m56y46anlzwg")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/gdamore/tcell")) - (inputs - (list go-github-com-mattn-go-runewidth - go-github-com-lucasb-eyer-go-colorful - go-golang-org-x-text - go-golang-org-x-sys - go-github-com-gdamore-encoding)) - (home-page "https://github.com/gdamore/tcell") - (synopsis "Provide a cell-based view for text terminals") - (description "This package includes a full parser and expander for -terminfo capability strings to avoid hard-coding escape strings for -formatting. It also favors portability, and includes support for all POSIX -systems.") - (license license:asl2.0))) - -(define-public go-github-com-gdamore-tcell-v2 - (package - (inherit go-github-com-gdamore-tcell) - (name "go-github-com-gdamore-tcell-v2") - (version "2.7.4") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gdamore/tcell") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "05b22sgyf8lnwjddxlfvlj7i8b67gnidhbnz86vvx8fddggpa5nd")))) - (arguments - (list #:import-path "github.com/gdamore/tcell/v2")) - (propagated-inputs - (modify-inputs (package-inputs go-github-com-gdamore-tcell) - (prepend go-golang-org-x-term go-golang-org-x-sys))))) - -(define-public go-github-com-delthas-tcell-v2 - ;; TODO This variant allows upgrading senpai, and looks to be unnecessary in - ;; the next release of senpai - (hidden-package - (package - (inherit go-github-com-gdamore-tcell) - (name "go-github-com-delthas-tcell") - (version "2.4.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/delthas/tcell") - (commit "837a7d7"))) - (file-name (git-file-name name version)) - (sha256 - (base32 "05zr73q38dawl7hr6g7v4pkyv6mqr0zp2l9qsgn7xmf1p9q4bn7j")))) - (propagated-inputs (modify-inputs (package-inputs - go-github-com-gdamore-tcell) - (prepend go-golang-org-x-term go-golang-org-x-sys)))))) - (define-public go-git-sr-ht-rockorager-tcell-term (package (name "go-git-sr-ht-rockorager-tcell-term") From 6be8928ef887988a74056da5c3a9ea7415ac240e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 24 Nov 2024 21:45:41 +0000 Subject: [PATCH 052/862] gnu: packages/disk: Remove golang module. * gnu/packages/disk.scm: As all Golang dependencies were shifted to corresponded submodules, remove not required "golang" module from used ones. Change-Id: If89a980e99747bc7501f4bbc26a41a39fb90ae05 --- gnu/packages/disk.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 97470407fc0..a3f57ee2a13 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -71,7 +71,6 @@ #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) - #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages graphics) From 1eb64a19e528f402219fd1668adb6cc1c308d402 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 2 Dec 2024 01:00:31 +0000 Subject: [PATCH 053/862] gnu: Remove go-github-com-kylelemons-godebug-pretty. * gnu/packages/golang-xyz.scm (go-github-com-kylelemons-godebug-pretty): Delete variable. (go-github-com-sahilm-fuzzy) [native-inputs]: Remove go-github-com-kylelemons-godebug-pretty. Change-Id: Ic0a4ffb28e4a08d83e7a72b163ed4f9f8b6178e9 --- gnu/packages/golang-xyz.scm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2f86fe8c134..a8f78d47f61 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4946,16 +4946,6 @@ structure. It can also produce a much more verbose, one-item-per-line representation suitable for computing diffs.") (license license:asl2.0))) -;; TODO: Merge with go-github-com-kylelemons-godebug and provide both module; -;; for go-team. -(define-public go-github-com-kylelemons-godebug-pretty - (package - (inherit go-github-com-kylelemons-godebug) - (name "go-github-com-kylelemons-godebug-pretty") - (arguments - '(#:import-path "github.com/kylelemons/godebug/pretty" - #:unpack-path "github.com/kylelemons/godebug")))) - (define-public go-github-com-lestrrat-go-envload (package (name "go-github-com-lestrrat-go-envload") @@ -7224,8 +7214,7 @@ logging.") (base32 "15j95gm7hcmg09x1b39vc4il8bryv4v0yljvvyq5vyc6iq66qrbz")))) (build-system go-build-system) (native-inputs - (list go-github-com-kylelemons-godebug - go-github-com-kylelemons-godebug-pretty)) + (list go-github-com-kylelemons-godebug)) (arguments (list #:import-path "github.com/sahilm/fuzzy")) (home-page "https://github.com/sahilm/fuzzy") From eee41a42a435ed42a8ca95ff17e1e0c1d225636d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 2 Dec 2024 01:11:47 +0000 Subject: [PATCH 054/862] gnu: Rename go-github-com-gizak-termui. * gnu/packages/golang.scm (go-github-com-gizak-termui): Rename go-github-com-gizak-termui to go-github-com-gizak-termui-v3 to reflect golang module path. * gnu/packages/education.scm (gotypist): Remove go-github-com-gizak-termui, add go-github-com-gizak-termui-v3. Change-Id: Iadd289822dd50ee79624ba847ad2b4ba45eef9b2 --- gnu/packages/education.scm | 3 ++- gnu/packages/golang.scm | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 44c9c17eb83..f0ff95b2871 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -320,7 +320,8 @@ Currently available boards include: (with-directory-excursion bin (rename-file "v1" "gotypist")))))))) (native-inputs - (list go-github-com-gizak-termui go-github-com-stretchr-testify)) + (list go-github-com-gizak-termui-v3 + go-github-com-stretchr-testify)) (home-page "https://github.com/KappaDistributive/gotypist") (synopsis "Simple typing trainer for text terminals") (description diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e075c4a1c7a..34e31642629 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2413,9 +2413,9 @@ for speed on short messages.") your Go binary to be later served from an http.FileSystem.") (license license:asl2.0))) -(define-public go-github-com-gizak-termui +(define-public go-github-com-gizak-termui-v3 (package - (name "go-github-com-gizak-termui") + (name "go-github-com-gizak-termui-v3") (version "3.1.0") (source (origin From 62818680fe41e847a164efa7ddff143813807b53 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 2 Dec 2024 01:12:05 +0000 Subject: [PATCH 055/862] gnu: ghq: Update to 1.7.1. * gnu/packages/version-control.scm (ghq): Update to 1.7.1. [inputs]: Add go-golang-org-x-text. Change-Id: Iefa07e1fd1d92cf479d837f19db801a413755c19 --- gnu/packages/version-control.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 2a95bc79e16..fd01e191836 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -4171,7 +4171,7 @@ If several repos are related, it helps to see their status together.") (define-public ghq (package (name "ghq") - (version "1.6.2") + (version "1.7.1") (home-page "https://github.com/x-motemen/ghq") (source (origin (method git-fetch) @@ -4181,7 +4181,7 @@ If several repos are related, it helps to see their status together.") (file-name (git-file-name name version)) (sha256 (base32 - "00rrm0gykmj60i0lnr4js6d4193c92zm3cimimb03xva4n9frvxw")))) + "0ai3klp3fm5r0idnml5pm55wcvkav3w0s11snlmr0ab1ki8m9sg5")))) (build-system go-build-system) (arguments (list @@ -4204,13 +4204,14 @@ If several repos are related, it helps to see their status together.") (native-inputs (list git-minimal)) (inputs - (list go-github-com-songmu-gitconfig - go-github-com-mattn-go-isatty + (list go-github-com-mattn-go-isatty go-github-com-motemen-go-colorine go-github-com-saracen-walker + go-github-com-songmu-gitconfig go-github-com-urfave-cli-v2 go-golang-org-x-net - go-golang-org-x-sync)) + go-golang-org-x-sync + go-golang-org-x-text)) (synopsis "Manage remote repository clones") (description "@code{ghq} provides a way to organize remote repository clones, like From 3eb66154fa77de35810ba9333e1d44998bc3a233 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 07:59:14 +0000 Subject: [PATCH 056/862] gnu: go-github-com-golang-glog: Update to 1.2.3. * gnu/packages/golang-build.scm (go-github-com-golang-glog): Update to 1.2.3. [native-inputs]: Add go-github-com-google-go-cmp. Change-Id: Id734965ab56c50d4e5f3619183addb59e72914de --- gnu/packages/golang-build.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 7049acf8c2b..51801e8ea96 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -62,7 +62,7 @@ (define-public go-github-com-golang-glog (package (name "go-github-com-golang-glog") - (version "1.2.2") + (version "1.2.3") (source (origin (method git-fetch) @@ -71,11 +71,13 @@ (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1a9ybpgp6grlpbhg2559sh54pxc9qfkhr4zvylw8qv1bny8c90q0")))) + (base32 "1sfgcf18wg4glcamgq9njmbny17xq0dd14g3094sj5c1cwjij982")))) (build-system go-build-system) (arguments (list #:import-path "github.com/golang/glog")) + (native-inputs + (list go-github-com-google-go-cmp)) (home-page "https://github.com/golang/glog") (synopsis "Leveled execution logs for Golang") (description From 2d437d51002681f89725e7171adea3186336075d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 09:13:39 +0000 Subject: [PATCH 057/862] gnu: go-github-com-vishvananda-netlink: Simplify package. * gnu/packages/linux.scm (go-github-com-vishvananda-netlink) [arguments]: Move skipped tests here. : Remove 'disable-failing-tests. Change-Id: I66a6f0574f46b55847c2ba2011a45b4e43aeeaad --- gnu/packages/linux.scm | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 172797f97d0..c2498444621 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -9548,18 +9548,11 @@ management tools in userspace.") ;; cannot use 0xabcdef99 (untyped int constant 2882400153) as int value ;; in struct literal (overflows) #:tests? (and (not (%current-target-system)) (target-x86-64?)) - #:import-path "github.com/vishvananda/netlink" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? unpack-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" unpack-path) - (substitute* (find-files "." "\\_test.go$") - ;; Disable tests requiring root access. - (("TestNetNsIdByFd") "OffTestNetNsIdByFd") - (("TestNetNsIdByPid") "OffTestNetNsIdByPid")))))))) + #:test-flags #~(list "-skip" "TestNetNsIdByFd|TestNetNsIdByPid") + #:import-path "github.com/vishvananda/netlink")) (propagated-inputs - (list go-golang-org-x-sys go-github-com-vishvananda-netns)) + (list go-github-com-vishvananda-netns + go-golang-org-x-sys)) (home-page "https://github.com/vishvananda/netlink") (synopsis "Simple netlink library for Go") (description From a2682b84442a1c32fbdbd369258364d1ed3a650c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 09:20:19 +0000 Subject: [PATCH 058/862] gnu: go-github-com-vishvananda-netlink: Update to 1.3.0. * gnu/packages/linux.scm (go-github-com-vishvananda-netlink): Update to 1.3.0. Change-Id: I8184bf75352455b094b1c13f2858afedb88d0a85 --- gnu/packages/linux.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index c2498444621..d88fdfe36fd 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -9531,7 +9531,7 @@ management tools in userspace.") (define-public go-github-com-vishvananda-netlink (package (name "go-github-com-vishvananda-netlink") - (version "1.1.0") + (version "1.3.0") (source (origin (method git-fetch) @@ -9540,7 +9540,7 @@ management tools in userspace.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1vhl30p1gx636a088ls4h6a0l8jjyfvz79fr5w0qzdrg4qg9h08h")))) + (base32 "1ckwb1ml7i2ccdd7kzc04s839naf4arlxav2ip5kf4rm4xhba9g7")))) (build-system go-build-system) (arguments (list @@ -9548,7 +9548,9 @@ management tools in userspace.") ;; cannot use 0xabcdef99 (untyped int constant 2882400153) as int value ;; in struct literal (overflows) #:tests? (and (not (%current-target-system)) (target-x86-64?)) - #:test-flags #~(list "-skip" "TestNetNsIdByFd|TestNetNsIdByPid") + #:test-flags + ;; One test fails with error: operation not permitted. + #~(list "-skip" "TestSocketXDPGetInfo") #:import-path "github.com/vishvananda/netlink")) (propagated-inputs (list go-github-com-vishvananda-netns From 26310a2e11ffbc577abb395404e9a13e4c884afc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 09:24:36 +0000 Subject: [PATCH 059/862] gnu: go-github-com-vishvananda-netlink: Move to golang-web. * gnu/packages/linux.scm (go-github-com-vishvananda-netlink): Move from here ... * gnu/packages/golang-web.scm: ... to here. * gnu/packages/docker.scm: Add golang-web module. Change-Id: I67bc7128e6ede1c717aefc089dbe3776dd885e40 --- gnu/packages/docker.scm | 1 + gnu/packages/golang-web.scm | 37 +++++++++++++++++++++++++++++++++++++ gnu/packages/linux.scm | 36 ------------------------------------ 3 files changed, 38 insertions(+), 36 deletions(-) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index bfc1898220c..e00f1cbb8a0 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages glib) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-web) #:use-module (gnu packages linux) #:use-module (gnu packages networking) #:use-module (gnu packages pkg-config) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index a445f0d3c43..e10d07a57aa 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2017, 2019, 2020, 2021 Leo Famulari ;;; Copyright © 2018 Pierre Neidhardt ;;; Copyright © 2018 Pierre-Antoine Rouby +;;; Copyright © 2019 Maxim Cournoyer ;;; Copyright © 2019 Vagrant Cascadian ;;; Copyright © 2019, 2020 Martin Becze ;;; Copyright © 2020 Jack Hill @@ -5872,6 +5873,42 @@ encoding library for the MessagePack, CBOR, JSON and the Binc formats.") replacement for native @code{net/http} module.") (license license:expat))) +(define-public go-github-com-vishvananda-netlink + (package + (name "go-github-com-vishvananda-netlink") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vishvananda/netlink") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ckwb1ml7i2ccdd7kzc04s839naf4arlxav2ip5kf4rm4xhba9g7")))) + (build-system go-build-system) + (arguments + (list + ;; The tests are unsupported on all architectures except x86_64-linux: + ;; cannot use 0xabcdef99 (untyped int constant 2882400153) as int value + ;; in struct literal (overflows) + #:tests? (and (not (%current-target-system)) (target-x86-64?)) + #:test-flags + ;; One test fails with error: operation not permitted. + #~(list "-skip" "TestSocketXDPGetInfo") + #:import-path "github.com/vishvananda/netlink")) + (propagated-inputs + (list go-github-com-vishvananda-netns + go-golang-org-x-sys)) + (home-page "https://github.com/vishvananda/netlink") + (synopsis "Simple netlink library for Go") + (description + "The netlink package provides a simple netlink library for Go. Netlink +is the interface a user-space program in Linux uses to communicate with the +kernel. It can be used to add and remove interfaces, set IP addresses and +routes, and configure IPsec.") + (license license:asl2.0))) + (define-public go-github-com-whyrusleeping-cbor (package (name "go-github-com-whyrusleeping-cbor") diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index d88fdfe36fd..33576e9721d 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -9528,42 +9528,6 @@ nfnetlink_queue, nfnetlink_conntrack) and their respective users and/or management tools in userspace.") (license license:gpl2))) -(define-public go-github-com-vishvananda-netlink - (package - (name "go-github-com-vishvananda-netlink") - (version "1.3.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/vishvananda/netlink") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1ckwb1ml7i2ccdd7kzc04s839naf4arlxav2ip5kf4rm4xhba9g7")))) - (build-system go-build-system) - (arguments - (list - ;; The tests are unsupported on all architectures except x86_64-linux: - ;; cannot use 0xabcdef99 (untyped int constant 2882400153) as int value - ;; in struct literal (overflows) - #:tests? (and (not (%current-target-system)) (target-x86-64?)) - #:test-flags - ;; One test fails with error: operation not permitted. - #~(list "-skip" "TestSocketXDPGetInfo") - #:import-path "github.com/vishvananda/netlink")) - (propagated-inputs - (list go-github-com-vishvananda-netns - go-golang-org-x-sys)) - (home-page "https://github.com/vishvananda/netlink") - (synopsis "Simple netlink library for Go") - (description - "The netlink package provides a simple netlink library for Go. Netlink -is the interface a user-space program in Linux uses to communicate with the -kernel. It can be used to add and remove interfaces, set IP addresses and -routes, and configure IPsec.") - (license license:asl2.0))) - (define-public libinih (package (name "libinih") From f3819c1a624ac1e58692f9517162fa31b6c9b446 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 09:08:06 +0000 Subject: [PATCH 060/862] gnu: go-github-com-google-gopacket: Adjust inputs. * gnu/packages/golang-web.scm (go-github-com-google-gopacket) [propagated-inputs]: Add go-github-com-vishvananda-netlink, go-golang-org-x-net, and go-golang-org-x-sys. Change-Id: I4d98380a415341bb359b606789f31ab1b5874e60 --- gnu/packages/golang-web.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e10d07a57aa..81f3185df2d 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2407,7 +2407,12 @@ parameters.") (base32 "048qwm2n0wrpql4qqgd7jyynn3gk069yvqbxnshlayzmbhf87ls4")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/google/gopacket")) + (list + #:import-path "github.com/google/gopacket")) + (propagated-inputs + (list go-github-com-vishvananda-netlink + go-golang-org-x-net + go-golang-org-x-sys)) (home-page "https://github.com/google/gopacket") (synopsis "Packet processing capabilities library") (description From ca800541dd24c3903f7e10ed5aaa98e839d505a7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 09:28:29 +0000 Subject: [PATCH 061/862] gnu: go-github-com-vishvananda-netns: Update to 0.0.5. * gnu/packages/networking.scm (go-github-com-vishvananda-netns): Update to 0.0.5. Change-Id: I73d07d24e5f73f139df6fcc1fb5770299cbe94b5 --- gnu/packages/networking.scm | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 295c2421eca..2db089f2616 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -1954,7 +1954,7 @@ virtual machines, and certificates.") (define-public go-github-com-vishvananda-netns (package (name "go-github-com-vishvananda-netns") - (version "0.0.4") + (version "0.0.5") (source (origin (method git-fetch) @@ -1963,20 +1963,13 @@ virtual machines, and certificates.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0rci8c211m57nya9il81fz6459pia3dj5i4b16fp34vjrkcxliml")))) + (base32 "1f96fbmjq93msdfxmicnypnn2lzvi7jrxy82fiyd9gwxdapfd061")))) (build-system go-build-system) (arguments (list - #:import-path "github.com/vishvananda/netns" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? unpack-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" unpack-path) - (substitute* (find-files "." "\\_test.go$") - ;; Disable tests requiring root access. - (("TestGetNewSetDelete") "OffTestGetNewSetDelete") - (("TestThreaded") "OffTestThreaded")))))))) + ;; Tests fail with error: operation not permitted. + #:test-flags #~(list "-skip" "TestGetNewSetDelete|TestThreaded") + #:import-path "github.com/vishvananda/netns")) (propagated-inputs (list go-golang-org-x-sys)) (home-page "https://github.com/vishvananda/netns") From f163cc45e692df1f36d1bff693192af7535b71a0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 09:30:25 +0000 Subject: [PATCH 062/862] gnu: go-github-com-vishvananda-netns: Move to golang-web. * gnu/packages/networking.scm (go-github-com-vishvananda-netns): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I61f01af0f6c57d6e079226cfaa01560e38e4d06e --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/networking.scm | 28 ---------------------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 81f3185df2d..75065740ab9 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5914,6 +5914,34 @@ kernel. It can be used to add and remove interfaces, set IP addresses and routes, and configure IPsec.") (license license:asl2.0))) +(define-public go-github-com-vishvananda-netns + (package + (name "go-github-com-vishvananda-netns") + (version "0.0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vishvananda/netns") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1f96fbmjq93msdfxmicnypnn2lzvi7jrxy82fiyd9gwxdapfd061")))) + (build-system go-build-system) + (arguments + (list + ;; Tests fail with error: operation not permitted. + #:test-flags #~(list "-skip" "TestGetNewSetDelete|TestThreaded") + #:import-path "github.com/vishvananda/netns")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/vishvananda/netns") + (synopsis "Simple network namespace handling for Go") + (description + "The netns package provides a simple interface for handling network +namespaces in Go.") + (license license:asl2.0))) + (define-public go-github-com-whyrusleeping-cbor (package (name "go-github-com-whyrusleeping-cbor") diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 2db089f2616..02e1d08e25e 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -1951,34 +1951,6 @@ manage, and delete Internet resources from Gandi.net such as domain names, virtual machines, and certificates.") (license license:gpl3+))) -(define-public go-github-com-vishvananda-netns - (package - (name "go-github-com-vishvananda-netns") - (version "0.0.5") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/vishvananda/netns") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1f96fbmjq93msdfxmicnypnn2lzvi7jrxy82fiyd9gwxdapfd061")))) - (build-system go-build-system) - (arguments - (list - ;; Tests fail with error: operation not permitted. - #:test-flags #~(list "-skip" "TestGetNewSetDelete|TestThreaded") - #:import-path "github.com/vishvananda/netns")) - (propagated-inputs - (list go-golang-org-x-sys)) - (home-page "https://github.com/vishvananda/netns") - (synopsis "Simple network namespace handling for Go") - (description - "The netns package provides a simple interface for handling network -namespaces in Go.") - (license license:asl2.0))) - (define-public go-sctp ;; docker-libnetwork-cmd-proxy requires this exact commit. ;; This commit is mentioned in docker-libnetwork-cmd-proxy's vendor.conf. From 4dbe0caf5b443b7ab9153d18afeae734145d1f89 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 09:36:49 +0000 Subject: [PATCH 063/862] gnu: packages/linux: Remove golang-build module. * gnu/packages/linux.scm: As all Golang dependencies were shifted to corresponded submodules, remove not required "golang-build" module from used ones. Change-Id: I089cf929063c22374b8dbd9decb82f4b514a02b9 --- gnu/packages/linux.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 33576e9721d..b418ab05a29 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -141,7 +141,6 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) - #:use-module (gnu packages golang-build) #:use-module (gnu packages gperf) #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) From 1a6b25806fe0d9cf57b839e4fc6e4343b3f833ad Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 19:42:06 +0000 Subject: [PATCH 064/862] gnu: go-github-com-spf13-cobra: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-spf13-cobra) [arguments]: Skip one test. [native-inputs]: Add go-github-com-go-md2man, and go-gopkg-in-yaml-v3 Change-Id: I84193d9d3222a458062b7cffbd23e6c9b3211f86 --- gnu/packages/golang-xyz.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a8f78d47f61..66bff24eb07 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7567,7 +7567,11 @@ Use waterutil with it to work with TUN/TAP packets/frames.") (build-system go-build-system) (arguments (list + #:test-flags #~(list "-skip" "TestGenManSeeAlso") #:import-path "github.com/spf13/cobra")) + (native-inputs + (list go-github-com-go-md2man + go-gopkg-in-yaml-v3)) (propagated-inputs (list go-github-com-spf13-pflag)) (home-page "https://github.com/spf13/cobra") From 936c9013e7ed32eb167fb750fc2a23fe0b39c23d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 19:43:43 +0000 Subject: [PATCH 065/862] gnu: go-gopkg-in-check-v1: Disable tests. * gnu/packages/golang-check.scm (go-gopkg-in-check-v1) [arguments]: Disable them. : Remove custom 'check as redundant. Change-Id: I9714e7ea019923f50ecb61097f90101326e5c4c8 --- gnu/packages/golang-check.scm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 4831bb02c7d..293ed1fc5a9 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1277,6 +1277,8 @@ real database connection.") reformat the source code, it only prints out style mistakes.") (license license:bsd-3)))) +;; XXX: Unmaintained since 2020, see +;; . (define-public go-gopkg-in-check-v1 (package (name "go-gopkg-in-check-v1") @@ -1294,15 +1296,9 @@ reformat the source code, it only prints out style mistakes.") (build-system go-build-system) (arguments (list - #:import-path "gopkg.in/check.v1" - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs #:allow-other-keys #:rest args) - (unless - ;; The tests fail when run with gccgo. - (false-if-exception (search-input-file inputs "/bin/gccgo")) - (apply (assoc-ref %standard-phases 'check) args))))))) + ;; Most tests failed. + #:tests? #f + #:import-path "gopkg.in/check.v1")) (propagated-inputs (list go-github-com-kr-pretty)) (home-page "https://gopkg.in/check.v1") From 68dafa0887c9949abdc0b43eedb923a20c0750c3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 6 Dec 2024 19:51:20 +0000 Subject: [PATCH 066/862] gnu: go-github-com-frankban-quicktest: Disable failing tests. The project looks like abandoned but still in use by some other packages in Guix. * gnu/packages/golang-check.scm (go-github-com-frankban-quicktest) [arguments]: Disable some failing tests. Change-Id: Id67c9101b42fd999a03c8ee3964104ed0f8636b8 --- gnu/packages/golang-check.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 293ed1fc5a9..f08b7bc62ab 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -334,6 +334,9 @@ fgprof is designed for analyzing applications with mixed I/O and CPU workloads. This kind of profiling is also known as wall-clock profiling.") (license license:expat))) +;; XXX: The project looks like abandoned, see +;; , remove when nothing +;; depends on it. (define-public go-github-com-frankban-quicktest (package (name "go-github-com-frankban-quicktest") @@ -350,9 +353,18 @@ workloads. This kind of profiling is also known as wall-clock profiling.") (build-system go-build-system) (arguments (list + #:test-flags + #~(list "-skip" (string-join + (list "TestReportOutput" + "TestIndirectReportOutput" + "TestMultilineReportOutput" + "TestCmpReportOutput" + "TestTopLevelAssertReportOutput") + "|")) #:import-path "github.com/frankban/quicktest")) (propagated-inputs - (list go-github-com-google-go-cmp go-github-com-kr-pretty)) + (list go-github-com-google-go-cmp + go-github-com-kr-pretty)) (home-page "https://github.com/frankban/quicktest") (synopsis "Quick helpers for testing Go applications") (description From 796e8f1d6eafb6d650bcfef45743f5f9704a2131 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 5 Dec 2024 22:30:43 +0000 Subject: [PATCH 067/862] gnu: go-github-com-charmbracelet-lipgloss: Remove examples. * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-lipgloss) [arguments]: Add 'remove-examples. Change-Id: I4ea4f699df2eb9d1558ba5ac8f6247c5d92214e0 --- gnu/packages/golang-xyz.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 66bff24eb07..76bd7123228 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1670,7 +1670,13 @@ tools.") (build-system go-build-system) (arguments (list - #:import-path "github.com/charmbracelet/lipgloss")) + #:import-path "github.com/charmbracelet/lipgloss" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (delete-file-recursively + (string-append "src/" import-path "/examples"))))))) (propagated-inputs (list go-github-com-aymanbagabas-go-udiff go-github-com-charmbracelet-x-ansi From a1770a0d4aaba946c19fb11e7b122db73c5ff3b3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 5 Dec 2024 22:28:23 +0000 Subject: [PATCH 068/862] gnu: go-github-com-muesli-termenv: Remove examples. * gnu/packages/golang-xyz.scm (go-github-com-muesli-termenv) [arguments]: Add 'remove-examples. Change-Id: Ib206b6637ee06f16595528f7ef3be1053a24ccba --- gnu/packages/golang-xyz.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 76bd7123228..cab61f78a2f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6091,7 +6091,13 @@ helping you to transform blocks of text.") (build-system go-build-system) (arguments (list - #:import-path "github.com/muesli/termenv")) + #:import-path "github.com/muesli/termenv" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (delete-file-recursively + (string-append "src/" import-path "/examples"))))))) (propagated-inputs (list go-github-com-aymanbagabas-go-osc52-v2 go-github-com-lucasb-eyer-go-colorful From b948df2d11c1c3d0548191f7d7b36ad8702a3e0b Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:55 +0100 Subject: [PATCH 069/862] gnu: Add go-go-abhg-dev-requiredfield. * gnu/packages/golang-check.scm (go-go-abhg-dev-requiredfield): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: Ic406bde1a994857f3b3fa15f0f9c5fef333f9726 --- gnu/packages/golang-check.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index f08b7bc62ab..5d81e9a3813 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2024 Sharlatan Hellseher ;;; Copyright © 2024 Troy Figiel ;;; Copyright © 2024 Artyom V. Poptsov +;;; Copyright © 2024 Herman Rimm ;;; ;;; This file is part of GNU Guix. ;;; @@ -1200,6 +1201,32 @@ functions and even in applications.") functions for writing tests in an @code{xUnit} style.") (license license:expat))) +(define-public go-go-abhg-dev-requiredfield + (package + (name "go-go-abhg-dev-requiredfield") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/abhinav/requiredfield") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15dccs71is06wi8xi3y2nnwpcpqbsh4pas4iggdr514aix8ljknf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.abhg.dev/requiredfield")) + (propagated-inputs + (list go-golang-org-x-tools)) + (home-page "https://go.abhg.dev/requiredfield") + (synopsis "Linter for required struct fields") + (description + "This package implements a linter that checks for required fields during +struct initialization.") + (license license:bsd-3))) + (define-public go-go-etcd-io-gofail (package (name "go-go-etcd-io-gofail") From 4b208b92d8df85004e8c61434a423d8d8e9923b4 Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:56 +0100 Subject: [PATCH 070/862] gnu: Add go-gopkg-in-dnaeon-go-vcr-v3. * gnu/packages/golang-check.scm (go-gopkg-in-dnaeon-go-vcr-v3-recorder): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I5bff0cc6ea8f2c54fa6310a5fcb92e6688dfff73 --- gnu/packages/golang-check.scm | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 5d81e9a3813..879f89f4e1c 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1345,6 +1345,46 @@ reformat the source code, it only prints out style mistakes.") (description "This package provides a test library for the Go language.") (license license:bsd-2))) +(define-public go-gopkg-in-dnaeon-go-vcr-v3 + (package + (name "go-gopkg-in-dnaeon-go-vcr-v3") + (version "3.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gopkg.in/dnaeon/go-vcr.v3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nij7rjbnrbsgjlm7fwpg298qffrgi2ic3wb51vqzxl6s9qkbzrq")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "vendor"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "gopkg.in/dnaeon/go-vcr.v3" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (propagated-inputs + (list go-gopkg-in-yaml-v3)) + (home-page "https://gopkg.in/dnaeon/go-vcr.v3") + (synopsis "Record and replay your HTTP interactions") + (description + "@@code{go-vcr} simplifies testing by recording your HTTP interactions +and replaying them in future runs in order to provide fast, deterministic and +accurate testing of your code.") + (license license:bsd-2))) + (define-public go-gopkg-in-go-playground-assert-v1 (package (name "go-gopkg-in-go-playground-assert-v1") From de7a166943ee70849d909c2dbb25f308407669a1 Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:51 +0100 Subject: [PATCH 071/862] gnu: Add go-github-com-shurcool-graphql. * gnu/packages/golang-web.scm (go-github-com-shurcool-graphql): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I2a9dc19fe18ee7a6572d3be1bfbbbb5d999c1865 --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 75065740ab9..6a6dc66f327 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2024 Dominic Martinez ;;; Copyright © 2024 Jesse Eisses ;;; Copyright © 2024 Troy Figiel +;;; Copyright © 2024 Herman Rimm ;;; ;;; This file is part of GNU Guix. ;;; @@ -5559,6 +5560,29 @@ per host/process support.") (license license:expat))) +(define-public go-github-com-shurcool-graphql + (package + (name "go-github-com-shurcool-graphql") + (version "0.0.0-20230722043721-ed46e5a46466") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shurcooL/graphql") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12cq16qak217bkpklqsmqhl42gz8cpadpzqw6fsivc3ambjpqdry")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/shurcooL/graphql")) + (home-page "https://github.com/shurcooL/graphql") + (synopsis "GraphQL client") + (description + "Package graphql provides a @code{GraphQL} client implementation.") + (license license:expat))) + (define-public go-github-com-shurcool-httpfs (package (name "go-github-com-shurcool-httpfs") From 0477993f4cf9e9483ed0d1825aadcaf4a56e00f6 Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:52 +0100 Subject: [PATCH 072/862] gnu: Add go-github-com-shurcool-githubv4. * gnu/packages/golang-web.scm (go-github-com-shurcool-githubv4): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I2870863792172db990e0f9a58a8e7dc13224bf16 --- gnu/packages/golang-web.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 6a6dc66f327..a00282d24e9 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5560,6 +5560,33 @@ per host/process support.") (license license:expat))) +(define-public go-github-com-shurcool-githubv4 + (package + (name "go-github-com-shurcool-githubv4") + (version "0.0.0-20240429030203-be2daab69064") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shurcooL/githubv4") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kkvqwv0waa8hj1jr9b4nvz8rmslqpchidl7gs9bplrkl3fvsxn6")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/shurcooL/githubv4")) + (propagated-inputs + (list go-github-com-shurcool-graphql + go-golang-org-x-oauth2)) + (home-page "https://github.com/shurcooL/githubv4") + (synopsis "Client library for GitHub GraphQL API v4") + (description + "Package githubv4 is a client library for accessing GitHub @code{GraphQL} +API v4.") + (license license:expat))) + (define-public go-github-com-shurcool-graphql (package (name "go-github-com-shurcool-graphql") From e79ca534c00ba0895495ead02dae05d30c344e54 Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:46 +0100 Subject: [PATCH 073/862] gnu: Add go-github-com-buildkite-shellwords. * gnu/packages/golang-xyz.scm (go-github-com-buildkite-shellwords): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: If6ff06dcd0b66a96e66d130b1ac54aa04a3309b3 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cab61f78a2f..d51f5908932 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1536,6 +1536,30 @@ don't require a full database server such as Postgres or MySQL.") indicator to any terminal application.") (license license:asl2.0))) +(define-public go-github-com-buildkite-shellwords + (package + (name "go-github-com-buildkite-shellwords") + (version "0.0.0-20180315110454-59467a9b8e10") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/buildkite/shellwords") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kx6wxbdznarmnifwzmxxcd86bgn27rwpfnw2y2gd0j8zg9g1682")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/buildkite/shellwords")) + (home-page "https://github.com/buildkite/shellwords") + (synopsis "Split command-line strings into words") + (description + "This package provides a golang library for splitting command-line +strings into words like a POSIX or Windows shell would.") + (license license:expat))) + (define-public go-github-com-burntsushi-toml (package (name "go-github-com-burntsushi-toml") From aaed063b086d53af754c855d160e93bbdc333e4e Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:59 +0100 Subject: [PATCH 074/862] gnu: Add go-github-com-erikgeiser-coninput. * gnu/packages/golang-xyz.scm (go-github-com-erikgeiser-coninput): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: Ib18b02e26070c87a6dc541c64b16f31ce879b012 --- gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d51f5908932..b7426b8f8e2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3007,6 +3007,37 @@ specified in @url{https://datatracker.ietf.org/doc/html/rfc6350, RFC 6350}.") @url{https://tools.ietf.org/html/rfc6352, RFC 6352} specifications.") (license license:expat))) +(define-public go-github-com-erikgeiser-coninput + (package + (name "go-github-com-erikgeiser-coninput") + (version "0.0.0-20211004153227-1c3628e74d0f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/erikgeiser/coninput") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1x8yw15ngyg4vlcdv5wsgpr6w5kavjv7bmk5mpvvx848bwvslr1r")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/erikgeiser/coninput" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (delete-file-recursively + (string-append "src/" import-path "/example"))))))) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/erikgeiser/coninput") + (synopsis "Input handling with Windows Console API") + (description + "Go library for input handling using Windows Console API.") + (license license:expat))) + (define-public go-github-com-errata-ai-ini (package (name "go-github-com-errata-ai-ini") From 7b9710b478d49649ad726c401318731b1a4c82fd Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:47 +0100 Subject: [PATCH 075/862] gnu: Add go-github-com-sebdah-goldie-v2. * gnu/packages/golang-xyz.scm (go-github-com-sebdah-goldie-v2): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I34b6aaf6e7a5db6778fdbcd46c886aa6b5eb9b37 --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b7426b8f8e2..a8de37b7f42 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7335,6 +7335,35 @@ detect the number of bytes written to a stream, so you can use it as a is undetermined, a customizable spinner is shown.") (license license:expat))) +(define-public go-github-com-sebdah-goldie-v2 + (package + (name "go-github-com-sebdah-goldie-v2") + (version "2.5.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sebdah/goldie") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12gji9p6b6zlkisbd3ww103zwd5chlwkb6h5dppfrmgxim84n5n0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/sebdah/goldie/v2")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-pmezard-go-difflib + go-github-com-sergi-go-diff)) + (home-page "https://github.com/sebdah/goldie") + (synopsis "Golden test utility") + (description + "Package goldie provides test assertions based on golden files. +It's typically used for testing responses with larger data bodies.") + (license license:expat))) + (define-public go-github-com-sergi-go-diff (package (name "go-github-com-sergi-go-diff") From 7f83328d9466234699c4fa9217928e529485d8aa Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:54 +0100 Subject: [PATCH 076/862] gnu: Add go-github-com-vito-midterm. * gnu/packages/golang-xyz.scm (go-github-com-vito-midterm): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: Ia09e3a330436640e6dc65c243eb4061921aa0ff8 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a8de37b7f42..dcee3861ef9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8370,6 +8370,38 @@ distributable command line applications in an expressive way.") go-github-com-xrash-smetrics go-gopkg-in-yaml-v3)))) +(define-public go-github-com-vito-midterm + (package + (name "go-github-com-vito-midterm") + (version "0.1.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vito/midterm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0bvgw84750xfpm89hrab7pzfv1d5dy94igiqwzk5ivy4yca90ipw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/vito/midterm")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-charmbracelet-bubbletea + go-github-com-creack-pty + go-github-com-muesli-termenv + go-github-com-sebdah-goldie-v2 + go-golang-org-x-term)) + (home-page "https://github.com/vito/midterm") + (synopsis "In-memory terminal emulator") + (description + "This package implements an in-memory terminal emulator, designed to be +used as a component within a larger application for displaying logs, running +interactive shells, or rendering terminal output.") + (license license:expat))) (define-public go-github-com-vitrun-qart (let ((commit "bf64b92db6b05651d6c25a3dabf2d543b360c0aa") From c73d6f1b9deaedfc2af78b8624e14f8b2a5a47aa Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:14:53 +0100 Subject: [PATCH 077/862] gnu: Add go-github-com-charmbracelet-log. * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-log): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I5458a03649545ae8aa2bdf4e0f70ccf4e0b6240a --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index dcee3861ef9..dc47542e107 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1713,6 +1713,36 @@ tools.") "Style definitions for nice terminal layouts. Built with TUIs in mind.") (license license:expat))) +(define-public go-github-com-charmbracelet-log + (package + (name "go-github-com-charmbracelet-log") + (version "0.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/log") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dljsz5h6pw9w396sy9na99c2pvi542b3r138lka7l0ifmzpxjw9")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/charmbracelet/log")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-charmbracelet-lipgloss + go-github-com-go-logfmt-logfmt + go-github-com-muesli-termenv + go-golang-org-x-exp)) + (home-page "https://github.com/charmbracelet/log") + (synopsis "Colorful Go logging library") + (description + "This package provides a minimal and colorful Go logging library.") + (license license:expat))) + (define-public go-github-com-charmbracelet-x-ansi (package (name "go-github-com-charmbracelet-x-ansi") From 240664cae175dbf039527d3440738f5014a7b634 Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:15:00 +0100 Subject: [PATCH 078/862] gnu: Add go-github-com-charmbracelet-x-windows. * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-windows): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I6e436897b6261b695f1347951a978d56373e8e56 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index dc47542e107..c691f8eecd1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1806,6 +1806,32 @@ ECMA-48} specs.") @end itemize") (license license:expat))) +(define-public go-github-com-charmbracelet-x-windows + (package + (name "go-github-com-charmbracelet-x-windows") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/x") + (commit (go-version->git-ref version + #:subdir "windows")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "011kkz7l7fqr3a4sslfipiyl6bq51md1rc7ayj73xm5ayscpm0r2")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/charmbracelet/x/windows" + #:unpack-path "github.com/charmbracelet/x")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/charmbracelet/x") + (synopsis "Windows API used at Charmbracelet") + (description + "This package provides the Windows API used at Charmbracelet.") + (license license:expat))) + (define-public go-github-com-charmbracelet-x-exp-golden (package (name "go-github-com-charmbracelet-x-exp-golden") From c87c0f8c0e837f742b835c8e9b550885e7886471 Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:15:01 +0100 Subject: [PATCH 079/862] gnu: Add go-github-com-charmbracelet-x-input. * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-input, go-github-com-charmbracelet-x-ansi-0.4.5): New variables. Change-Id: I523dbbf6ea5734fd88a9ca817bb31c26facf13dc Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c691f8eecd1..640a4e92354 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1773,6 +1773,61 @@ tools.") ECMA-48} specs.") (license license:expat))) +;; XXX: This is for making the package compatible with +;; go-github-com-charmbracelet-x-input, see +;; and +;; . +;; Remove when a new tag is placed. +(define go-github-com-charmbracelet-x-ansi-0.4.5 + (package + (inherit go-github-com-charmbracelet-x-ansi) + (name "go-github-com-charmbracelet-x-ansi") + (version "0.4.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/x") + (commit (go-version->git-ref version + #:subdir "ansi")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10ivngjp9ifm8b50pkxrwdzan6hn4s3l9fxi6wiqiwy6m2v41a0a")))))) + +(define-public go-github-com-charmbracelet-x-input + (package + (name "go-github-com-charmbracelet-x-input") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/x") + (commit (go-version->git-ref version + #:subdir "input")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sby6rvi04nga2iv823slsgydqlianfl6k3fgjvjzfyxd68lqxsp")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "ansi"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/charmbracelet/x/input" + #:unpack-path "github.com/charmbracelet/x")) + (propagated-inputs + (list go-github-com-charmbracelet-x-ansi-0.4.5 + go-github-com-erikgeiser-coninput + go-github-com-muesli-cancelreader + go-github-com-xo-terminfo + go-golang-org-x-sys)) + (home-page "https://github.com/charmbracelet/x") + (synopsis "Terminal event input handler and driver") + (description + "This package provides a terminal event input handler and driver.") + (license license:expat))) + (define-public go-github-com-charmbracelet-x-term (package (name "go-github-com-charmbracelet-x-term") From bab8435f76ca10b7039613c6e39df3d25bc96de5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 5 Dec 2024 22:21:43 +0000 Subject: [PATCH 080/862] gnu: go-github-com-charmbracelet-x-exp-golden: Sort. * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-exp-golden): Sort variable alphabetically. Change-Id: I5ebe17342f458589f3a1d490203d3a0bf84ac9e4 --- gnu/packages/golang-xyz.scm | 84 ++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 640a4e92354..a5147fb6573 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1794,6 +1794,48 @@ ECMA-48} specs.") (sha256 (base32 "10ivngjp9ifm8b50pkxrwdzan6hn4s3l9fxi6wiqiwy6m2v41a0a")))))) +(define-public go-github-com-charmbracelet-x-exp-golden + (package + (name "go-github-com-charmbracelet-x-exp-golden") + (version "0.0.0-20241121171228-5bc00623ea2f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/x") + (commit (go-version->git-ref version + #:subdir "exp/golden")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/charmbracelet/x/exp/golden" + #:unpack-path "github.com/charmbracelet/x/" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key import-path #:allow-other-keys) + ;; Tests need to write to that files. + (with-directory-excursion (string-append "src/" import-path) + (make-file-writable "testdata/TestRequireEqualUpdate.golden") + (make-file-writable "testdata/TestRequireEqualNoUpdate.golden")))) + (add-after 'check 'post-check + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + ;; Remove modified testdata just in case. + (delete-file-recursively "testdata"))))))) + (propagated-inputs + (list go-github-com-aymanbagabas-go-udiff)) + (home-page "https://github.com/charmbracelet/x") + (synopsis "Verify @code{.golden} file equality") + (description + "Golden files (@code{.golden}) contain the raw expected output of +tests,which can contain control codes and escape sequences. @code{golden} +package provides an API for comparing Golden files.") + (license license:expat))) + (define-public go-github-com-charmbracelet-x-input (package (name "go-github-com-charmbracelet-x-input") @@ -1887,48 +1929,6 @@ ECMA-48} specs.") "This package provides the Windows API used at Charmbracelet.") (license license:expat))) -(define-public go-github-com-charmbracelet-x-exp-golden - (package - (name "go-github-com-charmbracelet-x-exp-golden") - (version "0.0.0-20241121171228-5bc00623ea2f") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/charmbracelet/x") - (commit (go-version->git-ref version - #:subdir "exp/golden")))) - (file-name (git-file-name name version)) - (sha256 - (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/charmbracelet/x/exp/golden" - #:unpack-path "github.com/charmbracelet/x/" - #:phases - #~(modify-phases %standard-phases - (add-before 'check 'pre-check - (lambda* (#:key import-path #:allow-other-keys) - ;; Tests need to write to that files. - (with-directory-excursion (string-append "src/" import-path) - (make-file-writable "testdata/TestRequireEqualUpdate.golden") - (make-file-writable "testdata/TestRequireEqualNoUpdate.golden")))) - (add-after 'check 'post-check - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - ;; Remove modified testdata just in case. - (delete-file-recursively "testdata"))))))) - (propagated-inputs - (list go-github-com-aymanbagabas-go-udiff)) - (home-page "https://github.com/charmbracelet/x") - (synopsis "Verify @code{.golden} file equality") - (description - "Golden files (@code{.golden}) contain the raw expected output of -tests,which can contain control codes and escape sequences. @code{golden} -package provides an API for comparing Golden files.") - (license license:expat))) - (define-public go-github-com-cheggaaa-pb (package (name "go-github-com-cheggaaa-pb") From cbaf3601c8ca1015c73eda7b2b7e206843ae62a7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 5 Dec 2024 23:40:33 +0000 Subject: [PATCH 081/862] gnu: Add go-github-com-cli-browser. * gnu/packages/golang-xyz.scm (go-github-com-cli-browser): New variable. Change-Id: I31a7c0790c8f67805c5b5ee91b47c776ba26a4d9 --- gnu/packages/golang-web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index a00282d24e9..e9d0296ab9c 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -995,6 +995,32 @@ API. See the full Circonus API Documentation at @url{https://login.circonus.com/resources/api} for more information.") (license license:bsd-3))) +(define-public go-github-com-cli-browser + (package + (name "go-github-com-cli-browser") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cli/browser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1f54ap2a4df32bwrwqsasfsikkxngkk4wr2wfbsns4lf0yymra6k")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cli/browser")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/cli/browser") + (synopsis "Helpers to open URLs, files, or readers in a web browser") + (description + "Package browser provides helpers to open files, readers, and URLs in a +browser window.") + (license license:bsd-2))) + (define-public go-github-com-coder-websocket (package (name "go-github-com-coder-websocket") From 4cf6d0f134da039410955b4f5152f6fa5728c781 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 5 Dec 2024 23:36:34 +0000 Subject: [PATCH 082/862] gnu: Add packages/golang-vcs module. * gnu/packages/golang-vcs.scm: New file. * gnu/local.mk: Add gnu/packages/golang-vcs.scm to the scope. Change-Id: Ie318d25052d72e25ce9207dc890709f7321431b4 --- gnu/local.mk | 1 + gnu/packages/golang-vcs.scm | 43 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 gnu/packages/golang-vcs.scm diff --git a/gnu/local.mk b/gnu/local.mk index d4ebfbeb65e..c9ebb8814e5 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -342,6 +342,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/golang-compression.scm \ %D%/packages/golang-crypto.scm \ %D%/packages/golang-maths.scm \ + %D%/packages/golang-vcs.scm \ %D%/packages/golang-web.scm \ %D%/packages/golang-xyz.scm \ %D%/packages/gperf.scm \ diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm new file mode 100644 index 00000000000..1dd67125d52 --- /dev/null +++ b/gnu/packages/golang-vcs.scm @@ -0,0 +1,43 @@ +;;; GNU Guix --- Functional package management for GNU +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages golang-vcs) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system go) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (gnu packages)) + +;;; Commentary: +;;; +;;; Please: Try to add new module packages in alphabetic order. +;;; +;;; Code: + +;;; +;;; Libraries: +;;; + +;;; +;;; Executables: +;;; + +;;; +;;; Avoid adding new packages to the end of this file. To reduce the chances +;;; of a merge conflict, place them above in alphabetic order. +;;; From bbcd2074f06779a33874ea57d97c8590a68e92b6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 5 Dec 2024 23:49:41 +0000 Subject: [PATCH 083/862] gnu: Add go-github-com-xanzy-go-gitlab. * gnu/packages/golang-vcs.scm (go-github-com-xanzy-go-gitlab): New variable. Change-Id: Id59090f6642e01e223690b022e29e123a6bac03c --- gnu/packages/golang-vcs.scm | 38 ++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm index 1dd67125d52..b264b3ecaf1 100644 --- a/gnu/packages/golang-vcs.scm +++ b/gnu/packages/golang-vcs.scm @@ -1,4 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2024 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,7 +22,10 @@ #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) - #:use-module (gnu packages)) + #:use-module (gnu packages) + #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-web)) ;;; Commentary: ;;; @@ -33,6 +37,38 @@ ;;; Libraries: ;;; +(define-public go-github-com-xanzy-go-gitlab + (package + (name "go-github-com-xanzy-go-gitlab") + (version "0.114.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xanzy/go-gitlab") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "136iik1pqggdk2z3yz4wh5z05wp9sb6j1rpbf33bjn5djqxcxbbf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xanzy/go-gitlab")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-google-go-querystring + go-github-com-hashicorp-go-cleanhttp + go-github-com-hashicorp-go-retryablehttp + go-golang-org-x-oauth2 + go-golang-org-x-time)) + (home-page "https://github.com/xanzy/go-gitlab") + (synopsis "GitLab Go SDK") + (description + "This package provides a GitLab API client enabling Go programs to +interact with GitLab in a simple and uniform way.") + (license license:asl2.0))) + ;;; ;;; Executables: ;;; From 3dfbb54301097659daf7f35cc210ae161ac7b761 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 5 Dec 2024 23:58:35 +0000 Subject: [PATCH 084/862] gnu: go-github-com-alecthomas-kong: Update to 1.5.1. * gnu/packages/golang-xyz.scm (go-github-com-alecthomas-kong): Update to 1.5.1. Change-Id: I3d78b5682ff0c1f76318bc298e0b9a5dab91e6b5 --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a5147fb6573..40ebc1b4678 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -691,7 +691,7 @@ be stripped.") (define-public go-github-com-alecthomas-kong (package (name "go-github-com-alecthomas-kong") - (version "0.9.0") + (version "1.5.1") (source (origin (method git-fetch) @@ -700,7 +700,7 @@ be stripped.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0a9arf30h84ll8k612jh50c3vjmvdfj6i7dbvfnw3dalm6dn2aan")))) + (base32 "1b9yns6rgmxjb40rlm6v2pybi25my0760vvp6666vx5da7yg4dg9")))) (build-system go-build-system) (arguments (list From 5d7bd9feee84a236aad727366dec312d454ee797 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 5 Dec 2024 23:58:34 +0000 Subject: [PATCH 085/862] gnu: Add go-go-abhg-dev-komplete. * gnu/packages/golang-xyz.scm (go-go-abhg-dev-komplete): New variable. Change-Id: I75069767b85c2e859602efe3dc9fd693e3783293 --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 40ebc1b4678..66bf24194de 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8903,6 +8903,36 @@ provides Go APIs that allow you to easily embed a scripting language to your Go host programs.") (license license:expat))) +(define-public go-go-abhg-dev-komplete + (package + (name "go-go-abhg-dev-komplete") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/abhinav/komplete") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "060ns34mcf3a39vqairv52lkxiknrv6ghpyy0prliswfhw0hwy67")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:import-path "go.abhg.dev/komplete")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-alecthomas-kong + go-github-com-buildkite-shellwords)) + (home-page "https://go.abhg.dev/komplete") + (synopsis "Shell completion support for Kong CLI parser") + (description + "This package provides a command-line completion engine for the +@url{https://github.com/alecthomas/kong, Kong CLI parser}.") + (license license:bsd-3))) + (define-public go-go-etcd-io-bbolt (package (name "go-go-etcd-io-bbolt") From 6b572f4786f48716425b8e1a7bbe357e731f1f38 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 6 Dec 2024 00:13:26 +0000 Subject: [PATCH 086/862] gnu: Add go-gopkg-in-dnaeon-go-vcr-v4. * gnu/packages/golang-check.scm (go-gopkg-in-dnaeon-go-vcr-v4): New variable. Change-Id: I63a48e9e5c60f22f756d885bdd3ec247f6565394 --- gnu/packages/golang-check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 879f89f4e1c..bd7853d362f 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1385,6 +1385,34 @@ and replaying them in future runs in order to provide fast, deterministic and accurate testing of your code.") (license license:bsd-2))) +(define-public go-gopkg-in-dnaeon-go-vcr-v4 + (package + (inherit go-gopkg-in-dnaeon-go-vcr-v3) + (name "go-gopkg-in-dnaeon-go-vcr-v4") + (version "4.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gopkg.in/dnaeon/go-vcr.v4") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1p1a4hbk303k2bv9dmaf770dml71zr3260g5z7yd84vzhj8i0rzb")))) + (arguments + (list + #:import-path "gopkg.in/dnaeon/go-vcr.v4" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))))) + (define-public go-gopkg-in-go-playground-assert-v1 (package (name "go-gopkg-in-go-playground-assert-v1") From 8e68de2d3ae1fe9404f804c692bb0045a2c3c3a9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 6 Dec 2024 00:13:26 +0000 Subject: [PATCH 087/862] gnu: Add go-go-abhg-dev-testing-stub. * gnu/packages/golang-check.scm (go-go-abhg-dev-testing-stub): New variable. Change-Id: Idf937f7a27219af80a29748da89ea9fc5ddfa538 --- gnu/packages/golang-check.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index bd7853d362f..3d9a41df31a 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1227,6 +1227,30 @@ functions for writing tests in an @code{xUnit} style.") struct initialization.") (license license:bsd-3))) +(define-public go-go-abhg-dev-testing-stub + (package + (name "go-go-abhg-dev-testing-stub") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/abhinav/stub-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04by4hq9lhmz3ij2rdl053nr76l65q5w8w41khxgr5xak8s63yq6")))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.abhg.dev/testing/stub")) + (home-page "https://github.com/abhinav/stub-go/tree") + (synopsis "Trivial stubbing package for Go") + (description + "Package stub provides helper functions to replace global variables for testing, +and restore them afterwards.") + (license license:bsd-3))) + (define-public go-go-etcd-io-gofail (package (name "go-go-etcd-io-gofail") From 981601b2c15e8fce43515af80f90a7fe515b4509 Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Tue, 3 Dec 2024 14:15:07 +0100 Subject: [PATCH 088/862] gnu: Add git-spice. * gnu/packages/version-control.scm (git-spice): New variable. Change-Id: Id0936171caa586a98a3c500e6d669baa171f48da Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/version-control.scm | 122 +++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index fd01e191836..d61d2b13bda 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -59,6 +59,8 @@ ;;; Copyright © 2024 Javier Olaechea ;;; Copyright © 2024 Ashish SHUKLA ;;; Copyright © 2024 Wilko Meyer +;;; Copyright © 2024 Herman Rimm +;;; Copyright © 2024 Sharlatan Hellseher ;;; Copyright © 2025 Artyom V. Poptsov ;;; ;;; This file is part of GNU Guix. @@ -126,6 +128,7 @@ #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-crypto) + #:use-module (gnu packages golang-vcs) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages groff) @@ -980,6 +983,125 @@ the date of the most recent commit that modified them @end itemize") (license license:gpl3+))) +(define-public git-spice + (package + (name "git-spice") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/abhinav/git-spice") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1yvnd5a3ql905jrxh0sq9sdcfmyq38fsbqx0zbhxbd4rgs8hv5s3")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "go.abhg.dev/gs" + #:install-source? #f + #:test-flags + #~(list "-skip" + (string-join + ;; XXX: Tests failing with various reasons; requiring + ;; networking config or write access, or outbound access, check + ;; if some of them may be fixed. + (list "TestDeviceFlowAuthenticator" + "TestScript/auth_detect_forge" + "TestScript/auth_explicit_forge" + "TestScript/auth_insecure_storage" + "TestScript/auth_prompt_forge" + "TestScript/branch_split_reassign_submitted" + "TestScript/branch_submit_ambiguous_branch" + "TestScript/branch_submit_by_name" + "TestScript/branch_submit_config_no_publish" + "TestScript/branch_submit_create_update" + "TestScript/branch_submit_detect_existing" + "TestScript/branch_submit_detect_existing_conflict" + "TestScript/branch_submit_detect_existing_upstream_name" + "TestScript/branch_submit_force_push" + "TestScript/branch_submit_long_body" + "TestScript/branch_submit_many_upstream_names_taken" + "TestScript/branch_submit_multiple_commits" + "TestScript/branch_submit_multiple_pr_templates" + "TestScript/branch_submit_navigation_.*_out_multiple" + "TestScript/branch_submit_needs_restack" + "TestScript/branch_submit_no_editor" + "TestScript/branch_submit_no_publish" + "TestScript/branch_submit_pr_template" + "TestScript/branch_submit_pr_template_cache_invalidation" + "TestScript/branch_submit_pr_template_no_body" + "TestScript/branch_submit_pr_template_prompt" + "TestScript/branch_submit_recover_prepared" + "TestScript/branch_submit_remote_prompt" + "TestScript/branch_submit_rename" + "TestScript/branch_submit_rename_base" + "TestScript/branch_submit_update_pr_is_closed" + "TestScript/branch_submit_update_pr_is_merged" + "TestScript/branch_submit_upstream_name" + "TestScript/branch_submit_upstream_name_wrong_remote" + "TestScript/branch_submit_use_git_editor" + "TestScript/branch_submit_web" + "TestScript/branch_submit_web_opt_out" + "TestScript/downstack_submit" + "TestScript/issue369_branch_.*_case_insensitive" + "TestScript/issue369_branch_.*_remote_update" + "TestScript/issue398_repo_sync_many_merged" + "TestScript/repo_sync_after_merging_renamed_branch" + "TestScript/repo_sync_detached_head" + "TestScript/repo_sync_detect_externally_created_prs" + "TestScript/repo_sync_external_pr_head_mismatch" + "TestScript/repo_sync_manual_pull_merged_pr" + "TestScript/repo_sync_merged_pr" + "TestScript/repo_sync_remote_already_deleted" + "TestScript/repo_sync_restack" + "TestScript/repo_sync_trunk_dirty_tree" + "TestScript/repo_sync_trunk_no_prs" + "TestScript/repo_sync_unpushed_commits" + "TestScript/stack_submit" + "TestScript/stack_submit_update_leave_draft" + "TestScript/stack_submit_web" + "TestScript/upstack_submit_main") + "|")))) + (native-inputs + (list git-minimal ; for tests in testdata/scripts + go-github-com-alecthomas-kong + go-github-com-buildkite-shellwords + go-github-com-charmbracelet-bubbles + go-github-com-charmbracelet-bubbletea + go-github-com-charmbracelet-lipgloss + go-github-com-charmbracelet-log + go-github-com-cli-browser + go-github-com-creack-pty + go-github-com-dustin-go-humanize + go-github-com-mattn-go-isatty + go-github-com-rogpeppe-go-internal + go-github-com-sahilm-fuzzy + go-github-com-shurcool-githubv4 + go-github-com-stretchr-testify + go-github-com-tidwall-gjson + go-github-com-vito-midterm + go-github-com-xanzy-go-gitlab + go-github-com-zalando-go-keyring + go-go-abhg-dev-komplete + go-go-abhg-dev-requiredfield + go-go-abhg-dev-testing-stub + go-go-uber-org-mock + go-golang-org-x-oauth2 + go-gopkg-in-dnaeon-go-vcr-v4 + go-gopkg-in-yaml-v3 + go-pgregory-net-rapid)) + (home-page "https://go.abhg.dev/gs") + (synopsis "Manage stacks of Git branches") + (description + "git-spice (@code{gs}) is a command line tool for stacking Git branches, +a collection of branches expecting the trunk has a base branch. It manages +and navigates stacks of branches, conveniently modifies and rebases them also +provides an integration with GitHub and GitLab.") + (license license:gpl3))) + (define-public got (package (name "got") From 79ede518d81fd6e99db0a87dd6a5a50a8e782262 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 10 Dec 2024 21:39:56 +0000 Subject: [PATCH 089/862] gnu: Add go-software-sslmate-com-src-go-pkcs12. * gnu/packages/golang-crypto.scm (go-software-sslmate-com-src-go-pkcs12): New variable. Change-Id: I54dabe976a94c2191c3805e1751ea612822b1783 --- gnu/packages/golang-crypto.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index b1940583d49..5f9a94247f2 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1807,6 +1807,35 @@ contains AVX-512 and AVX2 routines (generated by avo) that greatly increase performance for large inputs and outputs.") (license license:expat))) +(define-public go-software-sslmate-com-src-go-pkcs12 + (package + (name "go-software-sslmate-com-src-go-pkcs12") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SSLMate/go-pkcs12") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0bmkv9nxflgr5sbizpm737rbarmi8iyxny6pwdmqk0jzrg5ppd85")))) + (build-system go-build-system) + (arguments + (list + #:import-path "software.sslmate.com/src/go-pkcs12")) + (propagated-inputs + (list go-golang-org-x-crypto)) + (home-page "https://github.com/SSLMate/go-pkcs12") + (synopsis "Encoding and decoding PKCS#12 files") + (description + "Package pkcs12 implements some of PKCS#12 (also known as P12 or PFX). +It is intended for decoding DER-encoded P12/PFX files for use with the +@code{crypto/tls} package, and for encoding P12/PFX files for use by legacy +applications which do not support newer formats. Since PKCS#12 uses weak +encryption primitives, it SHOULD NOT be used for new applications.") + (license license:bsd-3))) + (define-public go-torproject-org-pluggable-transports-goptlib (package (name "go-torproject-org-pluggable-transports-goptlib") From f363abc15d16153bc507481822ccb2195b0ae94d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 10 Dec 2024 21:56:11 +0000 Subject: [PATCH 090/862] gnu: Add go-github-com-tetratelabs-wabin. * gnu/packages/golang-web.scm (go-github-com-tetratelabs-wabin): New variable. Change-Id: I9f0d88de247d6f1843c00019d02f578e09147c93 --- gnu/packages/golang-web.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e9d0296ab9c..16e6682afac 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5833,6 +5833,41 @@ an interface to implement any other minifier.") "This package contains several lexers and parsers written in Go.") (license license:expat))) +(define-public go-github-com-tetratelabs-wabin + (package + (name "go-github-com-tetratelabs-wabin") + (version "0.0.0-20230304001439-f6f874872834") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tetratelabs/wabin") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "195bh4n2ba3rbgzcb1h7zi93dr0k38qxhg8m0laa0z41vl9i0igm")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/tetratelabs/wabin" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (delete 'build) + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/tetratelabs/wabin") + (synopsis "WebAssembly Binary Format in Go") + (description + "This package provides @code{WebAssembly} a @code{WebAssembly} data model +and binary encoder.") + (license license:asl2.0))) + (define-public go-github-com-tv42-httpunix (let ((commit "2ba4b9c3382c77e7b9ea89d00746e6111d142a22") (revision "0")) From b7997a58d789159cbb11a59c6737a730144acf82 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 10 Dec 2024 22:13:53 +0000 Subject: [PATCH 091/862] gnu: Add protoc-gen-go. * gnu/packages/golang-build.scm (protoc-gen-go): New variable. Change-Id: I09bf1a7a4d42aab8787acb5476cebb00aad0bb40 --- gnu/packages/golang-build.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 51801e8ea96..4a87a4b61a4 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1108,6 +1108,18 @@ improved and cleaner API.") #:import-path "golang.org/x/vuln/cmd/govulncheck" #:unpack-path "golang.org/x/vuln")))) +(define-public protoc-gen-go + (package + (inherit go-github-com-golang-protobuf) + (name "protoc-gen-go") + (arguments + (list + #:tests? #f + #:install-source? #f + #:import-path "github.com/golang/protobuf/protoc-gen-go" + #:unpack-path "github.com/golang/protobuf")) + (synopsis "Protoc plugin to generate a Go protocol buffer package"))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar From 19e4de2e1ba086ca54fbb599edd3bb8ecce910d1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 10 Dec 2024 22:17:55 +0000 Subject: [PATCH 092/862] gnu: Add go-github-com-iancoleman-strcase. * gnu/packages/golang-xyz.scm (go-github-com-iancoleman-strcase): New variable. Change-Id: I9795c3941c4dc7a693baefeaa1c400a296847ef5 --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 66bf24194de..571392e7dca 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4564,6 +4564,29 @@ the C++ ABI defined at https://codesourcery.com/cxx-abi/ and the ABI}.") (license license:bsd-3))) +(define-public go-github-com-iancoleman-strcase + (package + (name "go-github-com-iancoleman-strcase") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/iancoleman/strcase") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "169fb56kiif2gq92b7hvh9xgl2n8kjmdg4gqaa1492kb97ia8lwm")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/iancoleman/strcase")) + (home-page "https://github.com/iancoleman/strcase") + (synopsis "Converting to snake_case or CamelCase") + (description + "Package strcase converts strings to various cases.") + (license license:expat))) + (define-public go-github-com-itchyny-timefmt-go (package (name "go-github-com-itchyny-timefmt-go") From 425ba20f11cedf0881ceabaac56671f95bf1fbe2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 10 Dec 2024 22:32:59 +0000 Subject: [PATCH 093/862] gnu: Add go-github-com-tetratelabs-wazero. * gnu/packages/golang-web.scm (go-github-com-tetratelabs-wazero): New variable. Change-Id: I2ee9e92b2a358afa661d690d5def1767ffd6727a --- gnu/packages/golang-web.scm | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 16e6682afac..e9f1e448631 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5868,6 +5868,60 @@ an interface to implement any other minifier.") and binary encoder.") (license license:asl2.0))) +(define-public go-github-com-tetratelabs-wazero + (package + (name "go-github-com-tetratelabs-wazero") + (version "1.8.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tetratelabs/wazero") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xchvrkp6m729x3jknj3qwms4w2b2q8kcwyxhkmagms43yg4ykm5")) + (modules '((guix build utils))) + (snippet + #~(begin + (for-each delete-file-recursively + (list + ;; This directory holds the wazero site's source code. + "site" + ;; Windows related MSI packaging files. + "packaging")))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/tetratelabs/wazero" + #:test-flags + #~(list "-skip" (string-join + (list "TestHugePageConfigs" + "TestRun" + "TestRun/3_1" + "Test_cli" + "Test_cli/cargo-wasi" + "Test_cli/cargo-wasi/test.txt" + "Test_cli/cargo-wasi/testcases/test.txt" + "Test_cli/tinygo" + "Test_cli/tinygo/test.txt" + "Test_cli/tinygo/testcases/test.txt" + "Test_cli/zig" + "Test_cli/zig-cc" + "Test_cli/zig-cc/test.txt" + "Test_cli/zig-cc/testcases/test.txt" + "Test_cli/zig/test.txt") + "|")))) + (home-page "https://github.com/tetratelabs/wazero") + (synopsis "Zero dependency WebAssembly runtime for Go") + (description + "wazero is a WebAssembly Core Specification +@url{https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/,1.0} and +@code{https://www.w3.org/TR/2022/WD-wasm-core-2-20220419/,2.0} compliant +runtime. It has zero dependencies, and doesn't rely on CGO. This means you +can run applications in other languages and still keep cross compilation.") + (license license:asl2.0))) + (define-public go-github-com-tv42-httpunix (let ((commit "2ba4b9c3382c77e7b9ea89d00746e6111d142a22") (revision "0")) From 17d01ebd4d18c239b681964e2e372bd282c4978e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 10 Dec 2024 23:00:03 +0000 Subject: [PATCH 094/862] gnu: Add go-github-com-ceramicnetwork-go-dag-jose. * gnu/packages/ipfs.scm (go-github-com-ceramicnetwork-go-dag-jose): New variable. Change-Id: I5be5496f318cdcf209326fe3e5ff9584034d7477 --- gnu/packages/ipfs.scm | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 349517e878c..e306b803995 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -43,6 +43,56 @@ #:use-module (gnu packages shells) #:use-module (gnu packages specifications)) +(define-public go-github-com-ceramicnetwork-go-dag-jose + (package + (name "go-github-com-ceramicnetwork-go-dag-jose") + (version "0.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ceramicnetwork/go-dag-jose") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g34dwlnq07zg176bdhp2hcg1hg5l55s0a6hk4kiq37vm01w68j7")) + (snippet + #~(begin (use-modules (guix build utils)) + ;; Delete git submodule. + (delete-file-recursively ".ipld"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ceramicnetwork/go-dag-jose" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (native-inputs + (list go-github-com-stretchr-testify + go-github-com-frankban-quicktest + go-github-com-warpfork-go-testmark)) + (propagated-inputs + (list go-github-com-go-jose-go-jose-v4 + go-github-com-ipfs-go-cid + go-github-com-ipld-go-ipld-prime + go-github-com-multiformats-go-multibase + go-github-com-multiformats-go-multihash + go-golang-org-x-crypto + go-pgregory-net-rapid)) + (home-page "https://github.com/ceramicnetwork/go-dag-jose") + (synopsis "Implementation of the IPLD dag-jose codec") + (description + "This is an implementation of the IPLD +@@url{https://ipld.io/specs/codecs/dag-jose/spec/,dag-jose codec}.") + (license license:expat))) + (define-public go-github-com-ipfs-bbloom (package (name "go-github-com-ipfs-bbloom") From a52b13e167c3d12002da1c890fe9d992f849f718 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 10 Dec 2024 23:05:27 +0000 Subject: [PATCH 095/862] gnu: kubo: Undundle more packages. * gnu/packages/ipfs.scm (kubo) [source]: Delete "vendor/github.com/ceramicnetwork". [inputs]: Remove go-gopkg-in-square-go-jose-v2, add go-github-com-ceramicnetwork-go-dag-jose. Change-Id: I70f0db456a5685c533fa82f5ca31891905cbd592 --- gnu/packages/ipfs.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index e306b803995..9b5c3820fe9 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -1006,6 +1006,7 @@ types.") "vendor/github.com/beorn7" "vendor/github.com/blang" "vendor/github.com/cenkalti" + "vendor/github.com/ceramicnetwork" "vendor/github.com/cespare" "vendor/github.com/cheggaaa" "vendor/github.com/containerd" @@ -1136,7 +1137,7 @@ types.") go-github-com-benbjohnson-clock go-github-com-blang-semver-v4 go-github-com-cenkalti-backoff-v4 - ;;go-github-com-ceramicnetwork-go-dag-jose + go-github-com-ceramicnetwork-go-dag-jose go-github-com-cheggaaa-pb go-github-com-coreos-go-systemd-v22 go-github-com-dustin-go-humanize @@ -1251,7 +1252,6 @@ types.") go-golang-org-x-oauth2 ; github.com/ipfs/boxo go-golang-org-x-term ; github.com/ipfs/go-ipfs-cmds go-golang-org-x-xerrors ; github.com/whyrusleeping/cbor-gen - go-gopkg-in-square-go-jose-v2 ; github.com/ceramicnetwork/go-dag-jose )) (native-inputs (append (if (%current-target-system) From 60d9d03158ea531dc30346cd692ab9776a9a387b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 10 Dec 2024 23:12:24 +0000 Subject: [PATCH 096/862] gnu: Add go-github-com-antihax-optional. * gnu/packages/golang-xyz.scm (go-github-com-antihax-optional): New variable. Change-Id: Ieff78f711d339c1a8297bed3ec29b85c9eb994c0 --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 571392e7dca..1c3dbc21303 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -907,6 +907,29 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.") commands.") (license license:expat))) +(define-public go-github-com-antihax-optional + (package + (name "go-github-com-antihax-optional") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/antihax/optional") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ix08vl49qxr58rc6201cl97g1yznhhkwvqldslawind99js4rj0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/antihax/optional")) + (home-page "https://github.com/antihax/optional") + (synopsis "Optional parameters for Golang") + (description + "This package implements optimal parameters for data-types.") + (license license:expat))) + (define-public go-github-com-arceliar-phony (package (name "go-github-com-arceliar-phony") From f33d79402086e940b2fb7d8a2b4da4cb3981719e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 2 Dec 2024 23:07:17 +0000 Subject: [PATCH 097/862] build: go-build-system: Relax build verbosity. During the build phase "-x" option forces go compiler to generate quite a noisy build log which does not help too much when the build is failed. This change makes it optional and governed by #:verbosity key passed to `build' procedure. * guix/build/go-build-system.scm (build): Provide a link to online example. Consolidate options in GOFLAGS environment variable, make "-x" optional. Add description for "-trimpath" option. Change-Id: Icf1b03eb79db8a6f79f86f3cc212a53de5aa7c1c --- guix/build/go-build-system.scm | 39 ++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm index e53d8cb53c5..d998c322f20 100644 --- a/guix/build/go-build-system.scm +++ b/guix/build/go-build-system.scm @@ -283,23 +283,44 @@ unpacking." (_ #f)) inputs)))) -(define* (build #:key import-path build-flags (parallel-build? #t) +(define* (build #:key + build-flags + import-path + (parallel-build? #t) + (verbosity 1) #:allow-other-keys) "Build the package named by IMPORT-PATH." - (let* ((njobs (if parallel-build? (parallel-job-count) 1))) + (let* ((njobs (if parallel-build? (parallel-job-count) 1)) + ;; Utilizing GOFLAGS for flexible build options passthrough, refer + ;; for more examples to online documentation of Golang + ;; . + (goflags (string-join + (list + ;; Print the name of packages (pathes) as they are compiled. + "-v" + ;; Print each command as it is invoked. When enabled, it + ;; generates a lot of noisy logs which makes identifying + ;; build failures harder to determine. + (if (> verbosity 1) "-x" "")) + " "))) + (setenv "GOFLAGS" goflags) (setenv "GOMAXPROCS" (number->string njobs))) (with-throw-handler #t (lambda _ (apply invoke "go" "install" - "-v" ; print the name of packages as they are compiled - "-x" ; print each command as it is invoked - ;; Respectively, strip the symbol table and debug - ;; information, and the DWARF symbol table. - "-ldflags=-s -w" - "-trimpath" - `(,@build-flags ,import-path))) + ;; Respectively, strip the symbol table and debug information, + ;; and the DWARF symbol table. + "-ldflags=-s -w" + ;; Remove all file system paths from the resulting executable. + ;; Instead of absolute file system paths, the recorded file names + ;; will begin either a module path@version (when using modules), + ;; or a plain import path (when using the standard library, or + ;; GOPATH). + "-trimpath" + `(,@build-flags ,import-path))) + (lambda (key . args) (display (string-append "Building '" import-path "' failed.\n" "Here are the results of `go env`:\n")) From 1e4a22c4d7a03ec8614b02f0878bc38b6ba54580 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 3 Dec 2024 00:37:46 +0000 Subject: [PATCH 098/862] build-system/go: Add test-subdirs option key. Golang projects may contain subdirectories with test files, which can't be reached by providing just IMPORT-PATH to the test runner. This change implements a TEST-SUBDIRS key parameter which is by default set to "import-path/..." to run all available tests in the project, and may be limited to particular subdirs list. * guix/build-system/go.scm (go-build, go-cross-build): Add "test-subdirs" key parameter. * guix/build/go-build-system.scm (check): Add "test-subdirs" key parameter and adjust test invokation accordingly. Change-Id: Ibc107deea060f0d71e6f4e1e37c81d3b7c9992f5 --- guix/build-system/go.scm | 4 ++++ guix/build/go-build-system.scm | 18 ++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm index 97581a14c61..66cb5e8b05f 100644 --- a/guix/build-system/go.scm +++ b/guix/build-system/go.scm @@ -205,6 +205,7 @@ commit hash and its date rather than a proper release tag." (build-flags ''()) (tests? #t) (test-flags ''()) + (test-subdirs ''("...")) (parallel-build? #t) (parallel-tests? #t) (allow-go-reference? #f) @@ -239,6 +240,7 @@ commit hash and its date rather than a proper release tag." #:build-flags #$build-flags #:tests? #$tests? #:test-flags #$test-flags + #:test-subdirs #$test-subdirs #:parallel-build? #$parallel-build? #:parallel-tests? #$parallel-tests? #:allow-go-reference? #$allow-go-reference? @@ -264,6 +266,7 @@ commit hash and its date rather than a proper release tag." (build-flags ''()) (tests? #f) ; nothing can be done (test-flags ''()) + (test-subdirs ''("...")) (allow-go-reference? #f) (system (%current-system)) (goarch (first (go-target target))) @@ -316,6 +319,7 @@ commit hash and its date rather than a proper release tag." #:build-flags #$build-flags #:tests? #$tests? #:test-flags #$test-flags + #:test-subdirs #$test-subdirs #:make-dynamic-linker-cache? #f ;cross-compiling #:allow-go-reference? #$allow-go-reference? #:inputs %build-inputs)))) diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm index d998c322f20..fd903357105 100644 --- a/guix/build/go-build-system.scm +++ b/guix/build/go-build-system.scm @@ -98,6 +98,10 @@ ;; * Remove module packages, only offering the full Git repos? This is ;; more idiomatic, I think, because Go downloads Git repos, not modules. ;; What are the trade-offs? +;; * Figurie out how to passthrough --verbosity option to "build" and "check" +;; procedures. +;; * Implement test-backend option, which would be similar to pyproject's +;; one, allowing to provide custom test runner. ;; ;; [0] `go build`: ;; https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies @@ -326,13 +330,23 @@ unpacking." "Here are the results of `go env`:\n")) (invoke "go" "env")))) -(define* (check #:key tests? import-path test-flags (parallel-tests? #t) +(define* (check #:key + tests? + import-path + test-flags + test-subdirs + (parallel-tests? #t) #:allow-other-keys) "Run the tests for the package named by IMPORT-PATH." (when tests? (let* ((njobs (if parallel-tests? (parallel-job-count) 1))) (setenv "GOMAXPROCS" (number->string njobs))) - (apply invoke "go" "test" `(,import-path ,@test-flags))) + (apply invoke "go" "test" + `(,@(map (lambda (dir) + (format #f "~a~:[/~;~]~a" + import-path (string-null? dir) dir)) + test-subdirs) + ,@test-flags))) #t) (define* (install #:key install-source? outputs import-path unpack-path #:allow-other-keys) From c149fc769c65fce67d46a6c77fdfd6e269824cb0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 18:13:35 +0000 Subject: [PATCH 099/862] build-system/go: Add skip-build? option key. Golang project's root may miss any .go files which makes build phase to fail with error similar to: no Go files in /tmp/<...>/src/golang.org/x/mod This change implements a SKIP-BUILD? key parameter which is, by default, set to #f to invoke build procedure. It is taken from cargo-build-system * guix/build-system/go.scm (go-build, go-cross-build): Add "skip-build?" key parameter. * guix/build/go-build-system.scm (build): Add "skip-build?" key parameter and implement logic. Change-Id: I3f41414868a7329cbe99324106427cdae4884d94 --- guix/build-system/go.scm | 4 ++++ guix/build/go-build-system.scm | 29 +++++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm index 66cb5e8b05f..1a4d090fa97 100644 --- a/guix/build-system/go.scm +++ b/guix/build-system/go.scm @@ -203,6 +203,7 @@ commit hash and its date rather than a proper release tag." (import-path "") (unpack-path "") (build-flags ''()) + (skip-build? #f) (tests? #t) (test-flags ''()) (test-subdirs ''("...")) @@ -238,6 +239,7 @@ commit hash and its date rather than a proper release tag." #:import-path #$import-path #:unpack-path #$unpack-path #:build-flags #$build-flags + #:skip-build? #$skip-build? #:tests? #$tests? #:test-flags #$test-flags #:test-subdirs #$test-subdirs @@ -264,6 +266,7 @@ commit hash and its date rather than a proper release tag." (import-path "") (unpack-path "") (build-flags ''()) + (skip-build? #f) (tests? #f) ; nothing can be done (test-flags ''()) (test-subdirs ''("...")) @@ -317,6 +320,7 @@ commit hash and its date rather than a proper release tag." #:import-path #$import-path #:unpack-path #$unpack-path #:build-flags #$build-flags + #:skip-build? #$skip-build? #:tests? #$tests? #:test-flags #$test-flags #:test-subdirs #$test-subdirs diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm index fd903357105..70ff880db89 100644 --- a/guix/build/go-build-system.scm +++ b/guix/build/go-build-system.scm @@ -289,6 +289,7 @@ unpacking." (define* (build #:key build-flags + skip-build? import-path (parallel-build? #t) (verbosity 1) @@ -311,19 +312,23 @@ unpacking." (setenv "GOMAXPROCS" (number->string njobs))) (with-throw-handler - #t + #t (lambda _ - (apply invoke "go" "install" - ;; Respectively, strip the symbol table and debug information, - ;; and the DWARF symbol table. - "-ldflags=-s -w" - ;; Remove all file system paths from the resulting executable. - ;; Instead of absolute file system paths, the recorded file names - ;; will begin either a module path@version (when using modules), - ;; or a plain import path (when using the standard library, or - ;; GOPATH). - "-trimpath" - `(,@build-flags ,import-path))) + (if skip-build? + (begin + (format #t "Build is skipped, no go files in project's root.~%") + #t) + (apply invoke "go" "install" + ;; Respectively, strip the symbol table and debug + ;; information, and the DWARF symbol table. + "-ldflags=-s -w" + ;; Remove all file system paths from the resulting + ;; executable. Instead of absolute file system paths, the + ;; recorded file names will begin either a module + ;; path@version (when using modules), or a plain import path + ;; (when using the standard library, or GOPATH). + "-trimpath" + `(,@build-flags ,import-path)))) (lambda (key . args) (display (string-append "Building '" import-path "' failed.\n" From ece4daf5fd8b087f077a4a65e831f8df9ef11518 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 12:06:00 +0000 Subject: [PATCH 100/862] gnu: go-golang-org-x-lint: Update to 0.0.0-20241112194109-818c5a804067. * gnu/packages/golang-check.scm (go-golang-org-x-lint): Update to 0.0.0-20241112194109-818c5a804067. Change-Id: I397b4ad6e0483197165a23905128d128fd80d74c --- gnu/packages/golang-check.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 3d9a41df31a..7c2b65fec98 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1313,20 +1313,18 @@ real database connection.") (license license:expat))) (define-public go-golang-org-x-lint - (let ((commit "83fdc39ff7b56453e3793356bcff3070b9b96445") - (revision "0")) (package (name "go-golang-org-x-lint") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20241112194109-818c5a804067") (source (origin (method git-fetch) (uri (git-reference (url "https://go.googlesource.com/lint") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0ms3rs5hvpnm9bxbr5f9743i7hn2bbmqdmvzxq6nmi0f24ypv1l3")))) + (base32 "06ni2jpd3s5bzg2qrry58svakkg9k43gkgkrbk8f8x886qnhnimp")))) (build-system go-build-system) (arguments '(#:import-path "golang.org/x/lint" @@ -1338,7 +1336,7 @@ real database connection.") (description "This is a linter for Go source code. Unlike gofmt, it doesn't reformat the source code, it only prints out style mistakes.") - (license license:bsd-3)))) + (license license:bsd-3))) ;; XXX: Unmaintained since 2020, see ;; . From 6179e9dda0f4b3ff6ed7ab805486d71e9e588880 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 12:06:17 +0000 Subject: [PATCH 101/862] gnu: go-golang-org-x-lint: Fix indentation. * gnu/packages/golang-check.scm (go-golang-org-x-lint): Fix indentation. Change-Id: I3ec261699ee31b5b8ab0dda90d5da6f9fe87a923 --- gnu/packages/golang-check.scm | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 7c2b65fec98..58c7cb33a96 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1313,30 +1313,30 @@ real database connection.") (license license:expat))) (define-public go-golang-org-x-lint - (package - (name "go-golang-org-x-lint") - (version "0.0.0-20241112194109-818c5a804067") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/lint") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "06ni2jpd3s5bzg2qrry58svakkg9k43gkgkrbk8f8x886qnhnimp")))) - (build-system go-build-system) - (arguments - '(#:import-path "golang.org/x/lint" - #:tests? #f)) ;; TODO: Fix tests - (propagated-inputs - (list go-golang-org-x-tools)) - (home-page "https://golang.org/x/lint") - (synopsis "Linter for Go source code") - (description - "This is a linter for Go source code. Unlike gofmt, it doesn't -reformat the source code, it only prints out style mistakes.") - (license license:bsd-3))) + (package + (name "go-golang-org-x-lint") + (version "0.0.0-20241112194109-818c5a804067") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/lint") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06ni2jpd3s5bzg2qrry58svakkg9k43gkgkrbk8f8x886qnhnimp")))) + (build-system go-build-system) + (arguments + '(#:import-path "golang.org/x/lint" + #:tests? #f)) ;; TODO: Fix tests + (propagated-inputs + (list go-golang-org-x-tools)) + (home-page "https://golang.org/x/lint") + (synopsis "Linter for Go source code") + (description + "This is a linter for Go source code. Unlike gofmt, it doesn't reformat +the source code, it only prints out style mistakes.") + (license license:bsd-3))) ;; XXX: Unmaintained since 2020, see ;; . From 1692284a8f9d2a1e4728a2486979a34ed595835b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 12:07:45 +0000 Subject: [PATCH 102/862] gnu: go-golang-org-x-lint: Enable tests. * gnu/packages/golang-check.scm (go-golang-org-x-lint) [arguments]: Enable them. Change-Id: Ib5d30153c0f25e3420499b7860c87b47b7ecbfa5 --- gnu/packages/golang-check.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 58c7cb33a96..f05f85ca814 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1327,8 +1327,8 @@ real database connection.") (base32 "06ni2jpd3s5bzg2qrry58svakkg9k43gkgkrbk8f8x886qnhnimp")))) (build-system go-build-system) (arguments - '(#:import-path "golang.org/x/lint" - #:tests? #f)) ;; TODO: Fix tests + (list + #:import-path "golang.org/x/lint")) (propagated-inputs (list go-golang-org-x-tools)) (home-page "https://golang.org/x/lint") From 55b93f7e17ec36c28e8a4faa36793bcd5421f2c3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 13:56:40 +0000 Subject: [PATCH 103/862] gnu: Add go-github-com-goccmack-gocc. * gnu/packages/golang-build.scm (go-github-com-goccmack-gocc): New variable. Change-Id: Ia81fe771b6acd086d5ecfc194f6f02cd44b7b6dc --- gnu/packages/golang-build.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 4a87a4b61a4..bb927837750 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -59,6 +59,37 @@ ;;; ;;; Code: +(define-public go-github-com-goccmack-gocc + (package + (name "go-github-com-goccmack-gocc") + (version "0.0.0-20230228185258-2292f9e40198") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/goccmack/gocc") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ah1z1bmn9y9sbh2z1jxsjgsrv1rfrzzzi4c4nq646z2n25c2x8s")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/goccmack/gocc" + ;; Test requiring gocc in PATH. + #:test-flags #~(list "-skip" "TestEmptyKeyword"))) + (propagated-inputs + (list go-golang-org-x-mod)) + (home-page "https://github.com/goccmack/gocc") + (synopsis "Parser/Scanner Generator") + (description + "Gocc is a compiler kit for Go written in Go. Gocc generates lexers and +parsers or stand-alone DFAs or parsers from a BNF. Lexers are DFAs, which +recognise regular languages. Gocc lexers accept UTF-8 input. Gocc parsers are +PDAs, which recognise LR-1 languages. Optional LR1 conflict handling +automatically resolves shift / reduce and reduce / reduce conflicts.") + (license license:asl2.0))) + (define-public go-github-com-golang-glog (package (name "go-github-com-golang-glog") From 1b7aa9e12007c388bbc1e686cddd5ae2e90335e0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 13:56:33 +0000 Subject: [PATCH 104/862] gnu: Add go-gonum-org-v1-gonum. * gnu/packages/golang-maths.scm: Add golang-build module. (go-gonum-org-v1-gonum): New variable. Change-Id: I09da7049d1d7905380f2515c63d7949a44c75748 --- gnu/packages/golang-maths.scm | 55 ++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index cf783226ead..02211bca7de 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -23,7 +23,8 @@ #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) - #:use-module (gnu packages)) + #:use-module (gnu packages) + #:use-module (gnu packages golang-build)) ;;; Commentary: ;;; @@ -116,6 +117,58 @@ rounding for conversions. IEEE 754-2008 refers to this 16-bit floating-point format as binary16.") (license license:expat))) +(define-public go-gonum-org-v1-gonum + (package + (name "go-gonum-org-v1-gonum") + (version "0.15.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gonum/gonum") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "002qsavnylj8l4ki56narpn3zm0r9p7p8ccgd20q1xp751wg2kvp")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gonum.org/v1/gonum" + #:test-subdirs + #~(list "." + "blas/..." + "cmplxs/..." + "diff/..." + "dsp/fourier/..." + "floats/..." + "integrate/..." + "internal/..." + "interp/..." + "lapack/..." + "mat/..." + "mathext/..." + "num/..." + "optimize/..." + "spatial/..." + "stat/..." + "uniti/..."))) + (propagated-inputs + (list go-github-com-goccmack-gocc + go-github-com-google-go-cmp + go-golang-org-x-exp + go-golang-org-x-tools + #;go-gonum-org-v1-plot ; not packed yet + )) + (home-page "https://www.gonum.org/") + (synopsis "Set of numeric libraries for Golang") + (description + "Gonum is a set of packages designed to make writing numerical and +scientific algorithms productive, performant, and scalable. It provides +libraries for matrices and linear algebra; statistics, probability +distributions, and sampling; tools for function differentiation,integration, +and optimization; network creation and analysis") + (license license:expat))) + ;;; ;;; Executables: ;;; From cddd6bb20c943065f01e53a77fbb6f480ebd27e6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 13:56:39 +0000 Subject: [PATCH 105/862] gnu: Add go-github-com-aclements-go-moremath. * gnu/packages/golang-maths.scm (go-github-com-aclements-go-moremath): New variable. Change-Id: I8a291cba373d60710b2dc4c8f242d3a80c25f512 --- gnu/packages/golang-maths.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index 02211bca7de..999dee0a52c 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -36,6 +36,38 @@ ;;; Libraries: ;;; +(define-public go-github-com-aclements-go-moremath + (package + (name "go-github-com-aclements-go-moremath") + (version "0.0.0-20241023150245-c8bbc672ef66") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aclements/go-moremath") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01c9fkjs6gx7z6qkzy9qld7q3jhi9vgqhk8ymqck3ccmhg9bh1nq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/aclements/go-moremath" + #:phases + #~(modify-phases %standard-phases + ;; No Go files in project root. + (delete 'build)))) + (propagated-inputs + (list go-gonum-org-v1-gonum)) + (home-page "https://github.com/aclements/go-moremath") + (synopsis "Assortment of more specialized math routines for Golang") + (description + "These packages provide more specialized math routines than are available +in the standard Go @code{math} package. go-moremath currently focuses on +statistical routines, with particular focus on high-quality implementations +and APIs for non-parametric methods.") + (license license:bsd-3))) + (define-public go-github-com-montanaflynn-stats (package (name "go-github-com-montanaflynn-stats") From 3416a5164a70253aba7655c37c4cd05a51cd75fc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 14:41:29 +0000 Subject: [PATCH 106/862] gnu: go-github-com-go-sql-driver-mysql: Enable tests. * gnu/packages/golang.scm (go-github-com-go-sql-driver-mysql) [arguments]: Skip some failing tests requiring networking setup. Change-Id: I53592dfee76a0239b12ae1da26ab2662da781fb4 --- gnu/packages/golang.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 34e31642629..df0ab2a7013 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4372,8 +4372,15 @@ have super fancy logs.") "0ihdqg411gkv454fwx8w5nbndgkm5dz5phfliksxgmhggyxxm7sn")))) (build-system go-build-system) (arguments - '(#:tests? #f ;; tests require a network connection - #:import-path "github.com/go-sql-driver/mysql")) + (list + #:import-path "github.com/go-sql-driver/mysql" + #:test-flags + #~(list "-skip" (string-join + (list "TestConnectorReturnsTimeout" + "TestErrorInMultiResult" + "TestDSNReformat/user:p" + "FuzzFormatDSN/seed#8") + "|")))) (propagated-inputs (list go-filippo-io-edwards25519)) (home-page "https://github.com/go-sql-driver/mysql") From f10be196b90fa5b4203c76e69da728945cbef081 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 14:46:09 +0000 Subject: [PATCH 107/862] gnu: go-github-com-go-sql-driver-mysql: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-go-sql-driver-mysql): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I228b8d4e69d3914ad6f811414cd63ccca7e3831d --- gnu/packages/golang-xyz.scm | 36 +++++++++++++++++++++++++++++++++++- gnu/packages/golang.scm | 34 ---------------------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1c3dbc21303..377e63ed88d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2021 Ricardo Wurmus ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Stefan Reichör +;;; Copyright © 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 raingloom ;;; Copyright © 2021, 2023, 2024 Sharlatan Hellseher ;;; Copyright © 2022 (unmatched-parenthesis @@ -48,10 +49,10 @@ ;;; Copyright © 2024 Jean Simard ;;; Copyright © 2024 Jesse Eisses ;;; Copyright © 2024 Luis Higino +;;; Copyright © 2024 Simen Endsjø ;;; Copyright © 2024 Spencer Peters ;;; Copyright © 2024 Troy Figiel ;;; Copyright © 2024 gemmaro -;;; Copyright © 2024 Simen Endsjø ;;; ;;; This file is part of GNU Guix. ;;; @@ -3771,6 +3772,39 @@ implemented features include @end itemize") (license license:expat))) +(define-public go-github-com-go-sql-driver-mysql + (package + (name "go-github-com-go-sql-driver-mysql") + (version "1.8.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-sql-driver/mysql") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ihdqg411gkv454fwx8w5nbndgkm5dz5phfliksxgmhggyxxm7sn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-sql-driver/mysql" + #:test-flags + #~(list "-skip" (string-join + (list "TestConnectorReturnsTimeout" + "TestErrorInMultiResult" + "TestDSNReformat/user:p" + "FuzzFormatDSN/seed#8") + "|")))) + (propagated-inputs + (list go-filippo-io-edwards25519)) + (home-page "https://github.com/go-sql-driver/mysql") + (synopsis "MySQL driver for golang") + (description + "This is a pure Go implementation of the MySQL API, compatible with +golang's database/sql package.") + (license license:mpl2.0))) + (define-public go-github-com-go-stack-stack (package (name "go-github-com-go-stack-stack") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index df0ab2a7013..2954a981f93 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4356,40 +4356,6 @@ have super fancy logs.") (home-page "https://github.com/kr/text") (license license:expat))) -(define-public go-github-com-go-sql-driver-mysql - (package - (name "go-github-com-go-sql-driver-mysql") - (version "1.8.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-sql-driver/mysql") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0ihdqg411gkv454fwx8w5nbndgkm5dz5phfliksxgmhggyxxm7sn")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/go-sql-driver/mysql" - #:test-flags - #~(list "-skip" (string-join - (list "TestConnectorReturnsTimeout" - "TestErrorInMultiResult" - "TestDSNReformat/user:p" - "FuzzFormatDSN/seed#8") - "|")))) - (propagated-inputs - (list go-filippo-io-edwards25519)) - (home-page "https://github.com/go-sql-driver/mysql") - (synopsis "MySQL driver for golang") - (description - "This is a pure Go implementation of the MySQL API, compatible with -golang's database/sql package.") - (license license:mpl2.0))) - (define-public go-github-com-lucasb-eyer-go-colorful (package (name "go-github-com-lucasb-eyer-go-colorful") From cb04b4d5c1cb96be20222bdecdc0816960ed4ea3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 20:19:43 +0000 Subject: [PATCH 108/862] gnu: go-github-com-go-stack-stack: Skip failing tests. * gnu/packages/golang-xyz.scm (go-github-com-go-stack-stack) [arguments]: Skip some failing tests. Change-Id: Ibda14b48a98b1d4da50f22dc1c80a2fb647504ea --- gnu/packages/golang-xyz.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 377e63ed88d..03de87d7499 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3821,7 +3821,13 @@ golang's database/sql package.") (build-system go-build-system) (arguments (list - #:import-path "github.com/go-stack/stack")) + #:import-path "github.com/go-stack/stack" + #:test-flags + #~(list "-skip" (string-join + (list "TestCallStackString" + "TestCallStackMarshalText" + "TestTrimRuntime") + "|")))) (home-page "https://github.com/go-stack/stack") (synopsis "Utilities to capture, manipulate, and format call stacks") (description From 861cc37a4246783fa932e582cf5d28dded447250 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 20:21:02 +0000 Subject: [PATCH 109/862] gnu: Add go-gopkg-in-inconshreveable-log15. * gnu/packages/golang-xyz.scm (go-gopkg-in-inconshreveable-log15-v1, go-gopkg-in-inconshreveable-log15-v2, go-gopkg-in-inconshreveable-log15-v3): New variables. Change-Id: If6dbda1806281c278230eb8c30c9d5fc198de01a --- gnu/packages/golang-xyz.scm | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 03de87d7499..8044e1b7226 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9267,6 +9267,87 @@ Go.") (list #:import-path "gopkg.in/alecthomas/kingpin.v2")))) +(define-public go-gopkg-in-inconshreveable-log15-v1 + (package + (name "go-gopkg-in-inconshreveable-log15-v1") + (version "1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/inconshreveable/log15") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hz7vnzn4cbiqra443mhmp63ifzq15xsfnyc9jmxh2p1ngwxp2n2")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gopkg.in/inconshreveable/log15.v1")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://pkg.go.dev/github.com/inconshreveable/log15") + (synopsis "Structured, composable logging for Golang") + (description + "This package provides a toolkit for logging that is both human and +machine readable. It is modeled after the Go standard library's @code{io} and +@code{net/http} packages and is an alternative to the standard library's +@code{log} package.") + (license license:asl2.0))) + +(define-public go-gopkg-in-inconshreveable-log15-v2 + (package + (inherit go-gopkg-in-inconshreveable-log15-v1) + (name "go-gopkg-in-inconshreveable-log15-v2") + (version "2.16.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/inconshreveable/log15") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "117ivm1asxw2hlwb3zf72q553ywjk00bsn21bpwi99q784ghr4wd")))) + (arguments + (list + #:import-path "gopkg.in/inconshreveable/log15.v2" + #:test-flags #~(list "-skip" "TestCallerStackHandler") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-import-path + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* (find-files "." "\\.go$") + (("github.com/inconshreveable/log15") import-path)))))))) + (propagated-inputs + (list go-github-com-go-stack-stack + go-github-com-mattn-go-colorable + go-golang-org-x-term)))) + +(define-public go-gopkg-in-inconshreveable-log15-v3 + (package + (inherit go-gopkg-in-inconshreveable-log15-v2) + (name "go-gopkg-in-inconshreveable-log15-v3") + (version "3.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/inconshreveable/log15") + (commit (string-append "v" version "-testing.5")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14b03w7mlsac0n5ig5qc0iggii6ig9mvbiv6656r1h19vh4kmx8x")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-gopkg-in-inconshreveable-log15-v2) + ((#:import-path _) "gopkg.in/inconshreveable/log15.v3"))) + (propagated-inputs + (list go-github-com-go-stack-stack + go-github-com-mattn-go-colorable + go-golang-org-x-term)))) + (define-public go-gopkg-in-ini-v1 (package (name "go-gopkg-in-ini-v1") From 13284925572b31a4b456bdc08f3bfb7dfb1e210a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 20:32:06 +0000 Subject: [PATCH 110/862] gnu: Add go-github-com-jackc-puddle. * gnu/packages/golang-xyz.scm (go-github-com-jackc-puddle, go-github-com-jackc-puddle-v2): New variables. Change-Id: I873dc9746eca089da32777b77bbb611a71fd35ef --- gnu/packages/golang-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8044e1b7226..03ee95b57b3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4673,6 +4673,56 @@ ABI}.") time strings.") (license license:expat))) +(define-public go-github-com-jackc-puddle + (package + (name "go-github-com-jackc-puddle") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/puddle") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0382q7xjdw5wx6174i2sf4gnc5ppgj9snvrvh3rcnwg02yd0np38")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/puddle")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/jackc/puddle") + (synopsis "Generic resource pool for Golang") + (description + "Puddle is a tiny generic resource pool library hat uses the standard +context library to signal cancellation of acquires. It is designed to contain +the minimum functionality required for a resource pool. It can be used +directly or it can be used as the base for a domain specific resource pool. +For example, a database connection pool may use puddle internally and +implement health checks and keep-alive behavior without needing to implement +any concurrent code of its own.") + (license license:expat))) + +(define-public go-github-com-jackc-puddle-v2 + (package + (inherit go-github-com-jackc-puddle) + (name "go-github-com-jackc-puddle-v2") + (version "2.2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/puddle") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0agbk4nnja0fahi8mjp1y5ac9vjsjhldjwx9zshw0zjqhaxmsk11")))) + (arguments + (list + #:import-path "github.com/jackc/puddle/v2")) + (propagated-inputs + (list go-golang-org-x-sync)))) + (define-public go-github-com-jbenet-go-random (package (name "go-github-com-jbenet-go-random") From 35382c42dd5daa1be2010c67310905add3ef2ac0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 20:35:49 +0000 Subject: [PATCH 111/862] gnu: Add go-github-com-jackc-pgio. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgio): New variable. Change-Id: I9757e72fcb007e516b4134ea429ffe6dfd1a2386 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 03ee95b57b3..8b12404bb1b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4673,6 +4673,30 @@ ABI}.") time strings.") (license license:expat))) +(define-public go-github-com-jackc-pgio + (package + (name "go-github-com-jackc-pgio") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgio") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0l17gpn11wf6jm5kbfmxh8j00n5zpmwck3wr91f1cv34k4chyvg1")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/pgio")) + (home-page "https://github.com/jackc/pgio") + (synopsis "Low-level toolkit building messages in the PostgreSQL wire protocol") + (description + "Package pgio is a low-level toolkit building messages in the +@code{PostgreSQL} wire protocol.") + (license license:expat))) + (define-public go-github-com-jackc-puddle (package (name "go-github-com-jackc-puddle") From ffc7f533918ff27e841b32050efd7111fe62f20b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 20:41:01 +0000 Subject: [PATCH 112/862] gnu: Add go-github-com-jackc-pgpassfile. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgpassfile): New variable. Change-Id: I87f5a049cd26357f99e49f410c506e2789585d6f --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8b12404bb1b..dc6babd0a27 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4697,6 +4697,30 @@ time strings.") @code{PostgreSQL} wire protocol.") (license license:expat))) +(define-public go-github-com-jackc-pgpassfile + (package + (name "go-github-com-jackc-pgpassfile") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgpassfile") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1crw06lzksgimbmr1a3sr00azg2v7l4qkvjra1cpmzzq5mncaj8z")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/pgpassfile")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/jackc/pgpassfile") + (synopsis "PostgreSQL .pgpass files parser") + (description + "Package pgpassfile is a parser @code{PostgreSQL} .pgpass files.") + (license license:expat))) + (define-public go-github-com-jackc-puddle (package (name "go-github-com-jackc-puddle") From b3e198a6a4b19d374f5cd721e7a3bcfa9d9256c6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 21:50:33 +0000 Subject: [PATCH 113/862] gnu: Add go-github-com-jackc-pgservicefile. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgservicefile): New variable. Change-Id: I8df2ea460e3436135a4f0660569b060f4208880c --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index dc6babd0a27..87163d38daf 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4721,6 +4721,31 @@ time strings.") "Package pgpassfile is a parser @code{PostgreSQL} .pgpass files.") (license license:expat))) +(define-public go-github-com-jackc-pgservicefile + (package + (name "go-github-com-jackc-pgservicefile") + (version "0.0.0-20240606120523-5a60cdf6a761") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgservicefile") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0z8ndfdxx5r4dpjbjn9caq9w56lrzwm6nh8jwwk0gnq0n2q4cfhi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/pgservicefile")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/jackc/pgservicefile") + (synopsis "Parser PostgreSQL for service files") + (description + "Package pgservicefile is a parser for @code{PostgreSQL} service +files (e.g. .pg_service.conf).") + (license license:expat))) + (define-public go-github-com-jackc-puddle (package (name "go-github-com-jackc-puddle") From 1d5cf6a8aaec9f5dec5d4217c5a42370d0c45c87 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 21:50:41 +0000 Subject: [PATCH 114/862] gnu: Add go-github-com-jackc-chunkreader. * gnu/packages/golang-xyz.scm (go-github-com-jackc-chunkreader, go-github-com-jackc-chunkreader-v2): New variables. Change-Id: I8a7c9a20fec268b21cd211d2ea0a259cd26ef97c --- gnu/packages/golang-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 87163d38daf..18b0152e72d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4673,6 +4673,52 @@ ABI}.") time strings.") (license license:expat))) +(define-public go-github-com-jackc-chunkreader + (package + (name "go-github-com-jackc-chunkreader") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/chunkreader") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zsxsd6alk51lssq1xq194sf88awj083fjiy7pk3098v2nj9m65l")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/chunkreader")) + (home-page "https://github.com/jackc/chunkreader") + (synopsis "Wrapper for @code{io.Reader}") + (description + "ChunkReader is a @code{io.Reader} wrapper that minimizes IO reads and +memory allocations. It allocates memory in chunks and will read as much as +will fit in the current buffer in a single call regardless of how large a read +is actually requested. The memory returned via Next is owned by the caller. +This avoids the need for an additional copy. It extracted from original +implementation in https://github.com/jackc/pgx.") + (license license:expat))) + +(define-public go-github-com-jackc-chunkreader-v2 + (package + (inherit go-github-com-jackc-chunkreader) + (name "go-github-com-jackc-chunkreader-v2") + (version "2.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/chunkreader") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fj585hp3s4cjfzncr5gmim96p0b956pqdf4nm7yan1ipfch9l1c")))) + (arguments + (list + #:import-path "github.com/jackc/chunkreader/v2")))) + (define-public go-github-com-jackc-pgio (package (name "go-github-com-jackc-pgio") From deceb119ac74244c9701073f00d657f0e2970ea4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 22:04:31 +0000 Subject: [PATCH 115/862] gnu: Add go-github-com-jackc-pgproto3. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgproto3, go-github-com-jackc-pgproto3): New variables. Change-Id: I7ea229704dc9bd7ed961c46044d53b9d6a34ba48 --- gnu/packages/golang-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 18b0152e72d..1d779bff8bf 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4767,6 +4767,57 @@ implementation in https://github.com/jackc/pgx.") "Package pgpassfile is a parser @code{PostgreSQL} .pgpass files.") (license license:expat))) +(define-public go-github-com-jackc-pgproto3 + (package + (name "go-github-com-jackc-pgproto3") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgproto3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03vpkqa6j4sanmsj7q13fb6yamspszfv38sr28d40g887bcwf0j8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/pgproto3")) + (propagated-inputs + (list go-github-com-jackc-chunkreader + go-github-com-jackc-pgio + go-github-com-pkg-errors)) + (home-page "https://github.com/jackc/pgproto3") + (synopsis "Encoder and decoder of the PostgreSQL wire protocol version 3") + (description + "This package provides a encoder and decoder of the @code{PostgreSQL} +wire protocol version 3.") + (license license:expat))) + +(define-public go-github-com-jackc-pgproto3-v2 + (package + (inherit go-github-com-jackc-pgproto3) + (name "go-github-com-jackc-pgproto3-v2") + (version "2.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgproto3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bmj1bqnn5863178a0k8m3f9xv48zs10z96dm2rl28ybx33d2l77")))) + (arguments + (list + #:import-path "github.com/jackc/pgproto3/v2")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-jackc-chunkreader-v2 + go-github-com-jackc-pgio)))) + (define-public go-github-com-jackc-pgservicefile (package (name "go-github-com-jackc-pgservicefile") From 18f200b233e77b7656c0e0bfac14f5902f22022a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 23:01:13 +0000 Subject: [PATCH 116/862] gnu: Add go-github-com-jackc-pgmock. * gnu/packages/golang-check.scm (go-github-com-jackc-pgmock): New variable. Change-Id: Ibc0428a18cf6134a9843b5b845076172d9da3d2c --- gnu/packages/golang-check.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index f05f85ca814..ce1a38961a8 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -584,6 +584,32 @@ package).") "This package provides a library to generate unified diffs.") (license license:bsd-3))) +(define-public go-github-com-jackc-pgmock + (package + (name "go-github-com-jackc-pgmock") + (version "0.0.0-20210724152146-4ad1a8207f65") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgmock") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "189hp5fkvavwgg7z0z9b9xj88ypsphvb7s4dpwa5aj42jm39nqha")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; cycles with go-github-com-jackc-pgconn + #:import-path "github.com/jackc/pgmock")) + (propagated-inputs + (list go-github-com-jackc-pgproto3-v2)) + (home-page "https://github.com/jackc/pgmock") + (synopsis "PostgreSQL server mocking library") + (description + "This package implements a functionality to mock a PostgreSQL server.") + (license license:expat))) + (define-public go-github-com-jacobsa-oglematchers (let ((commit "141901ea67cd4769c6800aa7bfdfc558fa22bda5") (revision "0")) From 9a1578a888eafe45d4db1f75cfb4b3c267934419 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 23:01:03 +0000 Subject: [PATCH 117/862] gnu: Add go-pgmockproxy. * gnu/packages/golang-check.scm (go-pgmockproxy): New variable. Change-Id: I8778114b8ea6b2905594e3fb4cde6f98f2f61131 --- gnu/packages/golang-check.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index ce1a38961a8..f3646d62799 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1751,6 +1751,22 @@ tool.")))) (description "This package turns unkeyed struct literals (@code{T{1, 2, 3}}) into keyed ones (@code{T{A: 1, B: 2, C: 3}}) in Go."))) +(define-public go-pgmockproxy + (package + (inherit go-github-com-jackc-pgmock) + (name "go-pgmockproxy") + (arguments + (list + #:install-source? #f + #:import-path "github.com/jackc/pgmock/pgmockproxy" + #:unpack-path "github.com/jackc/pgmock")) + (description + "pgmockproxy is a PostgreSQL proxy that logs the messages back and forth +between the PostgreSQL client and server. This can aid in building a mocking +script by running commands against a real server to observe the results. It +can also be used to debug applications that speak the PostgreSQL wire protocol +without needing to use a tool like Wireshark."))) + (define-public go-pprof (package (inherit go-github-com-google-pprof) From 4d705da70c319ab84354b4c0d0d5249162f412c4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 23:18:00 +0000 Subject: [PATCH 118/862] gnu: Add go-github-com-jackc-pgconn. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgconn): New variable. Change-Id: I2666e06631f56ff7534fde336c3556a9740ff68a --- gnu/packages/golang-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1d779bff8bf..856c3415ea9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4719,6 +4719,47 @@ implementation in https://github.com/jackc/pgx.") (list #:import-path "github.com/jackc/chunkreader/v2")))) +(define-public go-github-com-jackc-pgconn + (package + (name "go-github-com-jackc-pgconn") + (version "1.14.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgconn") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rqx0y9k6g8ydcpciv3k246hfd5am4yw4jg3cbq4wlfny01ksh3y")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; requiring running PostgreSQL server + #:import-path "github.com/jackc/pgconn")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-jackc-chunkreader-v2 + go-github-com-jackc-pgio + go-github-com-jackc-pgmock + go-github-com-jackc-pgpassfile + go-github-com-jackc-pgproto3-v2 + go-github-com-jackc-pgservicefile + go-golang-org-x-crypto + go-golang-org-x-text)) + (home-page "https://github.com/jackc/pgconn") + (synopsis "Low-level PostgreSQL database driver") + (description + "Package pgconn is a low-level PostgreSQL database driver. It operates +at nearly the same level as the C library libpq. + +It is primarily intended to serve as the foundation for higher level libraries +such as @url{https://github.com/jackc/pgx}. Applications should handle normal +queries with a higher level library and only use pgconn directly when required +for low-level access to PostgreSQL functionality.") + (license license:expat))) + (define-public go-github-com-jackc-pgio (package (name "go-github-com-jackc-pgio") From 93517366b1a4de5ed2ff14fb0f7690fbd2458f39 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 23:47:05 +0000 Subject: [PATCH 119/862] gnu: go-github-com-sirupsen-logrus: Skip one test. * gnu/packages/golang.scm (go-github-com-sirupsen-logrus) [arguments]: Skip one failing test. Change-Id: I23aec0766e2667c6c53272458162e10435c30ab4 --- gnu/packages/golang.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2954a981f93..7c637a90df1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3146,6 +3146,7 @@ containers.") (arguments (list #:import-path "github.com/sirupsen/logrus" + #:test-flags #~(list "-skip" "TestNestedLoggingReportsCorrectCaller") #:phases #~(modify-phases %standard-phases (replace 'check From 5edee68e4945dc42ae06c599ee741835eea809d2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 23:51:15 +0000 Subject: [PATCH 120/862] gnu: go-github-com-sirupsen-logrus: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-sirupsen-logrus): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/docker.scm: Add golang-xyz module. Change-Id: I31851e4ea52e7ad1f69ff6ec32f53f00bff6b105 --- gnu/packages/docker.scm | 1 + gnu/packages/golang-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 37 ------------------------------------ 3 files changed, 39 insertions(+), 37 deletions(-) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index e00f1cbb8a0..d35707a8dab 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -46,6 +46,7 @@ #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-web) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages linux) #:use-module (gnu packages networking) #:use-module (gnu packages pkg-config) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 856c3415ea9..b3c2e05de17 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7948,6 +7948,44 @@ sensors).") ;; environment. (string-append "src/" import-path "/host/host_test.go"))))))))) +(define-public go-github-com-sirupsen-logrus + (package + (name "go-github-com-sirupsen-logrus") + (version "1.9.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sirupsen/logrus") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jz7nyq88i9fwfpp7krl046q62kjn6lb9j4r932bxnpypl1hwc49")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/sirupsen/logrus" + #:test-flags #~(list "-skip" "TestNestedLoggingReportsCorrectCaller") + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs #:allow-other-keys #:rest args) + (unless + ;; The tests fail when run with gccgo. + (false-if-exception (search-input-file inputs "/bin/gccgo")) + (apply (assoc-ref %standard-phases 'check) args))))))) + (propagated-inputs + (list go-github-com-davecgh-go-spew + go-github-com-pmezard-go-difflib + go-github-com-stretchr-testify + go-golang-org-x-crypto + go-golang-org-x-sys)) + (home-page "https://github.com/sirupsen/logrus") + (synopsis "Structured, pluggable logging for Go") + (description "Logrus is a structured logger for Go, completely API +compatible with the standard library logger.") + (license license:expat))) + (define-public go-github-com-skip2-go-qrcode (package (name "go-github-com-skip2-go-qrcode") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7c637a90df1..b9343512c95 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3128,43 +3128,6 @@ containers.") (description "Java properties scanner for Go") (license license:bsd-2))) -(define-public go-github-com-sirupsen-logrus - (package - (name "go-github-com-sirupsen-logrus") - (version "1.9.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/sirupsen/logrus") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1jz7nyq88i9fwfpp7krl046q62kjn6lb9j4r932bxnpypl1hwc49")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/sirupsen/logrus" - #:test-flags #~(list "-skip" "TestNestedLoggingReportsCorrectCaller") - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs #:allow-other-keys #:rest args) - (unless - ;; The tests fail when run with gccgo. - (false-if-exception (search-input-file inputs "/bin/gccgo")) - (apply (assoc-ref %standard-phases 'check) args))))))) - (propagated-inputs - (list go-github-com-davecgh-go-spew go-github-com-pmezard-go-difflib - go-github-com-stretchr-testify go-golang-org-x-crypto - go-golang-org-x-sys)) - (home-page "https://github.com/sirupsen/logrus") - (synopsis "Structured, pluggable logging for Go") - (description "Logrus is a structured logger for Go, completely API -compatible with the standard library logger.") - (license license:expat))) - (define-public go-github-com-rifflock-lfshook (package (name "go-github-com-rifflock-lfshook") From ed7ec7940ee5fa0deb1d6710bc74a4cb0d623c1a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 23:53:10 +0000 Subject: [PATCH 121/862] gnu: go-github-com-sirupsen-logrus: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-sirupsen-logrus) [propagated-inputs]: Remove go-github-com-davecgh-go-spew, go-github-com-pmezard-go-difflib, go-github-com-stretchr-testify, and go-golang-org-x-crypto. [native-inputs]: Add go-github-com-stretchr-testify. Change-Id: I005f0f7046747884588e84d29631a58f2d92e9a8 --- gnu/packages/golang-xyz.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b3c2e05de17..b8a9db582f6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7974,12 +7974,10 @@ sensors).") ;; The tests fail when run with gccgo. (false-if-exception (search-input-file inputs "/bin/gccgo")) (apply (assoc-ref %standard-phases 'check) args))))))) + (native-inputs + (list go-github-com-stretchr-testify)) (propagated-inputs - (list go-github-com-davecgh-go-spew - go-github-com-pmezard-go-difflib - go-github-com-stretchr-testify - go-golang-org-x-crypto - go-golang-org-x-sys)) + (list go-golang-org-x-sys)) (home-page "https://github.com/sirupsen/logrus") (synopsis "Structured, pluggable logging for Go") (description "Logrus is a structured logger for Go, completely API From 1ca59d13ca420b2898050c76656538ce8be162fd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 00:21:16 +0000 Subject: [PATCH 122/862] gnu: go-github-com-go-quicktest-qt: Skip some failing tests. * gnu/packages/golang-check.scm (go-github-com-go-quicktest-qt) [arguments]: Skip 5 tests. Change-Id: I5485406acec4a7f69d5756fcc1dabbac4f528127 --- gnu/packages/golang-check.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index f3646d62799..5650ec6cf45 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -389,9 +389,20 @@ tests.") (build-system go-build-system) (arguments (list - #:import-path "github.com/go-quicktest/qt")) + #:import-path "github.com/go-quicktest/qt" + #:test-flags + #~(list "-skip" (string-join + ;; Tests failing with assertion error or could not find + ;; test files. + (list "TestReportOutput" + "TestIndirectReportOutput" + "TestMultilineReportOutput" + "TestCmpReportOutput" + "TestTopLevelAssertReportOutput") + "|")))) (propagated-inputs - (list go-github-com-google-go-cmp go-github-com-kr-pretty)) + (list go-github-com-google-go-cmp + go-github-com-kr-pretty)) (home-page "https://github.com/go-quicktest/qt") (synopsis "Qt: quicker Go tests") (description From 840ef02a1c0b6104b246b6d769b5b1101cf2c0d8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 00:32:49 +0000 Subject: [PATCH 123/862] gnu: go-github-com-mdlayher-netlink: Simplify package. * gnu/packages/golang-web.scm (go-github-com-mdlayher-netlink) [source]: Remove submodule with integration tests to break cycle. [arguments]: Move test skipping logic here. : Remove 'disable-failing-tests. Change-Id: I66e32ce985ea5162da8c7d0705207ea1d5323685 --- gnu/packages/golang-web.scm | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e9f1e448631..413463dec4f 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3782,21 +3782,20 @@ via REST APIs.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1pxd0qn73jr9n64gkp2kd8q8x7xgssm3v8a68vkh88al55g8jkma")))) + (base32 "1pxd0qn73jr9n64gkp2kd8q8x7xgssm3v8a68vkh88al55g8jkma")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Cycles with go-github-com-jsimonetti-rtnetlink. + (delete-file-recursively "internal/integration"))))) (build-system go-build-system) (arguments (list #:import-path "github.com/mdlayher/netlink" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* (find-files "." "_test\\.go$") - ;; failed to start command "ip": exec: "ip": executable file - ;; not found in $PATH - (("TestIntegrationConnSetBuffersSyscallConn") - "OffTestIntegrationConnSetBuffersSyscallConn")))))))) + #:test-flags + ;; Test fails to start command "ip": exec: "ip": executable file not + ;; found in $PATH + #~(list "-skip" "TestIntegrationConnSetBuffersSyscallConn"))) (propagated-inputs (list go-github-com-google-go-cmp go-github-com-josharian-native From ff780d542129e1ba61249d6e4aa5f042820451f9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 11:55:58 +0000 Subject: [PATCH 124/862] gnu: Add go-github-com-cilium-ebpf. * gnu/packages/golang-xyz.scm (go-github-com-cilium-ebpf): New variable. Change-Id: I63147d352a7610748ed626826e81d30775a29fe3 --- gnu/packages/golang-xyz.scm | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b8a9db582f6..2e3f061699b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2058,6 +2058,74 @@ levels that works by wrapping the standard @code{log} library.") "Readline is a pure Go implementation of a GNU-Readline like library.") (license license:expat))) +(define-public go-github-com-cilium-ebpf + (package + (name "go-github-com-cilium-ebpf") + (version "0.16.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cilium/ebpf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1p3wssg00d0h5dn1fadl0g8iwcak0d6myyjlqwgf6rnfnlajcrgi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cilium/ebpf" + #:test-flags + ;; Tests fail with errors: + ;; - neither debugfs nor tracefs are mounted + ;; - no such file or directory + #~(list "-skip" (string-join + (list + "TestNewEvent" + "TestFSType" + "TestEventID" + "TestSanitizePath" + "TestGetTracefsPath") + "|")) + ;; XXX: 337 tests failed and 664 passed when "..." is preserved, run + ;; some of available tests, figure out how to fix the rests. + #:test-subdirs + #~(list + ;; Tests fail with error: detect support for + ;; FnSkbSetTstamp for program type SchedCLS: + ;; detect support for SchedCLS: load program: + ;; operation not permitted + ;; "features" + + ;; Failed to adjust rlimit, tests may fail + ;; "link" + ;; "perf" + ;; "ringbuf" + "asm" + "internal/...") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + (list "example_sock_elf_test.go" + "example_sock_extract_dist_test.go" + "examples")))))))) + (propagated-inputs + (list go-github-com-go-quicktest-qt + go-github-com-google-go-cmp + go-github-com-jsimonetti-rtnetlink-v2 + go-golang-org-x-exp + go-golang-org-x-sys)) + (home-page "https://ebpf-go.dev/") + (synopsis "Read, modify and load extended Berkeley Packet Filter programs in Golang") + (description + "This package provides utilities for loading, compiling, and debugging +@url{https://www.ebpf.io/,eBPF} programs. It has minimal external +dependencies and is intended to be used in long running processes.") + (license license:expat))) + (define-public go-github-com-containerd-cgroups (package (name "go-github-com-containerd-cgroups") From 24c5d6c4d6fee8f1fca6d02a014dd7338303a501 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 13:52:39 +0000 Subject: [PATCH 125/862] gnu: go-github-com-containerd-cgroups: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-containerd-cgroups) [arguments]: Move tests skip logic here and skip more tests. : Remove 'disable-failing-tests. [propagated-inputs]: Add go-github-com-cilium-ebpf. Change-Id: I3ee11a4c21ea3750e3e886155530439f2e363811 --- gnu/packages/golang-xyz.scm | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2e3f061699b..a342221a2b7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2151,20 +2151,36 @@ dependencies and is intended to be used in long running processes.") (arguments (list #:import-path "github.com/containerd/cgroups" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* (find-files "." "_test\\.go$") - ;; expected error "controller is not supported" but received - ;; "cgroups: cannot find cgroup mount destination" - (("TestSystemd240") "OffTestSystemd240")))))))) + #:test-flags + #~(list "-skip" (string-join + ;; cannot find cgroup mount destination" + (list "TestSystemd240" + ;; cannot statfs cgroup root + "TestCgroupType" + "TestCgroupv2CpuStats" + "TestCgroupv2MemoryStats" + "TestCgroupv2PSIStats" + "TestCgroupv2PidsStats" + "TestErrorsWhenUnitAlreadyExists" + "TestEventChanCleanupOnCgroupRemoval" + "TestIgnoreUnitExistsWhenPidNegativeOne" + "TestKill" + "TestMoveTo" + "TestSystemdCgroupCpuController" + "TestSystemdCgroupMemoryController" + "TestSystemdCgroupPSIController" + "TestSystemdCgroupPidsController" + ;; Assertion failed + "TestDeviceFilter_Nil" + "TestDeviceFilter_Privileged" + "TestDeviceFilter_Weird") + "|")))) (native-inputs (list go-github-com-stretchr-testify go-go-uber-org-goleak)) (propagated-inputs - (list go-github-com-coreos-go-systemd-v22 + (list go-github-com-cilium-ebpf + go-github-com-coreos-go-systemd-v22 go-github-com-docker-go-units go-github-com-godbus-dbus-v5 go-github-com-gogo-protobuf From 39bb5a40791aac53ac86bb2893e40e65c58a85ca Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 15:16:45 +0000 Subject: [PATCH 126/862] gnu: go-github-com-urfave-cli: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-urfave-cli) [propagated-inputs]: Add go-github-com-burntsushi-toml and go-gopkg-in-yaml-v2. Change-Id: I15ad53bca70b910bb8bc59d7fe886e582415d157 --- gnu/packages/golang-xyz.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a342221a2b7..f268c10e130 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8917,7 +8917,9 @@ supported by the time package (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs - (list go-github-com-go-md2man)) + (list go-github-com-burntsushi-toml + go-github-com-go-md2man + go-gopkg-in-yaml-v2)) (home-page "https://github.com/urfave/cli") (synopsis "Simple, fast, and fun package for building command line apps in Go") (description From 3275ba9dcbb49a7c4d53f3dd7cdf6b6515354de2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 15:16:36 +0000 Subject: [PATCH 127/862] gnu: Add go-github-com-moby-sys-userns. * gnu/packages/golang-xyz.scm (go-github-com-moby-sys-userns): New variable. Change-Id: Ibe9091cd4113a63b298c256664fe0153d3b9318a --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f268c10e130..d3fd73e68f5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6385,6 +6385,32 @@ colored strings.") (description "Go library for decoding generic map values") (license license:expat))) +(define-public go-github-com-moby-sys-userns + (package + (name "go-github-com-moby-sys-userns") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/moby/sys") + (commit (go-version->git-ref version + #:subdir "userns")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1clr9x412gr1cq3jxf9lxblh9pkf8c42gz57wr14miy0nqsimx7j")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/moby/sys/userns" + #:unpack-path "github.com/moby/sys")) + (home-page "https://github.com/moby/sys") + (synopsis "Probe Linux user namespace") + (description + "Package userns provides utilities to detect whether we are currently +running in a Linux user namespace.") + (license license:asl2.0))) + (define-public go-github-com-modern-go-concurrent (package (name "go-github-com-modern-go-concurrent") From 46072d19f02f766aa87ab996ece6ba4c0a2ff5cc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 15:16:44 +0000 Subject: [PATCH 128/862] gnu: Add go-github-com-containerd-log. * gnu/packages/golang-xyz.scm (go-github-com-containerd-log): New variable. Change-Id: I8adb2d0e13d2780493ee667f649c1a84d9626b15 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d3fd73e68f5..befdcd39dbf 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2223,6 +2223,31 @@ cgroup uses the OCI runtime-spec found way.") (license license:asl2.0))) +(define-public go-github-com-containerd-log + (package + (name "go-github-com-containerd-log") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containerd/log") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nzviiqpn0djdwql2q3m2xs1ndxyd0v2klvq6xi2r0dn4wr3mqdy")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/containerd/log")) + (propagated-inputs (list go-github-com-sirupsen-logrus)) + (home-page "https://github.com/containerd/log") + (synopsis "Common log interface for containerd repositories and clients") + (description + "Package log provides types and functions related to logging, passing +loggers through a context, and attaching context to the logger.") + (license license:asl2.0))) + (define-public go-github-com-coocood-freecache (package (name "go-github-com-coocood-freecache") From c2d1cc342b4e84661869476464b57913087118b5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 15:16:44 +0000 Subject: [PATCH 129/862] gnu: Add go-github-com-containerd-cgroups-v3. * gnu/packages/golang-xyz.scm (go-github-com-containerd-cgroups-v3): New variable. Change-Id: Ieb03de8524cccec8586c704653cffb4f650a7b1e --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index befdcd39dbf..a10d5fca507 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2196,6 +2196,43 @@ cgroup uses the OCI runtime-spec found @url{https://github.com/opencontainers/runtime-spec,here}.") (license license:asl2.0))) +(define-public go-github-com-containerd-cgroups-v3 + (package + (inherit go-github-com-containerd-cgroups) + (name "go-github-com-containerd-cgroups-v3") + (version "3.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containerd/cgroups") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09fkbhkx0hmcfcym3zl0dshbhj3p692xg7d6y8pj732g64zk6v4k")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodule(s) with their own go.mod files and packed as + ;; separated packages: + ;; + ;; - github.com/containerd/cgroups/cmd cgctl + (delete-file-recursively "cmd"))))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-containerd-cgroups) + ((#:import-path _) "github.com/containerd/cgroups/v3"))) + (propagated-inputs + (list go-github-com-cilium-ebpf + go-github-com-containerd-log + go-github-com-coreos-go-systemd-v22 + go-github-com-docker-go-units + go-github-com-godbus-dbus-v5 + go-github-com-moby-sys-userns + go-github-com-opencontainers-runtime-spec + go-golang-org-x-sys + go-google-golang-org-protobuf)))) + (define-public go-github-com-containerd-fifo (package (name "go-github-com-containerd-fifo") From 87333afac474ae49c1f9361484d0e30c17cfb918 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 17:00:06 +0000 Subject: [PATCH 130/862] gnu: go-golang-org-x-exp-typeparams: Update to 0.0.0-20241210194714-1829a127f884. * gnu/packages/golang-build.scm (go-golang-org-x-exp-typeparams): Update to 0.0.0-20241210194714-1829a127f884. [arguments]: Skip one test. Change-Id: Ibe5b79342f80036d7bfa13b0da654489b450be55 --- gnu/packages/golang-build.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index bb927837750..4731f8b5ec5 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -529,7 +529,7 @@ directory) packages.") (define-public go-golang-org-x-exp-typeparams (package (name "go-golang-org-x-exp-typeparams") - (version "0.0.0-20240707233637-46b078467d37") + (version "0.0.0-20241210194714-1829a127f884") (source (origin (method git-fetch) @@ -538,12 +538,14 @@ directory) packages.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "17pwikql9x1bm5ci0kk4mlad7smkph0cgq1pi2b43gnhjz8m96l0")))) + (base32 "16lc0sgydpr4gbb5c9ygq86jdmq6f9qjf0vv1m5mhh3dggc1fzpp")))) (build-system go-build-system) (arguments (list #:import-path "golang.org/x/exp/typeparams" - #:unpack-path "golang.org/x/exp")) + #:unpack-path "golang.org/x/exp" + ;; Could not import go/ast (can't find import: "go/ast"). + #:test-flags #~(list "-skip" "TestAPIConsistency"))) (home-page "https://pkg.go.dev/golang.org/x/exp/typeparams") (synopsis "Golang common utilities for writing tools") (description From a00a3980a6a2ca53f248a9f1986d599ad85ded94 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 17:00:06 +0000 Subject: [PATCH 131/862] gnu: go-github-com-rs-zerolog: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-rs-zerolog) [arguments]: Skip one test. [propagated-inputs]: Add go-golang-org-x-tools. Change-Id: I1a7d8e276283c7b3669d3eae2ccf34a9a6ad3598 --- gnu/packages/golang-xyz.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a10d5fca507..4bda7881437 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7816,12 +7816,16 @@ Included are the following: (build-system go-build-system) (arguments (list - #:import-path "github.com/rs/zerolog")) + #:import-path "github.com/rs/zerolog" + ;; Unexpected error write unixgram @234fb->/run/systemd/journal/socket: + ;; sendmsg: no such file or directory + #:test-flags #~(list "-skip" "TestWriteReturnsNoOfWrittenBytes"))) (propagated-inputs (list go-github-com-coreos-go-systemd-v22 go-github-com-mattn-go-colorable go-github-com-pkg-errors - go-github-com-rs-xid)) + go-github-com-rs-xid + go-golang-org-x-tools)) (home-page "https://github.com/rs/zerolog") (synopsis "Zero Allocation JSON Logger") (description From f49703bf4b683a45cb34955e2d8d99ccf6f58ae0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 17:00:06 +0000 Subject: [PATCH 132/862] gnu: go-go-uber-org-zap: Update to 1.27.0. * gnu/packages/golang-xyz.scm (go-go-uber-org-zap): Update to 1.27.0. [arguments]: Skip 3 tests. : Remove 'remove-test-files, add 'remove-examples-and-benchamrks. [propagated-inputs]: Remove go-github-com-benbjohnson-clock, go-github-com-pkg-errors, go-go-uber-org-atomic, and go-gopkg-in-yaml-v2; add go-gopkg-in-yaml-v3. [native-inputs]: Remove go-golang-org-x-lint and go-honnef-co-go-tools. Change-Id: I3f2d90ce093f9aac4342ed887cc3a96419a281a9 --- gnu/packages/golang-xyz.scm | 44 ++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4bda7881437..98da106c8f7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9692,7 +9692,7 @@ applications out of reusable, composable modules.") (define-public go-go-uber-org-zap (package (name "go-go-uber-org-zap") - (version "1.24.0") + (version "1.27.0") (source (origin (method git-fetch) @@ -9701,32 +9701,40 @@ applications out of reusable, composable modules.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0lzbbs87fvixzbyv4wpl3s70vm2m0jz2jgdvrviiksc2al451qgs")))) + (base32 "1h3ml2wqmdxwqv0xdfqvf7l4wma5yd0hdfsa6189mmbhkhzn8v3m")))) (build-system go-build-system) (arguments (list #:import-path "go.uber.org/zap" + #:test-flags + #~(list "-skip" (string-join + ;; Unexpected stack trace annotation. + (list "TestAddStackSkip" + ;; Expected to find package name and file name in + ;; output. + "TestLoggerAddCaller" + "TestSugarAddCaller") + "|")) #:phases #~(modify-phases %standard-phases - ;; Remove test files requiring to download all dependencies for the - ;; current Go module and reports their module paths and locations on - ;; disk. - (add-after 'unpack 'remove-test-files - (lambda* (#:key import-path #:allow-other-keys) - (delete-file - (string-append "src/" import-path - "/stacktrace_ext_test.go"))))))) + (add-after 'unpack 'remove-examples-and-benchmarks + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + (list "benchmarks" + ;; Remove test files requiring to download all + ;; dependencies for the current Go module and + ;; reports their module paths and locations on + ;; disk. + "stacktrace_ext_test.go" + ;; Not packed yet google.golang.org/grpc. + "zapgrpc/internal/test/grpc_test.go")))))))) (native-inputs (list go-github-com-stretchr-testify - go-go-uber-org-goleak - go-golang-org-x-lint - go-honnef-co-go-tools)) + go-go-uber-org-goleak)) (propagated-inputs - (list go-github-com-benbjohnson-clock - go-github-com-pkg-errors - go-go-uber-org-atomic - go-go-uber-org-multierr - go-gopkg-in-yaml-v2)) + (list go-go-uber-org-multierr + go-gopkg-in-yaml-v3)) (home-page "https://pkg.go.dev/go.uber.org/zap") (synopsis "Logging library for Go") (description From 01fd7f5d41dcde45186da6c81336a38ede0ea7fe Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 16:59:56 +0000 Subject: [PATCH 133/862] gnu: Add go-github-com-satori-go-uuid. * gnu/packages/golang-xyz.scm (go-github-com-satori-go-uuid): New variable. Change-Id: Ief157b8ba62b4cfd04a29ac5e9749aab29419109 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 98da106c8f7..6f203f21d42 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7925,6 +7925,34 @@ logging.") symbols in the style of Sublime Text, VSCode, @code{IntelliJ} IDEA et al.") (license license:expat))) +(define-public go-github-com-satori-go-uuid + (package + (name "go-github-com-satori-go-uuid") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/satori/go.uuid") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j4s5pfg2ldm35y8ls8jah4dya2grfnx2drb4jcbjsyrp4cm5yfb")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/satori/go.uuid")) + (native-inputs + (list go-gopkg-in-check-v1)) + (home-page "https://github.com/satori/go.uuid") + (synopsis "UUID package for Go language") + (description + "Package uuid provides implementation of @acronym{Universally Unique +Identifier, UUID}. Supported versions are 1, 3, 4 and 5 (as specified in +@url{https://rfc-editor.org/rfc/rfc4122.html,RFC 4122}) and version 2 (as +specified in DCE 1.1).") + (license license:expat))) + (define-public go-github-com-schollz-progressbar-v3 (package (name "go-github-com-schollz-progressbar-v3") From da29c178926ec1a473006f64e6cc45d6060f47bc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 11:04:43 +0000 Subject: [PATCH 134/862] gnu: go-github-com-pkg-errors: Move to golang-build. * gnu/packages/golang.scm (go-github-com-pkg-errors): Move from here ... * gnu/packages/golang-build.scm: ... to here. Change-Id: Ic91629d1832e559928b20567bd930783377b568c --- gnu/packages/golang-build.scm | 36 ++++++++++++++++++++++++++++++++--- gnu/packages/golang.scm | 29 ---------------------------- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 4731f8b5ec5..0df28a77ef5 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1,12 +1,12 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2018, 2019, 2020 Leo Famulari +;;; Copyright © 2017-2020 Leo Famulari ;;; Copyright © 2019 Brian Leung +;;; Copyright © 2019, 2020 Vagrant Cascadian ;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2020 HiPhish ;;; Copyright © 2020 Oleg Pykhalov ;;; Copyright © 2020 Ryan Prior -;;; Copyright © 2020 Vagrant Cascadian -;;; Copyright © 2020, 2023, 2024 Efraim Flashner +;;; Copyright © 2020, 2022, 2023, 2024 Efraim Flashner ;;; Copyright © 2021 Arun Isaac ;;; Copyright © 2021 Ludovic Courtès ;;; Copyright © 2021 Sarah Morgensen @@ -312,6 +312,36 @@ replace a file or symbolic link.") 1.1: Authentication and Security Services.") (license license:bsd-3))) +;; XXX: This repository has been archived by the owner on Dec 1, 2021. It is +;; now read-only. +(define-public go-github-com-pkg-errors + (package + (name "go-github-com-pkg-errors") + (version "0.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pkg/errors") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1761pybhc2kqr6v5fm8faj08x9bql8427yqg6vnfv6nhrasx1mwq")))) + (build-system go-build-system) + (arguments + (list + ;; Tests fail with a newer version of Golang (1.21) due to some API + ;; changes in how the module path is calculated which is not reflected + ;; in tests. + #:tests? #f + #:import-path "github.com/pkg/errors")) + (home-page "https://github.com/pkg/errors") + (synopsis "Go error handling primitives") + (description + "This package provides @code{error}, which offers simple error handling +primitives in Go.") + (license license:bsd-2))) + (define-public go-github-com-yuin-goldmark (package (name "go-github-com-yuin-goldmark") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b9343512c95..b6919ade83c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4585,35 +4585,6 @@ designed to clean up raw terminal output by stripping escape sequences, optionally preserving color.") (license license:expat))) -;; XXX: This repository has been archived by the owner on Dec 1, 2021. It is -;; now read-only. -(define-public go-github-com-pkg-errors - (package - (name "go-github-com-pkg-errors") - (version "0.9.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/pkg/errors") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1761pybhc2kqr6v5fm8faj08x9bql8427yqg6vnfv6nhrasx1mwq")))) - (build-system go-build-system) - (arguments - (list - ;; Tests fail with a newer version of Golang (1.21) due to some API - ;; changes in how the module path is calculated which is not reflected - ;; in tests. - #:tests? #f - #:import-path "github.com/pkg/errors")) - (synopsis "Go error handling primitives") - (description "This package provides @code{error}, which offers simple -error handling primitives in Go.") - (home-page "https://github.com/pkg/errors") - (license license:bsd-2))) - (define-public go-github-com-maruel-panicparse (package (name "go-github-com-maruel-panicparse") From a239c3dc10cb6e84a9be1810f4213af9457ffa63 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 17:00:05 +0000 Subject: [PATCH 135/862] gnu: Add go-github-com-cockroachdb-apd. * gnu/packages/golang-maths.scm (go-github-com-cockroachdb-apd, go-github-com-cockroachdb-apd-v3): New variables. Change-Id: I66f0b2bc276c3a8b8540a99e7d680bc22667ac76 --- gnu/packages/golang-maths.scm | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index 999dee0a52c..6eefad5ecd9 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -68,6 +68,53 @@ statistical routines, with particular focus on high-quality implementations and APIs for non-parametric methods.") (license license:bsd-3))) +(define-public go-github-com-cockroachdb-apd + (package + (name "go-github-com-cockroachdb-apd") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/apd") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14jnnqpdsa3vxh2zpznd2dpnychcrlkljppfplrigrs245slyh72")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/apd")) + (propagated-inputs + (list go-github-com-pkg-errors)) + (home-page "https://github.com/cockroachdb/apd") + (synopsis "Arbitrary-precision decimals for Golang") + (description + "This package implements much of the decimal specification from the +@url{http://speleotrove.com/decimal/,General Decimal Arithmetic} description. +This is the same specification implemented by +@url{https://docs.python.org/2/library/decimal.html,Python’s decimal module} +and GCC’s decimal extension.") + (license license:asl2.0))) + +(define-public go-github-com-cockroachdb-apd-v3 + (package + (inherit go-github-com-cockroachdb-apd) + (name "go-github-com-cockroachdb-apd-v3") + (version "3.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/apd") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jrb43l80mr8q1hx8q4p54rld6kya886ackv5yzqyhhhl271rnm6")))) + (arguments + (list + #:import-path "github.com/cockroachdb/apd/v3")))) + (define-public go-github-com-montanaflynn-stats (package (name "go-github-com-montanaflynn-stats") From 4c0dfa28497e5a00b2c1c44837d8e9d35ce48a28 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 11:33:05 +0000 Subject: [PATCH 136/862] gnu: Add go-github-com-corpix-uarand. * gnu/packages/golang-check.scm (go-github-com-corpix-uarand): New variable. Change-Id: I35e3f97bef1aae13671523d06c99288160662018 --- gnu/packages/golang-check.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 5650ec6cf45..6030046da74 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -207,6 +207,31 @@ test (using testing.TB's @code{TempDir}) and with a few helper methods.") "A testing library for Go programs.") (license license:expat))) +(define-public go-github-com-corpix-uarand + (package + (name "go-github-com-corpix-uarand") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/corpix/uarand") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ad5k1h2qpam2cfalwkjigrwg1yc45dny10n08qmqix1gxyjillc")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/corpix/uarand")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/corpix/uarand") + (synopsis "Random user-agent generator for Golang") + (description + "This package implements a functionality to generate random user-agent +strings which may be used in mock tests.") + (license license:unlicense))) + (define-public go-github-com-davecgh-go-spew (package (name "go-github-com-davecgh-go-spew") From 26636d1fd21ecf184b4eaf1aeb8b6c909a7fa8a6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 11:33:05 +0000 Subject: [PATCH 137/862] gnu: Add go-github-com-icrowley-fake. * gnu/packages/golang-check.scm (go-github-com-icrowley-fake): New variable. Change-Id: Ia3158c274a7e69f777f695c63bdb9e7c70cc6ae8 --- gnu/packages/golang-check.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 6030046da74..1ac15add6dc 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -620,6 +620,33 @@ package).") "This package provides a library to generate unified diffs.") (license license:bsd-3))) +(define-public go-github-com-icrowley-fake + (package + (name "go-github-com-icrowley-fake") + (version "0.0.0-20240710202011-f797eb4a99c0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/icrowley/fake") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zb2rdck6fwjw1ib7k6gm9d9mnsig4cr2807k7v5z6nwqka1pcw1")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/icrowley/fake")) + (propagated-inputs + (list go-github-com-corpix-uarand)) + (home-page "https://github.com/icrowley/fake") + (synopsis "Fake data generator for Golang") + (description + "Package fake is the fake data generatror for go (Golang), heavily +inspired by forgery and @url{https://github.com/ffaker/ffaker,ffaker} Ruby +gems.") + (license license:expat))) + (define-public go-github-com-jackc-pgmock (package (name "go-github-com-jackc-pgmock") From 02c5fbeb93f378c77dbc0b9df51da5f2afdbe991 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 11:43:00 +0000 Subject: [PATCH 138/862] gnu: Add go-github-com-jackc-fake. * gnu/packages/golang-check.scm (go-github-com-jackc-fake): New variable. Change-Id: I744e09a6ba01c750e80e533ea3fe1663ad0fb93d --- gnu/packages/golang-check.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 1ac15add6dc..8293d5b6c0d 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -647,6 +647,35 @@ inspired by forgery and @url{https://github.com/ffaker/ffaker,ffaker} Ruby gems.") (license license:expat))) +(define-public go-github-com-jackc-fake + (package + (inherit go-github-com-icrowley-fake) + (name "go-github-com-jackc-fake") + (version "0.0.0-20150926172116-812a484cc733") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/fake") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0f32qgzhx7pl3s0g4v916z21kfyh5v1dv28aakxisiw23936wf68")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Module name has not been changed after been forked upstream. + (substitute* (find-files "." "\\.go$") + (("github.com/icrowley/fake") "github.com/jackc/fake")))))) + (arguments + (list + #:import-path "github.com/jackc/fake")) + (home-page "https://github.com/jackc/fake") + (description + "This package is an alternative fork of @url{github.com/icrowley/fake} +used in go-github-com-jackc-pgx.") + (license license:expat))) + (define-public go-github-com-jackc-pgmock (package (name "go-github-com-jackc-pgmock") From b4bbc0c055e5460afdd207cd726260d6601e0799 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 13 Dec 2024 17:00:05 +0000 Subject: [PATCH 139/862] gnu: Add go-github-com-jackc-pgx. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgx): New variable. Change-Id: I9877c3e8012e2042e341f4f93888967f14f82887 --- gnu/packages/golang-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6f203f21d42..7aeef675659 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5030,6 +5030,60 @@ wire protocol version 3.") files (e.g. .pg_service.conf).") (license license:expat))) +(define-public go-github-com-jackc-pgx + (package + (name "go-github-com-jackc-pgx") + (version "3.6.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hbnh69ss0pq83n18b62znj3qi54y9kr31a3xi9h35p27nsk3izf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/pgx" + #:test-subdirs + #~(list ;; "pgtype/..." ; most tests require networking setup + ;; "stdlib" + ;; "." ; github.com/jackc/pgx [build failed] + "chunkreader" + "internal/sanitize" + "log/..." + "pgio" + "pgproto3") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples-and-benchmarks + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) + (native-inputs + (list go-github-com-cockroachdb-apd + go-github-com-jackc-fake)) + (propagated-inputs + (list go-github-com-gofrs-uuid + go-github-com-lib-pq + go-github-com-rs-zerolog + go-github-com-satori-go-uuid + go-github-com-shopspring-decimal + go-github-com-sirupsen-logrus + go-go-uber-org-zap)) + (home-page "https://github.com/jackc/pgx") + (synopsis "PostgreSQL driver and toolkit for Golang") + (description + "This package implements a pure Go driver and toolkit for PostgreSQL. It +is different from other drivers such as +@url{http://godoc.org/github.com/lib/pq,pq} because, while it can operate as a +database/sql compatible driver, pgx is also usable directly. It offers a +native interface similar to database/sql that offers better performance and +more features.") + (license license:expat))) + (define-public go-github-com-jackc-puddle (package (name "go-github-com-jackc-puddle") From d6aaf7d472791cf3fd850abcf2fc4c0e654c998e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 12:49:51 +0000 Subject: [PATCH 140/862] gnu: Add go-github-com-jackc-pgx-v4. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgx-v4, go-github-com-jackc-pgx-v4-bootstrap, go-github-com-jackc-pgtype, go-github-com-jackc-pgtype-bootstrap): New variables. Change-Id: I0575aae006265adfdd39462bc37cebc39e505127 --- gnu/packages/golang-xyz.scm | 100 ++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7aeef675659..2eb9313682c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5030,6 +5030,56 @@ wire protocol version 3.") files (e.g. .pg_service.conf).") (license license:expat))) +(define-public go-github-com-jackc-pgtype + (package + (name "go-github-com-jackc-pgtype") + (version "1.14.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgtype") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04yd3b1c1qph6g1giskmm49c9hk0scagfqd08bhj1pprvp9jmn2f")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; test require running PostgreSQL + #:import-path "github.com/jackc/pgtype")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-gofrs-uuid + go-github-com-jackc-pgconn + go-github-com-jackc-pgio + go-github-com-jackc-pgx-v4-bootstrap + go-github-com-lib-pq + go-github-com-shopspring-decimal)) + (home-page "https://github.com/jackc/pgtype") + (synopsis "PostgreSQL types implementations in Golang") + (description + "This package implements Go types for over 70 PostgreSQL types. It is +the type system underlying the https://github.com/jackc/pgx PostgreSQL driver. +These types support the binary format for enhanced performance with pgx. They +also support the database/sql @code{Scan} and @code{Value} interfaces and can +be used with https://github.com/lib/pq.") + (license license:expat))) + +(define-public go-github-com-jackc-pgtype-bootstrap + (hidden-package + (package + (inherit go-github-com-jackc-pgtype) + (arguments + (list #:tests? #f + #:import-path "github.com/jackc/pgtype" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-github-com-jackc-pgx (package (name "go-github-com-jackc-pgx") @@ -5084,6 +5134,56 @@ native interface similar to database/sql that offers better performance and more features.") (license license:expat))) +(define-public go-github-com-jackc-pgx-v4 + (package + (inherit go-github-com-jackc-pgx) + (name "go-github-com-jackc-pgx-v4") + (version "4.18.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xxvkgngl8c73zg06xdm5sqvck6yvrvjpzidpmsaah1az0lh1lay")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-jackc-pgx) + ((#:import-path _) "github.com/jackc/pgx/v4") + ((#:test-subdirs _) #~(list "internal/sanitize" "log/...")))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-cockroachdb-apd + go-github-com-go-kit-log + go-github-com-gofrs-uuid + go-github-com-jackc-pgconn + go-github-com-jackc-pgio + go-github-com-jackc-pgproto3-v2 + go-github-com-jackc-pgtype-bootstrap + go-github-com-jackc-puddle + go-github-com-masterminds-semver-v3 + go-github-com-rs-zerolog + go-github-com-shopspring-decimal + go-github-com-sirupsen-logrus + go-go-uber-org-zap + go-gopkg-in-inconshreveable-log15-v2)))) + +(define-public go-github-com-jackc-pgx-v4-bootstrap + (hidden-package + (package + (inherit go-github-com-jackc-pgx-v4) + (arguments + (list #:tests? #f + #:import-path "github.com/jackc/pgx/v4" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-github-com-jackc-puddle (package (name "go-github-com-jackc-puddle") From 501fa2155beb01090826f8951d50468424c6b333 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 13:07:42 +0000 Subject: [PATCH 141/862] gnu: Add go-github-com-jackc-pgx-v5. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgx-v5): New variable. Change-Id: Ia7a83221845b02bd338b7f3b310eb9b4b8462479 --- gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2eb9313682c..6a414c7ce43 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5184,6 +5184,37 @@ more features.") (native-inputs '()) (propagated-inputs '())))) +(define-public go-github-com-jackc-pgx-v5 + (package + (inherit go-github-com-jackc-pgx-v4) + (name "go-github-com-jackc-pgx-v5") + (version "5.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0b8wgqax34q77m4pmaaqlp9dr1x9mam76jx7ah1sxdldl737rv27")))) + (build-system go-build-system) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-jackc-pgx-v4) + ((#:import-path _) "github.com/jackc/pgx/v5") + ((#:test-subdirs _) + #~(list "internal/..." + "log/..." + "multitracer")))) + (propagated-inputs + (list go-github-com-jackc-pgpassfile + go-github-com-jackc-pgservicefile + go-github-com-jackc-puddle-v2 + go-golang-org-x-crypto + go-golang-org-x-sync + go-golang-org-x-text)))) + (define-public go-github-com-jackc-puddle (package (name "go-github-com-jackc-puddle") From eacb68d944c1c99ea5effb12df7f60497c3be32b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 13:26:50 +0000 Subject: [PATCH 142/862] gnu: Add go-github-com-jackc-pgerrcode. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgerrcode): New variable. Change-Id: I91be89a09b50110255b67d57b65d4a362287d82b --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6a414c7ce43..9e77ecdecf7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4906,6 +4906,30 @@ queries with a higher level library and only use pgconn directly when required for low-level access to PostgreSQL functionality.") (license license:expat))) +(define-public go-github-com-jackc-pgerrcode + (package + (name "go-github-com-jackc-pgerrcode") + (version "0.0.0-20240316143900-6e2875d9b438") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgerrcode") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00csrjkg8fg97q5wy4r2wqi88w7g1cj0f5xkp5442nz3agmkxgrj")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/pgerrcode")) + (home-page "https://github.com/jackc/pgerrcode") + (synopsis "Constants for PostgreSQL error codes") + (description + "Package pgerrcode contains constants for @code{PostgreSQL} error +codes.") + (license license:expat))) + (define-public go-github-com-jackc-pgio (package (name "go-github-com-jackc-pgio") From b78952f5671e0fcced9f4354b30e6c50e053fe89 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 13:33:00 +0000 Subject: [PATCH 143/862] gnu: go-github-com-bwesterb-go-ristretto: Fix import path. * gnu/packages/golang-crypto.scm (go-github-com-bwesterb-go-ristretto) [arguments]: Set to match go.mod module path. : Remove it. Change-Id: I4bc4a096ab5e0d75b727b8387f95f29d03b2d7d7 --- gnu/packages/golang-crypto.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 5f9a94247f2..b54cf437a3e 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -377,8 +377,8 @@ needing to use secp256k1 elliptic curve cryptography.") (base32 "0h508v790wk6g8jq0gh18296xl87vmgc4fhwnac7mk6i5g3mz6v4")))) (build-system go-build-system) (arguments - (list #:unpack-path "github.com/bwesterb/go-ristretto" - #:import-path "github.com/bwesterb/go-ristretto/edwards25519")) + (list + #:import-path "github.com/bwesterb/go-ristretto")) (home-page "https://github.com/bwesterb/go-ristretto") (synopsis "Operations on the Ristretto prime-order group") (description "This is a pure Go implementation of the group operations on From ce04ce627f26fc62d093aa0cf0e79d6610971aa1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 13:33:00 +0000 Subject: [PATCH 144/862] gnu: go-github-com-cloudflare-circl: Update to 1.5.0. * gnu/packages/golang-crypto.scm (go-github-com-cloudflare-circl): Update to 1.5.0. [source]: Remove sub-packages. Change-Id: I249e0a9342f7d1aa0b24fe63b2221028340167a3 --- gnu/packages/golang-crypto.scm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index b54cf437a3e..c8d12f2b3b1 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -480,7 +480,7 @@ described at @url{https://xxhash.com/}.") (define-public go-github-com-cloudflare-circl (package (name "go-github-com-cloudflare-circl") - (version "1.3.6") + (version "1.5.0") (source (origin (method git-fetch) @@ -489,7 +489,20 @@ described at @url{https://xxhash.com/}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "05hk5svprcjrj6k4mg4kd732pnb658llqv04z6xrcl5v77jda2kd")))) + (base32 "1pfxg0iqai760arvbkznwkb6w2w7gginqpzr49s419dp73kr99hj")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodule(s) with their own go.mod files and packed as + ;; separated packages: + ;; + ;; - github.com/cloudflare/circl/pke/kyber/internal/common/asm + ;; - github.com/cloudflare/circl/sign/internal/dilithium/asm + ;; - github.com/cloudflare/circl/simd/keccakf1600/internal/asm + (for-each delete-file-recursively + (list "pke/kyber/internal/common/asm" + "sign/internal/dilithium/asm" + "simd/keccakf1600/internal/asm")))))) (build-system go-build-system) (arguments '(#:import-path "github.com/cloudflare/circl")) From 8a1cef29e034020b1f14c2949272a895e202d374 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 13:50:22 +0000 Subject: [PATCH 145/862] gnu: go-github-com-protonmail-go-crypto: Update to 1.1.3. * gnu/packages/golang-crypto.scm (go-github-com-protonmail-go-crypto): Update to 1.1.3. [argumetns]: Use default 'check. Change-Id: I5350d74f0f763898f9dad62d18e318486ad7e148 --- gnu/packages/golang-crypto.scm | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index c8d12f2b3b1..abee13606db 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1442,7 +1442,7 @@ algorithm.") (define-public go-github-com-protonmail-go-crypto (package (name "go-github-com-protonmail-go-crypto") - (version "1.0.0") + (version "1.1.3") (source (origin (method git-fetch) @@ -1451,21 +1451,14 @@ algorithm.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "11q94983r6zjrdvflpikms4773a9s5vb9gg4qw1rj5800yhhah0n")))) + (base32 "0kcan2bw548cn6pm282zyddysv400dankcsrdanha7qmxqki34c0")))) (build-system go-build-system) (arguments (list #:import-path "github.com/ProtonMail/go-crypto" #:phases #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + (delete 'build)))) ; no go files in project's root (propagated-inputs (list go-github-com-cloudflare-circl go-golang-org-x-crypto)) From b0632d45f34d4c0f3a0573b1b9a048bac0364e7a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 13:58:05 +0000 Subject: [PATCH 146/862] gnu: go-github-com-cheggaaa-pb: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-cheggaaa-pb) [propagated-inputs]: Add go-github-com-vividcortex-ewma, to satisfy tests in v3 subdir packaged together. (go-github-com-cheggaaa-pb-v3) [propagated-inputs]: Remove go-github-com-vividcortex-ewma. Change-Id: I6f55215650e2124f86ff515e45344357ff4c18a3 --- gnu/packages/golang-xyz.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9e77ecdecf7..7af7009ebed 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1974,7 +1974,8 @@ package provides an API for comparing Golden files.") (list go-github-com-fatih-color go-github-com-mattn-go-colorable go-github-com-mattn-go-isatty - go-github-com-mattn-go-runewidth)) + go-github-com-mattn-go-runewidth + go-github-com-vividcortex-ewma)) (home-page "https://github.com/cheggaaa/pb/") (synopsis "Console progress bar for Go") (description @@ -1999,9 +2000,10 @@ package provides an API for comparing Golden files.") (list #:import-path "github.com/cheggaaa/pb/v3" #:unpack-path "github.com/cheggaaa/pb")) - (propagated-inputs - (modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb) - (append go-github-com-vividcortex-ewma))))) + (arguments + (list + #:import-path "github.com/cheggaaa/pb/v3" + #:unpack-path "github.com/cheggaaa/pb")))) (define-public go-github-com-chzyer-logex (package From 7028fd97daf37303b5568505511df0d39c315ac9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 11:04:49 +0000 Subject: [PATCH 147/862] gnu: Add go-github-com-go-errors-errors. * gnu/packages/golang-xyz.scm (go-github-com-go-errors-errors): New variable. Change-Id: I360163bb71729bb34cb24576fce49c19d8307451 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7af7009ebed..35d19ff7935 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3705,6 +3705,34 @@ also favors portability, and includes support for all POSIX systems.") (modify-inputs (package-inputs go-github-com-gdamore-tcell) (prepend go-golang-org-x-term go-golang-org-x-sys)))))) +(define-public go-github-com-go-errors-errors + (package + (name "go-github-com-go-errors-errors") + (version "1.5.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-errors/errors") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ydwx20al9x99xnki0srb9iy96y638inw05xx5jb16dn8rz09wib")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-errors/errors" + ;; Stack trace does not contain source line: 'a: b(5)'. + #:test-flags #~(list "-skip" "TestStackFormat"))) + (home-page "https://github.com/go-errors/errors") + (synopsis "Errors with stacktraces for Golang") + (description + "Package errors provides errors that have stack-traces. It provides the +type @code{*Error} which implements the standard golang error interface, so +you can use this library interchangeably with code that is expecting a normal +error return.") + (license license:expat))) + (define-public go-github-com-go-git-go-billy-v5 (package (name "go-github-com-go-git-go-billy-v5") From ced8b40fff5c6a45be25118fd198ab5940b405c3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 11:04:49 +0000 Subject: [PATCH 148/862] gnu: Add go-github-com-viant-toolbox. These packages can't be added individually because of bootstrap and dependencies chain. * gnu/packages/golang-xyz.scm ( go-github-com-viant-assertly, go-github-com-viant-assertly-bootstrap, go-github-com-viant-toolbox, go-github-com-viant-toolbox-bootstrap, go-github-com-viant-xreflect, go-github-com-viant-xunsafe): New variables. Change-Id: I2aae108e6ed5f4c3ac054af515225d76d5f9d1d1 gnu: Add go-github-com-viant-assertly. * gnu/packages/golang-check.scm (go-github-com-viant-assertly): New variable. Change-Id: Ic6e9900d7cb5edfa8a0bf3229594a02c68a379ad --- gnu/packages/golang-check.scm | 58 ++++++++++++++++ gnu/packages/golang-xyz.scm | 126 ++++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 8293d5b6c0d..4d445f6209d 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1319,6 +1319,64 @@ functions and even in applications.") functions for writing tests in an @code{xUnit} style.") (license license:expat))) +(define-public go-github-com-viant-assertly + (package + (name "go-github-com-viant-assertly") + (version "0.9.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/viant/assertly") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mli7kfkaz3k4izx76w14qhq5a8bp6x1zw9471idrhg5wxg1mr1r")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/viant/assertly" + #:test-flags #~(list "-skip" "TestAssertCoalesceWithZero") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + ;; failed to expand macro 13, path:[/]:, + ;; failed to lookup USER in env. + (setenv "USER" "guix")))))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-viant-toolbox)) + (home-page "https://github.com/viant/assertly") + (synopsis "Data structure testing library)") + (description + "This library enables complex data structure testing, specifically: +@itemize +@item realtime transformation or casting of incompatible data types with +directives system +@item consistent way of testing of unordered structures +@item contains, Range, RegExp support on any data structure deeph level +@item switch case directive to provide expected value alternatives based on +actual switch/case input match +@item macro system enabling complex predicate and expression evaluation, and +customization +@end itemize") + (license license:asl2.0))) + +(define-public go-github-com-viant-assertly-bootstrap + (hidden-package + (package + (inherit go-github-com-viant-assertly) + (arguments + (list #:tests? #f + #:import-path "github.com/viant/assertly" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-go-abhg-dev-requiredfield (package (name "go-go-abhg-dev-requiredfield") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 35d19ff7935..1b99e1b0367 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9309,6 +9309,132 @@ distributable command line applications in an expressive way.") go-github-com-xrash-smetrics go-gopkg-in-yaml-v3)))) +(define-public go-github-com-viant-toolbox + (package + (name "go-github-com-viant-toolbox") + (version "0.37.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/viant/toolbox") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1m49nar5cwx3wqym20awh7yw4fw2bdw21m4h71bx4g688gv1kri4")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/viant/toolbox" + #:test-flags #~(list "-skip" "TestCase_To|Test_NewReplayService") + #:test-subdirs #~(list "bridge/..." + "cred/..." + "data/..." + "format/..." + "sampler/..." + "secret/..." + "ssh/..." + "test/..." + "unsafe/..." + "url/..."))) + (native-inputs + (list go-github-com-stretchr-testify)) + ;; XXX: No go.mod to list dependencies, see + ;; . + (propagated-inputs + (list ;go-cloud-google-com-go-storage + ;go-github-com-aws-aws-sdk-go-aws + ;go-github-com-aws-aws-sdk-go-aws-credentials + ;go-github-com-aws-aws-sdk-go-aws-session + ;go-github-com-aws-aws-sdk-go-service-kms + ;go-github-com-aws-aws-sdk-go-service-s3 + ;go-github-com-aws-aws-sdk-go-service-s3-s3manager + ;go-github-com-aws-aws-sdk-go-service-ssm + go-github-com-go-errors-errors + go-github-com-lunixbochs-vtclean + go-github-com-pkg-errors + go-github-com-viant-xunsafe + go-golang-org-x-crypto + go-golang-org-x-oauth2 + ;go-google-golang-org-api-cloudkms-v1 + ;go-google-golang-org-api-option + go-gopkg-in-yaml-v2)) + (home-page "https://github.com/viant/toolbox") + (synopsis "Utility library for Golang") + (description + "This package provides set of utilities/abstractions developed as part of +datastore connectivity and testing (viant/dsc, viant/dsunit).") + (license license:asl2.0))) + +(define-public go-github-com-viant-toolbox-bootstrap + (hidden-package + (package + (inherit go-github-com-viant-toolbox) + (arguments + (list #:tests? #f + #:import-path "github.com/viant/toolbox" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) + (propagated-inputs + (list go-github-com-go-errors-errors + go-github-com-pkg-errors + go-gopkg-in-yaml-v2))))) + +(define-public go-github-com-viant-xreflect + (package + (name "go-github-com-viant-xreflect") + (version "0.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/viant/xreflect") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1r5y3cbs8z9frgfqrq2yv77z43fv36s7jrk49prpbfsskgpk8rh2")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; to break import cycle + #:import-path "github.com/viant/xreflect")) + (propagated-inputs + (list go-golang-org-x-mod)) + (home-page "https://github.com/viant/xreflect") + (synopsis "Golang reflection extension") + (description + "This package provides a reflection extension.") + (license license:unlicense))) + +(define-public go-github-com-viant-xunsafe + (package + (name "go-github-com-viant-xunsafe") + (version "0.9.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/viant/xunsafe") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ddf9grf7rczik9rzwmz10xagn65sn1n7mhkp7app0d3nc3xdlgs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/viant/xunsafe")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-viant-xreflect)) + (home-page "https://github.com/viant/xunsafe") + (synopsis "Faster Golang reflection") + (description + "This package provides a implementation reflection that greatly improved +performance, that is between 25 to 50x time faster than native one.") + (license license:asl2.0))) + (define-public go-github-com-vito-midterm (package (name "go-github-com-vito-midterm") From 1ce31d66295dd0affea73bb1f1bbf55111044b3a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 14 Dec 2024 18:00:21 +0000 Subject: [PATCH 149/862] gnu: go-github-com-francoispqt-gojay: Fix build. * gnu/packages/golang-web.scm (go-github-com-francoispqt-gojay): Fix build. [arguments]: Skipp 3 failing tests. : Add 'remove-examples-and-benchmarks. [native-inputs]: Add go-github-com-go-errors-errors, go-github-com-viant-assertly, and go-github-com-viant-toolbox. Change-Id: I6b489a9a3679241634ab6f68a16c5480579aa53d --- gnu/packages/golang-web.scm | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 413463dec4f..8c2d5f26dd9 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1632,7 +1632,7 @@ metrics (i.e. response time, bytes written, and http status code) from your application's http.Handlers.") (license license:expat))) -;; This project looks like domain or abandoned, see +;; This project looks like dormant or abandoned, see ;; . (define-public go-github-com-francoispqt-gojay (package @@ -1654,9 +1654,25 @@ application's http.Handlers.") ;; . #:tests? (and (not (%current-target-system)) (target-x86-64?)) - #:import-path "github.com/francoispqt/gojay")) + #:import-path "github.com/francoispqt/gojay" + #:test-flags + #~(list "-skip" (string-join + (list "TestMessage_Unmarshal" + "TestMessage_Marshal" + "TestGenerator_Generate") + "|")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples-and-benchmarks + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + (list "benchmarks" "examples")))))))) (native-inputs - (list go-github-com-stretchr-testify)) + (list go-github-com-go-errors-errors ; for CLI build + go-github-com-stretchr-testify + go-github-com-viant-assertly ; for CLI build + go-github-com-viant-toolbox)) ; for CLI build (home-page "https://github.com/francoispqt/gojay") (synopsis "JSON encoder/decoder with powerful stream API for Golang") (description From 595872742acf40a187b1635e2230a374d7a87e62 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 11:55:16 +0000 Subject: [PATCH 150/862] gnu: Add go-gojay. * gnu/packages/golang-web.scm (go-gojay): New variable. Change-Id: Ia2ba75f42fe8b39f407b7420cdd285bd723a76a0 --- gnu/packages/golang-web.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 8c2d5f26dd9..f7ff8b00313 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6724,6 +6724,20 @@ protocol.") ;;; Executables: ;;; +(define-public go-gojay + (package + (inherit go-github-com-francoispqt-gojay) + (name "go-gojay") + (arguments + (list + #:tests? #f ; already tested in the library + #:install-source? #f + #:import-path "github.com/francoispqt/gojay/gojay" + #:unpack-path "github.com/francoispqt/gojay")) + (description + "This package provides a command line tool to generate gojay's marshaling +and unmarshaling interface implementation for custom struct type(s)."))) + (define-public go-html2text (package (inherit go-github-com-jaytaylor-html2text) From d97f4c157dd93e3a299fc11d9fc0fdef58aa294c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:00:10 +0000 Subject: [PATCH 151/862] gnu: go-github-com-coreos-go-semver: Adjust inputs. * gnu/packages/golang.scm (go-github-com-coreos-go-semver) [propagated-inputs]: Remove go-gopkg-in-yaml-v2; add go-gopkg-in-yaml-v3. Change-Id: I7f2c38b11f13de1f424c8bc4b306b593e7bd8f54 --- gnu/packages/golang.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b6919ade83c..69f15fdd4d1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5213,7 +5213,7 @@ use one of our glamorous default themes.") (build-system go-build-system) (arguments `(#:import-path "github.com/coreos/go-semver")) - (propagated-inputs (list go-gopkg-in-yaml-v2)) + (propagated-inputs (list go-gopkg-in-yaml-v3)) (home-page "https://github.com/coreos/go-semver/") (synopsis "Semantic versioning library") (description "@code{go-semver} is a semantic versioning library for Go. From afcf9a61c3f714992f24ea736334dea5713a9926 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:03:02 +0000 Subject: [PATCH 152/862] gnu: go-github-com-coreos-go-semver: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-coreos-go-semver): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ib207e077c56a87d6729003b6b81da12a9ecd5f5a --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1b99e1b0367..b33f9ddb8e8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2314,6 +2314,32 @@ objects can be cached in memory without increased latency or degraded throughput.") (license license:expat))) +(define-public go-github-com-coreos-go-semver + (package + (name "go-github-com-coreos-go-semver") + (version "0.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/coreos/go-semver") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vs04yykv1bwgvbyvi1m7ps83w06wzplw4giw8jac2iidx0x74v5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/coreos/go-semver")) + (propagated-inputs + (list go-gopkg-in-yaml-v3)) + (home-page "https://github.com/coreos/go-semver/") + (synopsis "Semantic versioning library") + (description + "@code{go-semver} is a semantic versioning library for Go. It lets you +parse and compare two semantic version strings.") + (license license:asl2.0))) + (define-public go-github-com-coreos-go-systemd-v22 (package (name "go-github-com-coreos-go-systemd-v22") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 69f15fdd4d1..67a557c4ba6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5197,29 +5197,6 @@ use one of our glamorous default themes.") "A simple, efficient spring animation library for smooth, natural motion.") (license license:expat))) -(define-public go-github-com-coreos-go-semver - (package - (name "go-github-com-coreos-go-semver") - (version "0.3.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/coreos/go-semver") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0vs04yykv1bwgvbyvi1m7ps83w06wzplw4giw8jac2iidx0x74v5")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/coreos/go-semver")) - (propagated-inputs (list go-gopkg-in-yaml-v3)) - (home-page "https://github.com/coreos/go-semver/") - (synopsis "Semantic versioning library") - (description "@code{go-semver} is a semantic versioning library for Go. -It lets you parse and compare two semantic version strings.") - (license license:asl2.0))) - (define-public go-github-com-emirpasic-gods (package (name "go-github-com-emirpasic-gods") From 1ec4071924e31664e1fed522708991f5bf1c0274 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:15:58 +0000 Subject: [PATCH 153/862] gnu: go-github-com-go-git-go-billy-v5: Update to 5.6.0. * gnu/packages/golang-xyz.scm (go-github-com-go-git-go-billy-v5): Update to 5.6.0. [native-inputs]: Add go-github-com-stretchr-testify. Change-Id: I665cfd94dcee91bafe5929f07a18e64f62a6430a --- gnu/packages/golang-xyz.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b33f9ddb8e8..0d153af226c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3762,7 +3762,7 @@ error return.") (define-public go-github-com-go-git-go-billy-v5 (package (name "go-github-com-go-git-go-billy-v5") - (version "5.5.0") + (version "5.6.0") (source (origin (method git-fetch) @@ -3771,13 +3771,14 @@ error return.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1r7hfwc6lqnb7jhbbmicdlb3yipjyazq3pndpffw026fcq7jhxg1")))) + (base32 "061yczvpxq5xcnjbi8ywx0qvrispi8pwk3nqky5cv1dsi6xzkchc")))) (build-system go-build-system) (arguments (list #:import-path "github.com/go-git/go-billy/v5")) (native-inputs (list go-github-com-onsi-gomega + go-github-com-stretchr-testify go-gopkg-in-check-v1)) (propagated-inputs (list go-github-com-cyphar-filepath-securejoin From f51aa1f0a3c8f098691c656156a09e0540fcbec3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:23:54 +0000 Subject: [PATCH 154/862] gnu: go-github-com-go-git-go-git-fixtures-v4: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-go-git-go-git-fixtures-v4) [arguments]: Only test tests in project root, rest are failing, see . Change-Id: Ibd3a35217d2ab3350db030ecba722d89dfa2802c --- gnu/packages/golang-xyz.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 0d153af226c..981b9fd6b75 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3808,8 +3808,9 @@ operations.") (build-system go-build-system) (arguments (list - ;; XXX: panic: runtime error: makeslice: cap out of range + ;; XXX: The onpanic: runtime error: makeslice: cap out of range #:tests? (target-64bit?) + #:test-subdirs #~(list ".") #:import-path "github.com/go-git/go-git-fixtures/v4")) (native-inputs (list go-github-com-stretchr-testify)) From 502e70dd3ea58cf6a5ddcd0dfca84e8b463e2c21 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:27:06 +0000 Subject: [PATCH 155/862] gnu: Add go-github-com-go-git-go-git-fixtures-v5. * gnu/packages/golang-xyz.scm (go-github-com-go-git-go-git-fixtures-v5): New variable. Change-Id: I6be9e5cf8087f8fb252ae5c999f737b7c5208dd9 --- gnu/packages/golang-xyz.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 981b9fd6b75..ad9d30a1ab5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3823,6 +3823,24 @@ operations.") "This package provides fixtures used by @code{go-git}.") (license license:asl2.0))) +(define-public go-github-com-go-git-go-git-fixtures-v5 + (package + (inherit go-github-com-go-git-go-git-fixtures-v4) + (name "go-github-com-go-git-go-git-fixtures-v5") + (version "5.0.0-20241125094932-6b905c043834") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-git/go-git-fixtures") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wgw5bzzk5gynqa0j49hxklcfliv2ql7jvpsjh4fn0053rwgs730")))) + (arguments + (list + #:import-path "github.com/go-git/go-git-fixtures/v5")))) + (define-public go-github-com-go-kit-log (package (name "go-github-com-go-kit-log") From 6c54a7c6fbe1d0e36ba02c0833a89f8a8ec64574 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:34:34 +0000 Subject: [PATCH 156/862] gnu: go-github-com-google-pprof: Fix build. * gnu/packages/golang-check.scm (go-github-com-google-pprof) [arguments]: Disable as the package is source only and requires github.com/chromedp/chromedp which is removed in a newer version. Change-Id: I76637d4c57821345d9f6926092774dc6d8f0992e --- gnu/packages/golang-check.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 4d445f6209d..4f46138e54e 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -564,6 +564,7 @@ values for the purpose of fuzz testing.") (build-system go-build-system) (arguments (list + #:tests? #f ; source only package #:import-path "github.com/google/pprof" #:phases #~(modify-phases %standard-phases From 6f0b82d0a67cccb12ec1f6b1046240ce5293639b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:43:01 +0000 Subject: [PATCH 157/862] gnu: go-github-com-hashicorp-hcl: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-hashicorp-hcl) [arguments]: Provide subdirs where most of the tests are passed, exclude "parser". Change-Id: I734f187f3356161e9f8f65614706c26989723060 --- gnu/packages/golang-xyz.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ad9d30a1ab5..7fb4924940b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4748,7 +4748,10 @@ overhead is linear with the size of the cache.") (build-system go-build-system) (arguments (list - #:import-path "github.com/hashicorp/hcl")) + #:import-path "github.com/hashicorp/hcl" + #:test-subdirs + #~(list "json/..." "hcl/ast" "hcl/fmtcmd" "hcl/printer" "hcl/scanner" + "hcl/strconv" "hcl/token" "."))) (native-inputs (list go-github-com-davecgh-go-spew)) (synopsis "Go implementation of HashiCorp Configuration Language V1") From 40252c5c06027558f63159cf3453234eef2e10bc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:58:05 +0000 Subject: [PATCH 158/862] gnu: go-github-com-ipfs-go-datastore: Fix build. * gnu/packages/ipfs.scm (go-github-com-ipfs-go-datastore) [argumetns]: Exclude "fuzz" from scope which introduces cyle. It provides a CLI command. : Add 'remove-examples. Change-Id: I0ee83bd5a386afe703d81d999c7650f7f9c42bf9 --- gnu/packages/ipfs.scm | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 9b5c3820fe9..ff3b6c95fb1 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -366,7 +366,30 @@ keys used by @code{go-ipfs} (Kubo).") (build-system go-build-system) (arguments (list - #:import-path "github.com/ipfs/go-datastore")) + #:import-path "github.com/ipfs/go-datastore" + #:test-subdirs + #~(list "autobatch/..." + "delayed/..." + "examples/..." + "failstore/..." + ;; "fuzz/..." ; introduces cycle, for CLI + "keytransform/..." + "mount/..." + "namespace/..." + "query/..." + "retrystore/..." + "scoped/..." + "sync/..." + "test/..." + "trace/..." + ".") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + (list "examples")))))))) (native-inputs (list go-gopkg-in-check-v1)) (propagated-inputs From 38b1306924f3e6ab41f48402e6c77d6dff88394b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 12:59:58 +0000 Subject: [PATCH 159/862] gnu: Add go-github-com-ipfs-go-ds-flatfs. * gnu/packages/ipfs.scm (go-github-com-ipfs-go-ds-flatfs): New variable. Change-Id: If2cf1b606a22ebe685d05b090f96596c75144139 --- gnu/packages/ipfs.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index ff3b6c95fb1..87a4d584649 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -173,6 +173,35 @@ by a @acronym{Content Identifiers,CID}. The CID contains the multihash corresponding to the block.") (license license:expat))) +(define-public go-github-com-ipfs-go-ds-flatfs + (package + (name "go-github-com-ipfs-go-ds-flatfs") + (version "0.5.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ipfs/go-ds-flatfs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1mrgl6kslq4d4zfpdyxvqxz8brhm8wphvnp916pippn7z63sayj3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ipfs/go-ds-flatfs")) + (propagated-inputs + (list go-github-com-ipfs-go-datastore + go-github-com-ipfs-go-log + go-github-com-jbenet-goprocess)) + (home-page "https://github.com/ipfs/go-ds-flatfs") + (synopsis "Datastore implementation using sharded directories and flat files to store data") + (description + "Package flatfs is a Datastore implementation that stores all objects in +a two-level directory structure in the local file system, regardless of the +hierarchy of the keys.") + (license license:expat))) + (define-public go-github-com-ipfs-go-ipfs-blockstore (package (name "go-github-com-ipfs-go-ipfs-blockstore") From 6b85801ec0ce9e85d1ca8c82af36b6419d6b5b9a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:09:15 +0000 Subject: [PATCH 160/862] gnu: go-github-com-jessevdk-go-flags: Update to 1.6.1. * gnu/packages/golang.scm (go-github-com-jessevdk-go-flags): Update to 1.6.1. [arguments]: Skip 2 failing tests. : Remove 'fix-tests. Change-Id: I60aca1bb542183dbd166b087ecdb4699eef06ef4 --- gnu/packages/golang.scm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 67a557c4ba6..c665bfb7c08 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2573,7 +2573,7 @@ specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.") (define-public go-github-com-jessevdk-go-flags (package (name "go-github-com-jessevdk-go-flags") - (version "1.5.0") + (version "1.6.1") (source (origin (method git-fetch) (uri (git-reference @@ -2581,17 +2581,12 @@ specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "13ixw1yx4bvcj66lkc8zgwf9j7gkvj686g991gycdsafvdvca0lj")))) + (base32 "1dxk8n06sh15rm7777v5jgwxz9ca1c090ni6lyjhj1d2lxfysb45")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/jessevdk/go-flags" - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-tests - (lambda _ - ;; SOURCE_DATE_EPOCH messes with the date on the man page test. - (substitute* "src/github.com/jessevdk/go-flags/help_test.go" - (("TestMan") "DisabledTestMan"))))))) + (list + #:import-path "github.com/jessevdk/go-flags" + #:test-flags #~(list "-skip" "TestCompletion|TestParserCompletion"))) (propagated-inputs (list go-golang-org-x-sys)) (synopsis "Go library for parsing command line arguments") From c80603587b4cbac79b5ce5f7f0fade23133054bd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:16:10 +0000 Subject: [PATCH 161/862] gnu: go-github-com-jessevdk-go-flags: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-jessevdk-go-flags): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I22d75782b89c531545528d3ab86a7a8702c55e33 --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 28 ---------------------------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7fb4924940b..a08ac1233e4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5494,6 +5494,35 @@ and stop units of work, which may receive @code{Close} signals from many clients "NLP-related string utility functions for Golang.") (license license:expat))) +(define-public go-github-com-jessevdk-go-flags + (package + (name "go-github-com-jessevdk-go-flags") + (version "1.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jessevdk/go-flags") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dxk8n06sh15rm7777v5jgwxz9ca1c090ni6lyjhj1d2lxfysb45")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jessevdk/go-flags" + #:test-flags #~(list "-skip" "TestCompletion|TestParserCompletion"))) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/jessevdk/go-flags") + (synopsis "Go library for parsing command line arguments") + (description + "The @code{flags} package provides a command line option parser. The +functionality is similar to the go builtin @code{flag} package, but +@code{flags} provides more options and uses reflection to provide a succinct +way of specifying command line options.") + (license license:bsd-3))) + (define-public go-github-com-jinzhu-copier (package (name "go-github-com-jinzhu-copier") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c665bfb7c08..828deefca6c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2570,34 +2570,6 @@ Under Windows, the console APIs are used. Otherwise, ANSI texts are output.") specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.") (license license:expat))) -(define-public go-github-com-jessevdk-go-flags - (package - (name "go-github-com-jessevdk-go-flags") - (version "1.6.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jessevdk/go-flags") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1dxk8n06sh15rm7777v5jgwxz9ca1c090ni6lyjhj1d2lxfysb45")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/jessevdk/go-flags" - #:test-flags #~(list "-skip" "TestCompletion|TestParserCompletion"))) - (propagated-inputs - (list go-golang-org-x-sys)) - (synopsis "Go library for parsing command line arguments") - (description - "The @code{flags} package provides a command line option parser. The -functionality is similar to the go builtin @code{flag} package, but -@code{flags} provides more options and uses reflection to provide a succinct -way of specifying command line options.") - (home-page "https://github.com/jessevdk/go-flags") - (license license:bsd-3))) - (define-public go-github-com-go-playground-universal-translator (package (name "go-github-com-go-playground-universal-translator") From e82afd9a8ed378030c38b4836d12cb3246f80774 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:22:19 +0000 Subject: [PATCH 162/862] gnu: go-github-com-aws-smithy-go: Fix build. * gnu/packages/golang-web.scm (go-github-com-aws-smithy-go) [arguments]: Run tests only in project root. Change-Id: I04ab9c8579480ba7d9e7e9db8637ea1f3af78585 --- gnu/packages/golang-web.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index f7ff8b00313..12cf06f8e7d 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -595,7 +595,11 @@ credentials sources.") (base32 "1pcq9d154l41c4k23q6ri51ba5i2kc8ihrv4sgkv4q59cw70rspi")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/aws/smithy-go")) + (list + #:import-path "github.com/aws/smithy-go" + ;; XXX: It contains a lot of sub packages defined with go.mod, consider + ;; to pack them separately. + #:test-subdirs #~(list "."))) (propagated-inputs (list go-github-com-jmespath-go-jmespath go-github-com-google-go-cmp)) (home-page "https://github.com/aws/smithy-go") From 7fabb79055d343932a3f9276db70d9da59762cd1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:25:15 +0000 Subject: [PATCH 163/862] gnu: go-github-com-aws-aws-sdk-go-v2: Fix build. * gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go-v2) [arguments]: Run tests only in project root. Change-Id: Ia8c4ab0248b85e49e3c474a8ac97872a80ef84c6 --- gnu/packages/golang-web.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 12cf06f8e7d..92554977a0a 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -465,7 +465,10 @@ functions.") (build-system go-build-system) (arguments (list - #:import-path "github.com/aws/aws-sdk-go-v2")) + #:import-path "github.com/aws/aws-sdk-go-v2" + ;; XXX: It contains a lot of sub packages defined with go.mod, consider + ;; to pack them separately. + #:test-subdirs #~(list "."))) (propagated-inputs (list go-github-com-jmespath-go-jmespath go-github-com-aws-smithy-go)) From 46aa241c03822f3a50b68fd0bf5bc6074dfbcda1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:32:17 +0000 Subject: [PATCH 164/862] gnu: go-github-com-google-gofuzz: Update to 1.2.0. * gnu/packages/golang-check.scm (go-github-com-google-gofuzz): Update to 1.2.0. Change-Id: Ib4145f50143bd66ca297826ec3cac0f096f0734b --- gnu/packages/golang-check.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 4f46138e54e..5820934266e 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -523,21 +523,19 @@ package, but can be used in other contexts too.") (license license:bsd-3))) (define-public go-github-com-google-gofuzz - (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382") - (revision "0")) (package (name "go-github-com-google-gofuzz") - (version (git-version "0.0.0" revision commit)) + (version "1.2.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/google/gofuzz") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "1yxmmr73h0lq7ryf3q9a7pcm2x5xrg4d5bxkq8n5pxwxwyq26kw8")))) + "19bykk6y9d1ivylxchkx1r1d02xrh3wfvvd02zvr5qv5ippv78ag")))) (build-system go-build-system) (arguments '(#:import-path "github.com/google/gofuzz")) @@ -545,7 +543,7 @@ package, but can be used in other contexts too.") (synopsis "Fuzz testing library for Go") (description "Gofuzz is a library for populationg Go objects with random values for the purpose of fuzz testing.") - (license license:asl2.0)))) + (license license:asl2.0))) ;; XXX: Placing to (gnu package profiling) creates some failing cycles. (define-public go-github-com-google-pprof From 438925126b3143463e5bf4262c9a6f80e6ba07e6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:32:36 +0000 Subject: [PATCH 165/862] gnu: go-github-com-google-gofuzz: Fix indentation. * gnu/packages/golang-check.scm (go-github-com-google-gofuzz): Fix indentation. Change-Id: I2bc2d39600bef6f22e8216d8f7fc53bef47c1d5e --- gnu/packages/golang-check.scm | 43 ++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 5820934266e..c21ced31def 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -523,27 +523,28 @@ package, but can be used in other contexts too.") (license license:bsd-3))) (define-public go-github-com-google-gofuzz - (package - (name "go-github-com-google-gofuzz") - (version "1.2.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/google/gofuzz") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "19bykk6y9d1ivylxchkx1r1d02xrh3wfvvd02zvr5qv5ippv78ag")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/google/gofuzz")) - (home-page "https://github.com/google/gofuzz") - (synopsis "Fuzz testing library for Go") - (description "Gofuzz is a library for populationg Go objects with random -values for the purpose of fuzz testing.") - (license license:asl2.0))) + (package + (name "go-github-com-google-gofuzz") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/gofuzz") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19bykk6y9d1ivylxchkx1r1d02xrh3wfvvd02zvr5qv5ippv78ag")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/google/gofuzz")) + (home-page "https://github.com/google/gofuzz") + (synopsis "Fuzz testing library for Go") + (description + "Gofuzz is a library for populationg Go objects with random values for +the purpose of fuzz testing.") + (license license:asl2.0))) ;; XXX: Placing to (gnu package profiling) creates some failing cycles. (define-public go-github-com-google-pprof From 1d90683d5b0509df1a1063bf2625abb0cf327f7a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:35:26 +0000 Subject: [PATCH 166/862] gnu: go-github-com-creack-pty: Update to 1.1.24. * gnu/packages/golang-xyz.scm (go-github-com-creack-pty): Update to 1.1.24. Change-Id: Ibde9155be0ba4132993a4c71cb3b3fb93f695d6f --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a08ac1233e4..50e6fe47c21 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2423,7 +2423,7 @@ submodules: (define-public go-github-com-creack-pty (package (name "go-github-com-creack-pty") - (version "1.1.23") + (version "1.1.24") (source (origin (method git-fetch) @@ -2432,7 +2432,7 @@ submodules: (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1chx7ml9wlpk8pzgnnxb97gblmxz1j1v37m5i1asb94l5c24r1fg")))) + (base32 "0yy4zhfb7vrrbwd13rcw0zzcq0ami3zv3hp0x7g7il6mrbadcf25")))) (build-system go-build-system) (arguments (list From f30e497a3647f796322aa5a6be2bfaad3d8e5b7b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:41:54 +0000 Subject: [PATCH 167/862] gnu: go-github-com-kr-fs: Fix tests. * gnu/packages/golang.scm (go-github-com-kr-fs) [arguments]: Skip one failing test. Change-Id: I4f80205496127d3760a678e591eb58d0672d1b2a --- gnu/packages/golang.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 828deefca6c..3c411eb8e66 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4258,7 +4258,9 @@ have super fancy logs.") "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/kr/fs")) + (list + #:import-path "github.com/kr/fs" + #:test-flags #~(list "-skip" "TestBug3486"))) (home-page "https://github.com/kr/fs") (synopsis "File-system-related functions for Go") (description From d1f86c4b69fbbffcb6d9d867e92bd1beb3f3cf9a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:45:45 +0000 Subject: [PATCH 168/862] gnu: go-github-com-kr-fs: Move to golang-xyz. * gnu/packages/golang.scm: ... to here. * gnu/packages/golang-xyz.scm (go-github-com-kr-fs): Move from here ... Change-Id: Iefc12b42656a6fdc90e62286a592c7041670d5b4 --- gnu/packages/golang-xyz.scm | 30 +++++++++++++++++++++++++++++- gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 50e6fe47c21..8336ee2af72 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1,9 +1,11 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017-2020 Leo Famulari ;;; Copyright © 2018 Pierre Neidhardt +;;; Copyright © 2018 Pierre Neidhardt ;;; Copyright © 2018 Pierre-Antoine Rouby ;;; Copyright © 2018, 2020 Christopher Baines ;;; Copyright © 2019 Brian Leung +;;; Copyright © 2019, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2019, 2021 Vagrant Cascadian ;;; Copyright © 2019-2021 Martin Becze ;;; Copyright © 2019-2024 Efraim Flashner @@ -25,7 +27,6 @@ ;;; Copyright © 2021 Ricardo Wurmus ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Stefan Reichör -;;; Copyright © 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 raingloom ;;; Copyright © 2021, 2023, 2024 Sharlatan Hellseher ;;; Copyright © 2022 (unmatched-parenthesis @@ -5869,6 +5870,33 @@ very eas to use.") allocation. @code{fastime} is returning the approximate time.") (license license:expat))) +(define-public go-github-com-kr-fs + (let ((commit "1455def202f6e05b95cc7bfc7e8ae67ae5141eba") + (revision "0")) + (package + (name "go-github-com-kr-fs") + (version (git-version "0.1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kr/fs") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kr/fs" + #:test-flags #~(list "-skip" "TestBug3486"))) + (home-page "https://github.com/kr/fs") + (synopsis "File-system-related functions for Go") + (description + "The fs package provides file-system-related Go functions.") + (license license:bsd-3)))) + (define-public go-github-com-kr-pretty (package (name "go-github-com-kr-pretty") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3c411eb8e66..9b2543b6465 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4240,33 +4240,6 @@ anchor names.") have super fancy logs.") (license license:expat)))) -(define-public go-github-com-kr-fs - (let ((commit "1455def202f6e05b95cc7bfc7e8ae67ae5141eba") - (revision "0")) - (package - (name "go-github-com-kr-fs") - (version (git-version "0.1.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kr/fs") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/kr/fs" - #:test-flags #~(list "-skip" "TestBug3486"))) - (home-page "https://github.com/kr/fs") - (synopsis "File-system-related functions for Go") - (description - "The fs package provides file-system-related Go functions.") - (license license:bsd-3)))) - (define-public go-github-com-kr-text (package (name "go-github-com-kr-text") From deeef3655e39ab80522958adc19abe3c8bcd602c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 13:41:54 +0000 Subject: [PATCH 169/862] gnu: go-github-com-pkg-sftp: Update to 1.13.7. * gnu/packages/golang-web.scm (go-github-com-pkg-sftp): Update to 1.13.7. Change-Id: I78eca4d6b0005450f458c44a738cf0eb0007a0c6 --- gnu/packages/golang-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 92554977a0a..779428215f3 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5224,7 +5224,7 @@ dependant.") (define-public go-github-com-pkg-sftp (package (name "go-github-com-pkg-sftp") - (version "1.13.6") + (version "1.13.7") (source (origin (method git-fetch) @@ -5233,7 +5233,7 @@ dependant.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0n35lzfrnrffjqy34ny6gxs27kq81s67ply6q8s1g19mhfzm6my7")))) + (base32 "0hhnsl327acwlmvp8wk4x1ml2mi6gdrdwm1dh9666n2cj9d8yj24")))) (build-system go-build-system) (arguments (list From 995509e6292477651fe17d2985c92f348a88c9ef Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 14:01:24 +0000 Subject: [PATCH 170/862] gnu: go-github-com-json-iterator-go: Fix tests. * gnu/packages/golang-web.scm (go-github-com-json-iterator-go) [arguments]: Skip one failing test group. Change-Id: I008b735c4592423c75382694fed8a3419c86af01 --- gnu/packages/golang-web.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 779428215f3..53bd6b58fb3 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3196,7 +3196,11 @@ controlled. It is based on netlink messages.") (base32 "1c8f0hxm18wivx31bs615x3vxs2j3ba0v6vxchsjhldc8kl311bz")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/json-iterator/go")) + (list + #:import-path "github.com/json-iterator/go" + #:test-flags + ;; XXX: Try to skip just "Test_symmetric/map[test.stringKeyType]string". + #~(list "-skip" "Test_symmetric"))) (native-inputs (list go-github-com-davecgh-go-spew go-github-com-google-gofuzz From 4f41eb9dc950f0bd409b0a0d9854515456f9498c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 14:10:44 +0000 Subject: [PATCH 171/862] gnu: Add go-gitlab-com-yawning-bsaes-git. * gnu/packages/golang-crypto.scm (go-gitlab-com-yawning-bsaes-git): New variable. Change-Id: I8e97037c5c40d35d8c9c00a277b8030529185d92 --- gnu/packages/golang-crypto.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index abee13606db..b66f6b720f1 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1722,6 +1722,34 @@ and SSE4.1 acceleration.") Congruential Generator} (PCG) algorithm.") (license license:cc0))) +(define-public go-gitlab-com-yawning-bsaes-git + (package + (name "go-gitlab-com-yawning-bsaes-git") + (version "0.0.0-20190805113838-0a714cd429ec") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/yawning/bsaes.git") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1w4g9phpb2f02dpkyd0ixp8jw9v42lnjljj4ysfz8im15abskwdn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gitlab.com/yawning/bsaes.git")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://gitlab.com/yawning/bsaes") + (synopsis "AES implementatin in Golang") + (description + "The @code{bsaes} is a portable pure-Go constant time AES implementation +based on the code from @url{https://bearssl.org/,BearSSL}. On appropriate +systems, with a sufficiently recent Go runtime, it will transparently call +crypto/aes when NewCipher is invoked.") + (license license:expat))) + (define-public go-gitlab-com-yawning-edwards25519-extra (let ((commit "2149dcafc266f66d2487f45b156f6397f9c4760b") (revision "0")) From 657eee6dc0830f1ec2ed6605dbfee33abb79eed4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 14:46:25 +0000 Subject: [PATCH 172/862] gnu: go-github-com-dsnet-compress: Fix tests. * gnu/packages/golang-compression.scm (go-github-com-dsnet-compress) [arguments]: Skip tests in "internal/tool" including benchmarks. Change-Id: I59efe15b8e44d9f3bfe078f9112fb8ac34e153d9 --- gnu/packages/golang-compression.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index d26d775a423..f0f253c7e37 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -80,6 +80,9 @@ the @code{c2go} tool at (arguments (list #:import-path "github.com/dsnet/compress" + #:test-subdirs + #~(list "brotli/..." "bzip2/..." "flate" "internal" "internal/prefix" + "internal/testutil" "xflate/...") #:phases #~(modify-phases %standard-phases ;; Testdata directories contains some compressed files requiring From 57a49ea4f065a03556a1d2ba83c6e418caad9ac7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 14:46:25 +0000 Subject: [PATCH 173/862] gnu: go-github-com-dsnet-golib: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-dsnet-golib) [propagated-inputs]: Add go-github-com-google-go-cmp. Change-Id: I1eabd4242bd34acfbc2d1f0c3517e150da317721 --- gnu/packages/golang-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8336ee2af72..096eb4b4b10 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3025,6 +3025,8 @@ implementation of http://docopt.org/.") (arguments (list #:import-path "github.com/dsnet/golib")) + (propagated-inputs + (list go-github-com-google-go-cmp)) (home-page "https://github.com/dsnet/golib") (synopsis "Collection of helper libraries for Golang") (description From 21098375bf2f1f20468544abca19e6dbfa4ed4f0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 14:46:16 +0000 Subject: [PATCH 174/862] gnu: Add go-gitlab-com-yawning-utls-git. * gnu/packages/golang-crypto.scm (go-gitlab-com-yawning-utls-git): New variable. Change-Id: I782d94445c1e7fe2da259e1333cb09a5bfbe486a --- gnu/packages/golang-crypto.scm | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index b66f6b720f1..a435274063d 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1815,6 +1815,49 @@ package is intended for interoperability with the standard library and the possible.") (license license:bsd-3)))) +(define-public go-gitlab-com-yawning-utls-git + (package + (name "go-gitlab-com-yawning-utls-git") + (version "0.0.12-1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/yawning/utls.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0f4m5g6yc0kn2s457gy98id4rr4m4z56y1nsxzx3xl04n408aimx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gitlab.com/yawning/utls.git" + #:test-flags + #~(list "-skip" (string-join + ;; Test requiring network setup. + (list "TestHandshakeClientCertECDSA" + "TestHandshakeServerECDHEECDSAAES" + "TestVerifyHostname" + ;; Fails with error: misamtch on read. + "TestCipherSuiteCertPreferenceECDSA/TLSv12" + "TestUTLSHandshakeClientParrotGolang" + ;; Fails with error: expected "key size too small + ;; for PSS signature". + "TestKeyTooSmallForRSAPSS") + "|")))) + (propagated-inputs + (list go-github-com-dsnet-compress + go-gitlab-com-yawning-bsaes-git + go-golang-org-x-crypto + go-golang-org-x-net)) + (home-page "https://gitlab.com/yawning/utls") + (synopsis "Alternative fork of @code{github.com/refraction-networking/utls}") + (description + "This provides a fork of +@url{https://github.com/refraction-networking/utls,uTLS} for the specific +purpose of improving obfs4proxy's meek_lite transport.") + (license license:bsd-3))) + (define-public go-lukechampine-com-blake3 (package (name "go-lukechampine-com-blake3") From f7015c7ce8be16f603c9a094ea496e57720d32ce Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 15:08:33 +0000 Subject: [PATCH 175/862] gnu: Add go-gitlab-com-yawning-obfs4-git. * gnu/packages/golang-crypto.scm (go-gitlab-com-yawning-obfs4-git): New variable. Change-Id: Ib8dfba8dbe8faac199c1e98a3e4c01b7ce26f859 --- gnu/packages/golang-crypto.scm | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index a435274063d..ad3b23a666a 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1815,6 +1815,49 @@ package is intended for interoperability with the standard library and the possible.") (license license:bsd-3)))) +(define-public go-gitlab-com-yawning-obfs4-git + (package + (name "go-gitlab-com-yawning-obfs4-git") + (version "0.0.0-20231012084234-c3e2d44b1033") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/yawning/obfs4.git") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kv62161jf28v1d31avlc0f5iyk5ar06zlk3zdw99hyyfqjiasdr")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gitlab.com/yawning/obfs4.git" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (propagated-inputs + (list go-filippo-io-edwards25519 + go-github-com-dchest-siphash + go-gitlab-com-yawning-edwards25519-extra + go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib + go-golang-org-x-crypto + go-golang-org-x-net)) + (home-page "https://gitlab.com/yawning/obfs4") + (synopsis "Network traffic obfourscator library") + (description + "This package implements functionality based on ideas and concepts from +Philipp Winter's +@url{https://www.cs.kau.se/philwint/scramblesuit/,ScrambleSuit} protocol. +The notable differences between ScrambleSuit and obfs4: +@itemize +@item the handshake always does a full key exchange (no such thing as a +Session Ticket Handshake) +@item the handshake uses the Tor Project's ntor handshake with public keys +obfuscated via the Elligator 2 mapping +@item the link layer encryption uses NaCl secret boxes (Poly1305/XSalsa20) +@end itemize") + (license license:gpl3+))) + (define-public go-gitlab-com-yawning-utls-git (package (name "go-gitlab-com-yawning-utls-git") From 8a5f8916445e84cbd72896977eb0aecc61c94304 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 15:12:09 +0000 Subject: [PATCH 176/862] gnu: go-github-com-youmark-pkcs8: Update to 1.3. * gnu/packages/golang-crypto.scm (go-github-com-youmark-pkcs8): Update to 1.3. Change-Id: Ibcb3bdc9103e611a865231cfc18c21c9f28db0e3 --- gnu/packages/golang-crypto.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index ad3b23a666a..7cd59d869f5 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1642,7 +1642,7 @@ ssh-agent process using the sample server.") (define-public go-github-com-youmark-pkcs8 (package (name "go-github-com-youmark-pkcs8") - (version "1.2") + (version "1.3") (source (origin (method git-fetch) @@ -1651,7 +1651,7 @@ ssh-agent process using the sample server.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0ckdrwa5rmp2c85936qd9d0gzrnrvqfg0297ansz5frdhg6fc6nq")))) + (base32 "17pnl7b0ml4595cmxhramnc7ry6df6f4zisvaafxj4r7ravx8i7c")))) (build-system go-build-system) (arguments (list From 9bef96bdc0d683410350231b185d47fd58a37f45 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 15:40:16 +0000 Subject: [PATCH 177/862] gnu: go-github-com-onsi-ginkgo-v2: Update to 2.22.0. * gnu/packages/golang-check.scm (go-github-com-onsi-ginkgo-v2): Update to 2.22.0. Change-Id: Id365096c55a771e8e148226c337c8e30738dd950 --- gnu/packages/golang-check.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index c21ced31def..956a2ede13f 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -924,7 +924,7 @@ Gomega matcher library.") (package (inherit go-github-com-onsi-ginkgo) (name "go-github-com-onsi-ginkgo-v2") - (version "2.19.0") + (version "2.22.0") (source (origin (method git-fetch) @@ -933,10 +933,14 @@ Gomega matcher library.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0dwnkcysb5d9dyg8p84hhx5a3sj85g3bwgki1pgay4i8glz7xa7q")))) + (base32 "1mla4hr73ykbhl2mr40vzr4fjl97whr17ip907cac78fzch1csn8")))) (arguments (list - #:import-path "github.com/onsi/ginkgo/v2")) + #:import-path "github.com/onsi/ginkgo/v2" + #:test-subdirs + ;; XXX: Most of the tests hang, find out why, keeping bare minimal + ;; amount. + #~(list "dsl/..." "extensions/globals" "."))) (propagated-inputs (list go-github-com-go-logr-logr go-github-com-go-task-slim-sprig-v3 From ad071544aea3e6c8644daaa6f52c0baadd877516 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 15:45:40 +0000 Subject: [PATCH 178/862] gnu: go-github-com-smartystreets-goconvey: Improve package style. * gnu/packages/golang-check.scm (go-github-com-smartystreets-goconvey) [version]: Apply the same stile as produced by importer. [source]: Adjust accordingly. [arguments]: Use list style. [description]: Start from a new line. Change-Id: Ie89644cec96c775c5f19f9ecc3ffaa15fba432cb --- gnu/packages/golang-check.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 956a2ede13f..c2330ce9df7 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1247,28 +1247,29 @@ execution when a test fails.") (define-public go-github-com-smartystreets-goconvey (package (name "go-github-com-smartystreets-goconvey") - (version "v1.8.1") + (version "1.8.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/smartystreets/goconvey") - (commit version))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0s9s7yd4jfwgirnz46kw1sfhgcgsdzfxlca6q16i6ixaqczfaap9")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/smartystreets/goconvey")) + (list + #:import-path "github.com/smartystreets/goconvey")) (propagated-inputs (list go-github-com-jtolds-gls go-github-com-smarty-assertions go-golang-org-x-tools)) (home-page "https://github.com/smartystreets/goconvey") (synopsis "Go testing tool with both a web and terminal user interface") - (description "GoConvey is a testing tool for Go. It integrates with go -test, can show test coverage and has a web user interface that will refresh -automatically.") + (description + "GoConvey is a testing tool for Go. It integrates with go test, can show +test coverage and has a web user interface that will refresh automatically.") (license license:expat))) (define-public go-github-com-smarty-assertions From 58c2f5e6cb38021627d0f857a254425d89ea4b69 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 15:49:27 +0000 Subject: [PATCH 179/862] gnu: go-github-com-smartystreets-goconvey: Fix tests. * gnu/packages/golang-check.scm (go-github-com-smartystreets-goconvey) [arguments]: Skip 5 failing tests. Change-Id: I1b05b716cfc244836183d5a0d8d524e4eed54f05 --- gnu/packages/golang-check.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index c2330ce9df7..8ee51cf5652 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1260,7 +1260,16 @@ execution when a test fails.") (build-system go-build-system) (arguments (list - #:import-path "github.com/smartystreets/goconvey")) + #:import-path "github.com/smartystreets/goconvey" + #:test-flags + ;; XXX: Figure out why these test fail. + #~(list "-skip" (string-join + (list "TestShellIntegration" + "TestStackModeMultipleInvocationInheritance" + "TestStackModeMultipleInvocationInheritance2" + "TestStackModeMultipleInvocationInheritance3" + "TestWatcher") + "|")))) (propagated-inputs (list go-github-com-jtolds-gls go-github-com-smarty-assertions From dbcec82ce8b3c0530f9b835ff90f75cb25e2108f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 16:04:14 +0000 Subject: [PATCH 180/862] gnu: Add go-github-com-burntsushi-graphics-go. * gnu/packages/golang-xyz.scm (go-github-com-burntsushi-graphics-go): New variable. Change-Id: Iadbee81a5ca2c9b65d84e6cdffc69abff4b114e9 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 096eb4b4b10..9eaed6a2b85 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1585,6 +1585,32 @@ indicator to any terminal application.") strings into words like a POSIX or Windows shell would.") (license license:expat))) +(define-public go-github-com-burntsushi-graphics-go + (package + (name "go-github-com-burntsushi-graphics-go") + (version "0.0.0-20160129215708-b43f31a4a966") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/BurntSushi/graphics-go") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1084wkrj5l6j48s9lkh28h2zgmw8kp63ra1yw1nfpkf0f6hil3hn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/BurntSushi/graphics-go" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (home-page "https://github.com/BurntSushi/graphics-go") + (synopsis "Graphics library for the Golang") + (description + "This package provides a library to works with graphics.") + (license license:bsd-3))) + (define-public go-github-com-burntsushi-toml (package (name "go-github-com-burntsushi-toml") From d371b14b060359012622aa7a97a9e8fe08c8565f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 17:33:34 +0000 Subject: [PATCH 181/862] gnu: go-github-com-mattn-go-sixel: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-mattn-go-sixel) [native-inputs]: Add go-github-com-burntsushi-graphics-go. Change-Id: Ife2a552d26855ced247ba8b8b52e259ce5dbe211 --- gnu/packages/golang-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9eaed6a2b85..18d972d6527 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6600,6 +6600,8 @@ the @code{cpan} module @code{Parse::CommandLine}.") (arguments (list #:import-path "github.com/mattn/go-sixel")) + (native-inputs + (list go-github-com-burntsushi-graphics-go)) ; for the CLI command (propagated-inputs (list go-github-com-soniakeys-quant)) (home-page "https://github.com/mattn/go-sixel") From 93bb9b39f3329078d716a51c40ad43fb92786e04 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 17:49:16 +0000 Subject: [PATCH 182/862] gnu: Add go-sixel. * gnu/packages/golang-xyz.scm (go-sixel): New variable. Change-Id: Ibf4dce9f2b98b7fb046b663e26a752d616ad670b --- gnu/packages/golang-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 18d972d6527..73029903e97 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10962,6 +10962,44 @@ go-github-com-orisano-pixelmatch source."))) " This package provides an command line interface (CLI) tool.")))) +(define-public go-sixel + (package + (inherit go-github-com-mattn-go-sixel) + (name "go-sixel") + (arguments + (list + #:tests? #f ; tested in the library + #:install-source? #f + #:unpack-path "github.com/mattn/go-sixel" + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda arguments + (for-each + (lambda (cmd) + (apply (assoc-ref %standard-phases 'build) + `(,@arguments #:import-path ,cmd))) + (list "github.com/mattn/go-sixel/cmd/goscat" + "github.com/mattn/go-sixel/cmd/gosd" + "github.com/mattn/go-sixel/cmd/gosgif" + "github.com/mattn/go-sixel/cmd/gosl" + "github.com/mattn/go-sixel/cmd/gosr")))) + (replace 'install + (lambda arguments + (for-each + (lambda (cmd) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,cmd))) + (list "github.com/mattn/go-sixel/cmd/goscat" + "github.com/mattn/go-sixel/cmd/gosd" + "github.com/mattn/go-sixel/cmd/gosgif" + "github.com/mattn/go-sixel/cmd/gosl" + "github.com/mattn/go-sixel/cmd/gosr"))))))) + (description + (string-append (package-description go-github-com-mattn-go-sixel) + " This package provides an command line interface (CLI) +tools.")))) + (define-public go-tengo (package (inherit go-github-com-d5-tengo-v2) From 72a36836896bf88bd938070405869db14d67342d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 18:12:58 +0000 Subject: [PATCH 183/862] gnu: go-github-com-dgraph-io-badger: Simplify package. * gnu/packages/golang-xyz.scm (go-github-com-dgraph-io-badger) [arguments]: Move skip logic here. : Use default 'check. Change-Id: I2dba8ea691337999ed9d6f9c9b20300fb9576187 --- gnu/packages/golang-xyz.scm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 73029903e97..4d879f9c4f6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2818,6 +2818,10 @@ encoding/decoding. It has no dependencies.") (arguments (list #:import-path "github.com/dgraph-io/badger" + #:test-flags + #~(list "-skip" + ;; Test fails with error: assertion is not equal. + "TestBuildKeyValueSizeHistogram/All_same_size_key-values") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-failing-tests @@ -2829,15 +2833,7 @@ encoding/decoding. It has no dependencies.") ;; fmt.Sprint(x)?). ;; See: . (("\"testing\"") (string-append "\"testing\"\n\"fmt\"")) - (("string") "fmt.Sprint"))))) - ;; XXX: Replace when go-build-system supports nested path. - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" - "-skip" "TestBuildKeyValueSizeHistogram" - "./..." )))))))) + (("string") "fmt.Sprint")))))))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs From d9e1c234f541e2e1685231373d104557e0cd66cc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 18:27:24 +0000 Subject: [PATCH 184/862] gnu: go-github-com-twpayne-go-vfsafero: Fix build. * gnu/packages/golang.scm (go-github-com-twpayne-go-vfsafero) [native-inputs]: Remove go-github-com-twpayne-go-vfs and go-github-com-spf13-afero; add go-github-com-twpayne-go-vfs-1.0.1 and go-github-com-spf13-afero-1.1.2. * gnu/packages/golang-xyz.scm (go-github-com-twpayne-go-vfs-1.0.1, go-github-com-spf13-afero-1.1.2): New variables. Change-Id: Idb5a2a6a933ed7b9af3d2f263549bb8ba75bc2bf --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4d879f9c4f6..b1decbe565a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8691,6 +8691,21 @@ Use waterutil with it to work with TUN/TAP packets/frames.") "This package provides a file system abstraction for Go.") (license license:asl2.0))) +;; XXX: For chezmoi 1.8.10, remove it when updated. +(define-public go-github-com-spf13-afero-1.1.2 + (hidden-package (package (inherit go-github-com-spf13-afero) + (name "go-github-com-spf13-afero") + (version "1.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spf13/afero") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0miv4faf5ihjfifb1zv6aia6f6ik7h1s4954kcb8n6ixzhx9ck6k"))))))) + (define-public go-github-com-spf13-cast (package (name "go-github-com-spf13-cast") @@ -9388,6 +9403,21 @@ supported by the time package @code{ioutil} packages that is easy to test.") (license license:expat))) +;; XXX: For chezmoi 1.8.10, remove it when updated. +(define-public go-github-com-twpayne-go-vfs-1.0.1 + (hidden-package (package (inherit go-github-com-twpayne-go-vfs) + (name "go-github-com-twpayne-go-vfs") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twpayne/go-vfs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1if2wfdwl3h8v8kgrgywkwcjafcz7hynq8ikr52s11qf2n0w3gny"))))))) + (define-public go-github-com-urfave-cli (package (name "go-github-com-urfave-cli") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9b2543b6465..a1bc2666a4e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5413,7 +5413,7 @@ temporal directories.") (arguments `(#:import-path "github.com/twpayne/go-vfsafero")) (native-inputs - (list go-github-com-twpayne-go-vfs go-github-com-spf13-afero)) + (list go-github-com-twpayne-go-vfs-1.0.1 go-github-com-spf13-afero-1.1.2)) (home-page "https://github.com/twpayne/go-vfsafero/") (synopsis "Compatibility later between @code{go-vfs} and @code{afero}") (description From 34c92639bccc5759710655d2369594e1a2c1f3be Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 18:31:40 +0000 Subject: [PATCH 185/862] gnu: go-github-com-twpayne-go-xdg-v3: Fix bulid. * gnu/packages/golang.scm (go-github-com-twpayne-go-xdg-v3) [native-inputs]: Remove go-github-com-twpayne-go-vfs; add go-github-com-twpayne-go-vfs-1.0.1. Change-Id: I33887997bbd0ae8b416035c61b84d433782d4824 --- gnu/packages/golang.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a1bc2666a4e..7aff71587a2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5438,7 +5438,7 @@ temporal directories.") (arguments `(#:import-path "github.com/twpayne/go-xdg/v3")) (native-inputs - (list go-github-com-stretchr-testify go-github-com-twpayne-go-vfs)) + (list go-github-com-stretchr-testify go-github-com-twpayne-go-vfs-1.0.1)) (home-page "https://github.com/twpayne/go-xdg/") (synopsis "Functions related to freedesktop.org") (description "Package @code{xdg} provides functions related to From 951eaefb8fb0f27fe5aeb2007f5914f263c6d8bd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 18:43:06 +0000 Subject: [PATCH 186/862] gnu: go-k8s-io-klog-v2: Fix build. * gnu/packages/golang-xyz.scm (go-k8s-io-klog-v2) [arguments]: Skip 5 tests. : Add 'remove-examples. Change-Id: I9d543b6a4a695f1c9106189af327c388faa65f3c --- gnu/packages/golang-xyz.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b1decbe565a..5df211e715f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10538,7 +10538,22 @@ also provides V-style logging controlled by the @code{-v} and (build-system go-build-system) (arguments (list - #:import-path "k8s.io/klog/v2")))) + #:import-path "k8s.io/klog/v2" + #:test-flags + #~(list "-skip" + (string-join + (list "TestDestinationsWithDifferentFlags/with_log_file_only" + "TestDestinationsWithDifferentFlags/everything_disabled" + "TestDestinationsWithDifferentFlags/with_log_dir_only" + "TestDestinationsWithDifferentFlags/with_log_dir_only_and_one_output" + "TestDestinationsWithDifferentFlags/with_log_file_and_log_dir") + "|")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))))) (define-public go-go-mongodb-org-mongo-driver (package From 8917b837429cead11ec3403dd4b503d3cb859d2b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 18:52:36 +0000 Subject: [PATCH 187/862] gnu: go-github-com-montanaflynn-stats: Fix build. * gnu/packages/golang-maths.scm (go-github-com-montanaflynn-stats) [arguments]: Add 'remove-examples. Change-Id: Ib07cd22ea3e7b1ae6fb20748a3458cd5bc913b9a --- gnu/packages/golang-maths.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index 6eefad5ecd9..4d5515c82df 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -131,7 +131,13 @@ and GCC’s decimal extension.") (build-system go-build-system) (arguments (list - #:import-path "github.com/montanaflynn/stats")) + #:import-path "github.com/montanaflynn/stats" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) (home-page "https://github.com/montanaflynn/stats") (synopsis "Statistics library for Golang") (description From b6757871358492e584537e65ce141893e18e9a49 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 18:48:36 +0000 Subject: [PATCH 188/862] gnu: go-go-mongodb-org-mongo-driver: Simplify package. * gnu/packages/golang-xyz.scm (go-go-mongodb-org-mongo-driver) [arguments]: Move skip logic here. : Move select subdir for tests here. : Remove 'disable-failing-tests. Use default 'check. Change-Id: I31f62fa92bf04090264541a4ed98f502e4a8a7da --- gnu/packages/golang-xyz.scm | 52 ++++++++++++++----------------------- 1 file changed, 20 insertions(+), 32 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5df211e715f..75f90aaced8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10575,46 +10575,34 @@ also provides V-style logging controlled by the @code{-v} and (arguments (list #:import-path "go.mongodb.org/mongo-driver" + #:test-flags + #~(list "-skip" + (string-join + ;; Some tests require running database and available network + ;; connection. + (list "TestAggregate" + "TestPollSRVRecords" + "TestPollSRVRecordsServiceName" + "TestPollingSRVRecordsLoadBalanced" + "TestPollingSRVRecordsSpec" + "TestServerHeartbeatOffTimeout" + "TestServerHeartbeatTimeout" + "TestTimeCodec" + "TestTopologyConstructionLogging" + "TestURIOptionsSpec") + "|")) + #:test-subdirs + #~(list "bson/..." "event/..." "internal/..." "tag/..." "x/...") #:phases #~(modify-phases %standard-phases + (delete 'build) ; no go files in project's root (add-after 'unpack 'remove-examples-and-benchmarks (lambda* (#:key tests? import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (for-each delete-file-recursively (list "benchmark" "examples" - "cmd/godriver-benchmark"))))) - (add-before 'check 'disable-failing-tests - (lambda* (#:key tests? unpack-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" unpack-path) - (substitute* (find-files "." "\\_test.go$") - ;; Some tests require running database and available network connection. - (("TestAggregate") "OffTestAggregate") - (("TestPollSRVRecords") "OffTestPollSRVRecords") - (("TestPollSRVRecordsServiceName") - "OffTestPollSRVRecordsServiceName") - (("TestPollingSRVRecordsLoadBalanced") - "OffTestPollingSRVRecordsLoadBalanced") - (("TestPollingSRVRecordsSpec") - "OffTestPollingSRVRecordsSpec") - (("TestServerHeartbeatOffTimeout") - "OffTestServerHeartbeatTimeout") - (("TestServerHeartbeatTimeout") - "OffTestServerHeartbeatTimeout") - (("TestTimeCodec") "OffTestTimeCodec") - (("TestTopologyConstructionLogging") - "OffTestTopologyConstructionLogging") - (("TestURIOptionsSpec") "OffTestURIOptionsSpec"))))) - ;; XXX: Workaround for go-build-system's lack of Go modules support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (for-each - (lambda (package) - (invoke "go" "test" (string-append "./" package "/..."))) - (list "bson" "event" "internal" "tag" "x"))))))))) + "cmd/godriver-benchmark")))))))) (native-inputs (list go-github-com-aws-aws-lambda-go)) (propagated-inputs From 56950f3f68499524cc16683f398b68f42c31fc53 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 19:35:21 +0000 Subject: [PATCH 189/862] gnu: go-go-mongodb-org-mongo-driver: Sort. * gnu/packages/golang-xyz.scm (go-go-mongodb-org-mongo-driver): Sort variable alphabetically. Change-Id: Ia2fafc4e48a8032212ced7dfa66d915e47420175 --- gnu/packages/golang-xyz.scm | 134 ++++++++++++++++++------------------ 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 75f90aaced8..35da9bb087e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10083,6 +10083,73 @@ for projects that don't require a full database server such as Postgres or MySQL.") (license license:expat))) +(define-public go-go-mongodb-org-mongo-driver + (package + (name "go-go-mongodb-org-mongo-driver") + (version "1.16.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mongodb/mongo-go-driver") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "160hwrk8y8h3nl9sh5v6pxnlyw1ywbssjgzb72lj0x68akgl8gff")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "vendor"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.mongodb.org/mongo-driver" + #:test-flags + #~(list "-skip" + (string-join + ;; Some tests require running database and available network + ;; connection. + (list "TestAggregate" + "TestPollSRVRecords" + "TestPollSRVRecordsServiceName" + "TestPollingSRVRecordsLoadBalanced" + "TestPollingSRVRecordsSpec" + "TestServerHeartbeatOffTimeout" + "TestServerHeartbeatTimeout" + "TestTimeCodec" + "TestTopologyConstructionLogging" + "TestURIOptionsSpec") + "|")) + #:test-subdirs + #~(list "bson/..." "event/..." "internal/..." "tag/..." "x/...") + #:phases + #~(modify-phases %standard-phases + (delete 'build) ; no go files in project's root + (add-after 'unpack 'remove-examples-and-benchmarks + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + (list "benchmark" + "examples" + "cmd/godriver-benchmark")))))))) + (native-inputs + (list go-github-com-aws-aws-lambda-go)) + (propagated-inputs + (list go-github-com-davecgh-go-spew + go-github-com-golang-snappy + go-github-com-google-go-cmp + go-github-com-klauspost-compress + go-github-com-montanaflynn-stats + go-github-com-xdg-go-scram + go-github-com-xdg-go-stringprep + go-github-com-youmark-pkcs8 + go-golang-org-x-crypto + go-golang-org-x-sync)) + (home-page "https://go.mongodb.org/mongo-driver") + (synopsis "MongoDB Go Driver") + (description + "This package provides a driver for @code{Mongo} data base.") + (license license:asl2.0))) + (define-public go-go-senan-xyz-flagconf (package (name "go-go-senan-xyz-flagconf") @@ -10555,73 +10622,6 @@ also provides V-style logging controlled by the @code{-v} and (with-directory-excursion (string-append "src/" import-path) (delete-file-recursively "examples"))))))))) -(define-public go-go-mongodb-org-mongo-driver - (package - (name "go-go-mongodb-org-mongo-driver") - (version "1.16.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mongodb/mongo-go-driver") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "160hwrk8y8h3nl9sh5v6pxnlyw1ywbssjgzb72lj0x68akgl8gff")) - (snippet - #~(begin (use-modules (guix build utils)) - (delete-file-recursively "vendor"))))) - (build-system go-build-system) - (arguments - (list - #:import-path "go.mongodb.org/mongo-driver" - #:test-flags - #~(list "-skip" - (string-join - ;; Some tests require running database and available network - ;; connection. - (list "TestAggregate" - "TestPollSRVRecords" - "TestPollSRVRecordsServiceName" - "TestPollingSRVRecordsLoadBalanced" - "TestPollingSRVRecordsSpec" - "TestServerHeartbeatOffTimeout" - "TestServerHeartbeatTimeout" - "TestTimeCodec" - "TestTopologyConstructionLogging" - "TestURIOptionsSpec") - "|")) - #:test-subdirs - #~(list "bson/..." "event/..." "internal/..." "tag/..." "x/...") - #:phases - #~(modify-phases %standard-phases - (delete 'build) ; no go files in project's root - (add-after 'unpack 'remove-examples-and-benchmarks - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file-recursively - (list "benchmark" - "examples" - "cmd/godriver-benchmark")))))))) - (native-inputs - (list go-github-com-aws-aws-lambda-go)) - (propagated-inputs - (list go-github-com-davecgh-go-spew - go-github-com-golang-snappy - go-github-com-google-go-cmp - go-github-com-klauspost-compress - go-github-com-montanaflynn-stats - go-github-com-xdg-go-scram - go-github-com-xdg-go-stringprep - go-github-com-youmark-pkcs8 - go-golang-org-x-crypto - go-golang-org-x-sync)) - (home-page "https://go.mongodb.org/mongo-driver") - (synopsis "MongoDB Go Driver") - (description - "This package provides a driver for @code{Mongo} data base.") - (license license:asl2.0))) - (define-public go-mvdan-cc-editorconfig (package (name "go-mvdan-cc-editorconfig") From 79ef3b207ebbd7ae1222c3ccb6ea342cdbc8e68c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 19:45:07 +0000 Subject: [PATCH 190/862] gnu: Add go-k8s-io-utils. * gnu/packages/golang-xyz.scm (go-k8s-io-utils): New variable. Change-Id: Ieb44fbbe7b020d6ca4bede0b556ce45c9a29e169 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 35da9bb087e..feaa71f6374 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10622,6 +10622,38 @@ also provides V-style logging controlled by the @code{-v} and (with-directory-excursion (string-append "src/" import-path) (delete-file-recursively "examples"))))))))) +(define-public go-k8s-io-utils + (package + (name "go-k8s-io-utils") + (version "0.0.0-20241210054802-24370beab758") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kubernetes/utils") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "158rsq780hrzv6zb7lycjg8b2lfd00nvmx3mn4pi9byjam2y7nds")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; XXX: all of them fail with various reasons + #:import-path "k8s.io/utils" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (propagated-inputs + (list go-github-com-davecgh-go-spew + go-k8s-io-klog-v2)) + (home-page "https://github.com/kubernetes/utils") + (synopsis "Utility libraries for Golang") + (description + "This package provides a set of libraries that implementing low-level, +kubernetes-independent packages supplementing the +@url{https://pkg.go.dev/std#stdlib,Go standard libs}.") + (license license:asl2.0))) + (define-public go-mvdan-cc-editorconfig (package (name "go-mvdan-cc-editorconfig") From cd9c90e71444f7f6b8cb780f9fc10aff894f2387 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:02:30 +0000 Subject: [PATCH 191/862] gnu: Add go-k8s-io-gengo-v2. * gnu/packages/golang-xyz.scm (go-k8s-io-gengo-v2): New variable. Change-Id: I5323b24712aa7e9f32110a3d99e9a217b00764da --- gnu/packages/golang-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index feaa71f6374..7caa53175ee 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10550,6 +10550,51 @@ machine readable. It is modeled after the Go standard library's @code{io} and values.") (license license:asl2.0))) +(define-public go-k8s-io-gengo-v2 + (package + (name "go-k8s-io-gengo-v2") + (version "2.0.0-20240911193312-2b36238f13e9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kubernetes/gengo") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ffwigrg92ivyb5r6g0alb4z8iydp9lkdviz3vm62gr89yw28yc7")))) + (build-system go-build-system) + (arguments + (list + #:import-path "k8s.io/gengo/v2" + #:unpack-path "k8s.io/gengo" + #:test-flags + ;; XXX: Figure out why these tests fail. + #~(list "-skip" (string-join + (list "TestSnippetWriter" + "TestFindPackages" + "TestAlreadyLoaded" + "TestLoadPackagesInternal" + "TestLoadPackagesTo" + "TestUserRequestedPackages" + "TestAddOnePkgToUniverse" + "TestStructParse/generic" + "TestJSON") + "|")))) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-spf13-pflag + go-golang-org-x-tools + go-k8s-io-klog-v2)) + (home-page "https://github.com/kubernetes/gengo") + (synopsis "Framework for building simple code generators") + (description + "This package implements a functionality for generating things based on +go files. This mechanism was first used in Kubernetes code-generator and is +split out here for ease of reuse and maintainability.") + (license license:asl2.0))) + (define-public go-k8s-io-klog (package (name "go-k8s-io-klog") From d2329c11206f49ff28c609e1fab76ce32a99e7ac Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:07:41 +0000 Subject: [PATCH 192/862] gnu: go-sigs-k8s-io-yaml: Update to 1.4.0. * gnu/packages/golang.scm (go-sigs-k8s-io-yaml): Update to 1.4.0. [propagated-inputs]: Remove go-gopkg-in-yaml-v2 and go-github-com-davecgh-go-spew. [native-inputs]: Add go-gopkg-in-check-v1 and go-github-com-google-go-cmp. Change-Id: Ib628bfdc8d3a9a6c43cb6a5df9f0f1abb1573be6 --- gnu/packages/golang.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7aff71587a2..e30f733943b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6519,7 +6519,7 @@ Features: (define-public go-sigs-k8s-io-yaml (package (name "go-sigs-k8s-io-yaml") - (version "1.3.0") + (version "1.4.0") (source (origin (method git-fetch) (uri (git-reference @@ -6528,10 +6528,10 @@ Features: (file-name (git-file-name name version)) (sha256 (base32 - "0qxs0ppqwqrfqs4aywyn1h28xh1qlj5ds4drmygaz1plrxj02dqn")))) + "0yjnmpwmvlb6md3djn6qx1ag4ld7gjz7jfyz1ldml88zyb9crpqx")))) (build-system go-build-system) (arguments '(#:import-path "sigs.k8s.io/yaml")) - (propagated-inputs (list go-gopkg-in-yaml-v2 go-github-com-davecgh-go-spew)) + (native-inputs (list go-gopkg-in-check-v1 go-github-com-google-go-cmp)) (home-page "https://sigs.k8s.io/yaml") (synopsis "YAML marshaling and unmarshaling support for Go") (description From bfd586351fe8d96d1e48c73e77ab285ca70d73e3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:10:42 +0000 Subject: [PATCH 193/862] gnu: go-sigs-k8s-io-yaml: Move to golang-xyz. * gnu/packages/golang.scm (go-sigs-k8s-io-yaml): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ie391284b12e488b6518cbce8ca5bf22b42aa3f22 --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 29 ----------------------------- 2 files changed, 34 insertions(+), 29 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7caa53175ee..1f714b8d8f4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -32,6 +32,7 @@ ;;; Copyright © 2022 (unmatched-parenthesis ;;; Copyright © 2022 Dhruvin Gandhi ;;; Copyright © 2022 Dominic Martinez +;;; Copyright © 2022 JOULAUD François ;;; Copyright © 2022 Leo Nikkilä ;;; Copyright © 2022 kiasoc5 ;;; Copyright © 2023 Benjamin @@ -10751,6 +10752,39 @@ and other languages. More precisely, it is the syntax accepted by RE2 and described at https://golang.org/s/re2syntax, except for @code{\\C.}") (license license:bsd-3))) +(define-public go-sigs-k8s-io-yaml + (package + (name "go-sigs-k8s-io-yaml") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kubernetes-sigs/yaml") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0yjnmpwmvlb6md3djn6qx1ag4ld7gjz7jfyz1ldml88zyb9crpqx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "sigs.k8s.io/yaml")) + (native-inputs + (list go-github-com-google-go-cmp + go-gopkg-in-check-v1)) + (home-page "https://sigs.k8s.io/yaml") + (synopsis "YAML marshaling and unmarshaling support for Go") + (description + "This package provides a Go library that first converts YAML to JSON +using @code{go-yaml} and then uses @code{json.Marshal} and +@code{json.Unmarshal} to convert to or from the struct. This means that it +effectively reuses the JSON struct tags as well as the custom JSON methods +@code{MarshalJSON} and @code{UnmarshalJSON} unlike @code{go-yaml}. + +kubernetes-sigs/yaml is a permanent fork of +@url{https://github.com/ghodss/yaml,ghodss/yaml}.") + (license (list license:expat license:bsd-3)))) + (define-public go-suah-dev-protect (package (name "go-suah-dev-protect") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e30f733943b..0b3a2072ef7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6516,35 +6516,6 @@ Features: @end itemize") (license license:asl2.0))) -(define-public go-sigs-k8s-io-yaml - (package - (name "go-sigs-k8s-io-yaml") - (version "1.4.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kubernetes-sigs/yaml") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0yjnmpwmvlb6md3djn6qx1ag4ld7gjz7jfyz1ldml88zyb9crpqx")))) - (build-system go-build-system) - (arguments '(#:import-path "sigs.k8s.io/yaml")) - (native-inputs (list go-gopkg-in-check-v1 go-github-com-google-go-cmp)) - (home-page "https://sigs.k8s.io/yaml") - (synopsis "YAML marshaling and unmarshaling support for Go") - (description - "This package provides a Go library that first converts YAML to JSON -using @code{go-yaml} and then uses @code{json.Marshal} and -@code{json.Unmarshal} to convert to or from the struct. This means that it -effectively reuses the JSON struct tags as well as the custom JSON methods -@code{MarshalJSON} and @code{UnmarshalJSON} unlike @code{go-yaml}. - -kubernetes-sigs/yaml is a permanent fork of -@url{https://github.com/ghodss/yaml,ghodss/yaml}.") - (license (list license:expat license:bsd-3)))) - (define-public go-github-com-google-go-jsonnet (package (name "go-github-com-google-go-jsonnet") From 0e49bb2fbdc1dad48f1a1e6a2bbd4e96ed286c71 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:19:25 +0000 Subject: [PATCH 194/862] gnu: Add go-sigs-k8s-io-json. * gnu/packages/golang-xyz.scm (go-sigs-k8s-io-json): New variable. Change-Id: I541a390895c12cc6e0472ab5919579a57b1a7caf --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1f714b8d8f4..c2058a60bd3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10752,6 +10752,31 @@ and other languages. More precisely, it is the syntax accepted by RE2 and described at https://golang.org/s/re2syntax, except for @code{\\C.}") (license license:bsd-3))) +(define-public go-sigs-k8s-io-json + (package + (name "go-sigs-k8s-io-json") + (version "0.0.0-20241014173422-cfa47c3a1cc8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kubernetes-sigs/json") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zdb3sq333ns8m5azv4fqqy62r0vrhssxl0przicm4v1nmrxj4jh")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "sigs.k8s.io/json")) + (home-page "https://github.com/kubernetes-sigs/json") + (synopsis "JSON decoder with enchansed features") + (description + "This package provides case-sensitive, integer-preserving JSON +unmarshaling functions based on @code{encoding/json} @code{Unmarshal()}.") + (license license:asl2.0))) + (define-public go-sigs-k8s-io-yaml (package (name "go-sigs-k8s-io-yaml") From accddac6d59c5da31d22b193b952fce00fbe0c96 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:27:29 +0000 Subject: [PATCH 195/862] gnu: Add go-sigs-k8s-io-structured-merge-diff-v4. * gnu/packages/golang-xyz.scm (go-sigs-k8s-io-structured-merge-diff-v4): New variable. Change-Id: Ica5089e9c8c957c27a797602da66001530281de1 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c2058a60bd3..741c31e8afe 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10777,6 +10777,38 @@ described at https://golang.org/s/re2syntax, except for @code{\\C.}") unmarshaling functions based on @code{encoding/json} @code{Unmarshal()}.") (license license:asl2.0))) +(define-public go-sigs-k8s-io-structured-merge-diff-v4 + (package + (name "go-sigs-k8s-io-structured-merge-diff-v4") + (version "4.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kubernetes-sigs/structured-merge-diff") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xgi3r2xvwvxy6jc6rd5rrnib4y9b4kgpqphm4lkhgaayy3njwv3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "sigs.k8s.io/structured-merge-diff/v4" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (propagated-inputs + (list go-github-com-google-go-cmp + go-github-com-google-gofuzz + go-github-com-json-iterator-go + go-sigs-k8s-io-yaml)) + (home-page "https://github.com/kubernetes-sigs/structured-merge-diff") + (synopsis "Structured Merge and Diff") + (description + "This package provides a code which implements the Kubernetes \"apply\" +operation.") + (license license:asl2.0))) + (define-public go-sigs-k8s-io-yaml (package (name "go-sigs-k8s-io-yaml") From 16a2eb83baea243a8b4d2f7845bfeb70ff20a6dd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:38:12 +0000 Subject: [PATCH 196/862] gnu: go-github-com-emicklei-go-restful: Rename package. * gnu/packages/golang-web.scm (go-github-com-emicklei-go-restful): Rename to go-github-com-emicklei-go-restful to reflect go.mod import path. Change-Id: I6397ed2e83fad121f528f5cae7b5d5a47de56031 --- gnu/packages/golang-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 53bd6b58fb3..a79c5a93dce 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1564,9 +1564,9 @@ for Go.") RFC 5321.") (license license:expat))) -(define-public go-github-com-emicklei-go-restful +(define-public go-github-com-emicklei-go-restful-v3 (package - (name "go-github-com-emicklei-go-restful") + (name "go-github-com-emicklei-go-restful-v3") (version "3.4.0") (source (origin From df74a56e6caa89417da878d4ad1b849bf7f7ad10 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:45:55 +0000 Subject: [PATCH 197/862] gnu: go-github-com-emicklei-go-restful-v3: Fix build. * gnu/packages/golang-web.scm (go-github-com-emicklei-go-restful-v3) [arguments]: Add 'remove-examples. [description]: Start from a new line. Change-Id: I9e1ccd5a07b4f0bde2bdd40764094783460cf235 --- gnu/packages/golang-web.scm | 42 +++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index a79c5a93dce..6c9a5b0a0c0 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1579,12 +1579,20 @@ RFC 5321.") (base32 "0m1y5a6xr6hmdj77afrvyh2llkbhn1166lcrgis654shl8zs9qhz")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/emicklei/go-restful")) + (list + #:import-path "github.com/emicklei/go-restful" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) (home-page "https://github.com/emicklei/go-restful") (synopsis "Build REST-style web services using Go") - (description "This package provides @code{go-restful}, which helps -developers to use @code{http} methods explicitly and in a way that's -consistent with the HTTP protocol definition.") + (description + "This package provides @code{go-restful}, which helps developers to use +@code{http} methods explicitly and in a way that's consistent with the HTTP +protocol definition.") (license license:expat))) (define-public go-github-com-evanphx-json-patch @@ -4264,6 +4272,32 @@ multistream-select protocol. The protocol is defined at which produce colorized output using github.com/fatih/color.") (license license:expat))) +(define-public go-github-com-nytimes-gziphandler + (package + (name "go-github-com-nytimes-gziphandler") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nytimes/gziphandler") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rhrjlw220hnymzfccm0yir3pc9dpj7h3gwzhzq2cbsb3hhsqvyy")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/NYTimes/gziphandler")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/NYTimes/gziphandler") + (synopsis "Middleware to gzip HTTP responses") + (description + "This is a tiny Go package which wraps HTTP handlers to transparently +gzip the response body, for clients which support it.") + (license license:asl2.0))) + (define-public go-github-com-opentracing-contrib-go-stdlib (package (name "go-github-com-opentracing-contrib-go-stdlib") From 73a2842c2b9b70345c0c257e8b59b849ed8c9780 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:48:54 +0000 Subject: [PATCH 198/862] gnu: Add go-github-com-google-gnostic-models. * gnu/packages/golang-xyz.scm (go-github-com-google-gnostic-models): New variable. Change-Id: I6b50491ac57d593585d0649ed2d91ca661fd3ba0 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 741c31e8afe..edd5a1f0790 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4310,6 +4310,38 @@ execution.") "The chardet package ports character set detection from ICU to Go.") (license license:expat))) +(define-public go-github-com-google-gnostic-models + (package + (name "go-github-com-google-gnostic-models") + (version "0.6.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/gnostic-models") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0z170sw1dlspxwbgpzffry5xm8mmcq7kpkrn0zkjzwdnmjhmmdqx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/google/gnostic-models" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (propagated-inputs + (list go-google-golang-org-protobuf + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/google/gnostic-models") + (synopsis "Protocol Buffer models for Gnostic") + (description + "This package provides Protocol Buffer models and associated libraries +for working with API description formats supported by +@url{https://github.com/google/gnostic,gnostic}. It exists to provide a +lightweight distribution of these models with minimal dependencies.") + (license license:asl2.0))) + (define-public go-github-com-google-goterm (package (name "go-github-com-google-goterm") From 62a9bb7f193659f8e278fb3d1fbeaa8a3662743f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 20:55:51 +0000 Subject: [PATCH 199/862] gnu: go-github-com-mailru-easyjson: Update to 0.9.0. * gnu/packages/golang-web.scm (go-github-com-mailru-easyjson): Update to 0.9.0. [arguments]: Add 'remove-benchmarks. Change-Id: I5c0c450b32cae793a89c69e787de0dcb1b812c1a --- gnu/packages/golang-web.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 6c9a5b0a0c0..41c44a7d95f 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3653,7 +3653,7 @@ intends to be compatible with Avahi.") (define-public go-github-com-mailru-easyjson (package (name "go-github-com-mailru-easyjson") - (version "0.7.7") + (version "0.9.0") (source (origin (method git-fetch) @@ -3662,11 +3662,19 @@ intends to be compatible with Avahi.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0clifkvvy8f45rv3cdyv58dglzagyvfcqb63wl6rij30c5j2pzc1")))) + (base32 "00if9lpfy7bz853snqp7zgg76pn4mgpkk42h0riahcwk5v19jrcv")))) (build-system go-build-system) (arguments (list - #:import-path "github.com/mailru/easyjson")) + #:import-path "github.com/mailru/easyjson" + ;; XXX: All tests in "tests" directory fail, figure out why. + #:test-subdirs #~(list ".") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-benchmarks + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "benchmark"))))))) (propagated-inputs (list go-github-com-josharian-intern)) (home-page "https://github.com/mailru/easyjson") From 4a87bc86c95169acea15d1f9100e40ec0a592209 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 02:32:59 +0000 Subject: [PATCH 200/862] gnu: go-github-com-google-gopacket: Fix build. * gnu/packages/golang-web.scm (go-github-com-google-gopacket) [arguments]: Only run project's root tests. Change-Id: I5e98ccb6481e17fef71171b800360f9f18f16b6e --- gnu/packages/golang-web.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 41c44a7d95f..c9380977a3d 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2466,7 +2466,10 @@ parameters.") (build-system go-build-system) (arguments (list - #:import-path "github.com/google/gopacket")) + #:import-path "github.com/google/gopacket" + ;; XXX: pfring/pfring.go:14:10: fatal error: pfring.h: No such file or + ;; directory. Check how to fix all tests. + #:test-subdirs #~(list "."))) (propagated-inputs (list go-github-com-vishvananda-netlink go-golang-org-x-net From bb2273cf91d8c6f98d7c63d812fb89bb409f9e1f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 03:40:25 +0000 Subject: [PATCH 201/862] gnu: Add go-github-com-invopop-yaml. * gnu/packages/golang-xyz.scm (go-github-com-invopop-yaml): New variable. Change-Id: Iacaabe350b28f1afd36d43461d8d60b3b8dab288 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index edd5a1f0790..8d271839ce8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4933,6 +4933,32 @@ ABI}.") "Package strcase converts strings to various cases.") (license license:expat))) +(define-public go-github-com-invopop-yaml + (package + (name "go-github-com-invopop-yaml") + (version "0.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/invopop/yaml") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0isvalfivw39hjj20y28g4yws0plzqaym8asz3sr5lfwv5gnq7zg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/invopop/yaml")) + (propagated-inputs + (list go-gopkg-in-yaml-v3)) + (home-page "https://github.com/invopop/yaml") + (synopsis "YAML marshaling and unmarshaling support for Golang") + (description + "This package provides a wrapper around go-yaml designed to enable a +better way of handling YAML when marshaling to and from structs.") + (license license:expat))) + (define-public go-github-com-itchyny-timefmt-go (package (name "go-github-com-itchyny-timefmt-go") From 3be6f53285086d8aad9043d747dc845737387ffe Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 03:40:27 +0000 Subject: [PATCH 202/862] gnu: Add go-github-com-perimeterx-marshmallow. * gnu/packages/golang-web.scm (go-github-com-perimeterx-marshmallow): New variable. Change-Id: I8d46a3e9469ed0518736e26f9c45a8f3f763ada8 --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index c9380977a3d..7434c3e2040 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4472,6 +4472,37 @@ higher-level API for doing so.") "Common enterprise features for the Go programming language.") (license license:cc0))) +(define-public go-github-com-perimeterx-marshmallow + (package + (name "go-github-com-perimeterx-marshmallow") + (version "1.1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/PerimeterX/marshmallow") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jxpjfyshcbrmj9qmj3sr21va6kw7hs55w2gaz9118jd861s6mbw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/perimeterx/marshmallow")) + (native-inputs + (list go-github-com-go-test-deep)) + (propagated-inputs + (list go-github-com-mailru-easyjson + go-github-com-ugorji-go-codec)) + (home-page "https://github.com/perimeterx/marshmallow") + (synopsis "JSON unmarshalling in Golang") + (description + "This package provides a simple API to perform JSON unmarshalling. +It supports unmarshalling of some known and some unknown fields with zero +performance overhead. While unmarshalling, it allows fully retaining the +original data and access it via a typed struct and a dynamic map.") + (license license:expat))) + (define-public go-github-com-pion-datachannel (package (name "go-github-com-pion-datachannel") From f1421f5ad4dfd8a24b676f8b85185ff83cf883d3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 03:40:28 +0000 Subject: [PATCH 203/862] gnu: Add go-github-com-getkin-kin-openapi. * gnu/packages/golang-web.scm (go-github-com-getkin-kin-openapi): New variable. Change-Id: Iff6aec35f4955966b466a97aaca491d5007971a8 --- gnu/packages/golang-web.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 7434c3e2040..132bb2bb1e2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1725,6 +1725,51 @@ algorithm originally designed for use in Golang.") (license license:asl2.0))) +(define-public go-github-com-getkin-kin-openapi + (package + (name "go-github-com-getkin-kin-openapi") + (version "0.128.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/getkin/kin-openapi") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "162hxwqywpbmfybyj1m0s4a0nxx0qldx90k49d2mf52xps1jp5p2")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/getkin/kin-openapi" + #:test-flags + ;; They try to access network. + #~(list "-skip" "TestIssue495WithDraft04|TestExtraSiblingsInRemoteRef") + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-go-openapi-jsonpointer + go-github-com-gorilla-mux + go-github-com-invopop-yaml + go-github-com-mohae-deepcopy + go-github-com-perimeterx-marshmallow + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/getkin/kin-openapi") + (synopsis "OpenAPI 3.0 and Swagger v2 implementation for Golang") + (description + "This package implements a functionality for parsing, converting and +validating +@url{https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md, +OpenAPI v2.0}, +@url{https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md, +OpenAPI v3.0} and +@url{https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md, +OpenAPI v3.1}.") + (license license:expat))) + ;; TODO: This repository has been archived by the owner on Aug 30, 2023. It is ;; now read-only. The raven-go SDK is no longer maintained and was superseded ;; by the sentry-go From d1365b4a6b2c3b8b0ea55e6b00cb8dd62551c321 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 03:40:27 +0000 Subject: [PATCH 204/862] gnu: Add go-k8s-io-kube-openapi. * gnu/packages/golang-web.scm (go-k8s-io-kube-openapi): New variable. Change-Id: I66082515976053bbc888c9f2789df5dd78242d59 --- gnu/packages/golang-web.scm | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 132bb2bb1e2..894060d4b34 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6797,6 +6797,75 @@ Signing and Encryption set of standards. This includes support for JSON Web Encryption, JSON Web Signature, and JSON Web Token standards.") (license license:asl2.0))) +(define-public go-k8s-io-kube-openapi + (package + (name "go-k8s-io-kube-openapi") + (version "0.0.0-20241212222426-2c72e554b1e7") + ;; XXX: Unbundle third_party in pkg. + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kubernetes/kube-openapi") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0crd349jd210bh68ic70pqmdkfns7cix2qhsa6pfya6kbvschyf9")) + ;; XXX: test/integration contains submodule with it's own go.mod. + (modules '((guix build utils))) + (snippet + #~(begin + ;; Keeping just testdata. + (for-each delete-file-recursively + (list "test/integration/builder" + "test/integration/builder3" + "test/integration/openapiconv" + "test/integration/pkg/generated" + "test/integration/testutil" + "test/integration/import.go" + "test/integration/integration_suite_test.go")))))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "k8s.io/kube-openapi" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (native-inputs + (list go-github-com-getkin-kin-openapi + go-github-com-google-gofuzz + go-github-com-onsi-ginkgo-v2 + go-github-com-onsi-gomega + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-emicklei-go-restful-v3 + go-github-com-go-openapi-jsonreference + go-github-com-go-openapi-swag + go-github-com-google-gnostic-models + go-github-com-google-go-cmp + go-github-com-google-uuid + go-github-com-munnerz-goautoneg + go-github-com-nytimes-gziphandler + go-github-com-spf13-pflag + go-golang-org-x-tools + go-google-golang-org-protobuf + go-gopkg-in-yaml-v3 + go-k8s-io-gengo-v2 + go-k8s-io-klog-v2 + go-k8s-io-utils + go-sigs-k8s-io-json + go-sigs-k8s-io-structured-merge-diff-v4 + go-sigs-k8s-io-yaml)) + (home-page "https://github.com/kubernetes/kube-openapi") + (synopsis "Kubernetes OpenAPI spec generation & serving") + (description + "This package implements a Kubernetes OpenAPI discovery spec generation, +providing support a subset of OpenAPI features to satisfy kubernetes use-cases +but implement that subset with little to no assumption about the structure of +the code or routes.") + (license license:asl2.0))) + (define-public go-mvdan-cc-xurls-v2 (package (name "go-mvdan-cc-xurls-v2") From 581edddaeffd49bc4d10c7fc27eaa272b75b9e5f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 04:16:54 +0000 Subject: [PATCH 205/862] gnu: Add go-github-com-warpfork-go-fsx. * gnu/packages/golang-xyz.scm (go-github-com-warpfork-go-fsx): New variable. Change-Id: Ide9e1ee2123d0644eea182c56d373d6c00a4612b --- gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8d271839ce8..d748d900d68 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9740,6 +9740,39 @@ encoded values to create the picture in a code with no inherent errors.") weighted moving averages}.") (license license:expat))) +(define-public go-github-com-warpfork-go-fsx + (package + (name "go-github-com-warpfork-go-fsx") + (version "0.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/warpfork/go-fsx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1yhh42vp12hnkhlfimcab4a2df2apprnlg3ll75yr2pd0b001p5b")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/warpfork/go-fsx")) + (home-page "https://github.com/warpfork/go-fsx") + (synopsis "Extended filesystem interface for Golang") + (description + "This package, @code{fsx}, takes the style of the io/fs package, and +extends it with more features: +@itemize +@item fsx provides the ability to write files (using OpenFile, which is much +like the os package feature you're already familiar with) +@item fsx provides the ability to create directories +@item fsx provides the ability to delete files and directories +@item fsx provides features for reading symlinks, and creating them +@end itemize") + ;; This library is multiply-licensed under either of Apache 2.0 or MIT or + ;; BSD-3-Clause terms. + (license (list license:expat license:asl2.0 license:bsd-3)))) + (define-public go-github-com-whyrusleeping-base32 (package (name "go-github-com-whyrusleeping-base32") From 8bf9f257b558653c8dd8dcc8dd6ccf9ef123eeb1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 04:16:56 +0000 Subject: [PATCH 206/862] gnu: go-github-com-warpfork-go-testmark: Fix build * gnu/packages/golang-check.scm (go-github-com-warpfork-go-testmark) [propagated-inputs]: Add go-github-com-warpfork-go-fsx. Change-Id: I3c728bdd231b2d16cb88859038e82976512889cc --- gnu/packages/golang-check.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 8ee51cf5652..02452dd8793 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1682,6 +1682,8 @@ custom assertions to be used alongside native Go testing.") (arguments (list #:import-path "github.com/warpfork/go-testmark")) + (propagated-inputs + (list go-github-com-warpfork-go-fsx)) (home-page "https://github.com/warpfork/go-testmark") (synopsis "Parser for @code{testmark} format") (description From 4c679ec1b0885967a3f02eb6496f5dfcd699891e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 04:19:41 +0000 Subject: [PATCH 207/862] gnu: git-lfs: Fix build. * gnu/packages/version-control.scm (git-lfs) [arguments]: Skip one test. Change-Id: I7f8e100fd6a2690109cb2b75e7395edb9d3a8404 --- gnu/packages/version-control.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index d61d2b13bda..21b5ad84578 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -3950,6 +3950,7 @@ will reconstruct the object along its delta-base chain and return it.") #:embed-files #~(list "children" "nodes" "text") #:import-path "github.com/git-lfs/git-lfs" #:install-source? #f + #:test-flags #~(list "-skip" "TestHistoryRewriterUpdatesRefs") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-/bin/sh From 3405000aa41c9c4b949a87e24029888804eb5ef7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 10:44:51 +0000 Subject: [PATCH 208/862] gnu: go-github-com-onsi-ginkgo: Fix build. * gnu/packages/golang-check.scm (go-github-com-onsi-ginkgo) [arguments]: Skip one test. Change-Id: I761d0e584e1401d05b2971678fe2b424f5269d64 --- gnu/packages/golang-check.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 02452dd8793..f9a6f3f8d77 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -905,7 +905,8 @@ testing capabilities.") (build-system go-build-system) (arguments (list - #:import-path "github.com/onsi/ginkgo")) + #:import-path "github.com/onsi/ginkgo" + #:test-flags #~(list "-skip" "TestIntegration"))) (propagated-inputs (list go-github-com-go-task-slim-sprig go-github-com-nxadm-tail From b3d13110643eb11cf7fbdf9408a7a5f67c335e16 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 11:06:56 +0000 Subject: [PATCH 209/862] gnu: go-github-com-onsi-gomega: Enable tests. * gnu/packages/golang-check.scm (go-github-com-onsi-gomega) [arguments]: Enable them. : Add 'remove-failing-test-files. [native-inputs]: Add go-github-com-onsi-ginkgo-v2-bootstrap. (go-github-com-onsi-ginkgo-v2-bootstrap): New variable. Change-Id: I631cf5e1ed46822a0585387f20169084578d19f4 --- gnu/packages/golang-check.scm | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index f9a6f3f8d77..161740b8e8e 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -951,6 +951,19 @@ Gomega matcher library.") go-golang-org-x-sys go-golang-org-x-tools)))) +(define-public go-github-com-onsi-ginkgo-v2-bootstrap + (hidden-package (package (inherit go-github-com-onsi-ginkgo-v2) + (name "go-github-com-onsi-ginkgo-v2") + (arguments + (list + #:tests? #f + #:import-path "github.com/onsi/ginkgo/v2" + #:phases + #~(modify-phases %standard-phases (delete 'build)))) + (native-inputs '()) + (propagated-inputs + (list go-github-com-go-logr-logr))))) + (define-public go-github-com-onsi-gomega (package (name "go-github-com-onsi-gomega") @@ -967,10 +980,15 @@ Gomega matcher library.") (build-system go-build-system) (arguments (list - ;; Unless we disable the tests, we have a circular dependency on - ;; ginkgo/v2. - #:tests? #f - #:import-path "github.com/onsi/gomega")) + #:import-path "github.com/onsi/gomega" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-failing-test-files + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file "gexec/build_test.go"))))))) + (native-inputs + (list go-github-com-onsi-ginkgo-v2-bootstrap)) (propagated-inputs (list go-github-com-golang-protobuf go-golang-org-x-net From 2d4481af04d0fbe3f65a0a617846c2d9e5178415 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 16 Dec 2024 11:16:02 +0000 Subject: [PATCH 210/862] gnu: go-github-com-nxadm-tail: Remove vendor. * gnu/packages/golang-xyz.scm (go-github-com-nxadm-tail) [source]: Remove vendor directory. Change-Id: Ic27f38953a02216d1c8e20d5785c9b4bba19a7b2 --- gnu/packages/golang-xyz.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d748d900d68..ccc95408eca 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7537,9 +7537,14 @@ NSQ protocol @url{https://nsq.io/}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0s8lawq661g8qqf7c1cip5l60cm2138b125jgmv9h548ji9g5yqx")))) + (base32 "0s8lawq661g8qqf7c1cip5l60cm2138b125jgmv9h548ji9g5yqx")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "vendor"))))) (build-system go-build-system) - (arguments (list #:import-path "github.com/nxadm/tail")) + (arguments + (list + #:import-path "github.com/nxadm/tail")) (propagated-inputs (list go-github-com-fsnotify-fsnotify go-gopkg-in-tomb-v1)) From 539ac5dedcab79c12a8a19accb29c4fc200ae9e9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 02:24:51 +0000 Subject: [PATCH 211/862] gnu: go-github-com-go-ldap-ldap: Adjust name. * gnu/packages/golang-web.scm (go-github-com-go-ldap-ldap): Rename variable to reflect go.mod import path to go-github-com-go-ldap-ldap-v3. Change-Id: I58ce086492fe6fcee5aa427e9fae55f7404455eb --- gnu/packages/golang-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 894060d4b34..b23736ed837 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1869,9 +1869,9 @@ Encryption, JSON Web Signature, and JSON Web Token standards.") (list #:import-path "github.com/go-jose/go-jose/v4")))) -(define-public go-github-com-go-ldap-ldap +(define-public go-github-com-go-ldap-ldap-v3 (package - (name "go-github-com-go-ldap-ldap") + (name "go-github-com-go-ldap-ldap-v3") (version "3.4.8") (source (origin From fa6e7f7f1b5150098c046ac90bba37eeb5cb40ad Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 02:34:41 +0000 Subject: [PATCH 212/862] gnu: go-github-com-go-ldap-ldap-v3: Update to 3.4.9. * gnu/packages/golang-web.scm (go-github-com-go-ldap-ldap-v3): Update to 3.4.9. [arguments]: Move test skip logic here and skipp all failing tests requiring running LDAP service. [propagated-inputs]: Add go-github-com-jcmturner-gokrb5-v8. Change-Id: I8edbb25dc5e1dd8e228f2aaa059e36db24a4f7cb --- gnu/packages/golang-web.scm | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index b23736ed837..f041a5e47c1 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1872,7 +1872,7 @@ Encryption, JSON Web Signature, and JSON Web Token standards.") (define-public go-github-com-go-ldap-ldap-v3 (package (name "go-github-com-go-ldap-ldap-v3") - (version "3.4.8") + (version "3.4.9") (source (origin (method git-fetch) @@ -1881,26 +1881,35 @@ Encryption, JSON Web Signature, and JSON Web Token standards.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0fbmhlc8ss5vn6zz0iiifvy4pm0mwaf13qpz70k83mmnv9vrv16x")))) + (base32 "0qcm4piyk7l5n3kplcism0y7zp40xcfmjl04hw1s276qqf7vi6hg")))) (build-system go-build-system) (arguments (list #:import-path "github.com/go-ldap/ldap/v3" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'remove-failing-tests - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file - ;; FAIL <...> LDAP Result Code 200 "Network Error": - ;; dial tcp: lookup ldap.itd.umich.edu on <...> - (list "ldap_test.go")))))))) + #:test-flags + #~(list "-skip" (string-join + (list "TestCompare" + "TestExtendedRequest_WhoAmI" + "TestExtendedRequest_FastBind" + "TestMatchDNError" + "TestMultiGoroutineSearch" + "TestSearch" + "TestSearchAsync" + "TestSearchAsyncAndCancel" + "TestSearchStartTLS" + "TestSearchWithPaging" + "TestSecureDialURL" + "TestStartTLS" + "TestTLSConnectionState" + "TestUnsecureDialURL") + "|")))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-azure-go-ntlmssp go-github-com-go-asn1-ber-asn1-ber - go-github-com-google-uuid)) + go-github-com-google-uuid + go-github-com-jcmturner-gokrb5-v8)) (home-page "https://github.com/go-ldap/ldap") (synopsis "LDAP v3 functionality for Go") (description "This package provides basic LDAP v3 functionality in the Go From 15cbecf43583c99968294a06743d750afb140aa7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 02:50:11 +0000 Subject: [PATCH 213/862] gnu: Add go-modernc-org-token. * gnu/packages/golang-web.scm (go-modernc-org-token): New variable. Change-Id: I6288f8f80f703e5dc8eefd788079ae229b34001a --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index f041a5e47c1..9debc0f9575 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6875,6 +6875,30 @@ but implement that subset with little to no assumption about the structure of the code or routes.") (license license:asl2.0))) +(define-public go-modernc-org-token + (package + (name "go-modernc-org-token") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/token") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vvnnfppmgq7hxmw18dx90fg6khwnxpwn9kwwf0hwxsckxfb5icv")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/token")) + (home-page "https://modernc.org/token") + (synopsis "Variant of the Golang stdlib package @code{token}") + (description + "Package token is variant of the stdlib package token with types +@code{FileSet} and Token removed.") + (license license:bsd-3))) + (define-public go-mvdan-cc-xurls-v2 (package (name "go-mvdan-cc-xurls-v2") From 84f2a1791534cd83bcae79a3e78b7becc8df3964 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 02:57:09 +0000 Subject: [PATCH 214/862] gnu: Add go-github-com-remyoudompheng-bigfft. * gnu/packages/golang-maths.scm (go-github-com-remyoudompheng-bigfft): New variable. Change-Id: I659183495f68b7b29708020ff11c837e121c34ad --- gnu/packages/golang-maths.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index 4d5515c82df..8ecdf9948f0 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -144,6 +144,30 @@ and GCC’s decimal extension.") "This package provides a statistical library for Golang.") (license license:expat))) +(define-public go-github-com-remyoudompheng-bigfft + (package + (name "go-github-com-remyoudompheng-bigfft") + (version "0.0.0-20230129092748-24d4a6f8daec") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/remyoudompheng/bigfft") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qxfda0jq70ank99zlgfz7iig2jpicbbxnpr7xcf1v9p474ak2dx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/remyoudompheng/bigfft")) + (home-page "https://github.com/remyoudompheng/bigfft") + (synopsis "Big integer multiplication library for using Fast Fourier transform") + (description + "Package bigfft implements multiplication of @code{big.Int} using +FFT (Schonhage-Strassen method for multiplying integers).") + (license license:bsd-3))) + (define-public go-github-com-shopspring-decimal (package (name "go-github-com-shopspring-decimal") From 50a9000dc062b1194b9679063525f1ef4dc91a1f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 03:06:39 +0000 Subject: [PATCH 215/862] gnu: Add go-modernc-org-mathutil. * gnu/packages/golang-maths.scm (go-modernc-org-mathutil): New variable. Change-Id: Ifb27d5be71c98932f74e47cd56b854372f784da0 --- gnu/packages/golang-maths.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index 8ecdf9948f0..dc855b0a0c3 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -278,6 +278,32 @@ distributions, and sampling; tools for function differentiation,integration, and optimization; network creation and analysis") (license license:expat))) +(define-public go-modernc-org-mathutil + (package + (name "go-modernc-org-mathutil") + (version "1.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/mathutil") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wafxarpfvys5p2wsamadkv8j54ahrv9dwmlba9xsxb85n4q9ywm")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/mathutil")) + (propagated-inputs (list go-github-com-remyoudompheng-bigfft)) + (home-page "https://modernc.org/mathutil") + (synopsis + "Utilities supplemental to the Go standard @code{rand} and @code{math} packages") + (description + "Package mathutil provides utilities supplementing the standard +@code{math} and @code{math/rand} packages.") + (license license:bsd-3))) + ;;; ;;; Executables: ;;; From 2ca21f101ecc34d5de5def9efc69443fd0148611 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 03:13:48 +0000 Subject: [PATCH 216/862] gnu: Add go-modernc-org-memory. * gnu/packages/golang-xyz.scm (go-modernc-org-memory): New variable. Change-Id: Id561b8c4a794cb5da1e784c22daec1f6f9004e89 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ccc95408eca..a6c9091850f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10796,6 +10796,30 @@ kubernetes-independent packages supplementing the @url{https://pkg.go.dev/std#stdlib,Go standard libs}.") (license license:asl2.0))) +(define-public go-modernc-org-memory + (package + (name "go-modernc-org-memory") + (version "1.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/memory") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "066pzk0i1jxahialzp97ra0k0f191y1756sgppiw50zkpnpwzjxr")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/memory")) + (propagated-inputs + (list go-modernc-org-mathutil)) + (home-page "https://gitlab.com/cznic/memory") + (synopsis "Memory allocator implementation") + (description "Package memory implements a memory allocator.") + (license license:bsd-3))) + (define-public go-mvdan-cc-editorconfig (package (name "go-mvdan-cc-editorconfig") From 6cb4c1e7a9ed0bf4ad41e7e47acb4b5d2854dfda Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 03:16:31 +0000 Subject: [PATCH 217/862] gnu: Add go-lukechampine-com-uint128. * gnu/packages/golang-maths.scm (go-lukechampine-com-uint128): New variable. Change-Id: I8cacd39c843b3ea9dd4e324874240b882b32064e --- gnu/packages/golang-maths.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index dc855b0a0c3..957e625cdf9 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -278,6 +278,33 @@ distributions, and sampling; tools for function differentiation,integration, and optimization; network creation and analysis") (license license:expat))) +(define-public go-lukechampine-com-uint128 + (package + (name "go-lukechampine-com-uint128") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lukechampine/uint128") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1yy6lbprrsl9gscxn4194kr5sfvgi9cgvjdxn2141k36ab3nz8ip")))) + (build-system go-build-system) + (arguments + (list + #:import-path "lukechampine.com/uint128")) + (home-page "https://github.com/lukechampine/uint128") + (synopsis "Uint128 for Golang") + (description + "This package provides a high-performance @code{Uint128} type that +supports standard arithmetic operations. Unlike @code{math/big}, operations +on @code{Uint128} values always produce new values instead of modifying a +pointer receiver. A @@code{Uint128} value is therefore immutable, just like +@code{uint64} and friends.") + (license license:expat))) + (define-public go-modernc-org-mathutil (package (name "go-modernc-org-mathutil") From 70e9b0549e56a9f15b3d314465d8660b865e9fdf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 03:18:11 +0000 Subject: [PATCH 218/862] gnu: runitor: Update to 1.3.0-build.4. * gnu/packages/admin.scm (runitor): Update to 1.3.0-build.4. Change-Id: I1d20003f6de8c045ba456c0f4cb5147bc232cafe --- gnu/packages/admin.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 89879bf4862..46f216bd344 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -5700,7 +5700,7 @@ FIFO and UNIX interprocess communication.") (define-public runitor (package (name "runitor") - (version "0.8.0") + (version "1.3.0-build.4") (source (origin (method git-fetch) @@ -5709,7 +5709,7 @@ FIFO and UNIX interprocess communication.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0vjfbyrbp5ywgzdz9j3x0qgjvnq7nw7193x8v9yy6k2cih1zsacn")))) + (base32 "00l83jcjmf5kcq8yzq575kk6ljkkr2xhm5cx27zzb1yhxn93xj7n")))) (build-system go-build-system) (arguments `(#:unpack-path "bdd.fi/x/runitor" From 9dbdda6c22c89bfe2331810108fefc15e356460d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 03:22:51 +0000 Subject: [PATCH 219/862] gnu: Add go-modernc-org-fileutil. * gnu/packages/golang-xyz.scm (go-modernc-org-fileutil): New variable. Change-Id: I2b2f2bb682f17395104ec728d8d54e10f4e37df4 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a6c9091850f..49094b2d831 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10796,6 +10796,30 @@ kubernetes-independent packages supplementing the @url{https://pkg.go.dev/std#stdlib,Go standard libs}.") (license license:asl2.0))) +(define-public go-modernc-org-fileutil + (package + (name "go-modernc-org-fileutil") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/fileutil") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10q5xbik9yk9jw2ziq1fw0hpjfbv5h3qm7rlxlkwj0qxyyb7b9bi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/fileutil")) + (propagated-inputs + (list go-modernc-org-mathutil)) + (home-page "https://gitlab.com/cznic/fileutil") + (synopsis "File utility functions") + (description "Package fileutil collects some file utility functions.") + (license license:bsd-3))) + (define-public go-modernc-org-memory (package (name "go-modernc-org-memory") From 8964da0a947b67fb6e66c11d10fecb82a931c6e7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 22:54:25 +0000 Subject: [PATCH 220/862] gnu: Add go-modernc-org-sortutil. * gnu/packages/golang-xyz.scm (go-modernc-org-sortutil): New variable. Change-Id: I4fdc752b211d34c6583396dd6f5b332a647cad36 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 49094b2d831..a7ae148e493 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10844,6 +10844,32 @@ kubernetes-independent packages supplementing the (description "Package memory implements a memory allocator.") (license license:bsd-3))) +(define-public go-modernc-org-sortutil + (package + (name "go-modernc-org-sortutil") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/sortutil") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01s9vil8lvaz526x6q9f12h6vpc3jc8zvpag7knz1bdx9b15yljc")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/sortutil")) + (native-inputs + (list go-modernc-org-mathutil)) + (home-page "https://gitlab.com/cznic/sortutil") + (synopsis "Sort utility library") + (description + "Package sortutil provides utilities supplementing the standard +@code{sort} package.") + (license license:bsd-3))) + (define-public go-mvdan-cc-editorconfig (package (name "go-mvdan-cc-editorconfig") From 5541f13dabf83ccb1e18f25e10cafc6541395dce Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 23:00:17 +0000 Subject: [PATCH 221/862] gnu: Add go-modernc-org-strutil. * gnu/packages/golang-xyz.scm (go-modernc-org-strutil): New variable. Change-Id: If66b56b6603263907bc5b95ddc01775777b4cd57 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a7ae148e493..3654f42ffc7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10870,6 +10870,34 @@ kubernetes-independent packages supplementing the @code{sort} package.") (license license:bsd-3))) +(define-public go-modernc-org-strutil + (package + (name "go-modernc-org-strutil") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/strutil") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rk76c1n189hzg3kfab8pfvssa1h9v0vxk5jxy8pk32rqic0hdim")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/strutil" + ;; Cannot determine import path using GOPATH. + #:test-flags #~(list "-skip" "TestImportPath"))) + (native-inputs + (list go-modernc-org-mathutil)) + (home-page "https://gitlab.com/cznic/strutil") + (synopsis "Strings utility library for Golang") + (description + "Package strutil collects utils supplemental to the standard +@code{strings} package.") + (license license:bsd-3))) + (define-public go-mvdan-cc-editorconfig (package (name "go-mvdan-cc-editorconfig") From 057a1e278d289d370d165bbb7ce673eda222bba2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 23:02:07 +0000 Subject: [PATCH 222/862] gnu: Add go-modernc-org-opt. * gnu/packages/golang-xyz.scm (go-modernc-org-opt): New variable. Change-Id: Icf658b4e7b7558c067c54bd09ad06abf198f83d8 --- gnu/packages/golang-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3654f42ffc7..47cd6922987 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10844,6 +10844,28 @@ kubernetes-independent packages supplementing the (description "Package memory implements a memory allocator.") (license license:bsd-3))) +(define-public go-modernc-org-opt + (package + (name "go-modernc-org-opt") + (version "0.1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/opt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "02jih8lgcyrm2v0vagdmq298rvhqkwi4pswg4nwlksdiayw356p5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/opt")) + (home-page "https://gitlab.com/cznic/opt") + (synopsis "Command-line flag parsing") + (description "Package opt implements command-line flag parsing.") + (license license:bsd-3))) + (define-public go-modernc-org-sortutil (package (name "go-modernc-org-sortutil") From 5d64a46e943b7a9e13fce3cf5b73f7a64238bf5f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 18 Dec 2024 23:04:36 +0000 Subject: [PATCH 223/862] gnu: Add go-modernc-org-httpfs. * gnu/packages/golang-web.scm (go-modernc-org-httpfs): New variable. Change-Id: I4bd7855db682354b57ebd05b3c190f901efcf1cd --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 9debc0f9575..b97b7328521 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6875,6 +6875,30 @@ but implement that subset with little to no assumption about the structure of the code or routes.") (license license:asl2.0))) +(define-public go-modernc-org-httpfs + (package + (name "go-modernc-org-httpfs") + (version "1.0.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/httpfs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01q5rvhxmrd45h0ljh4185wlly7rxv6vvh28d2shsyan4nj67zf1")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/httpfs")) + (home-page "https://gitlab.com/cznic/httpfs") + (synopsis "HTTP file system implementation in Golang") + (description + "Package httpfs implements @code{http.FileSystem} on top of a +@code{map[string]string}.") + (license license:bsd-3))) + (define-public go-modernc-org-token (package (name "go-modernc-org-token") From 38f3dacb42e162d114c73729ce9a3bc60e0e6497 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 09:23:52 +0000 Subject: [PATCH 224/862] gnu: go-github-com-jcmturner-rpc: Move to golang-web. * gnu/packages/golang.scm (o-github-com-jcmturner-rpc, go-github-com-jcmturner-rpc-v2-ndr, go-github-com-jcmturner-rpc-v2-mstypes): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I51716d4069aa3e211406afbbfabf307cd3b9e0a7 --- gnu/packages/golang-web.scm | 49 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 49 ------------------------------------- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index b97b7328521..a5a7ce8ac43 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3110,6 +3110,55 @@ SPNEGO Kerberos authentication, as well as a HTTP handler wrapper decodes Microsoft AD PAC authorization data.") (license license:asl2.0))) +(define-public go-github-com-jcmturner-rpc + (package + (name "go-github-com-jcmturner-rpc") + (version "2.0.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jcmturner/rpc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1nm4j2nwcszghldw39rwdx2hr56i1lybfpv33y4gd67w6qcqbpsi")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jcmturner/rpc" + ;; Source-only package. + #:tests? #f + #:phases + (modify-phases %standard-phases + ;; Source-only package. + (delete 'build)))) + (propagated-inputs + (list go-golang-org-x-net go-github-com-stretchr-testify)) + (home-page "https://github.com/jcmturner/rpc") + (synopsis "Remote Procedure Call libraries") + (description + "This package provides a partial Go implementation of the Remote Call +Procedure libraries, presented in +@@url{http://pubs.opengroup.org/onlinepubs/9629399/,CDE 1.1: Remote Procedure +Call}.") + (license license:asl2.0))) + +(define-public go-github-com-jcmturner-rpc-v2-ndr + (package + (inherit go-github-com-jcmturner-rpc) + (name "go-github-com-jcmturner-rpc-v2-ndr") + (arguments + `(#:import-path "github.com/jcmturner/rpc/v2/ndr" + #:unpack-path "github.com/jcmturner/rpc")))) + +(define-public go-github-com-jcmturner-rpc-v2-mstypes + (package + (inherit go-github-com-jcmturner-rpc) + (name "go-github-com-jcmturner-rpc-v2-mstypes") + (arguments + `(#:import-path "github.com/jcmturner/rpc/v2/mstypes" + #:unpack-path "github.com/jcmturner/rpc")))) + (define-public go-github-com-jhillyerd-enmime (package (name "go-github-com-jhillyerd-enmime") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0b3a2072ef7..aa6a1e22421 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1337,55 +1337,6 @@ networks where it would otherwise be blocked or heavily throttled.") arounds until issues are addressed in the official distribution.") (license license:bsd-3))) -(define-public go-github-com-jcmturner-rpc - (package - (name "go-github-com-jcmturner-rpc") - (version "2.0.3") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jcmturner/rpc") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1nm4j2nwcszghldw39rwdx2hr56i1lybfpv33y4gd67w6qcqbpsi")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/jcmturner/rpc" - ;; Source-only package. - #:tests? #f - #:phases - (modify-phases %standard-phases - ;; Source-only package. - (delete 'build)))) - (propagated-inputs - (list go-golang-org-x-net go-github-com-stretchr-testify)) - (home-page "https://github.com/jcmturner/rpc") - (synopsis "Remote Procedure Call libraries") - (description - "This package provides a partial Go implementation of the Remote Call -Procedure libraries, presented in -@@url{http://pubs.opengroup.org/onlinepubs/9629399/,CDE 1.1: Remote Procedure -Call}.") - (license license:asl2.0))) - -(define-public go-github-com-jcmturner-rpc-v2-ndr - (package - (inherit go-github-com-jcmturner-rpc) - (name "go-github-com-jcmturner-rpc-v2-ndr") - (arguments - `(#:import-path "github.com/jcmturner/rpc/v2/ndr" - #:unpack-path "github.com/jcmturner/rpc")))) - -(define-public go-github-com-jcmturner-rpc-v2-mstypes - (package - (inherit go-github-com-jcmturner-rpc) - (name "go-github-com-jcmturner-rpc-v2-mstypes") - (arguments - `(#:import-path "github.com/jcmturner/rpc/v2/mstypes" - #:unpack-path "github.com/jcmturner/rpc")))) - (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") From 491a29c4d0b278cc66500072b89f01bbecdb5ee1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 10:15:01 +0000 Subject: [PATCH 225/862] gnu: go-github-com-jcmturner-rpc: Fix import path. These changes are group togather to resolve inheritance and import issues with Golang modules containing subdirs. * gnu/packages/golang-web.scm (go-github-com-jcmturner-rpc): Downgrade to 1.1.0 to fix inheritance. [arguments] : Adjust it to follow expected module path. : Activate them. [propagated-inputs]: Remove go-golang-org-x-net and go-github-com-stretchr-testify. [native-inputs]: Add go-github-com-stretchr-testify. (go-github-com-jcmturner-rpc-v2, go-gopkg-in-jcmturner-rpc-v1, go-gopkg-in-jcmturner-rpc-v2): New variables. (go-github-com-jcmturner-rpc-v2-ndr, go-github-com-jcmturner-rpc-v2-mstypes): Delete variables. (go-github-com-jcmturner-gokrb5-v8): [propagated-inputs]: Remove go-github-com-jcmturner-rpc-v2-mstypes and go-github-com-jcmturner-rpc-v2-ndr; add go-github-com-jcmturner-rpc-v2. Change-Id: I4138856270db32e99468d7f7de76ca756b3b017f Change-Id: I60dc42285ec4079029f5f9a54810acf75842a431 --- gnu/packages/golang-web.scm | 92 ++++++++++++++++++++++++------------- 1 file changed, 59 insertions(+), 33 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index a5a7ce8ac43..069fd86f322 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3086,8 +3086,7 @@ authenticated identities and their attributes.") go-github-com-jcmturner-dnsutils-v2 go-github-com-jcmturner-gofork go-github-com-jcmturner-goidentity-v6 - go-github-com-jcmturner-rpc-v2-mstypes - go-github-com-jcmturner-rpc-v2-ndr + go-github-com-jcmturner-rpc-v2 go-golang-org-x-crypto go-golang-org-x-net)) (home-page "https://github.com/jcmturner/gokrb5") @@ -3113,27 +3112,25 @@ Microsoft AD PAC authorization data.") (define-public go-github-com-jcmturner-rpc (package (name "go-github-com-jcmturner-rpc") - (version "2.0.3") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jcmturner/rpc") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1nm4j2nwcszghldw39rwdx2hr56i1lybfpv33y4gd67w6qcqbpsi")))) + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jcmturner/rpc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hkmvf8qdcifnzym8kv1xhq7lq0wpr0i6gzff159lh9xn0wfg175")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/jcmturner/rpc" - ;; Source-only package. - #:tests? #f - #:phases - (modify-phases %standard-phases - ;; Source-only package. - (delete 'build)))) - (propagated-inputs - (list go-golang-org-x-net go-github-com-stretchr-testify)) + (list + #:import-path "gopkg.in/jcmturner/rpc.v1" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (native-inputs + (list go-github-com-stretchr-testify)) (home-page "https://github.com/jcmturner/rpc") (synopsis "Remote Procedure Call libraries") (description @@ -3143,21 +3140,29 @@ Procedure libraries, presented in Call}.") (license license:asl2.0))) -(define-public go-github-com-jcmturner-rpc-v2-ndr +(define-public go-github-com-jcmturner-rpc-v2 (package (inherit go-github-com-jcmturner-rpc) - (name "go-github-com-jcmturner-rpc-v2-ndr") + (name "go-github-com-jcmturner-rpc-v2") + (version "2.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jcmturner/rpc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nm4j2nwcszghldw39rwdx2hr56i1lybfpv33y4gd67w6qcqbpsi")))) (arguments - `(#:import-path "github.com/jcmturner/rpc/v2/ndr" - #:unpack-path "github.com/jcmturner/rpc")))) - -(define-public go-github-com-jcmturner-rpc-v2-mstypes - (package - (inherit go-github-com-jcmturner-rpc) - (name "go-github-com-jcmturner-rpc-v2-mstypes") - (arguments - `(#:import-path "github.com/jcmturner/rpc/v2/mstypes" - #:unpack-path "github.com/jcmturner/rpc")))) + (list + #:import-path "github.com/jcmturner/rpc/v2" + #:unpack-path "github.com/jcmturner/rpc" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) ; no go files in project's root + (propagated-inputs + (list go-golang-org-x-net)))) (define-public go-github-com-jhillyerd-enmime (package @@ -6819,6 +6824,27 @@ go.opentelemetry.io/otel/trace.") (description "This package is a Go Implementation of WireGuard.") (license license:expat))) +;; This to satisfy alternative import path. +(define-public go-gopkg-in-jcmturner-rpc-v1 + (package + (inherit go-github-com-jcmturner-rpc) + (name "go-gopkg-in-jcmturner-rpc-v1") + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-jcmturner-rpc) + ((#:import-path _) "gopkg.in/jcmturner/rpc.v1"))))) + +;; This to satisfy alternative import path. +(define-public go-gopkg-in-jcmturner-rpc-v2 + (package + (inherit go-github-com-jcmturner-rpc-v2) + (name "go-gopkg-in-jcmturner-rpc-v2") + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-jcmturner-rpc-v2) + ((#:tests? _ #t) #f) + ((#:import-path _) "gopkg.in/jcmturner/rpc.v2"))))) + ;; XXX: This repository has been archived by the owner on Feb 27, 2023. It is ;; now read-only and it is DEPRECATED. (define-public go-gopkg-in-square-go-jose-v2 From 85ea6f31de85a85c9a14d7fe6e2d5db15f6b2bc8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 11:09:32 +0000 Subject: [PATCH 226/862] gnu: go-github-com-jcmturner-gokrb5-v8: Update to 8.4.4. * gnu/packages/golang-web.scm (go-github-com-jcmturner-gokrb5-v8): Update to 8.4.4. [propagated-inputs]: Remove go-golang-org-x-net. Change-Id: I0e74f8be28c3ed096e0c4f444df979875d7024e7 --- gnu/packages/golang-web.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 069fd86f322..2f757cb1467 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3063,7 +3063,7 @@ authenticated identities and their attributes.") (define-public go-github-com-jcmturner-gokrb5-v8 (package (name "go-github-com-jcmturner-gokrb5-v8") - (version "8.4.2") + (version "8.4.4") (source (origin (method git-fetch) @@ -3072,7 +3072,7 @@ authenticated identities and their attributes.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0w9d1pa3r6qmdblk25bghf78ncs03l15l1sxnh4n536c356rzq4b")))) + (base32 "1rv495j8j2x6avw5hqpf7rpiakr5gdsx6pv8rfn0ff7vi35zfa62")))) (build-system go-build-system) (arguments '(#:import-path "github.com/jcmturner/gokrb5/v8" @@ -3087,8 +3087,7 @@ authenticated identities and their attributes.") go-github-com-jcmturner-gofork go-github-com-jcmturner-goidentity-v6 go-github-com-jcmturner-rpc-v2 - go-golang-org-x-crypto - go-golang-org-x-net)) + go-golang-org-x-crypto)) (home-page "https://github.com/jcmturner/gokrb5") (synopsis "Pure Go Kerberos library for clients and services") (description "This package provides a pure Go Kerberos library. It From 9d022bca7feb70120c406da3abfe802f319a8035 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 11:14:32 +0000 Subject: [PATCH 227/862] gnu: go-github-com-jcmturner-gofork: Move golang-xyz. * gnu/packages/golang.scm (go-github-com-jcmturner-gofork): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I89a0455345e4a76f6330e70bfa721d76149d25fc --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 47cd6922987..29f774ae3af 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5529,6 +5529,30 @@ more like a Context-WaitGroup hybrid. @code{goprocess} is about being able to s and stop units of work, which may receive @code{Close} signals from many clients.") (license license:expat))) +(define-public go-github-com-jcmturner-gofork + (package + (name "go-github-com-jcmturner-gofork") + (version "1.7.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jcmturner/gofork") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0w1j6b671121r6md5w7hnh2d0sa332pw5q49yihw23wdfinknyin")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jcmturner/gofork")) + (home-page "https://github.com/jcmturner/gofork") + (synopsis "Modified Go standard library packages") + (description + "This repository contains modified Go standard library packages for use +as work arounds until issues are addressed in the official distribution.") + (license license:bsd-3))) + (define-public go-github-com-jdkato-twine (package (name "go-github-com-jdkato-twine") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index aa6a1e22421..92931dd3209 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1314,29 +1314,6 @@ networks where it would otherwise be blocked or heavily throttled.") "Package reqtrace contains a very simple request tracing framework.") (license license:asl2.0)))) -(define-public go-github-com-jcmturner-gofork - (package - (name "go-github-com-jcmturner-gofork") - (version "1.7.6") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jcmturner/gofork") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0w1j6b671121r6md5w7hnh2d0sa332pw5q49yihw23wdfinknyin")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/jcmturner/gofork")) - (home-page "https://github.com/jcmturner/gofork") - (synopsis "Modified Go standard library packages") - (description - "This repository contains modified Go standard library packages for use as work -arounds until issues are addressed in the official distribution.") - (license license:bsd-3))) - (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") From 814971578a5f8d71e9dd72a0301be2756991c423 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:13:22 +0000 Subject: [PATCH 228/862] gnu: Add go-github-com-moby-sys-mountinfo. * gnu/packages/golang-xyz.scm (go-github-com-moby-sys-mountinfo): New variable. Change-Id: Iff74f93a6c5e343b1cd0a67a8b50867ad1467546 --- gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 29f774ae3af..2d826d5f2c9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6901,6 +6901,39 @@ colored strings.") (description "Go library for decoding generic map values") (license license:expat))) +(define-public go-github-com-moby-sys-mountinfo + (package + (name "go-github-com-moby-sys-mountinfo") + (version "0.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/moby/sys") + (commit (go-version->git-ref version + #:subdir "mountinfo")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1i1phx1kk9qa4jf1i1nl23d3f6k9fn2w46274cl76cqw9hjqg868")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/moby/sys/mountinfo" + #:unpack-path "github.com/moby/sys" + #:test-flags + #~(list "-skip" (string-join + (list "TestMountedBy/not_mounted_socket" + "TestMountedBy/socket_bind-mounted_to_itself") + "|")))) + (propagated-inputs (list go-golang-org-x-sys)) + (home-page "https://github.com/moby/sys") + (synopsis "Retrieve information about OS mounts") + (description + "Package mountinfo provides a set of functions to retrieve information +about OS mounts as seen by the current process is available from +@code{/proc/self/mountinfo}.") + (license license:asl2.0))) + (define-public go-github-com-moby-sys-userns (package (name "go-github-com-moby-sys-userns") From d12c7edb32e3a3b2f57e8afee7ddcf4f7015363e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:13:31 +0000 Subject: [PATCH 229/862] gnu: go-github-com-hanwen-go-fuse-v2: Update to 2.7.2. * gnu/packages/golang.scm (go-github-com-hanwen-go-fuse-v2): Update to 2.7.2. [propagated-inputs]: Add go-github-com-kylelemons-godebug, go-github-com-moby-sys-mountinfo, go-golang-org-x-sync, and go-golang-org-x-sys. [native-inputs]: Remove go-golang-org-x-sys, go-golang-org-x-sync, and go-github-com-kylelemons-godebug. Change-Id: Icaa446a2c7bbe86f8310a0e779b1920c2dc3946d --- gnu/packages/golang.scm | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 92931dd3209..e4ddb4f00dd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1261,32 +1261,42 @@ networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) (define-public go-github-com-hanwen-go-fuse-v2 - (let ((commit "915cf5413cdef5370ae3f953f8eb4cd9ac176d5c") - (revision "0")) (package (name "go-github-com-hanwen-go-fuse-v2") - (version (git-version "2.2.0" revision commit)) + (version "2.7.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hanwen/go-fuse") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "1ik0yvs9m40vxccpb0rpxc22fyqmcgyysc7w0yl9kn3jyr6qa1d5")))) + "1fcf94chf9ffgjk0wcpnlz0kfb69m2fwzfn4k348kal75x178aar")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/hanwen/go-fuse/v2")) - (native-inputs (list - go-golang-org-x-sys + (list + #:import-path "github.com/hanwen/go-fuse/v2" + ;; Most of the tests require "/bin/fusermount" to be available which + ;; is missed during packaging, limit to some unit tests only. + #:test-subdirs #~(list "internal/..." "splice") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples-and-benchmarks + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "example") + (delete-file-recursively "benchmark"))))))) + (propagated-inputs (list + go-github-com-kylelemons-godebug + go-github-com-moby-sys-mountinfo go-golang-org-x-sync - go-github-com-kylelemons-godebug)) + go-golang-org-x-sys)) (home-page "https://github.com/hanwen/go-fuse") (synopsis "Go bindings for FUSE filesystems") (description "This is a repository containing Go bindings for writing FUSE file systems.") - (license license:bsd-3)))) + (license license:bsd-3))) (define-public go-github-com-jacobsa-reqtrace (let ((commit "245c9e0234cb2ad542483a336324e982f1a22934") From a20928cbafcf747dab5aa26869b116f58bb7d529 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:18:58 +0000 Subject: [PATCH 230/862] gnu: go-github-com-hanwen-go-fuse-v2: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-hanwen-go-fuse-v2): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ic070a2c7aa6b08e53999b20d88358b4cc89fc492 --- gnu/packages/golang-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 38 ------------------------------------ 2 files changed, 39 insertions(+), 38 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2d826d5f2c9..bf30ac7a786 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -36,6 +36,7 @@ ;;; Copyright © 2022 Leo Nikkilä ;;; Copyright © 2022 kiasoc5 ;;; Copyright © 2023 Benjamin +;;; Copyright © 2023 Felix Lechner ;;; Copyright © 2023 Fries ;;; Copyright © 2023 Hilton Chain ;;; Copyright © 2023 Katherine Cox-Buday @@ -4482,6 +4483,44 @@ underneath and returns only matching files or direcories, depending on the configuration.") (license license:expat))) +(define-public go-github-com-hanwen-go-fuse-v2 + (package + (name "go-github-com-hanwen-go-fuse-v2") + (version "2.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hanwen/go-fuse") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fcf94chf9ffgjk0wcpnlz0kfb69m2fwzfn4k348kal75x178aar")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hanwen/go-fuse/v2" + ;; Most of the tests require "/bin/fusermount" to be available which + ;; is missed during packaging, limit to some unit tests only. + #:test-subdirs #~(list "internal/..." "splice") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples-and-benchmarks + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "example") + (delete-file-recursively "benchmark"))))))) + (propagated-inputs + (list go-github-com-kylelemons-godebug + go-github-com-moby-sys-mountinfo + go-golang-org-x-sync + go-golang-org-x-sys)) + (home-page "https://github.com/hanwen/go-fuse") + (synopsis "Go bindings for FUSE filesystems") + (description + "This is a repository containing Go bindings for writing FUSE file systems.") + (license license:bsd-3))) + (define-public go-github-com-hashicorp-errwrap (package (name "go-github-com-hashicorp-errwrap") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e4ddb4f00dd..4cb302a5626 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1260,44 +1260,6 @@ form that bypasses network filtering, allowing the application to work on networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) -(define-public go-github-com-hanwen-go-fuse-v2 - (package - (name "go-github-com-hanwen-go-fuse-v2") - (version "2.7.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/hanwen/go-fuse") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1fcf94chf9ffgjk0wcpnlz0kfb69m2fwzfn4k348kal75x178aar")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/hanwen/go-fuse/v2" - ;; Most of the tests require "/bin/fusermount" to be available which - ;; is missed during packaging, limit to some unit tests only. - #:test-subdirs #~(list "internal/..." "splice") - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'remove-examples-and-benchmarks - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (delete-file-recursively "example") - (delete-file-recursively "benchmark"))))))) - (propagated-inputs (list - go-github-com-kylelemons-godebug - go-github-com-moby-sys-mountinfo - go-golang-org-x-sync - go-golang-org-x-sys)) - (home-page "https://github.com/hanwen/go-fuse") - (synopsis "Go bindings for FUSE filesystems") - (description - "This is a repository containing Go bindings for writing FUSE file systems.") - (license license:bsd-3))) - (define-public go-github-com-jacobsa-reqtrace (let ((commit "245c9e0234cb2ad542483a336324e982f1a22934") (revision "0")) From 982613a4d8bd8254420fa3a01b4b7a2cb5c785f9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:13:31 +0000 Subject: [PATCH 231/862] gnu: gocryptfs: Fix tests. * gnu/packages/file-systems.scm (gocryptfs) [arguments] : No need as they are the final commands. : Skip 3 unit tests. : Only run some unit tests which do no require root access. [native-inputs]: Remove go-github-com-jacobsa-oglematchers, go-github-com-jacobsa-oglemock, go-github-com-jacobsa-ogletest, go-github-com-jacobsa-reqtrace, and go-golang-org-x-net; add go-github-com-moby-sys-mountinfo. Change-Id: I6b1d82c02bad4610a71109c63ea8d9e83bf82809 --- gnu/packages/file-systems.scm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 06aab0801c0..b707a94f253 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -511,6 +511,7 @@ significantly increases the risk of irreversible data loss!") (build-system go-build-system) (arguments (list + #:install-source? #f #:import-path "github.com/rfjakob/gocryptfs" #:build-flags #~(list @@ -519,6 +520,15 @@ significantly increases the risk of irreversible data loss!") " -X main.GitVersionFuse=" #$(package-version go-github-com-hanwen-go-fuse-v2) " -X main.BuildDate=" "[reproducible]")) + #:test-flags + #~(list "-skip" (string-join + (list "TestPrepareAtSyscall" + "TestPrepareAtSyscallPlaintextnames" + "TestGetdents") + "|")) + ;; XXX: Test suit requires a root access to mount, limit to some unit + ;; tests, figure out how to enable most of the them. + #:test-subdirs #~(list "internal/...") #:phases #~(modify-phases %standard-phases ;; after 'check phase, should maybe unmount leftover mounts as in @@ -536,18 +546,14 @@ significantly increases the risk of irreversible data loss!") "github.com/rfjakob/gocryptfs/contrib/findholes" "github.com/rfjakob/gocryptfs/contrib/atomicrename"))))))) (native-inputs (list - go-github-com-hanwen-go-fuse-v2 go-github-com-aperturerobotics-jacobsa-crypto - go-github-com-jacobsa-oglematchers - go-github-com-jacobsa-oglemock - go-github-com-jacobsa-ogletest - go-github-com-jacobsa-reqtrace + go-github-com-hanwen-go-fuse-v2 + go-github-com-moby-sys-mountinfo go-github-com-pkg-xattr go-github-com-rfjakob-eme go-github-com-sabhiram-go-gitignore go-github-com-spf13-pflag go-golang-org-x-crypto - go-golang-org-x-net go-golang-org-x-sys go-golang-org-x-term openssl From ce306a9a09b03c521855ecc8f1e73009aa3013b1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:41:28 +0000 Subject: [PATCH 232/862] gnu: go-github-com-jacobsa-reqtrace: Update to 0.0.0-20150505043853-245c9e0234cb. * gnu/packages/golang.scm (go-github-com-jacobsa-reqtrace): Update to 0.0.0-20150505043853-245c9e0234cb. [inputs]: Remove go-golang-org-x-net. [propagated-inputs]: Add go-golang-org-x-net. Change-Id: I7061c88bdbd89be15d16847488e408138b6aa89f --- gnu/packages/golang.scm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4cb302a5626..a8fc6593982 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1261,16 +1261,14 @@ networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) (define-public go-github-com-jacobsa-reqtrace - (let ((commit "245c9e0234cb2ad542483a336324e982f1a22934") - (revision "0")) (package (name "go-github-com-jacobsa-reqtrace") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20150505043853-245c9e0234cb") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/reqtrace") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -1278,13 +1276,13 @@ networks where it would otherwise be blocked or heavily throttled.") (build-system go-build-system) (arguments '(#:import-path "github.com/jacobsa/reqtrace")) - (inputs (list - go-golang-org-x-net)) + (propagated-inputs + (list go-golang-org-x-net)) (home-page "https://github.com/jacobsa/reqtrace") (synopsis "Simple request tracing framework") (description "Package reqtrace contains a very simple request tracing framework.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-kataras-golog (package From 165053a02450c31b763b0e614bc65b101b634031 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:43:20 +0000 Subject: [PATCH 233/862] gnu: go-github-com-jacobsa-reqtrace: Move to golang-check. * gnu/packages/golang.scm (go-github-com-jacobsa-reqtrace): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: If331f4aa071ee810b3f5e286def7e181f1971f3d --- gnu/packages/golang-check.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 161740b8e8e..57614c0a186 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -796,6 +796,31 @@ signalling failures, it offers ways to express expectations and get nice failure messages automatically.") (license license:asl2.0)))) +(define-public go-github-com-jacobsa-reqtrace + (package + (name "go-github-com-jacobsa-reqtrace") + (version "0.0.0-20150505043853-245c9e0234cb") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/reqtrace") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zfyijig10896v42rvxka1n4wn6lijqz40y2281187l7mq8vv5jn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jacobsa/reqtrace")) + (propagated-inputs + (list go-golang-org-x-net)) + (home-page "https://github.com/jacobsa/reqtrace") + (synopsis "Simple request tracing framework") + (description + "Package reqtrace contains a very simple request tracing framework.") + (license license:asl2.0))) + (define-public go-github-com-jbenet-go-cienv (package (name "go-github-com-jbenet-go-cienv") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a8fc6593982..06489d816aa 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1260,30 +1260,6 @@ form that bypasses network filtering, allowing the application to work on networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) -(define-public go-github-com-jacobsa-reqtrace - (package - (name "go-github-com-jacobsa-reqtrace") - (version "0.0.0-20150505043853-245c9e0234cb") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jacobsa/reqtrace") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0zfyijig10896v42rvxka1n4wn6lijqz40y2281187l7mq8vv5jn")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/jacobsa/reqtrace")) - (propagated-inputs - (list go-golang-org-x-net)) - (home-page "https://github.com/jacobsa/reqtrace") - (synopsis "Simple request tracing framework") - (description - "Package reqtrace contains a very simple request tracing framework.") - (license license:asl2.0))) - (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") From 6893dae7b84956aa1913f2ec249bb1235368241c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:47:35 +0000 Subject: [PATCH 234/862] gnu: go-github-com-jacobsa-ogletest: Update to 0.0.0-20170503003838-80d50a735a11. * gnu/packages/golang-check.scm (go-github-com-jacobsa-ogletest): Update to 0.0.0-20170503003838-80d50a735a11. Change-Id: Ie559aebc59c03286d775fc08b84f81a107b1d958 --- gnu/packages/golang-check.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 57614c0a186..7143adf664e 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -761,17 +761,15 @@ Test for C++ and Google JS Test.") (license license:asl2.0)))) (define-public go-github-com-jacobsa-ogletest - (let ((commit "80d50a735a1108a2aeb7abc4a988d183f20c5292") - (revision "0")) (package (name "go-github-com-jacobsa-ogletest") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20170503003838-80d50a735a11") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/ogletest") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -794,7 +792,7 @@ integrates with the builtin testing package, so it works with the gotest command. Unlike the testing package which offers only basic capabilities for signalling failures, it offers ways to express expectations and get nice failure messages automatically.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-jacobsa-reqtrace (package From e171d1a420a2b30856bc3239bb1e5e72524fda55 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:49:43 +0000 Subject: [PATCH 235/862] gnu: go-github-com-jacobsa-ogletest: Fix indentation. * gnu/packages/golang-check.scm (go-github-com-jacobsa-ogletest): Fix indentation. Change-Id: I1439b691a61ccd5b796bbc9a50c9c88ed954823f --- gnu/packages/golang-check.scm | 61 +++++++++++++++++------------------ 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 7143adf664e..d571a09c078 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -761,38 +761,37 @@ Test for C++ and Google JS Test.") (license license:asl2.0)))) (define-public go-github-com-jacobsa-ogletest - (package - (name "go-github-com-jacobsa-ogletest") - (version "0.0.0-20170503003838-80d50a735a11") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jacobsa/ogletest") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1lbwbxzr75g65q07ry5k4kglxqs3ym7xkvqznzm55rm3qk76v83r")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/jacobsa/ogletest" - ;; These tests should be made working - #:tests? #f)) - (native-inputs - (list go-github-com-jacobsa-oglematchers - go-github-com-jacobsa-oglemock - go-github-com-jacobsa-reqtrace - go-golang-org-x-net)) - (home-page "https://github.com/jacobsa/ogletest") - (synopsis "Expressive unit tests") - (description - "Package ogletest provides a framework for writing expressive unit tests. It -integrates with the builtin testing package, so it works with the gotest + (package + (name "go-github-com-jacobsa-ogletest") + (version "0.0.0-20170503003838-80d50a735a11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/ogletest") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lbwbxzr75g65q07ry5k4kglxqs3ym7xkvqznzm55rm3qk76v83r")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jacobsa/ogletest" + ;; These tests should be made working + #:tests? #f)) + (native-inputs + (list go-github-com-jacobsa-oglematchers + go-github-com-jacobsa-oglemock + go-github-com-jacobsa-reqtrace + go-golang-org-x-net)) + (home-page "https://github.com/jacobsa/ogletest") + (synopsis "Expressive unit tests") + (description + "Package ogletest provides a framework for writing expressive unit tests. +It integrates with the builtin testing package, so it works with the gotest command. Unlike the testing package which offers only basic capabilities for -signalling failures, it offers ways to express expectations and get nice failure -messages automatically.") - (license license:asl2.0))) +signalling failures, it offers ways to express expectations and get nice +failure messages automatically.") + (license license:asl2.0))) (define-public go-github-com-jacobsa-reqtrace (package From 9e207cd08a788503615f89fa7d4d6e85b3b7d603 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 12:52:59 +0000 Subject: [PATCH 236/862] gnu: go-github-com-jacobsa-ogletest: Enable tests. * gnu/packages/golang-check.scm (go-github-com-jacobsa-ogletest): [arguments] : Activate them. : Skip one test. [native-inputs]: Move all inputs from here ... [propagated-inputs]: ... to here. Change-Id: Ie12ff6d93b3fe429f9e517cbb9f6399be52535db --- gnu/packages/golang-check.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index d571a09c078..cd690dd7f2e 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -775,10 +775,10 @@ Test for C++ and Google JS Test.") (base32 "1lbwbxzr75g65q07ry5k4kglxqs3ym7xkvqznzm55rm3qk76v83r")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/jacobsa/ogletest" - ;; These tests should be made working - #:tests? #f)) - (native-inputs + (list + #:import-path "github.com/jacobsa/ogletest" + #:test-flags #~(list "-skip" "TestGoldenFiles"))) + (propagated-inputs (list go-github-com-jacobsa-oglematchers go-github-com-jacobsa-oglemock go-github-com-jacobsa-reqtrace From 2b631daf5f88885dfbbcdee37c54226b4597bdfe Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 14:04:55 +0000 Subject: [PATCH 237/862] gnu: go-github-com-jacobsa-oglematchers: Update to 0.0.0-20150720000706-141901ea67cd. * gnu/packages/golang-check.scm (go-github-com-jacobsa-oglematchers): Update to 0.0.0-20150720000706-141901ea67cd. Change-Id: I2a0aaa004e891f2c13630a4971218ad3ced06fbf --- gnu/packages/golang-check.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index cd690dd7f2e..3494aecdc88 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -703,16 +703,14 @@ used in go-github-com-jackc-pgx.") (license license:expat))) (define-public go-github-com-jacobsa-oglematchers - (let ((commit "141901ea67cd4769c6800aa7bfdfc558fa22bda5") - (revision "0")) (package (name "go-github-com-jacobsa-oglematchers") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20150720000706-141901ea67cd") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/oglematchers") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -728,7 +726,7 @@ used in go-github-com-jackc-pgx.") "Package oglematchers provides a set of matchers useful in a testing or mocking framework. These matchers are inspired by and mostly compatible with Google Test for C++ and Google JS Test.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-jacobsa-oglemock (let ((commit "e94d794d06ffc6de42cb19d0dab3c219efdd6dcf") From da6d33d74a8476b1412996071f1817c9f1c7d50a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 14:05:27 +0000 Subject: [PATCH 238/862] gnu: go-github-com-jacobsa-oglematchers: Fix indentation. * gnu/packages/golang-check.scm (go-github-com-jacobsa-oglematchers): Fix indentation. Change-Id: I4e994c9e1750952b3a1cb5521410db9e173e888d --- gnu/packages/golang-check.scm | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 3494aecdc88..3d3d6787294 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -703,30 +703,30 @@ used in go-github-com-jackc-pgx.") (license license:expat))) (define-public go-github-com-jacobsa-oglematchers - (package - (name "go-github-com-jacobsa-oglematchers") - (version "0.0.0-20150720000706-141901ea67cd") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jacobsa/oglematchers") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "09ff5x6vbhd9zl1z4yzyk573ifh16rry38q1rx986kbz4hqkmniq")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/jacobsa/oglematchers" - ;; break loop with with go-github-com-jacobsa-ogletest - #:tests? #f)) - (home-page "https://github.com/jacobsa/oglematchers") - (synopsis "Matchers for Go testing framework") - (description - "Package oglematchers provides a set of matchers useful in a testing or mocking -framework. These matchers are inspired by and mostly compatible with Google -Test for C++ and Google JS Test.") - (license license:asl2.0))) + (package + (name "go-github-com-jacobsa-oglematchers") + (version "0.0.0-20150720000706-141901ea67cd") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/oglematchers") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09ff5x6vbhd9zl1z4yzyk573ifh16rry38q1rx986kbz4hqkmniq")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jacobsa/oglematchers" + ;; break loop with with go-github-com-jacobsa-ogletest + #:tests? #f)) + (home-page "https://github.com/jacobsa/oglematchers") + (synopsis "Matchers for Go testing framework") + (description + "Package oglematchers provides a set of matchers useful in a testing or +mocking framework. These matchers are inspired by and mostly compatible with +Google Test for C++ and Google JS Test.") + (license license:asl2.0))) (define-public go-github-com-jacobsa-oglemock (let ((commit "e94d794d06ffc6de42cb19d0dab3c219efdd6dcf") From 5b2176105e74b563711925798327d1484234eb18 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 13:07:28 +0000 Subject: [PATCH 239/862] gnu: go-github-com-jackc-pgmock: Enable tests. * gnu/packages/golang-check.scm (go-github-com-jackc-pgmock) [arguments] : Activate them. [native-inputs]: Add go-github-com-jackc-pgconn-bootstrap and go-github-com-stretchr-testify. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgconn-bootstrap): New variable. Change-Id: I8dc5cef1dcf7d6dd7550a1d805810d468205c607 --- gnu/packages/golang-check.scm | 4 +++- gnu/packages/golang-xyz.scm | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 3d3d6787294..108db31883f 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -692,8 +692,10 @@ used in go-github-com-jackc-pgx.") (build-system go-build-system) (arguments (list - #:tests? #f ; cycles with go-github-com-jackc-pgconn #:import-path "github.com/jackc/pgmock")) + (native-inputs + (list go-github-com-jackc-pgconn-bootstrap + go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-jackc-pgproto3-v2)) (home-page "https://github.com/jackc/pgmock") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index bf30ac7a786..8aa628db59e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5108,6 +5108,18 @@ queries with a higher level library and only use pgconn directly when required for low-level access to PostgreSQL functionality.") (license license:expat))) +(define-public go-github-com-jackc-pgconn-bootstrap + (hidden-package + (package + (inherit go-github-com-jackc-pgconn) + (arguments + (list #:tests? #f + #:import-path "github.com/jackc/pgconn" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) + (native-inputs '())))) + (define-public go-github-com-jackc-pgerrcode (package (name "go-github-com-jackc-pgerrcode") From 74eea25303dd8cfd6a8b6c4c1d34451e935685a3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 13:00:10 +0000 Subject: [PATCH 240/862] gnu: go-github-com-jackc-pgconn: Enable tests. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgconn) [arguments] : Activate them. : Skip 9 tests. : Add 'remove-failing-test-file. [native-inputs]: Add go-github-com-jackc-pgmock. [propagated-inputs]: Remove go-github-com-jackc-pgmock. * gnu/packages/golang-check.scm (go-github-com-jackc-pgmock-bootstrap): New variable. Change-Id: Ice47b75770fb596734f6703c3c42dbfe3e91a7a6 --- gnu/packages/golang-check.scm | 12 ++++++++++++ gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 108db31883f..4881c4f8862 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -704,6 +704,18 @@ used in go-github-com-jackc-pgx.") "This package implements a functionality to mock a PostgreSQL server.") (license license:expat))) +(define-public go-github-com-jackc-pgmock-bootstrap + (hidden-package + (package + (inherit go-github-com-jackc-pgmock) + (arguments + (list #:tests? #f + #:import-path "github.com/jackc/pgmock" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) + (native-inputs '())))) + (define-public go-github-com-jacobsa-oglematchers (package (name "go-github-com-jacobsa-oglematchers") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8aa628db59e..f1b2aae6feb 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5083,14 +5083,33 @@ implementation in https://github.com/jackc/pgx.") (build-system go-build-system) (arguments (list - #:tests? #f ; requiring running PostgreSQL server - #:import-path "github.com/jackc/pgconn")) + #:import-path "github.com/jackc/pgconn" + #:test-flags + #~(list "-skip" + (string-join + (list "TestConfigCopyCanBeUsedToConnect" + "TestConnStress" + "TestFrontendFatalErrExec" + "TestLRUModePrepare" + "TestLRUContext" + "TestLRUStmtInvalidationIntegration" + "TestLRUModeDescribe" + "TestLRUModePrepareStress" + "TestLRUStmtInvalidation") + "|")) + #:phases + #~(modify-phases %standard-phases + ;; All tests in this file rquire PostgreSQL service running. + (add-before 'check 'remove-failing-test-files + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file "pgconn_test.go"))))))) (native-inputs - (list go-github-com-stretchr-testify)) + (list go-github-com-jackc-pgmock-bootstrap + go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-jackc-chunkreader-v2 go-github-com-jackc-pgio - go-github-com-jackc-pgmock go-github-com-jackc-pgpassfile go-github-com-jackc-pgproto3-v2 go-github-com-jackc-pgservicefile From b715b3d2718672a8ad6b28e0b08dd1fb9b5107b4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 16:30:30 +0000 Subject: [PATCH 241/862] gnu: go-github-com-jacobsa-oglemock: Update to 0.0.0-20150831005832-e94d794d06ff. * gnu/packages/golang-check.scm (go-github-com-jacobsa-oglemock): Update to 0.0.0-20150831005832-e94d794d06ff. Change-Id: If614232aa39d32d6dcc2dee2034f3d31abf16887 --- gnu/packages/golang-check.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 4881c4f8862..852ec5d6c9d 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -743,17 +743,15 @@ Google Test for C++ and Google JS Test.") (license license:asl2.0))) (define-public go-github-com-jacobsa-oglemock - (let ((commit "e94d794d06ffc6de42cb19d0dab3c219efdd6dcf") - (revision "0")) (package (name "go-github-com-jacobsa-oglemock") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20150831005832-e94d794d06ff") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/oglemock") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -770,7 +768,7 @@ Google Test for C++ and Google JS Test.") (synopsis "Mocking framework for unit tests") (description "Package oglemock provides a mocking framework for unit tests.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-jacobsa-ogletest (package From 4e654723da09d41af2294e33d65d229d03f6c759 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 16:32:09 +0000 Subject: [PATCH 242/862] gnu: go-github-com-jacobsa-oglemock: Fix indentation. * gnu/packages/golang-check.scm (go-github-com-jacobsa-oglemock): Fix indentation. Change-Id: I9ac2f9af4c3c266b0a4be4f67edd422123731945 --- gnu/packages/golang-check.scm | 52 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 852ec5d6c9d..e4c868b1a49 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -743,32 +743,32 @@ Google Test for C++ and Google JS Test.") (license license:asl2.0))) (define-public go-github-com-jacobsa-oglemock - (package - (name "go-github-com-jacobsa-oglemock") - (version "0.0.0-20150831005832-e94d794d06ff") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jacobsa/oglemock") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "14yxf8ykwdwkcccksl6741xgzcf8qykyi58kp4maxpgscqhdl8rq")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/jacobsa/oglemock" - ;; break loop with with go-github-com-jacobsa-ogletest - #:tests? #f)) - (native-inputs - (list go-github-com-jacobsa-oglematchers)) - (home-page "https://github.com/jacobsa/oglemock") - (synopsis "Mocking framework for unit tests") - (description - "Package oglemock provides a mocking framework for unit tests.") - (license license:asl2.0))) + (package + (name "go-github-com-jacobsa-oglemock") + (version "0.0.0-20150831005832-e94d794d06ff") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/oglemock") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14yxf8ykwdwkcccksl6741xgzcf8qykyi58kp4maxpgscqhdl8rq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jacobsa/oglemock" + ;; break loop with with go-github-com-jacobsa-ogletest + #:tests? #f)) + (native-inputs + (list go-github-com-jacobsa-oglematchers)) + (home-page "https://github.com/jacobsa/oglemock") + (synopsis "Mocking framework for unit tests") + (description + "Package oglemock provides a mocking framework for unit tests.") + (license license:asl2.0))) (define-public go-github-com-jacobsa-ogletest (package From fd0586d9c5aa936402cc4260c4cf7e5faacbe1ba Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 16:52:24 +0000 Subject: [PATCH 243/862] gnu: Add go-github-com-maxatome-go-testdeep. * gnu/packages/golang-check.scm (go-github-com-maxatome-go-testdeep): New variable. Change-Id: I73ef16e2b98f28f91f0e05f03be353219f746ddc --- gnu/packages/golang-check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index e4c868b1a49..812d59b2867 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -921,6 +921,34 @@ output capturing, mocking, and much more.") testing capabilities.") (license license:expat))) +(define-public go-github-com-maxatome-go-testdeep + (package + (name "go-github-com-maxatome-go-testdeep") + (version "1.14.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/maxatome/go-testdeep") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r9w79qm6j080gbqhrd5gwjzsnkmrcihy4yniw77g0wkspxxdjww")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/maxatome/go-testdeep" + ;; Structure comparison not equal. + #:test-flags #~(list "-skip" "TestFatalTrace"))) + (propagated-inputs + (list go-github-com-davecgh-go-spew)) + (home-page "https://github.com/maxatome/go-testdeep") + (synopsis "Extended HTTP API testing framework") + (description + "Package testdeep allows flexible deep comparison, it is an adaptation of +Perl's @url{https://metacpan.org/pod/Test::Deep, Test::Deep perl}.") + (license license:bsd-2))) + (define-public go-github-com-onsi-ginkgo (package (name "go-github-com-onsi-ginkgo") From a46595d8862db10ba74ddc80097b10637ab8446e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 16:52:33 +0000 Subject: [PATCH 244/862] gnu: Add go-github-com-jarcoal-httpmock. * gnu/packages/golang-check.scm (go-github-com-jarcoal-httpmock): New variable. Change-Id: I6b76a05a97f554af7f9d34aa4aa435a2ba77a3ec --- gnu/packages/golang-check.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 812d59b2867..37487e7bd92 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -828,6 +828,32 @@ failure messages automatically.") "Package reqtrace contains a very simple request tracing framework.") (license license:asl2.0))) +(define-public go-github-com-jarcoal-httpmock + (package + (name "go-github-com-jarcoal-httpmock") + (version "1.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jarcoal/httpmock") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xw73d59nl1jj18h2hp9vlgqmfvqk9bknzpimg4mjn13d4jzhqrf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jarcoal/httpmock")) + (native-inputs + (list go-github-com-maxatome-go-testdeep)) + (home-page "https://github.com/jarcoal/httpmock") + (synopsis "HTTP mocking for Golang") + (description + "Package httpmock provides tools for mocking HTTP responses. It +implements exact URL and regexp matches.") + (license license:expat))) + (define-public go-github-com-jbenet-go-cienv (package (name "go-github-com-jbenet-go-cienv") From 852d26ed8646358e001b8321feaf744ed3045932 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 17:04:45 +0000 Subject: [PATCH 245/862] gnu: Add go-github-com-jacobsa-timeutil. * gnu/packages/golang-xyz.scm (go-github-com-jacobsa-timeutil): New variable. Change-Id: I8b23866135694c3d071dc6d1a57dfcfd6ad21d4a --- gnu/packages/golang-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f1b2aae6feb..920c8583ce0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5522,6 +5522,41 @@ any concurrent code of its own.") (propagated-inputs (list go-golang-org-x-sync)))) +(define-public go-github-com-jacobsa-timeutil + (package + (name "go-github-com-jacobsa-timeutil") + (version "0.0.0-20170205232429-577e5acbbcf6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/timeutil") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vp6ngfyw3z3n7fzqpijqh26mnwnhapy5x4kzly1qb8gmv15a8xb")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jacobsa/timeutil")) + (native-inputs + (list go-github-com-jacobsa-oglematchers + go-github-com-jacobsa-ogletest)) + (home-page "https://github.com/jacobsa/timeutil") + (synopsis "Code supplementing Go's time package") + (description + "This package contains code that supplements the +@url{http://godoc.org/time, time} package from the Go standard library. + +In particular: +@itemize +@item a Clock interface, with a fake implementation that can be used in tests +@item implementations of +@url{https://godoc.org/github.com/jacobsa/oglematchers#Matcher, +oglematchers.Matcher} for time values +@end itemize") + (license license:asl2.0))) + (define-public go-github-com-jbenet-go-random (package (name "go-github-com-jbenet-go-random") From 05a4dcb2082e741ad2da06c9fddcf5b5b5fe8ef2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 17:10:55 +0000 Subject: [PATCH 246/862] gnu: Add go-github-com-jacobsa-syncutil. * gnu/packages/golang-xyz.scm (go-github-com-jacobsa-syncutil): New variable. Change-Id: I38aa26a5ca8f33a90c9d71863e3330a31c624b42 --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 920c8583ce0..251f302d90b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5522,6 +5522,43 @@ any concurrent code of its own.") (propagated-inputs (list go-golang-org-x-sync)))) +(define-public go-github-com-jacobsa-syncutil + (package + (name "go-github-com-jacobsa-syncutil") + (version "0.0.0-20180201203307-228ac8e5a6c3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/syncutil") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0dylp0qaabm8djqmn0qjki3gy9wnq23cbr4k4g63zk4axqgm2ns2")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jacobsa/syncutil")) + (native-inputs + (list go-github-com-jacobsa-oglematchers + go-github-com-jacobsa-ogletest)) + (propagated-inputs + (list go-golang-org-x-net)) + (home-page "https://github.com/jacobsa/syncutil") + (synopsis "Code supplementing Go's sync package") + (description + "This package contains code that supplements the +@url{http://godoc.org/sync,sync} package from the Go standard library. + +In particular: +@itemize +@item Bundle, which makes it easy to write code that spawns multiple +cancellation-aware workers that may fail +@item invariantMutex, which makes it possible to automatically check your +invariants at lock and unlock time +@end itemize") + (license license:asl2.0))) + (define-public go-github-com-jacobsa-timeutil (package (name "go-github-com-jacobsa-timeutil") From 6cad6aec082cdd57c3b45a9008f3c3b5ec561e10 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 18:57:47 +0000 Subject: [PATCH 247/862] gnu: go-golang-org-x-net: Update to 0.33.0. * gnu/packages/golang-build.scm (go-golang-org-x-net): Update to 0.33.0. Simplify package. Change-Id: I9e42a0f8a18aca533386aa5aace2baed103568bd --- gnu/packages/golang-build.scm | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 0df28a77ef5..0b7522913cb 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -691,7 +691,7 @@ loading algorithms.") (define-public go-golang-org-x-net (package (name "go-golang-org-x-net") - (version "0.29.0") + (version "0.33.0") (source (origin (method git-fetch) @@ -700,21 +700,14 @@ loading algorithms.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0scksgrrxyyy4ah2anh3n0qj0snpc63bqmhyw24q5lskzrsm2zvl")))) + (base32 "0k3vbxj4dxyki7rflbnad95avz7hnapwr02aa7jqgs79vd9j9k7n")))) (build-system go-build-system) (arguments (list #:import-path "golang.org/x/net" #:phases #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + (delete 'build)))) ; no go files in project's root (propagated-inputs (list go-golang-org-x-crypto go-golang-org-x-sys From 92d4c2e30285f89ba91494ffbca502eeb3bb1f2e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 18:57:49 +0000 Subject: [PATCH 248/862] gnu: go-golang-org-x-telemetry: Fix build. * gnu/packages/golang-build.scm (go-golang-org-x-telemetry) [source]: Remove submodules with their own go.mod to be packaged separately. [arguments]: Skip all tests requiring networking. Change-Id: Ie5ef5f99da83d9d803b5c07d99ef1763968ee308 --- gnu/packages/golang-build.scm | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 0b7522913cb..9b196c7f33e 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -806,11 +806,34 @@ support for low-level interaction with the operating system.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "05gvxiv0yqfclckm2ysavbfy1jpz8v71r2glrcvhjq8wzw90g9gz")))) + (base32 "05gvxiv0yqfclckm2ysavbfy1jpz8v71r2glrcvhjq8wzw90g9gz")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separatly: + ;; + ;; - golang.org/x/telemetry/config + ;; - golang.org/x/telemetry/godev + (for-each delete-file-recursively (list "config" "godev")))))) (build-system go-build-system) (arguments (list - #:test-flags #~(list "-skip" "TestStart|TestConcurrentStart") + #:test-flags + #~(list "-skip" (string-join + ;; Tests fail with error: failed to download config + ;; module. + (list "TestConcurrentStart" + "TestDownload" + "TestRun_Basic" + "TestRun_Concurrent" + "TestRun_DebugLog" + "TestRun_EmptyUpload" + "TestRun_MissingDate" + "TestRun_ModeHandling/on" + "TestRun_MultipleUploads" + "TestRun_Retries" + "TestStart") ; no upload occurred on 2786 + "|")) #:import-path "golang.org/x/telemetry")) (propagated-inputs (list go-golang-org-x-mod From 654f24934e90ac0afd212d04be50e68ad1c7624a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 19:03:10 +0000 Subject: [PATCH 249/862] gnu: go-golang-org-x-image: Update to 0.23.0. * gnu/packages/golang-build.scm (go-golang-org-x-image): Update to 0.23.0. Simplify package. [arguments] : Remove 'remove-failing-tests, use default 'check. Change-Id: I937397be7b3aad3adda86e706a083e26d537cf28 --- gnu/packages/golang-build.scm | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 9b196c7f33e..bc02164cb32 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -595,7 +595,7 @@ compile does not support generics.") (define-public go-golang-org-x-image (package (name "go-golang-org-x-image") - (version "0.20.0") + (version "0.23.0") (source (origin (method git-fetch) @@ -604,32 +604,18 @@ compile does not support generics.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0bn85bqpwkznny3lrnlfk05s2p917rbq0kplz36xyv490a74pi7l")))) + (base32 "0xm3cqzh0j6s8m8k6c3rd170qbmz2lwb628jb48cl4wr6ivq5fp9")))) (build-system go-build-system) (arguments (list #:import-path "golang.org/x/image" #:phases #~(modify-phases %standard-phases - ;; XXX: go-build-system can't install/build submodules. - (delete 'build) + (delete 'build) ; no go files in project's root (add-after 'unpack 'remove-examples (lambda* (#:key import-path #:allow-other-keys) (delete-file-recursively - (string-append "src/" import-path "/example")))) - (add-before 'check 'remove-failing-tests - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file - ;; tiff/reader_test.go:557:14: too many errors - (list "tiff/reader_test.go" - "tiff/writer_test.go"))))) - ;; XXX: Workaround for go-build-system's lack of Go modules support. - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + (string-append "src/" import-path "/example"))))))) (propagated-inputs (list go-golang-org-x-text)) (home-page "https://pkg.go.dev/golang.org/x/image") From 2a8cb51bfc0107cfccf414e51d5caef53afff1af Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 19:06:34 +0000 Subject: [PATCH 250/862] gnu: go-google-golang-org-protobuf: Update to 1.36.0. * gnu/packages/golang-build.scm (go-google-golang-org-protobuf): Update to 1.36.0. Simplify package. [arguments] : Use custom 'check. Change-Id: Ia93c832e64886371f422e06e6b705c5ec3c7e05f --- gnu/packages/golang-build.scm | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index bc02164cb32..a353f5d375b 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1124,7 +1124,7 @@ values.") (define-public go-google-golang-org-protobuf (package (name "go-google-golang-org-protobuf") - (version "1.34.2") + (version "1.36.0") (source (origin (method git-fetch) @@ -1133,21 +1133,14 @@ values.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0l18301prwy38wam9zsbhgwddwjaflvnvamghg0h1d1p201gxbp3")))) + (base32 "1a6l9zcm1za7w9f9n86wjszn9fm53cfacl0liyk3wpsqx4h4x6dl")))) (build-system go-build-system) (arguments (list #:import-path "google.golang.org/protobuf" #:phases #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + (delete 'build)))) ; no go files in project's root (propagated-inputs (list go-github-com-google-go-cmp)) (home-page "https://google.golang.org/protobuf") (synopsis "Go library for Protocol Buffers") From 0e8e4a9dc0af1c5bbec16e2912c0413bc9e91270 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 19:08:43 +0000 Subject: [PATCH 251/862] gnu: go-golang-org-x-telemetry-config: Update to 0.36.0. * gnu/packages/golang-build.scm (go-golang-org-x-telemetry-config): Update to 0.36.0. Change-Id: I3ae4c33c7f2b9069cc73e43c10324685cb825bf1 --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index a353f5d375b..54310bbe281 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -836,7 +836,7 @@ Go toolchain programs with opt-in telemetry.") (define-public go-golang-org-x-telemetry-config (package (name "go-golang-org-x-telemetry-config") - (version "0.31.0") + (version "0.36.0") (source (origin (method git-fetch) @@ -846,7 +846,7 @@ Go toolchain programs with opt-in telemetry.") #:subdir "config")))) (file-name (git-file-name name version)) (sha256 - (base32 "0b5f3kf58wam741m7vfalv4n47djn6whxr4lf9w1jpjgaa6kq3an")))) + (base32 "1nib4d3p1zknd8m0grkylpd3qfknnw7cffv2v1l4sq0rf30gi04m")))) (build-system go-build-system) (arguments (list From f531813b7ec9d187aadef1f515efee88767f6003 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 19:10:41 +0000 Subject: [PATCH 252/862] gnu: go-golang-org-x-xerrors: Update to 0.0.0-20240903120638-7835f813f4da. * gnu/packages/golang-build.scm (go-golang-org-x-xerrors): Update to 0.0.0-20240903120638-7835f813f4da. Change-Id: I1a4c3aeabad955522f3ce13b2f3efeb130f934c8 --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 54310bbe281..b8569029e01 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1100,7 +1100,7 @@ the @url{https://vuln.go.dev,Go Vulnerability Database}.") (define-public go-golang-org-x-xerrors (package (name "go-golang-org-x-xerrors") - (version "0.0.0-20200804184101-5ec99f83aff1") + (version "0.0.0-20240903120638-7835f813f4da") (source (origin (method git-fetch) @@ -1109,7 +1109,7 @@ the @url{https://vuln.go.dev,Go Vulnerability Database}.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1dbzc3gmf2haazpv7cgmv97rq40g2xzwbglc17vas8dwhgwgwrzb")))) + (base32 "1amjwicv2k6mkafa27ghwavc19jy8vi8kfndpj6vrgn0p5rc4kkc")))) (build-system go-build-system) (arguments (list From 54c8315b3b648f4978b0ea55187b6bb71c572742 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 20:37:22 +0000 Subject: [PATCH 253/862] gnu: packages/golang-build: Add bootstrap variants. * gnu/packages/golang-build.scm (go-golang-org-x-crypto-bootstrap go-golang-org-x-exp-bootstrap, go-golang-org-x-image-bootstrap, go-golang-org-x-mod-bootstrap, go-golang-org-x-net-bootstrap, go-golang-org-x-term-bootstrap, go-golang-org-x-text-bootstrap, go-golang-org-x-sync-bootstrap, go-golang-org-x-sys-bootstrap go-golang-org-x-tools-bootstrap): New variables. Change-Id: I43f121479897642e70639fab18dc296ccc750a0f --- gnu/packages/golang-build.scm | 110 ++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index b8569029e01..05e44a4e69b 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -493,6 +493,17 @@ primitives in Go.") language.") (license license:bsd-3))) +(define-public go-golang-org-x-crypto-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-crypto) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/crypto")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-exp (package (name "go-golang-org-x-exp") @@ -556,6 +567,17 @@ language.") directory) packages.") (license license:bsd-3))) +(define-public go-golang-org-x-exp-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-exp) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/exp")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-exp-typeparams (package (name "go-golang-org-x-exp-typeparams") @@ -624,6 +646,17 @@ compile does not support generics.") "This package provides supplemental Go libraries for image processing.") (license license:bsd-3))) +(define-public go-golang-org-x-image-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-image) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/image")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-mod (package (name "go-golang-org-x-mod") @@ -674,6 +707,17 @@ The specific case of loading packages should still be done by invoking the loading algorithms.") (license license:bsd-3))) +(define-public go-golang-org-x-mod-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-mod) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/mod")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-net (package (name "go-golang-org-x-net") @@ -705,6 +749,17 @@ loading algorithms.") "This package provides supplemental Go networking libraries.") (license license:bsd-3))) +(define-public go-golang-org-x-net-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-net) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/net")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-sync (package (name "go-golang-org-x-sync") @@ -747,6 +802,17 @@ cancelation for groups of goroutines working on subtasks of a common task @end itemize") (license license:bsd-3))) +(define-public go-golang-org-x-sync-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-sync) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/sync")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-sys (package (name "go-golang-org-x-sys") @@ -780,6 +846,17 @@ cancelation for groups of goroutines working on subtasks of a common task support for low-level interaction with the operating system.") (license license:bsd-3))) +(define-public go-golang-org-x-sys-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-sys) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/sys")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-telemetry (package (name "go-golang-org-x-telemetry") @@ -886,6 +963,17 @@ telemetry uploads: GOOS, GOARCH, Go version, and per-program counters.") terminals, as commonly found on Unix systems.") (license license:bsd-3))) +(define-public go-golang-org-x-term-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-term) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/term")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-text (package (name "go-golang-org-x-text") @@ -937,6 +1025,17 @@ terminals, as commonly found on Unix systems.") processing.") (license license:bsd-3))) +(define-public go-golang-org-x-text-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-text) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/text")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-time (package (name "go-golang-org-x-time") @@ -1052,6 +1151,17 @@ time.") Go programming language.") (license license:bsd-3))) +(define-public go-golang-org-x-tools-bootstrap + (hidden-package + (package + (inherit go-golang-org-x-tools) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/tools")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-golang-org-x-vuln (package (name "go-golang-org-x-vuln") From 12562a4fbc60cf7df511872023a4d51dc561fda6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 20:00:38 +0000 Subject: [PATCH 254/862] gnu: go-golang-org-x-crypto: Simplify. * gnu/packages/golang-build.scm (go-golang-org-x-crypto) [source] : Remove self-contain module which needs to be packages separately. [arguments] : Set to #t, as no go files in project's root. : Use default 'check. Simplify 'remove-test-files, add comments about JSON schema sources required for tests. [native-inputs]: Add go-golang-org-x-net-bootstrap, and go-golang-org-x-text-bootstrap. Change-Id: I0dd4ec6dc3d13f1063604ec43da34f6598b201cf --- gnu/packages/golang-build.scm | 86 ++++++++++++----------------------- 1 file changed, 28 insertions(+), 58 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 05e44a4e69b..7a8e0b9b83a 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -416,74 +416,44 @@ primitives in Go.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1b5jgzz7fn1br2vw6m90z902i5r14sp0wj8s0lvlbm79xvi38x19")))) + (base32 "1b5jgzz7fn1br2vw6m90z902i5r14sp0wj8s0lvlbm79xvi38x19")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separatly: + ;; + ;; - olang.org/x/crypto/x509roots/fallback + (for-each delete-file-recursively (list "x509roots/fallback")))))) (build-system go-build-system) (arguments (list + #:skip-build? #t #:import-path "golang.org/x/crypto" #:phases #~(modify-phases %standard-phases + ;; Network access requried: go mod download -json + ;; github.com/google/wycheproof@v0.0.0-20191219022705-2196000605e4. + ;; + ;; internal/wycheproof/wycheproof_test.go + ;; Download the JSON test files from github.com/google/wycheproof + ;; using `go mod download -json` so the cached source of the testdata + ;; can be used in the following tests. + ;; + ;; -> + ;; + ;; + ;; The structs for these tests are generated from the schemas + ;; provided in + ;; using + ;; . (add-after 'unpack 'remove-test-files (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (for-each delete-file - (list - ;; Network access requried: go mod download -json - ;; github.com/google/wycheproof@v0.0.0-20191219022705-2196000605e4. - "internal/wycheproof/aead_test.go" - "internal/wycheproof/aes_cbc_test.go" - "internal/wycheproof/dsa_test.go" - "internal/wycheproof/ecdh_stdlib_test.go" - "internal/wycheproof/ecdh_test.go" - "internal/wycheproof/ecdsa_test.go" - "internal/wycheproof/eddsa_test.go" - "internal/wycheproof/hkdf_test.go" - "internal/wycheproof/hmac_test.go" - "internal/wycheproof/rsa_oaep_decrypt_test.go" - "internal/wycheproof/rsa_pss_test.go" - "internal/wycheproof/rsa_signature_test.go" - "internal/wycheproof/wycheproof_test.go"))))) - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" - ;; acme - cycle with go-golang-org-x-net - "./argon2/..." - "./bcrypt/..." - "./blake2b/..." - "./blake2s/..." - "./blowfish/..." - "./bn256/..." - "./cast5/..." - "./chacha20/..." - "./chacha20poly1305/..." - "./cryptobyte/..." - "./curve25519/..." - "./ed25519/..." - "./hkdf/..." - "./internal/..." - "./md4/..." - "./nacl/..." - "./ocsp/..." - "./openpgp/..." - "./otr/..." - "./pbkdf2/..." - "./pkcs12/..." - "./poly1305/..." - "./ripemd160/..." - "./salsa20/..." - "./scrypt/..." - "./sha3/..." - "./ssh/..." - "./tea/..." - "./twofish/..." - "./x509roots/..." - "./xtea/..." - "./xts/...")))))))) + (find-files "internal/wycheproof" ".*_test\\.go$")))))))) + (native-inputs + (list go-golang-org-x-net-bootstrap + go-golang-org-x-text-bootstrap)) (propagated-inputs (list go-golang-org-x-sys go-golang-org-x-term)) (home-page "https://go.googlesource.com/crypto/") From c33de366f8aa0fe069ef8b04dec1c3333162706e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 20:12:15 +0000 Subject: [PATCH 255/862] gnu: go-golang-org-x-crypto: Update to 0.31.0. * gnu/packages/golang-build.scm (go-golang-org-x-crypto): Update to 0.31.0. Change-Id: I325791a402ce30bd04ee71a04633a9c7aef0335c --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 7a8e0b9b83a..7b962f09487 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -407,7 +407,7 @@ primitives in Go.") (define-public go-golang-org-x-crypto (package (name "go-golang-org-x-crypto") - (version "0.27.0") + (version "0.31.0") (source (origin (method git-fetch) @@ -416,7 +416,7 @@ primitives in Go.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1b5jgzz7fn1br2vw6m90z902i5r14sp0wj8s0lvlbm79xvi38x19")) + (base32 "0pd3qipz2wb5wbbb44lgbfygxhf9lq5rknf82p2dmaicszn0rd53")) (modules '((guix build utils))) (snippet #~(begin From 8fafe6d8b6d50cefac2540440c20ffba50e29e2d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 20:54:21 +0000 Subject: [PATCH 256/862] gnu: go-golang-org-x-text: Simplify. * gnu/packages/golang-build.scm (go-golang-org-x-text): [arguments] : Set to #t, as no go files in project's root. : Use default 'check. [native-inputs]: Add go-golang-org-x-mod-bootstrap, go-golang-org-x-sync-bootstrap, and go-golang-org-x-tools-bootstrap. Change-Id: Ib4e55e622554d79a8d03abfc52ced0a5eb516d85 --- gnu/packages/golang-build.scm | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 7b962f09487..b4657a13551 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -960,35 +960,13 @@ terminals, as commonly found on Unix systems.") (build-system go-build-system) (arguments (list - #:import-path "golang.org/x/text" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" - "./cases/..." - ;; cmd - cycle with go-golang-org-x-tools - "./collate/..." - "./currency/..." - "./date/..." - "./encoding/..." - "./feature/..." - "./internal/..." - "./language/..." - ;; message - cycle with go-golang-org-x-tools - "./number/..." - "./runes/..." - "./search/..." - "./secure/..." - "./transform/..." - "./unicode/..." - "./width/...")))))))) + #:skip-build? #t + #:import-path "golang.org/x/text")) (home-page "https://go.googlesource.com/text") + (native-inputs + (list go-golang-org-x-mod-bootstrap + go-golang-org-x-sync-bootstrap + go-golang-org-x-tools-bootstrap)) (synopsis "Supplemental Go text processing libraries") (description "This package provides supplemental Go libraries for text From 3ac673dd1d3d1f5babd3cc9ad263a4719488f606 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 20:14:30 +0000 Subject: [PATCH 257/862] gnu: go-golang-org-x-text: Update to 0.21.0. * gnu/packages/golang-build.scm (go-golang-org-x-text): Update to 0.21.0. Change-Id: I6b0f81a48eff02565d01f2f70629d4324890e2c8 --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index b4657a13551..5b90b178adf 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -947,7 +947,7 @@ terminals, as commonly found on Unix systems.") (define-public go-golang-org-x-text (package (name "go-golang-org-x-text") - (version "0.18.0") + (version "0.21.0") (source (origin (method git-fetch) @@ -956,7 +956,7 @@ terminals, as commonly found on Unix systems.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1vxx2s1y1dmhiiv4cayrwf3ls4lbq22xkhl6xw3ls8jizribl5s9")))) + (base32 "02zh18l5rlr8hg8ipn9r5m4rir3hskp80pzr4ljyfmgy72gxbhlv")))) (build-system go-build-system) (arguments (list From 7c20de79e72d735908f631dd2b3fd8a61dcc5e3d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 21:03:05 +0000 Subject: [PATCH 258/862] gnu: go-github-com-yuin-goldmark: Update to 1.7.8. * gnu/packages/golang-build.scm (go-github-com-yuin-goldmark): Update to 1.7.8. [arguments] : Use default 'check, add 'pre-check. Change-Id: I110c22378fb6f93cdde794b8a0e41e3de06c2b6f --- gnu/packages/golang-build.scm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 5b90b178adf..7a13e4a4b54 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -345,7 +345,7 @@ primitives in Go.") (define-public go-github-com-yuin-goldmark (package (name "go-github-com-yuin-goldmark") - (version "1.7.4") + (version "1.7.8") (source (origin (method git-fetch) @@ -354,24 +354,20 @@ primitives in Go.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "01807xs8501cyhkrrgg6k9ghl9jrw6dp0ry9knygck48canckxs2")))) + (base32 "1iz7x1hqdixx8dkcbaa8lr842i59n843mc553jv5grq057s76yjx")))) (build-system go-build-system) (arguments (list #:import-path "github.com/yuin/goldmark" #:phases #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) + (add-before 'check 'pre-check + (lambda* (#:key tests? #:allow-other-keys) (when tests? ;; We need to extend the timeout on some architectures. ;; 64 is the default in extra_test.go. (setenv "GOLDMARK_TEST_TIMEOUT_MULTIPLIER" - (number->string (* 64 5))) - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + (number->string (* 64 5))))))))) (home-page "https://github.com/yuin/goldmark/") (synopsis "Markdown parser") (description From ce12b4073b6bce661415019176e50c0db22714e8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 21:12:09 +0000 Subject: [PATCH 259/862] gnu: go-github-com-yuin-goldmark-emoji: Update to 1.0.4. * gnu/packages/golang-build.scm (go-github-com-yuin-goldmark-emoji): Update to 1.0.4. Change-Id: I16c3f710a89007d39587e5bd39ffb43722f438a2 --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 7a13e4a4b54..fe09ca2105e 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -377,7 +377,7 @@ primitives in Go.") (define-public go-github-com-yuin-goldmark-emoji (package (name "go-github-com-yuin-goldmark-emoji") - (version "1.0.3") + (version "1.0.4") (source (origin (method git-fetch) @@ -386,7 +386,7 @@ primitives in Go.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1mx8rkxd3ksvgi41jvf365x9mf00sxiqq4wm75x4sasd2lgcbrl4")))) + (base32 "001dgjaa9crbl1yb803gyq1dbcnnfzvv205ycgd97qw9p4xjg21g")))) (build-system go-build-system) (arguments (list From d0578cb010b2e4d21b04f61d790988d3b2e123c4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 23:40:06 +0000 Subject: [PATCH 260/862] gnu: go-golang-org-x-mod: Simplify. * gnu/packages/golang-build.scm (go-golang-org-x-mod) [arguments] : Set to #t, as no go files in project's root. : Skip one test. : Remove 'remove-test-files, use default 'check. [native-inputs]: Add go-golang-org-x-tools-bootstrap. Change-Id: Icf097e456bc72b1452bfb262589cd62ef139215b --- gnu/packages/golang-build.scm | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index fe09ca2105e..b4e8a7c14a5 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -626,6 +626,10 @@ compile does not support generics.") (define-public go-golang-org-x-mod (package (name "go-golang-org-x-mod") + ;; XXX: To update to 0.22.0+ go-1.23 is required, wich provides + ;; "go/version" module, see + ;; . (version "0.21.0") (source (origin @@ -639,28 +643,14 @@ compile does not support generics.") (build-system go-build-system) (arguments (list + #:skip-build? #t #:import-path "golang.org/x/mod" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'remove-test-files - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file - (list - ;; Break cycle: go-golang-org-x-mod -> - ;; go-golang-org-x-tools -> go-golang-org-x-mod. - "zip/zip_test.go" - ;; Trying to access - ;; . - "sumdb/tlog/ct_test.go"))))) - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + ;; Test tries to acces: + ;; "http://ct.googleapis.com/logs/argon2020/ct/v1/get-sth": dial tcp: + ;; lookup ct.googleapis.com + #:test-flags #~(list "-skip" "TestCertificateTransparency"))) + (native-inputs + (list go-golang-org-x-tools-bootstrap)) (home-page "https://golang.org/x/mod") (synopsis "Tools to work directly with Go module mechanics") (description From 4458a22b21d24078a3a7646ba461b0593de9a298 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 23:44:17 +0000 Subject: [PATCH 261/862] gnu: go-golang-org-x-sync: Update to 0.10.0. * gnu/packages/golang-build.scm (go-golang-org-x-sync): Update to 0.10.0. Change-Id: I7b9133419d8ed3c97fe20920aec477728e94622b --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index b4e8a7c14a5..1a1cbafe5df 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -719,7 +719,7 @@ loading algorithms.") (define-public go-golang-org-x-sync (package (name "go-golang-org-x-sync") - (version "0.8.0") + (version "0.10.0") (source (origin (method git-fetch) @@ -728,7 +728,7 @@ loading algorithms.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1jssyq49g5z7dbhdb9bnzsb8gigvsy5f4aczbzn5paz07v9wbjxs")))) + (base32 "1yp7pcfvy4793mjbfq28hxbr05yg38m0njnwam580xkb54lfwshx")))) (build-system go-build-system) (arguments (list From a807da4c31f837780b74d6225f169f3ba327656e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 23:45:33 +0000 Subject: [PATCH 262/862] gnu: go-golang-org-x-sync: Simplify * gnu/packages/golang-build.scm (go-golang-org-x-sync) [arguments] : Set to #t, as no go files in project's root. : Use default 'check. Change-Id: Iebc123fd8c103d6d610cc037bb034cb75bb795e3 --- gnu/packages/golang-build.scm | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 1a1cbafe5df..1e1ece2b4ca 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -732,17 +732,8 @@ loading algorithms.") (build-system go-build-system) (arguments (list - #:import-path "golang.org/x/sync" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:skip-build? #t + #:import-path "golang.org/x/sync")) (home-page "https://go.googlesource.com/sync/") (synopsis "Additional Go concurrency primitives") (description From d77e794d20b76bc99a0284ab6451204b5987c1c2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 23:47:12 +0000 Subject: [PATCH 263/862] gnu: go-golang-org-x-sys: Update to 0.28.0. * gnu/packages/golang-build.scm (go-golang-org-x-sys): Update to 0.28.0. Change-Id: Ia1ceaae88086b5f2a1be771a6e65f7261ee1936e --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 1e1ece2b4ca..0ad04dfb605 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -763,7 +763,7 @@ cancelation for groups of goroutines working on subtasks of a common task (define-public go-golang-org-x-sys (package (name "go-golang-org-x-sys") - (version "0.25.0") + (version "0.28.0") (source (origin (method git-fetch) @@ -772,7 +772,7 @@ cancelation for groups of goroutines working on subtasks of a common task (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0hdysrba8imiifb4ksjgbhkzhk1mksm1g3fj59i3bas1zdc5lbgp")))) + (base32 "1lgsisl36knlr41inqls3w51xcqfl6d3hkacxry0nqx39167b882")))) (build-system go-build-system) (arguments (list From e41ce3a5c160f5e752766ee28297f648c99ee703 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 23:48:11 +0000 Subject: [PATCH 264/862] gnu: go-golang-org-x-sys: Simplify. * gnu/packages/golang-build.scm (go-golang-org-x-sys): [arguments] : Set to #t, as no go files in project's root. : Use default 'check. [description]: Start from a new line. Change-Id: If62fa5926652a53cfe4c680d9a21b2ad5847cfeb --- gnu/packages/golang-build.scm | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 0ad04dfb605..bdc87c31c10 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -776,21 +776,13 @@ cancelation for groups of goroutines working on subtasks of a common task (build-system go-build-system) (arguments (list - #:import-path "golang.org/x/sys" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:skip-build? #t + #:import-path "golang.org/x/sys")) (home-page "https://go.googlesource.com/sys") (synopsis "Go support for low-level system interaction") - (description "This package provides supplemental libraries offering Go -support for low-level interaction with the operating system.") + (description + "This package provides supplemental libraries offering Go support for +low-level interaction with the operating system.") (license license:bsd-3))) (define-public go-golang-org-x-sys-bootstrap From 9c8defdffe723da8e8246df96c0bb1dc9a1c317a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 23:49:48 +0000 Subject: [PATCH 265/862] gnu: go-golang-org-x-term: Update to 0.27.0. * gnu/packages/golang-build.scm (go-golang-org-x-term): Update to 0.27.0. Change-Id: Ib41a736bfa40501e7a463df5328f22e81a481931 --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index bdc87c31c10..96ebb91a825 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -882,7 +882,7 @@ telemetry uploads: GOOS, GOARCH, Go version, and per-program counters.") (define-public go-golang-org-x-term (package (name "go-golang-org-x-term") - (version "0.24.0") + (version "0.27.0") (source (origin (method git-fetch) @@ -891,7 +891,7 @@ telemetry uploads: GOOS, GOARCH, Go version, and per-program counters.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1sclnlbchqqlspm5l914xgs70yyjswarrrahkf8n44gkr2kbkw1x")))) + (base32 "1gfykqmzgwgrb3adlbknjrb96i58bx2q2vjcdvfvwm554gznkgki")))) (build-system go-build-system) (arguments '(#:import-path "golang.org/x/term")) (propagated-inputs From 3dd482af7b014dd45ce6886214df8ff728c7d972 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 23:50:35 +0000 Subject: [PATCH 266/862] gnu: go-golang-org-x-time: Update to 0.8.0. * gnu/packages/golang-build.scm (go-golang-org-x-time): Update to 0.8.0. Change-Id: I0ee1760e0b2a7dcf5be74b41a7e77cf2e5b6b8cb --- gnu/packages/golang-build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 96ebb91a825..36f60921171 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -956,7 +956,7 @@ processing.") (define-public go-golang-org-x-time (package (name "go-golang-org-x-time") - (version "0.6.0") + (version "0.8.0") (source (origin (method git-fetch) @@ -965,7 +965,7 @@ processing.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "14z7f1yx3r393f94yjv09mrsfaydq6da7pswv8wvk327mxa56vw1")))) + (base32 "1m2xfgq3a6y1xckl0al9n03il927z3rp2a8fvb8369035d3al3qh")))) (build-system go-build-system) (arguments (list From 73979b7e764cd9e2b3d1b69a86c7f1ce32f37fc4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Dec 2024 23:51:18 +0000 Subject: [PATCH 267/862] gnu: go-golang-org-x-time: Simplify. * gnu/packages/golang-build.scm (go-golang-org-x-time): [arguments] : Set to #t, as no go files in project's root. : Use default 'check. Change-Id: I533cc20e9ba1be1ee754dd7fa36b9547d4bda9b6 --- gnu/packages/golang-build.scm | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 36f60921171..4b6ef9fb530 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -969,17 +969,8 @@ processing.") (build-system go-build-system) (arguments (list - #:import-path "golang.org/x/time" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:skip-build? #t + #:import-path "golang.org/x/time")) (home-page "https://godoc.org/golang.org/x/time/rate") (synopsis "Supplemental Go time libraries") (description From 54760c3c52659f4b32c82d767d38a41a99e8a821 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 00:06:31 +0000 Subject: [PATCH 268/862] gnu: go-golang-org-x-exp: Simplify. * gnu/packages/golang-build.scm (go-golang-org-x-exp): [arguments] : Set to #t, as no go files in project's root. : Skip 2 tests. : Remove 'remove-failing-tests, add 'remove-benchmarks, use default 'check. Change-Id: I65dce027be23e2f987a15f7dbc35cbdd3edcb45b --- gnu/packages/golang-build.scm | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 4b6ef9fb530..f5d16d4e633 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -499,29 +499,21 @@ language.") (build-system go-build-system) (arguments (list + #:skip-build? #t #:import-path "golang.org/x/exp" + #:test-flags + ;; Disable failing tests: error running `go mod init`: go: + ;; modules disabled by GO111MODULE=off. + #~(list "-skip" (string-join + (list "TestRelease_gitRepo_uncommittedChanges" + "TestFailure") + "|")) #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'remove-failing-tests + (add-after 'unpack 'remove-benchmarks (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) - ;; Benchmark requires other modules to pass tests, delete them. - (delete-file-recursively "slog/benchmarks") - (substitute* (find-files "." "\\_test.go$") - ;; Disable failing tests: error running `go mod init`: go: - ;; modules disabled by GO111MODULE=off; see 'go help modules' - ;; , exit status 1 - (("TestFailure") "OffTestFailure") - (("TestRelease_gitRepo_uncommittedChanges") - "OffTestRelease_gitRepo_uncommittedChanges"))))) - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + (delete-file-recursively "slog/benchmarks"))))))) (propagated-inputs (list go-github-com-google-go-cmp go-golang-org-x-mod From 5e2566906aecbc6f6976befd96869b0f8b68f156 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 00:14:16 +0000 Subject: [PATCH 269/862] gnu: go-golang-org-x-exp: Update to 0.0.0-20241217172543-b2144cdd0a67. * gnu/packages/golang-build.scm (go-golang-org-x-exp): Update to 0.0.0-20241217172543-b2144cdd0a67. [argumetns] : Skip 5 more tests. Change-Id: I57d3f40e51d59ad59c84287e89ff0f0e59845945 --- gnu/packages/golang-build.scm | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index f5d16d4e633..d53045372d4 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -473,7 +473,7 @@ language.") (define-public go-golang-org-x-exp (package (name "go-golang-org-x-exp") - (version "0.0.0-20240808152545-0cdaa3abc0fa") + (version "0.0.0-20241217172543-b2144cdd0a67") (source (origin (method git-fetch) @@ -482,7 +482,7 @@ language.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1sa03fm57326qnchvfza7am7jjlz32l1yyqbdvy6mknw5bmp8a71")) + (base32 "01dq7llbqqdybv5s372zwlfiyq2syqpfqs7h4lxvbpqjq0aayf60")) (modules '((guix build utils))) (snippet #~(begin @@ -502,12 +502,29 @@ language.") #:skip-build? #t #:import-path "golang.org/x/exp" #:test-flags - ;; Disable failing tests: error running `go mod init`: go: - ;; modules disabled by GO111MODULE=off. - #~(list "-skip" (string-join - (list "TestRelease_gitRepo_uncommittedChanges" - "TestFailure") - "|")) + #~(list "-skip" + (string-join + (list + ;; Disable failing tests: error running `go mod init`: + ;; go: modules disabled by GO111MODULE=off. + "TestRelease_gitRepo_uncommittedChanges" + "TestFailure" + ;; Delete: want nil discarded elements, got + ;; 0xc000012858, 0xc000012860 + "TestDeleteClearTail" + ;; DeleteFunc: want nil discarded elements, got + ;; 0xc000012910, 0xc000012918 + "TestDeleteFuncClearTail" + ;; Compact: want nil discarded elements, got + ;; 0xc000012b30, 0xc000012b38 + "TestCompactClearTail" + ;; CompactFunc: want nil discarded elements, got + ;; 0xc000012be8, 0xc000012bf0 + "TestCompactFuncClearTail" + ;; Replace: want nil discarded element, got + ;; 0xc000013058 + "TestReplaceClearTail") + "|")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'remove-benchmarks From dd4ee37f9af03d4dc4836d92d2ff096c8d10f299 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 00:17:14 +0000 Subject: [PATCH 270/862] gnu: go-github-com-golang-protobuf: Simplify. * gnu/packages/golang-build.scm (go-github-com-golang-protobuf): Update to 1.5.4. [arguments] : Use default 'check. Change-Id: If364ed26dc2eb3006264b627696d57536c9aa7b8 --- gnu/packages/golang-build.scm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index d53045372d4..36bda3d48cf 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -136,14 +136,7 @@ functions that have a name matched by regex:.") #:import-path "github.com/golang/protobuf" #:phases #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + (delete 'build)))) ; no go files in project's root (native-inputs (list go-github-com-google-go-cmp)) (propagated-inputs From 2cf9fb3bf72721cb9ca1c553d725c761b4e2748e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 00:28:15 +0000 Subject: [PATCH 271/862] gnu: go-golang-org-x-vuln: Simplify. * gnu/packages/golang-build.scm (go-golang-org-x-vuln): [arguments] : Set to #t, as no go files in project's root. : Skip 3 tests. : Select them here. : Use default 'check. Change-Id: I7e6860f63c559813055cc5383b6f608855a9490d --- gnu/packages/golang-build.scm | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 36bda3d48cf..b20437fa8d5 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1090,19 +1090,14 @@ Go programming language.") (build-system go-build-system) (arguments (list + #:skip-build? #t #:import-path "golang.org/x/vuln" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" - "./doc/..." - "./internal/..." - "./scan/...")))))))) + ;; ts.RunParallel undefined (type *cmdtest.TestSuite has no field or + ;; method RunParallel) + ;; + ;; go: modules disabled by GO111MODULE=off + #:test-flags #~(list "-skip" "TestVet|TestGoModTidy|Test58509") + #:test-subdirs #~(list "internal/..." "scan/..." "."))) (propagated-inputs (list go-github-com-google-go-cmdtest go-github-com-google-go-cmp From c62dc12069185667e67aa6f7829829d764c79ac4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 07:51:06 +0000 Subject: [PATCH 272/862] gnu: Add go-github-com-bitfield-gotestdox. * gnu/packages/golang-check.scm (go-github-com-bitfield-gotestdox, go-testdox): New variables. Change-Id: If9d0964a6067a47dc75bc0af5741014b1002d8d0 --- gnu/packages/golang-check.scm | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 37487e7bd92..cd5963f7e6a 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -121,6 +121,36 @@ value and call @code{t.Fatal()} if the assertion fails.") @end itemize") (license license:expat))) +(define-public go-github-com-bitfield-gotestdox + (package + (name "go-github-com-bitfield-gotestdox") + (version "0.2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bitfield/gotestdox") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kxj8igjm0wmq9nj3wns7nf95rx70xm327ra68d3ffh300rxg401")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bitfield/gotestdox")) + (propagated-inputs + (list go-github-com-fatih-color + go-github-com-google-go-cmp + go-github-com-mattn-go-isatty + go-github-com-rogpeppe-go-internal + go-golang-org-x-text)) + (home-page "https://github.com/bitfield/gotestdox") + (synopsis "Format Go test results as readable documentation") + (description + "This packages implements a functionality to run tests and report the +results, converting test names WrittenInCamelCase into ordinary sentences.") + (license license:expat))) + (define-public go-github-com-caarlos0-testfs (package (name "go-github-com-caarlos0-testfs") @@ -2104,6 +2134,20 @@ into @code{go-structlayout-pretty}."))) (description "This package takes @code{go-structlayout}-like JSON and prints an ASCII fraphic representing the memory layout."))) +(define-public go-testdox + (package + (inherit go-github-com-bitfield-gotestdox) + (name "go-testdox") + (arguments + (list + #:install-source? #f + #:import-path "github.com/bitfield/gotestdox/cmd/gotestdox" + #:unpack-path "github.com/bitfield/gotestdox")) + (description + (string-append (package-description go-github-com-bitfield-gotestdox) + " This package provides an command line interface (CLI) +tool.")))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar From 9c91d3970ca364051a405a51aa64bd365190c6e0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 08:07:20 +0000 Subject: [PATCH 273/862] gnu: Add go-github-com-dnephin-pflag. * gnu/packages/golang-xyz.scm (go-github-com-dnephin-pflag): New variable. Change-Id: I94959428a7ac087e99499cf5f922bab6645387dd --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 251f302d90b..9feceb283a7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3005,6 +3005,34 @@ mtime,ctime and btime for files.") "Regexp2 is a feature-rich RegExp engine for Go.") (license license:expat))) +(define-public go-github-com-dnephin-pflag + (package + (name "go-github-com-dnephin-pflag") + (version "1.0.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dnephin/pflag") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1d3aakwpwdbq3lqpk5kdqlr0h7maqxnpsbrd2022xwd93fxyxcq0")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; FIXME + #:import-path "github.com/dnephin/pflag")) + (home-page "https://github.com/dnephin/pflag") + (synopsis "Drop-in replacement for Go's flag package") + (description + "Package pflag is a drop-in replacement for Go's flag package, +implementing POSIX/GNU-style --flags. It is compatible with the +@url{http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html, +GNU extensions to the POSIX recommendations for command-line options}. This +is an activly maintained fork of @url{https://github.com/ogier/pflag}.") + (license license:bsd-3))) + (define-public go-github-com-docopt-docopt-go (let ((commit "ee0de3bc6815ee19d4a46c7eb90f829db0e014b1") (revision "0")) From 6fc37f4a0508523bfe5018ac7ace88fd7200f4ad Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 13:45:07 +0000 Subject: [PATCH 274/862] gnu: Add go-gotest-tools-v3. * gnu/packages/golang-check.scm (go-gotest-tools-v3): New variable. Change-Id: Ib17bebad969d6d5db6968100f62a79e1717f2ca2 --- gnu/packages/golang-check.scm | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index cd5963f7e6a..9d2bf38a740 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1937,6 +1937,79 @@ the end of a test.") built-in @code{testing} package, but can be used in other contexts too.") (license license:asl2.0))) +(define-public go-gotest-tools-v3 + (package + (name "go-gotest-tools-v3") + (version "3.5.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gotestyourself/gotest.tools") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1r5mc6slab6fj2si9nripl7fdq097s694gsn1gsxg2wj7605m5v4")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separatly: + ;; + ;; - gotest.tools/x/generics + (for-each delete-file-recursively + (list "x/generics")))))) + (build-system go-build-system) + (arguments + (list + #:import-path "gotest.tools/v3" + #:test-flags + #~(list "-skip" (string-join + ;; Most of these failing tests can't read test file + ;; maybe due to the symlink can't be resolved properly + ;; or have assertion not equal. + (list "TestAssert_WithBinaryExpression_Failures" + "TestAssertWithBool.*" + "TestCheckFailure" + "TestCheckEqualFailure" + "TestCheck_MultipleFunctionsOnTheSameLine" + "TestEqualFailure" + "TestEqualFailure.*" + "TestAssertFailureWithOfflineComparison" + "TestErrorTypeFailure" + "TestErrorIs" + "TestEqual_WithGoldenUpdate" + "TestMigrateFile.*" + "TestMigrate_AssertAlready.*" + "TestFormattedCallExprArg.*" + "TestWaitOnSocketWithTimeout/connection_to_" + "TestIfCondition" + "TestIfCondition.*") + "|")))) + (propagated-inputs + (list go-github-com-google-go-cmp + go-golang-org-x-tools)) + (home-page "https://gotest.tools") + (synopsis "gotest.tools") + (description + "Package gotesttools is a collection of packages to augment +@code{testing} and support common patterns. + +Packages: +@itemize +@item @code{assert} - compare values and fail the test when a comparison fails +@item @code{env} - test code which uses environment variables +@item @code{fs} - create temporary files and compare a filesystem tree to an +expected value +@item @code{golden} - compare large multi-line strings against values frozen +in golden files +@item @code{icmd} - execute binaries and test the output +@item @code{poll} - test asynchronous code by polling until a desired state is +reached +@item @code{skip} - skip a test and print the source code of the condition +used to skip the test +@end itemize") + (license license:asl2.0))) + (define-public go-honnef-co-go-tools (package (name "go-honnef-co-go-tools") From 8cbdfdf92efc284f0ddd4b1b79b2e79ff67b05d0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 14:08:25 +0000 Subject: [PATCH 275/862] gnu: gotestsum: Update to 1.12.0. * gnu/packages/golang.scm (gotestsum): Update to 1.12.0. [native-inputs]: Remove go-github-com-pkg-errors, go-github-com-sirupsen-logrus, go-github-com-spf13-pflag, go-github-com-jonboulle-clockwork, go-golang-org-x-crypto, go-gotest-tools-assert, go-gotest-tools-internal-format, go-gotest-tools-internal-difflib, and go-gotest-tools-internal-source; add go-github-com-bitfield-gotestdox, go-github-com-dnephin-pflag, go-github-com-fsnotify-fsnotify, go-github-com-google-shlex, go-golang-org-x-sys, go-golang-org-x-term, go-golang-org-x-tools, and go-gotest-tools-v3. (go-gotest-tools-source, go-gotest-tools-package suffix, go-gotest-tools-internal-format, go-gotest-tools-internal-difflib, go-gotest-tools-internal-source, go-gotest-tools-assert): Remove variables as merge into single package. Change-Id: Id31f6532f49202dc2e12c20b283b038c29025322 --- gnu/packages/golang.scm | 123 ++++++++-------------------------------- 1 file changed, 25 insertions(+), 98 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 06489d816aa..3f3bc471890 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4474,90 +4474,10 @@ a cron spec parser and job runner.") "This is a fork of another go-libvterm library for use with aerc.") (license license:expat)))) -(define (go-gotest-tools-source version sha256-base32-hash) - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gotestyourself/gotest.tools") - (commit (string-append "v" version)))) - (file-name (git-file-name "go-gotest-tools" version)) - (sha256 - (base32 sha256-base32-hash)))) - -;; Note that version 3.0.0 is incompatible to 2.3.0. -;; See also . -(define (go-gotest-tools-package suffix) - (package - (name (string-append "go-gotest-tools-" - (string-replace-substring suffix "/" "-"))) - (version "2.3.0") - (source - (go-gotest-tools-source version - "0071rjxp4xzcr3vprkaj1hdk35a3v45bx8v0ipk16wwc5hx84i2i")) - (build-system go-build-system) - (arguments - `(#:import-path ,(string-append "gotest.tools/" suffix) - #:unpack-path "gotest.tools")) - (synopsis "@code{gotest-tools} part") - (description "This package provides a part of @code{gotest-tools}.") - (home-page "https://github.com/gotestyourself/gotest.tools") - (license license:asl2.0))) - -(define-public go-gotest-tools-internal-format - (package (inherit (go-gotest-tools-package "internal/format")) - (native-inputs - (list go-github-com-pkg-errors go-github-com-google-go-cmp)) - (synopsis "Formats messages for use with gotest-tools") - (description "This package provides a way to format messages for use -with gotest-tools."))) - -(define-public go-gotest-tools-internal-difflib - (package (inherit (go-gotest-tools-package "internal/difflib")) - (synopsis "Differences for use with gotest-tools") - (description "This package computes differences for use -with gotest-tools."))) - -(define-public go-gotest-tools-internal-source - (package (inherit (go-gotest-tools-package "internal/source")) - (arguments - (substitute-keyword-arguments - (package-arguments (go-gotest-tools-package "internal/source")) - ((#:phases phases #~%standard-phases) - #~(modify-phases #$phases - (replace 'check - (lambda* (#:key inputs #:allow-other-keys #:rest args) - (unless - ;; failed to parse source file: : open : no such file or directory - (false-if-exception (search-input-file inputs "/bin/gccgo")) - (apply (assoc-ref %standard-phases 'check) args)))))))) - (native-inputs - (list go-github-com-pkg-errors go-github-com-google-go-cmp)) - (synopsis "Source code AST formatters for gotest-tools") - (description "This package provides source code AST formatters for -gotest-tools."))) - -(define-public go-gotest-tools-assert - (package (inherit (go-gotest-tools-package "assert")) - (name "go-gotest-tools-assert") - (arguments - `(#:tests? #f ; Test failure concerning message formatting (FIXME) - #:import-path "gotest.tools/assert" - #:unpack-path "gotest.tools")) - (propagated-inputs - (list go-github-com-google-go-cmp - go-github-com-pkg-errors - go-github-com-spf13-pflag - go-golang-org-x-tools)) - (synopsis "Compare values and fail a test when a comparison fails") - (description "This package provides a way to compare values and fail a -test when a comparison fails.") - (home-page "https://github.com/gotestyourself/gotest.tools") - (license license:asl2.0))) - (define-public gotestsum (package (name "gotestsum") - (version "0.4.0") + (version "1.12.0") (source (origin (method git-fetch) (uri (git-reference @@ -4566,27 +4486,34 @@ test when a comparison fails.") (file-name (git-file-name name version)) (sha256 (base32 - "0y71qr3ss3hgc8c7nmvpwk946xy1jc5d8whsv6y77wb24ncla7n0")))) + "0fx92jh6ay4rk1ljbgp9b2m4fafqwy0a19q7lhdabgb1j8dvgxvs")))) (build-system go-build-system) (arguments - '(#:import-path "gotest.tools/gotestsum")) + (list + #:import-path "gotest.tools/gotestsum" + #:test-flags + #~(list "-skip" + (string-join + (list "TestE2E_IgnoresWarnings" + "TestE2E_MaxFails_EndTestRun" + "TestScanTestOutput_TestTimeoutPanicRace/panic-race-2") + "|")) + ;; Run just unit test, integration tests from "testjson" require: run + ;; 'go test . -update' to automatically update + ;; testdata/summary/with-run-id to the new expected value.' + #:test-subdirs #~(list "cmd/..." "internal/..."))) (native-inputs - (list go-github-com-fatih-color - go-golang-org-x-sync - go-github-com-pkg-errors - go-github-com-sirupsen-logrus - go-github-com-spf13-pflag - go-github-com-jonboulle-clockwork - go-golang-org-x-crypto - go-gotest-tools-assert + (list go-github-com-bitfield-gotestdox + go-github-com-dnephin-pflag + go-github-com-fatih-color + go-github-com-fsnotify-fsnotify go-github-com-google-go-cmp - ;; TODO: This would be better as a propagated-input of - ;; go-gotest-tools-assert, but that does not work for - ;; some reason. - go-gotest-tools-internal-format - go-gotest-tools-internal-difflib - go-gotest-tools-internal-source - go-github-com-google-go-cmp)) + go-github-com-google-shlex + go-golang-org-x-sync + go-golang-org-x-sys + go-golang-org-x-term + go-golang-org-x-tools + go-gotest-tools-v3)) (synopsis "Go test runner with output optimized for humans") (description "This package provides a @code{go test} runner with output optimized for humans, JUnit XML for CI integration, and a summary of the From 8d4f5743d2bcbb31571dc0bdea03a4e3fbbfe10d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 14:23:04 +0000 Subject: [PATCH 276/862] gnu: gotestsum: Move to check. * gnu/packages/golang.scm (gotestsum): Move from here ... * gnu/packages/check.scm: ... to here. Change-Id: I83f22e1f7dc1ad43340a02b60b75bf4e98b65474 --- gnu/packages/check.scm | 48 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 47 ---------------------------------------- 2 files changed, 48 insertions(+), 47 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 47047de59e0..f23258ca567 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -32,6 +32,7 @@ ;;; Copyright © 2019 Chris Marusich ;;; Copyright © 2020 Lars-Dominik Braun ;;; Copyright © 2020 Brice Waegeneire +;;; Copyright © 2020 Danny Milosavljevic ;;; Copyright © 2020 Josh Marshall ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Tanguy Le Carrour @@ -1124,6 +1125,53 @@ generation.") similar to unit tests.") (license license:asl2.0))) +(define-public gotestsum + (package + (name "gotestsum") + (version "1.12.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gotestyourself/gotestsum") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fx92jh6ay4rk1ljbgp9b2m4fafqwy0a19q7lhdabgb1j8dvgxvs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gotest.tools/gotestsum" + #:test-flags + #~(list "-skip" + (string-join + (list "TestE2E_IgnoresWarnings" + "TestE2E_MaxFails_EndTestRun" + "TestScanTestOutput_TestTimeoutPanicRace/panic-race-2") + "|")) + ;; Run just unit test, integration tests from "testjson" require: run + ;; 'go test . -update' to automatically update + ;; testdata/summary/with-run-id to the new expected value.' + #:test-subdirs #~(list "cmd/..." "internal/..."))) + (native-inputs + (list go-github-com-bitfield-gotestdox + go-github-com-dnephin-pflag + go-github-com-fatih-color + go-github-com-fsnotify-fsnotify + go-github-com-google-go-cmp + go-github-com-google-shlex + go-golang-org-x-sync + go-golang-org-x-sys + go-golang-org-x-term + go-golang-org-x-tools + go-gotest-tools-v3)) + (synopsis "Go test runner with output optimized for humans") + (description "This package provides a @code{go test} runner with output +optimized for humans, JUnit XML for CI integration, and a summary of the +test results.") + (home-page "https://github.com/gotestyourself/gotestsum") + (license license:asl2.0))) + (define-public greatest (package (name "greatest") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3f3bc471890..6eaf09a4d15 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4474,53 +4474,6 @@ a cron spec parser and job runner.") "This is a fork of another go-libvterm library for use with aerc.") (license license:expat)))) -(define-public gotestsum - (package - (name "gotestsum") - (version "1.12.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gotestyourself/gotestsum") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0fx92jh6ay4rk1ljbgp9b2m4fafqwy0a19q7lhdabgb1j8dvgxvs")))) - (build-system go-build-system) - (arguments - (list - #:import-path "gotest.tools/gotestsum" - #:test-flags - #~(list "-skip" - (string-join - (list "TestE2E_IgnoresWarnings" - "TestE2E_MaxFails_EndTestRun" - "TestScanTestOutput_TestTimeoutPanicRace/panic-race-2") - "|")) - ;; Run just unit test, integration tests from "testjson" require: run - ;; 'go test . -update' to automatically update - ;; testdata/summary/with-run-id to the new expected value.' - #:test-subdirs #~(list "cmd/..." "internal/..."))) - (native-inputs - (list go-github-com-bitfield-gotestdox - go-github-com-dnephin-pflag - go-github-com-fatih-color - go-github-com-fsnotify-fsnotify - go-github-com-google-go-cmp - go-github-com-google-shlex - go-golang-org-x-sync - go-golang-org-x-sys - go-golang-org-x-term - go-golang-org-x-tools - go-gotest-tools-v3)) - (synopsis "Go test runner with output optimized for humans") - (description "This package provides a @code{go test} runner with output -optimized for humans, JUnit XML for CI integration, and a summary of the -test results.") - (home-page "https://github.com/gotestyourself/gotestsum") - (license license:asl2.0))) - (define-public go-github-com-macronut-go-tproxy (package (name "go-github-com-macronut-go-tproxy") From 7b17abfa598546d150c322d0c15e61b9e96cdb21 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 17:47:33 +0000 Subject: [PATCH 277/862] gnu: go-github-com-quic-go-quic-go: Simplify. * gnu/packages/golang-web.scm (go-github-com-quic-go-quic-go): [arguments] : Remove 'remove-failing-tests as all tests have been passed. Change-Id: I8e24612bd7e584c48b712a1f97aecf201aff7336 --- gnu/packages/golang-web.scm | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2f757cb1467..cad843cfc7b 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5618,26 +5618,19 @@ the Go standard library}.") #:import-path "github.com/quic-go/quic-go" #:phases #~(modify-phases %standard-phases - ;; TODO: Figure out why some tests fail. - (add-after 'unpack 'remove-failing-tests - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file - (list "integrationtests/self/timeout_test.go" - "server_test.go"))))) ;; Test steps are taken from GitHub Actions - - ;; . + ;; . (replace 'check (lambda* (#:key tests? import-path #:allow-other-keys) (when tests? (with-directory-excursion (string-append "src/" import-path) (invoke "ginkgo" "-r" "-v" - (string-append "--procs=" - (number->string (parallel-job-count))) + (string-append + "--procs=" (number->string (parallel-job-count))) "--randomize-all" "--randomize-suites" - "--skip-package" - "integrationtests")))))))) + "--skip-package=integrationtests")))))))) (native-inputs (list go-ginkgo go-github-com-onsi-ginkgo-v2 From 74199eac39042117aee9c6e4d149bdf66d218471 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 20:53:59 +0000 Subject: [PATCH 278/862] gnu: Add go-github-com-jacobsa-fuse. * gnu/packages/golang-xyz.scm (go-github-com-jacobsa-fuse): New variable. Change-Id: I4f21d408a0e5e9ab344b7a7f57228c7c8b854ffb --- gnu/packages/golang-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9feceb283a7..54f4eac2fa6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5550,6 +5550,52 @@ any concurrent code of its own.") (propagated-inputs (list go-golang-org-x-sync)))) +(define-public go-github-com-jacobsa-fuse + (package + (name "go-github-com-jacobsa-fuse") + (version "0.0.0-20241025064006-8ccd61173b05") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/fuse") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zf9fhv5j0pffmp4c0zba58627lb6cwr2qxjsa3dwba9b8fiz7sf")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; requires fusermount + #:import-path "github.com/jacobsa/fuse")) + (native-inputs + (list go-github-com-detailyang-go-fallocate + go-github-com-jacobsa-ogletest + go-github-com-kylelemons-godebug)) + (propagated-inputs + (list go-github-com-jacobsa-oglematchers + go-github-com-jacobsa-syncutil + go-github-com-jacobsa-timeutil + go-golang-org-x-net + go-golang-org-x-sys)) + (home-page "https://github.com/jacobsa/fuse") + (synopsis "FUSE file system in Golang") + (description + "Package fuse enables writing and mounting user-space file systems. +Subpackages: +@itemize +@item @code{fuse} provides support for mounting a new file system and reading +requests from the kernel + +@item @code{fuseops} enumerates the supported requests from the kernel, and +provides documentation on their semantics + +@item @code{fuseutil}, in particular the @code{FileSystem} interface, provides +a convenient way to create a file system type and export it to the kernel via +@code{fuse.Mount}. +@end itemize") + (license license:asl2.0))) + (define-public go-github-com-jacobsa-syncutil (package (name "go-github-com-jacobsa-syncutil") From c55e45f787bbf801f16d279e80046358662b4d1a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 20 Dec 2024 20:54:01 +0000 Subject: [PATCH 279/862] gnu: Add go-github-com-detailyang-go-fallocate. * gnu/packages/golang-xyz.scm (go-github-com-detailyang-go-fallocate): New variable. Change-Id: I95a7cecfceb6254e414a7b842297a9ada811ceb7 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 54f4eac2fa6..cdc8fb51a4d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2803,6 +2803,30 @@ more complicated parallel cases.") encoding/decoding. It has no dependencies.") (license license:expat))) +(define-public go-github-com-detailyang-go-fallocate + (package + (name "go-github-com-detailyang-go-fallocate") + (version "0.0.0-20180908115635-432fa640bd2e") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/detailyang/go-fallocate") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1yvgkj5i43ihagdwg70vjgrhwf2mjsbyv2xwd6znsdwav6qpcdnw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/detailyang/go-fallocate")) + (home-page "https://github.com/detailyang/go-fallocate") + (synopsis "Syscal @code{fallocate} implementation in Golang") + (description + "This package implements syscal @code{fallocate} by wrapping standard Go +@code{os.SEEK_SET}.") + (license license:expat))) + (define-public go-github-com-dgraph-io-badger (package (name "go-github-com-dgraph-io-badger") From 4f189392785f6699c0aceadb5beb16d1c3e03c98 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 22:50:49 +0000 Subject: [PATCH 280/862] gnu: sqls: Fix build. * gnu/packages/databases.scm (sqls): [arguments] : Exclude "internal/handler" which requires database connection. Change-Id: I470981f040d2a0dc08d91f1239bbb0eb5ee98b0f --- gnu/packages/databases.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index a758f9924e9..7a9033607a3 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -5803,7 +5803,17 @@ compatible with SQLite using a graphical user interface.") (arguments (list #:install-source? #f - #:import-path "github.com/lighttiger2505/sqls")) + #:import-path "github.com/lighttiger2505/sqls" + ;; XXX: Try to enable more or all tests. + #:test-subdirs #~(list "ast/..." + "dialect/..." + "parser/..." + "internal/completer" + "internal/config/..." + "internal/database" + "internal/debug" + "internal/formatter" + "internal/lsp"))) (native-inputs (list go-github-com-google-go-cmp go-github-com-go-sql-driver-mysql From 4e7a1d3ca8e7f8eca64184dceffb054ad8759a62 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 22:59:18 +0000 Subject: [PATCH 281/862] gnu: esbuild: Adjust input. * gnu/packages/web.scm (esbuild) [inputs]: Remove go-golang-org-x-sys; add go-golang-org-x-sys-for-esbuild. * gnu/packages/golang-build.scm (go-golang-org-x-sys-for-esbuild): New variable. Change-Id: I8df379e84d8de4d5adc79a77905e876ebbb928ca --- gnu/packages/golang-build.scm | 18 ++++++++++++++++++ gnu/packages/web.scm | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index b20437fa8d5..950138f9e0d 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -798,6 +798,24 @@ low-level interaction with the operating system.") (native-inputs '()) (propagated-inputs '())))) +;; This is the only one dependency for esbuild, which is the main tool to +;; produce all Node packages, keep it away from other golang. +(define-public go-golang-org-x-sys-for-esbuild + (hidden-package + (package + (inherit go-golang-org-x-sys) + (name "go-golang-org-x-sys") + (version "0.25.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/sys") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hdysrba8imiifb4ksjgbhkzhk1mksm1g3fj59i3bas1zdc5lbgp"))))))) + (define-public go-golang-org-x-telemetry (package (name "go-golang-org-x-telemetry") diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index b781c13b620..2c46517f839 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1998,7 +1998,7 @@ UTS#46.") (invoke "make" "test-go"))) #t))))) (inputs - `(("golang.org/x/sys" ,go-golang-org-x-sys))) + `(("golang.org/x/sys" ,go-golang-org-x-sys-for-esbuild))) (native-inputs `(("github.com/kylelemons/godebug" ,go-github-com-kylelemons-godebug))) (home-page "https://esbuild.github.io/") From a00d0551fd09bd57f39e01647902838d1792b08e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:10:50 +0000 Subject: [PATCH 282/862] gnu: go-github-com-rogpeppe-go-internal: Simplify * gnu/packages/golang-xyz.scm (go-github-com-rogpeppe-go-internal): [arguments] : Set to #t, as no go files in project's root. : Apply skip test logic here. : Remove 'disable-failing-tests, use default 'check. Change-Id: I4fd9e76205645faee0208ca16bd0315b148a2d7c --- gnu/packages/golang-xyz.scm | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cdc8fb51a4d..9a05d03a597 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8489,21 +8489,9 @@ strings.") (build-system go-build-system) (arguments (list + #:skip-build? #t #:import-path "github.com/rogpeppe/go-internal" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* (find-files "." "\\_test.go$") - (("TestSimple") "OffTestSimple"))))) - ;; XXX: Replace when go-build-system supports nested path. - (delete 'build) - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:test-flags #~(list "-skip" "TestSimple/cover"))) (propagated-inputs (list go-golang-org-x-mod go-golang-org-x-sys From ec8920c8e5da18f57c823cbc6a381e80c3622e44 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:22:29 +0000 Subject: [PATCH 283/862] gnu: go-github-com-kr-text: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-kr-text): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I94afda2f75abbd56da2a2c60ffca2b243eb64dbe --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9a05d03a597..349b22ccdac 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6269,6 +6269,30 @@ allocation. @code{fastime} is returning the approximate time.") "This package provides a pretty printer for Go values.") (license license:expat))) +(define-public go-github-com-kr-text + (package + (name "go-github-com-kr-text") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kr/text") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hf58ypz6rxsw6nx3i856whir9lvy4sdx946wbw1nfaf2rdmr9vx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kr/text")) + (propagated-inputs + (list go-github-com-creack-pty)) + (home-page "https://github.com/kr/text") + (synopsis "Text formatting in Go") + (description "This package provides a text formatting functions in Go.") + (license license:expat))) + (define-public go-github-com-kylelemons-godebug (package (name "go-github-com-kylelemons-godebug") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6eaf09a4d15..de8e6eee41b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4114,28 +4114,6 @@ anchor names.") have super fancy logs.") (license license:expat)))) -(define-public go-github-com-kr-text - (package - (name "go-github-com-kr-text") - (version "0.2.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kr/text") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0hf58ypz6rxsw6nx3i856whir9lvy4sdx946wbw1nfaf2rdmr9vx")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/kr/text")) - (propagated-inputs (list go-github-com-creack-pty)) - (synopsis "Text formatting in Go") - (description "This package provides a text formatting functions in Go.") - (home-page "https://github.com/kr/text") - (license license:expat))) - (define-public go-github-com-lucasb-eyer-go-colorful (package (name "go-github-com-lucasb-eyer-go-colorful") From 38cc68f71043d89defa46d6abef2042804966544 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:25:37 +0000 Subject: [PATCH 284/862] gnu: go-github-com-emirpasic-gods: Update to 1.18.1. * gnu/packages/golang.scm (go-github-com-emirpasic-gods): Update to 1.18.1. Change-Id: I9366cc71fe9b7963448ad8b7a8b7526da93a528e --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index de8e6eee41b..5ce0eeaf290 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4874,7 +4874,7 @@ use one of our glamorous default themes.") (define-public go-github-com-emirpasic-gods (package (name "go-github-com-emirpasic-gods") - (version "1.12.0") + (version "1.18.1") (source (origin (method git-fetch) (uri (git-reference @@ -4883,7 +4883,7 @@ use one of our glamorous default themes.") (file-name (git-file-name name version)) (sha256 (base32 - "0i5qqq7ajvw3mikr95zl9rsnfsjanzwpqqs6kzzplsfgsifybar1")))) + "0vnnmv813m8yhykwlxpizpvpimsirbaiwa3ckxfyx3ybv1swlq44")))) (build-system go-build-system) (arguments `(#:import-path "github.com/emirpasic/gods" From 5037e70ba2cac3daf3a49c181609e74f1d8188dc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:26:39 +0000 Subject: [PATCH 285/862] gnu: go-github-com-emirpasic-gods: Enable tests. * gnu/packages/golang.scm (go-github-com-emirpasic-gods): Enable tests and skip build. Change-Id: Ic86199e12d6a731939274acd46f5e5f4c33a255e --- gnu/packages/golang.scm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5ce0eeaf290..491eedd586d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4886,12 +4886,9 @@ use one of our glamorous default themes.") "0vnnmv813m8yhykwlxpizpvpimsirbaiwa3ckxfyx3ybv1swlq44")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/emirpasic/gods" - ; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'build)))) + (list + #:skip-build? #t + #:import-path "github.com/emirpasic/gods")) (home-page "https://github.com/emirpasic/gods/") (synopsis "Implementation of various data structures and algorithms in Go") (description "This package provides implementation of various data From c972e07971ca6b84c35b48acbe9e10281c6cbb90 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:29:35 +0000 Subject: [PATCH 286/862] gnu: go-github-com-emirpasic-gods: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-emirpasic-gods): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I49097629697760c68a25eb6179114b43e92538a3 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 349b22ccdac..35eb420e6fc 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3395,6 +3395,31 @@ specified in @url{https://datatracker.ietf.org/doc/html/rfc6350, RFC 6350}.") @url{https://tools.ietf.org/html/rfc6352, RFC 6352} specifications.") (license license:expat))) +(define-public go-github-com-emirpasic-gods + (package + (name "go-github-com-emirpasic-gods") + (version "1.18.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emirpasic/gods") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vnnmv813m8yhykwlxpizpvpimsirbaiwa3ckxfyx3ybv1swlq44")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/emirpasic/gods")) + (home-page "https://github.com/emirpasic/gods/") + (synopsis "Implementation of various data structures and algorithms in Go") + (description + "This package provides implementation of various data structures and +algorithms in Go.") + (license license:bsd-2))) + (define-public go-github-com-erikgeiser-coninput (package (name "go-github-com-erikgeiser-coninput") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 491eedd586d..39aebf709ce 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4871,30 +4871,6 @@ use one of our glamorous default themes.") "A simple, efficient spring animation library for smooth, natural motion.") (license license:expat))) -(define-public go-github-com-emirpasic-gods - (package - (name "go-github-com-emirpasic-gods") - (version "1.18.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/emirpasic/gods") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0vnnmv813m8yhykwlxpizpvpimsirbaiwa3ckxfyx3ybv1swlq44")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "github.com/emirpasic/gods")) - (home-page "https://github.com/emirpasic/gods/") - (synopsis "Implementation of various data structures and algorithms in Go") - (description "This package provides implementation of various data -structures and algorithms in Go.") - (license license:bsd-2))) - (define-public go-gopkg-in-warnings (package (name "go-gopkg-in-warnings") From b7a4139a6c8bd13f972b450ad2e3e2c18a3745b7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:50:06 +0000 Subject: [PATCH 287/862] gnu: go-gopkg-in-warnings: Rename variable. * gnu/packages/golang.scm (go-gopkg-in-warnings): Rename to go-gopkg-in-warnings-v0 to reflect go.mod import path. * gnu/packages/golang.scm (go-github-com-go-git-gcfg) [propagated-inputs]: Remove go-gopkg-in-warnings; add go-gopkg-in-warnings-v0. * gnu/packages/version-control.scm (go-github-com-go-git-go-git-v5): [propagated-inputs]: Remove go-gopkg-in-warnings; add go-gopkg-in-warnings-v0. Change-Id: Ie926408d639fca13c6c4bd4e6f382f5cb4424e8b --- gnu/packages/golang.scm | 6 +++--- gnu/packages/version-control.scm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 39aebf709ce..82709edf55e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4871,9 +4871,9 @@ use one of our glamorous default themes.") "A simple, efficient spring animation library for smooth, natural motion.") (license license:expat))) -(define-public go-gopkg-in-warnings +(define-public go-gopkg-in-warnings-v0 (package - (name "go-gopkg-in-warnings") + (name "go-gopkg-in-warnings-v0") (version "0.1.2") (source (origin (method git-fetch) @@ -4909,7 +4909,7 @@ errors (warnings).") (arguments `(#:import-path "github.com/go-git/gcfg")) (native-inputs - (list go-gopkg-in-warnings go-github-com-pkg-errors)) + (list go-gopkg-in-warnings-v0 go-github-com-pkg-errors)) (build-system go-build-system) (home-page "https://github.com/go-git/gcfg/") (synopsis "Gcfg reads INI-style configuration files into Go structs") diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 21b5ad84578..304406e7bec 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -4224,7 +4224,7 @@ defects faster.") go-golang-org-x-net go-golang-org-x-text go-gopkg-in-check-v1 - go-gopkg-in-warnings)) + go-gopkg-in-warnings-v0)) (native-inputs (list git)) (home-page "https://github.com/go-git/") (synopsis "Git implementation library") From aab9235dd0006135b6abf81e9674455027af5d00 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 00:03:30 +0000 Subject: [PATCH 288/862] gnu: go-gopkg-in-warnings-v0: Move to golang-xyz. * gnu/packages/golang.scm (go-gopkg-in-warnings-v0): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I03b8383bc8b5df1ff337b8db6e802a53a98b702d --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 35eb420e6fc..8047edae4b8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10944,6 +10944,30 @@ machine readable. It is modeled after the Go standard library's @code{io} and (package-arguments go-github-com-op-go-logging) ((#:import-path _) "gopkg.in/op/go-logging.v1"))))) +(define-public go-gopkg-in-warnings-v0 + (package + (name "go-gopkg-in-warnings-v0") + (version "0.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-warnings/warnings") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kzj50jn708cingn7a13c2wdlzs6qv89dr2h4zj8d09647vlnd81")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gopkg.in/warnings.v0")) + (home-page "https://gopkg.in/warnings.v0") + (synopsis "Error handling with non-fatal errors") + (description + "Package warnings implements error handling with non-fatal +errors (warnings).") + (license license:bsd-2))) + (define-public go-gopkg-in-yaml-v2 (package (name "go-gopkg-in-yaml-v2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 82709edf55e..0849e334df9 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4871,28 +4871,6 @@ use one of our glamorous default themes.") "A simple, efficient spring animation library for smooth, natural motion.") (license license:expat))) -(define-public go-gopkg-in-warnings-v0 - (package - (name "go-gopkg-in-warnings-v0") - (version "0.1.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-warnings/warnings") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1kzj50jn708cingn7a13c2wdlzs6qv89dr2h4zj8d09647vlnd81")))) - (build-system go-build-system) - (arguments - `(#:import-path "gopkg.in/warnings.v0")) - (home-page "https://gopkg.in/warnings.v0") - (synopsis "Error handling with non-fatal errors") - (description "Package warnings implements error handling with non-fatal -errors (warnings).") - (license license:bsd-2))) - (define-public go-github-com-go-git-gcfg (package (name "go-github-com-go-git-gcfg") From 3464b38a75687f5c4631804cd8e0aec6583958c4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:33:27 +0000 Subject: [PATCH 289/862] gnu: go-github-com-go-git-gcfg: Fix bulid. * gnu/packages/golang.scm (go-github-com-go-git-gcfg): [argumetns] : Skip 2 tests. Change-Id: I6b88b622c63ac07ebfc2623962b1157ca82c1ecb --- gnu/packages/golang.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0849e334df9..5725dfc2b40 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4885,7 +4885,11 @@ use one of our glamorous default themes.") (base32 "1lb14z4j35pwz2b2rbykkpsq515spwbndb00gwn2xlrzn949xb83")))) (arguments - `(#:import-path "github.com/go-git/gcfg")) + (list + #:import-path "github.com/go-git/gcfg" + ;; pass; got 10, error + ;; failed to parse "a" as int: expected integer; *ptr==0 + #:test-flags #~(list "-skip" "TestParseInt|TestScanFully"))) (native-inputs (list go-gopkg-in-warnings-v0 go-github-com-pkg-errors)) (build-system go-build-system) From 5f6cc183a226e81366c8ba317d3fd74e5ccf403f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 21 Dec 2024 23:44:09 +0000 Subject: [PATCH 290/862] gnu: go-github-com-go-git-gcfg: Move to golang-vcs. * gnu/packages/golang.scm (go-github-com-go-git-gcfg): Move from here ... * gnu/packages/golang-vcs.scm: ... to here. Add goalng-xyz module. Change-Id: I218c5e5c663ea5ba54cef9f26fec95912bbcac34 --- gnu/packages/golang-vcs.scm | 32 +++++++++++++++++++++++++++++++- gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm index b264b3ecaf1..967b5ea93d2 100644 --- a/gnu/packages/golang-vcs.scm +++ b/gnu/packages/golang-vcs.scm @@ -1,4 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2020 Oleg Pykhalov ;;; Copyright © 2024 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. @@ -25,7 +26,8 @@ #:use-module (gnu packages) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) - #:use-module (gnu packages golang-web)) + #:use-module (gnu packages golang-web) + #:use-module (gnu packages golang-xyz)) ;;; Commentary: ;;; @@ -37,6 +39,34 @@ ;;; Libraries: ;;; +(define-public go-github-com-go-git-gcfg + (package + (name "go-github-com-go-git-gcfg") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-git/gcfg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lb14z4j35pwz2b2rbykkpsq515spwbndb00gwn2xlrzn949xb83")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-git/gcfg" + ;; pass; got 10, error + ;; failed to parse "a" as int: expected integer; *ptr==0 + #:test-flags #~(list "-skip" "TestParseInt|TestScanFully"))) + (propagated-inputs + (list go-github-com-pkg-errors + go-gopkg-in-warnings-v0)) + (home-page "https://github.com/go-git/gcfg") + (synopsis "Gcfg reads INI-style configuration files into Go structs") + (description "Gcfg reads INI-style configuration files into Go structs.") + (license license:bsd-3))) + (define-public go-github-com-xanzy-go-gitlab (package (name "go-github-com-xanzy-go-gitlab") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5725dfc2b40..fdce0bc7a04 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4871,33 +4871,6 @@ use one of our glamorous default themes.") "A simple, efficient spring animation library for smooth, natural motion.") (license license:expat))) -(define-public go-github-com-go-git-gcfg - (package - (name "go-github-com-go-git-gcfg") - (version "1.5.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-git/gcfg") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1lb14z4j35pwz2b2rbykkpsq515spwbndb00gwn2xlrzn949xb83")))) - (arguments - (list - #:import-path "github.com/go-git/gcfg" - ;; pass; got 10, error - ;; failed to parse "a" as int: expected integer; *ptr==0 - #:test-flags #~(list "-skip" "TestParseInt|TestScanFully"))) - (native-inputs - (list go-gopkg-in-warnings-v0 go-github-com-pkg-errors)) - (build-system go-build-system) - (home-page "https://github.com/go-git/gcfg/") - (synopsis "Gcfg reads INI-style configuration files into Go structs") - (description "Gcfg reads INI-style configuration files into Go structs.") - (license license:bsd-3))) - (define-public go-github-com-jba-templatecheck (package (name "go-github-com-jba-templatecheck") From 58269b6d58b7aca9edf2e1d7ce6ea71ea308ca05 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:37 +0000 Subject: [PATCH 291/862] gnu: Add go-github-com-elazarl-goproxy. * gnu/packages/golang-web.scm (go-github-com-elazarl-goproxy): New variable. Change-Id: I64ea5f0f92713094f2b15d1677ad425945507484 --- gnu/packages/golang-web.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index cad843cfc7b..1e437c7fd76 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1294,6 +1294,51 @@ client in Golang.") (modify-inputs (package-native-inputs go-github-com-datadog-datadog-go) (append go-github-com-golang-mock))))) +(define-public go-github-com-elazarl-goproxy + (package + (name "go-github-com-elazarl-goproxy") + (version "0.0.0-20241221210044-9faedc2f9e9f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/elazarl/goproxy") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j3v0y18igr3wy9vbwyg19fzy12jc41kmpfcz2jh1dnk6kxn2n67")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/elazarl/goproxy" + #:test-flags + #~(list "-skip" (string-join + ;; Networking or curl are required. + (list "TestCurlMinusP" + "TestSimpleHttpRequest" + "TestBasicConnectAuthWithCurl" + "TestBasicAuthWithCurl" + "TestConstantImageHandler" + "TestImageHandler" + "TestReplaceImage") + "|")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) + (propagated-inputs + (list go-golang-org-x-net)) + (home-page "https://github.com/elazarl/goproxy") + (synopsis "HTTP proxy library for Go") + (description + "GoProxy is a library to create a customized HTTP/HTTPS proxy server +using Go (aka Golang), with several configurable settings available. The +target of this project is to offer an optimized proxy server, usable with +reasonable amount of traffic, yet customizable and programmable.") + (license license:bsd-3))) + (define-public go-github-com-emersion-go-imap (package (name "go-github-com-emersion-go-imap") From e1e4ccc18a9fed8bdf642247a7e071854efcf242 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:39 +0000 Subject: [PATCH 292/862] gnu: Add go-github-com-armon-go-socks5. * gnu/packages/golang-web.scm (go-github-com-armon-go-socks5): New variable. Change-Id: I8c06c4c9515aadbcc982da972011b4f9cc128549 --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 1e437c7fd76..fb1778aa466 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -337,6 +337,34 @@ that of BeautifulSoup.") the parse trees produced by the html package.") (license license:bsd-2))) +(define-public go-github-com-armon-go-socks5 + (package + (name "go-github-com-armon-go-socks5") + (version "0.0.0-20160902184237-e75332964ef5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/armon/go-socks5") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "104w10jf0wlxyxi35hf6frndgf0ybz21h54xjmnkivpb6slycpyq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/armon/go-socks5")) + (native-inputs + (list go-golang-org-x-net)) + (home-page "https://github.com/armon/go-socks5") + (synopsis "SOCKS5 server in Golang") + (description + "This package provides the @code{socks5} package that implements a +@url{http://en.wikipedia.org/wiki/SOCKS,SOCKS5 server}. SOCKS (Secure +Sockets) is used to route traffic between a client and server through an +intermediate proxy layer. This can be used to bypass firewalls or NATs.") + (license license:expat))) + (define-public go-github-com-audriusbutkevicius-pfilter (package (name "go-github-com-audriusbutkevicius-pfilter") From 9b0a363f9b4f2ccecd2f7a647cb7a53e4f5aaf9a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:39 +0000 Subject: [PATCH 293/862] gnu: Add go-github-com-skeema-knownhosts. * gnu/packages/golang-crypto.scm (go-github-com-skeema-knownhosts): New variable. Change-Id: I36f3bde40845c02bb950097edc55ecddb8cb26eb --- gnu/packages/golang-crypto.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 7cd59d869f5..2a266e2fa3f 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1613,6 +1613,32 @@ wide-block encryption mode developed by Halevi and Rogaway.") tunnel proxy protocol.") (license license:asl2.0))) +(define-public go-github-com-skeema-knownhosts + (package + (name "go-github-com-skeema-knownhosts") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/skeema/knownhosts") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1i74wqingiflrrvpzhahwdly9f8c27i2far1qxkszi7aswhpj956")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/skeema/knownhosts")) + (propagated-inputs (list go-golang-org-x-crypto)) + (home-page "https://github.com/skeema/knownhosts") + (synopsis "Go SSH known_hosts wrapper with host key lookup") + (description + "Package knownhosts is a thin wrapper around @code{golang.org/x/crypto/ssh/knownhosts}, +adding the ability to obtain the list of host key algorithms for a known +host.") + (license license:asl2.0))) + (define-public go-github-com-xanzy-ssh-agent (package (name "go-github-com-xanzy-ssh-agent") From 6bc265ba9f6f4e612f01afcff2b341a149bb7b91 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:39 +0000 Subject: [PATCH 294/862] gnu: Add go-github-com-pjbgf-sha1cd. * gnu/packages/golang-crypto.scm (go-github-com-pjbgf-sha1cd): New variable. Change-Id: I62d5d315a505b19f7c87b3d40b1e980262fccf99 --- gnu/packages/golang-crypto.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 2a266e2fa3f..dc4bbd0ba83 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1439,6 +1439,32 @@ algorithm.") "This package provides primitives for generating random values.") (license license:expat))) +(define-public go-github-com-pjbgf-sha1cd + (package + (name "go-github-com-pjbgf-sha1cd") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pjbgf/sha1cd") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1g07kp07kvbsmpdrrv0r805vw4rr1mp77vx06m31nxvnp1s42zwi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pjbgf/sha1cd")) + (home-page "https://github.com/pjbgf/sha1cd") + (synopsis "sha1cd") + (description + "Package sha1cd implements collision detection based on the whitepaper +Counter-cryptanalysis from Marc Stevens. The original ubc implementation was +done by Marc Stevens and Dan Shumow, and can be found at: +@@url{https://github.com/cr-marcstevens/sha1collisiondetection,https://github.com/cr-marcstevens/sha1collisiondetection}.") + (license license:asl2.0))) + (define-public go-github-com-protonmail-go-crypto (package (name "go-github-com-protonmail-go-crypto") From f49382b19a0cf7ef730ee13047a9aba2671508c6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:39 +0000 Subject: [PATCH 295/862] gnu: Add go-github-com-gliderlabs-ssh. * gnu/packages/golang-crypto.scm (go-github-com-gliderlabs-ssh): New variable. Change-Id: Ibdfd4b6a0c7810ec52f6502b175325eae0292a0e --- gnu/packages/golang-crypto.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index dc4bbd0ba83..af160d91d97 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -815,6 +815,34 @@ providing bidirectional mapping values to their names, plus enum convenience for values.") (license license:bsd-3))) +(define-public go-github-com-gliderlabs-ssh + (package + (name "go-github-com-gliderlabs-ssh") + (version "0.3.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gliderlabs/ssh") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01svn6n2i7gb3j4wvjh3d7xyh3n0kxm5cda2kg9vgpl1l3bbsvqm")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gliderlabs/ssh")) + (propagated-inputs + (list go-github-com-anmitsu-go-shlex + go-golang-org-x-crypto)) + (home-page "https://github.com/gliderlabs/ssh") + (synopsis "SSH servers in Golang") + (description + "Package ssh wraps the crypto/ssh package with a higher-level API for +building SSH servers. The goal of the API was to make it as simple as using +net/http, so the API is very similar.") + (license license:bsd-3))) + (define-public go-github-com-go-asn1-ber-asn1-ber (package (name "go-github-com-go-asn1-ber-asn1-ber") From 74a939a394401c12a4019d8c2dc304497ccb4b43 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:40 +0000 Subject: [PATCH 296/862] gnu: Add go-rsc-io-pdf. * gnu/packages/golang-build.scm (go-rsc-io-pdf): New variable. Change-Id: I518233cc328f37632462b452f27e7c109ddbbf1f --- gnu/packages/golang-build.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 950138f9e0d..39949da8500 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -1184,6 +1184,29 @@ data. It is a successor to @code{go-github-com-golang-protobuf} with an improved and cleaner API.") (license license:bsd-3))) +(define-public go-rsc-io-pdf + (package + (name "go-rsc-io-pdf") + (version "0.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rsc/pdf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01qjjwa8nn5a2jzd360xqg5zc8s0i2fpwcn2w2g6y2jgn9wl8x84")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f + #:import-path "rsc.io/pdf")) + (home-page "https://rsc.io/pdf") + (synopsis "PDF reader for Golang") + (description "Package pdf implements reading of PDF files.") + (license license:bsd-3))) + ;;; ;;; Executables: ;;; From 616afc35a73c06a61e72969fae6c00c6f7a0488d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:40 +0000 Subject: [PATCH 297/862] gnu: Add go-golang-org-x-arch. * gnu/packages/golang-build.scm (go-golang-org-x-arch): New variable. Change-Id: Id0ec567e5ebfdea208fefe133a13e906e17949cf --- gnu/packages/golang-build.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 39949da8500..4586d8e4386 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -393,6 +393,40 @@ primitives in Go.") @url{http://github.com/yuin/goldmark,goldmark}.") (license license:expat))) +(define-public go-golang-org-x-arch + (package + (name "go-golang-org-x-arch") + (version "0.12.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/arch") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "104mnfx3v6lwjndjd35ly8r6yb4bb74lq5sq1cqpxw38mqyzqmx2")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "golang.org/x/arch" + #:test-subdirs #~(list "arm/..." + "arm64/..." + "loong64/..." + "ppc64/..." + ;; "riscv64/..."; failed to build tests + "s390x/..." + "x86/..."))) + (native-inputs + (list go-rsc-io-pdf)) + (home-page "https://go.googlesource.com/arch") + (synopsis "Machine architecture information used by the Go toolchain") + (description + "This package provides a machine architecture information used by the Go +toolchain. The parts needed in the main Go repository are copied in.") + (license license:bsd-3))) + (define-public go-golang-org-x-crypto (package (name "go-golang-org-x-crypto") From 9079175f05d708fd0fe17fef525bd62dc7e60c4c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:40 +0000 Subject: [PATCH 298/862] gnu: Add go-github-com-mmcloughlin-avo. * gnu/packages/golang-build.scm (go-github-com-mmcloughlin-avo): New variable. Change-Id: I8ebdd952a7dbcf18f151017dedd0261e69e212ae --- gnu/packages/golang-build.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 4586d8e4386..61e87d39030 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -305,6 +305,34 @@ replace a file or symbolic link.") 1.1: Authentication and Security Services.") (license license:bsd-3))) +(define-public go-github-com-mmcloughlin-avo + (package + (name "go-github-com-mmcloughlin-avo") + (version "0.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mmcloughlin/avo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lv771lb9nxaxqiz7l83k35rc82588xihixxrik6yapg13v675mp")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mmcloughlin/avo")) + (propagated-inputs + (list go-golang-org-x-arch + go-golang-org-x-sys + go-golang-org-x-tools)) + (home-page "https://github.com/mmcloughlin/avo") + (synopsis "Generate x86 Assembly with Go") + (description + "The avo package presents a familiar assembly-like interface that +simplifies development without sacrificing performance.") + (license license:bsd-3))) + ;; XXX: This repository has been archived by the owner on Dec 1, 2021. It is ;; now read-only. (define-public go-github-com-pkg-errors From 795df3416677e62a52aed89d8798362e7dae3251 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 01:15:40 +0000 Subject: [PATCH 299/862] gnu: go-github-com-go-git-go-git-v5: Update to 5.12.0. * gnu/packages/version-control.scm (go-github-com-go-git-go-git-v5): Update to 5.12.0. [propagated-inputs]: Remove go-github-com-alcortesm-tgz, go-github-com-imdario-mergo, go-github-com-mitchellh-go-homedir, go-gopkg-in-check-v1, and go-gopkg-in-warnings-v0; add go-dario-cat-mergo, go-github-com-armon-go-socks5, go-github-com-elazarl-goproxy, go-github-com-gliderlabs-ssh, go-github-com-golang-groupcache, go-github-com-google-go-cmp, go-github-com-pjbgf-sha1cd, go-github-com-protonmail-go-crypto, go-github-com-skeema-knownhosts, and go-golang-org-x-sys. [native-inputs]: Remove git; add git-minimal/pinned, go-github-com-stretchr-testify, and go-gopkg-in-check-v1. Change-Id: Ifd3a6ac46a2cee8008e4b19acb9fc5adaaa6f2b7 --- gnu/packages/version-control.scm | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 304406e7bec..8b0e7884fcf 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -4181,7 +4181,7 @@ defects faster.") (define-public go-github-com-go-git-go-git-v5 (package (name "go-github-com-go-git-go-git-v5") - (version "5.1.0") + (version "5.12.0") (source (origin (method git-fetch) (uri (git-reference @@ -4190,7 +4190,7 @@ defects faster.") (file-name (git-file-name name version)) (sha256 (base32 - "1vkcmhh2qq8c38sjbnzf0wvg2rzr19wssaq177bsvrjwj1xz1qbs")))) + "1zp7d4ncgrvr420hs6nf5p66s9015y61fb4krkz4y0sl802fzj7a")))) (build-system go-build-system) (arguments (list @@ -4200,7 +4200,7 @@ defects faster.") #~(modify-phases %standard-phases (add-before 'build 'setup (lambda* (#:key inputs #:allow-other-keys) - (let* ((git #$(this-package-native-input "git")) + (let* ((git #$(this-package-native-input "git-minimal")) (git-bin (string-append git "/bin")) (git-exe (string-append git-bin "/git"))) (setenv "GIT_DIST_PATH=" git) @@ -4208,24 +4208,32 @@ defects faster.") (setenv "HOME" (getcwd)) (invoke git-exe "config" "--global" "user.email" "gha@example.com") (invoke git-exe "config" "--global" "user.name" "GitHub Actions"))))))) + (native-inputs + (list git-minimal/pinned + go-github-com-stretchr-testify + go-gopkg-in-check-v1)) (propagated-inputs - (list go-github-com-alcortesm-tgz + (list go-dario-cat-mergo + go-github-com-armon-go-socks5 + go-github-com-elazarl-goproxy go-github-com-emirpasic-gods + go-github-com-gliderlabs-ssh go-github-com-go-git-gcfg go-github-com-go-git-go-billy-v5 go-github-com-go-git-go-git-fixtures-v4 - go-github-com-imdario-mergo + go-github-com-golang-groupcache + go-github-com-google-go-cmp go-github-com-jbenet-go-context go-github-com-kevinburke-ssh-config - go-github-com-mitchellh-go-homedir + go-github-com-pjbgf-sha1cd + go-github-com-protonmail-go-crypto go-github-com-sergi-go-diff + go-github-com-skeema-knownhosts go-github-com-xanzy-ssh-agent go-golang-org-x-crypto go-golang-org-x-net - go-golang-org-x-text - go-gopkg-in-check-v1 - go-gopkg-in-warnings-v0)) - (native-inputs (list git)) + go-golang-org-x-sys + go-golang-org-x-text)) (home-page "https://github.com/go-git/") (synopsis "Git implementation library") (description "This package provides a Git implementation library.") From 088bdaed4c1904ca0274a563525e160cbf4a2a29 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 13:24:04 +0000 Subject: [PATCH 300/862] gnu: go-github-com-pion-transport-v2: Fix import paths. * gnu/packages/golang-web.scm (go-github-com-pion-transport-v2): [arguments] : Add 'fix-module-paths, they were not adjusted in source when v2 was released. Change-Id: Ie28bcc3921bbe76e3721340af76a3dad6b8c53e3 --- gnu/packages/golang-web.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index fb1778aa466..d1f38a40683 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5240,7 +5240,14 @@ throughout the @url{https://github.com/pion, Pion} modules.") (base32 "0g5pg6mz61blprccxzysbwldkil84qgwp6404lsp4m9wh44312hf")))) (arguments (list - #:import-path "github.com/pion/transport/v2")) + #:import-path "github.com/pion/transport/v2" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-module-paths + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* (find-files "." "\\.go$") + (("github.com/pion/transport/v3") import-path)))))))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs From 844056347e3edbe6fe3cf137f0d6b9572c03f13a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 13:46:16 +0000 Subject: [PATCH 301/862] gnu: go-github-com-hanwen-fuse: Move to golang-xyz. * gnu/packages/file-systems.scm (go-github-com-hanwen-fuse): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I8f8fccc89e1c930d7085fe61f4c962cb1f2c128c --- gnu/packages/file-systems.scm | 25 ------------------------- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index b707a94f253..4ae13c4a954 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -1966,31 +1966,6 @@ Dropbox API v2.") local file system using FUSE.") (license license:gpl3+))) -(define-public go-github-com-hanwen-fuse - (package - (name "go-github-com-hanwen-fuse") - (version "2.0.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/hanwen/go-fuse") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1y44d08fxyis99s6jxdr6dbbw5kv3wb8lkhq3xmr886i4w41lz03")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/hanwen/go-fuse")) - (propagated-inputs - (list go-golang-org-x-sys)) - (home-page "https://github.com/hanwen/go-fuse") - (synopsis "FUSE bindings for Go") - (description - "This package provides Go native bindings for the FUSE kernel module.") - (license license:bsd-3))) - (define-public rewritefs (let ((revision "1") (commit "3a56de8b5a2d44968b8bc3885c7d661d46367306")) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8047edae4b8..1849db690a2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4560,6 +4560,31 @@ underneath and returns only matching files or direcories, depending on the configuration.") (license license:expat))) +(define-public go-github-com-hanwen-fuse + (package + (name "go-github-com-hanwen-fuse") + (version "2.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hanwen/go-fuse") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1y44d08fxyis99s6jxdr6dbbw5kv3wb8lkhq3xmr886i4w41lz03")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/hanwen/go-fuse")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/hanwen/go-fuse") + (synopsis "FUSE bindings for Go") + (description + "This package provides Go native bindings for the FUSE kernel module.") + (license license:bsd-3))) + (define-public go-github-com-hanwen-go-fuse-v2 (package (name "go-github-com-hanwen-go-fuse-v2") From 7828d9b7253130ad0514ac5cbc0bf885d41b976b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 13:51:05 +0000 Subject: [PATCH 302/862] gnu: go-github-com-hanwen-fuse: Rename variable. * gnu/packages/golang-xyz.scm (go-github-com-hanwen-fuse): Rename variable to go-github-com-hanwen-go-fuse to reflect go.mod import path. * gnu/packages/file-systems.scm (tmsu) [inputs]: Remove go-github-com-hanwen-fuse, add go-github-com-hanwen-go-fuse. Change-Id: Ia370647a5e345eae76ef648134074a2b994dae83 --- gnu/packages/file-systems.scm | 2 +- gnu/packages/golang-xyz.scm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 4ae13c4a954..22dcb4d9b0f 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -2127,7 +2127,7 @@ memory-efficient.") (setenv "DESTDIR" #$output) (invoke "make" "install"))))))) (inputs - (list go-github-com-mattn-go-sqlite3 go-github-com-hanwen-fuse)) + (list go-github-com-mattn-go-sqlite3 go-github-com-hanwen-go-fuse)) (home-page "https://github.com/oniony/TMSU") (synopsis "Tag files and access them through a virtual file system") (description diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1849db690a2..37acbc01748 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4560,9 +4560,9 @@ underneath and returns only matching files or direcories, depending on the configuration.") (license license:expat))) -(define-public go-github-com-hanwen-fuse +(define-public go-github-com-hanwen-go-fuse (package - (name "go-github-com-hanwen-fuse") + (name "go-github-com-hanwen-go-fuse") (version "2.0.3") (source (origin From 2d50f4ce5f31e2a1fe41aabd30d5d2296c0af97f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 13:55:23 +0000 Subject: [PATCH 303/862] gnu: go-github-com-hanwen-go-fuse: Adjust inheritance. go-github-com-hanwen-go-fuse needs to be downgraded to 1.0.0 to reflect go.mode import path and go-github-com-hanwen-go-fuse-v2 can be inherited from it with appropriated phase adjustments. This change implements the logic. * gnu/packages/golang-xyz.scm (go-github-com-hanwen-go-fuse): [version]: Downgrade to 1.0.0, to reflect go.mod import path, it's the latest version for this variant. [arguments] : ... : Move from go-github-com-hanwen-go-fuse-v2 to here. : Add 'remove-example. [synopsis]: Move from go-github-com-hanwen-go-fuse-v2 to here. [description]: Move from go-github-com-hanwen-go-fuse-v2 to here. (go-github-com-hanwen-go-fuse-v2): Inherit from go-github-com-hanwen-go-fuse. [arguments] : Move to go-github-com-hanwen-go-fuse. : Remove 'remove-examples-and-benchmarks, add 'remove-benchmark. [synopsis]: Move to go-github-com-hanwen-go-fuse. [description]: Move to go-github-com-hanwen-go-fuse. Change-Id: Idffefad61363b9eb0be2ad0b5dc2dc873814f36d --- gnu/packages/golang-xyz.scm | 47 ++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 37acbc01748..78d077be4f0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4563,7 +4563,7 @@ configuration.") (define-public go-github-com-hanwen-go-fuse (package (name "go-github-com-hanwen-go-fuse") - (version "2.0.3") + (version "1.0.0") (source (origin (method git-fetch) @@ -4572,21 +4572,32 @@ configuration.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "1y44d08fxyis99s6jxdr6dbbw5kv3wb8lkhq3xmr886i4w41lz03")))) + (base32 "04xa8mh34639lv1b2p8dx13x742j5i493i3sk89hd3jfskzvval1")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/hanwen/go-fuse")) + (list + #:skip-build? #t + #:import-path "github.com/hanwen/go-fuse" + ;; Most of the tests require "/bin/fusermount" to be available which + ;; is missed during packaging, limit to some unit tests only. + #:test-subdirs #~(list "internal/..." "splice") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-example + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "example"))))))) (propagated-inputs (list go-golang-org-x-sys)) (home-page "https://github.com/hanwen/go-fuse") - (synopsis "FUSE bindings for Go") + (synopsis "Go bindings for FUSE filesystems") (description - "This package provides Go native bindings for the FUSE kernel module.") + "This is a repository containing Go bindings for writing FUSE file systems.") (license license:bsd-3))) (define-public go-github-com-hanwen-go-fuse-v2 (package + (inherit go-github-com-hanwen-go-fuse) (name "go-github-com-hanwen-go-fuse-v2") (version "2.7.2") (source @@ -4600,28 +4611,20 @@ configuration.") (base32 "1fcf94chf9ffgjk0wcpnlz0kfb69m2fwzfn4k348kal75x178aar")))) (build-system go-build-system) (arguments - (list - #:import-path "github.com/hanwen/go-fuse/v2" - ;; Most of the tests require "/bin/fusermount" to be available which - ;; is missed during packaging, limit to some unit tests only. - #:test-subdirs #~(list "internal/..." "splice") - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'remove-examples-and-benchmarks + (substitute-keyword-arguments + (package-arguments go-github-com-hanwen-go-fuse) + ((#:import-path _) "github.com/hanwen/go-fuse/v2") + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'remove-benchmark (lambda* (#:key tests? import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) - (delete-file-recursively "example") - (delete-file-recursively "benchmark"))))))) + (delete-file-recursively "benchmark")))))))) (propagated-inputs (list go-github-com-kylelemons-godebug go-github-com-moby-sys-mountinfo go-golang-org-x-sync - go-golang-org-x-sys)) - (home-page "https://github.com/hanwen/go-fuse") - (synopsis "Go bindings for FUSE filesystems") - (description - "This is a repository containing Go bindings for writing FUSE file systems.") - (license license:bsd-3))) + go-golang-org-x-sys)))) (define-public go-github-com-hashicorp-errwrap (package From ff1aca6e1db9cd1fd4bdbd546276b6ed23064ef1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 15:35:51 +0000 Subject: [PATCH 304/862] gnu: go-go-opentelemetry-io-otel-sdk: Fix build. * gnu/packages/golang-web.scm (go-go-opentelemetry-io-otel-sdk): [source] : Delete 2 more submodule with their own go.mod and would be packed individually. Change-Id: Ie48091c0f7f95b2bf1891d9de423842866e2723a --- gnu/packages/golang-web.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index d1f38a40683..312251ed7d2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6802,7 +6802,9 @@ go.opentelemetry.io/otel/trace.") (delete-file-recursively item) (delete-file item))) items)))) - (delete-all-but "." "sdk"))))) + (delete-all-but "." "sdk") + (delete-file-recursively "sdk/log") + (delete-file-recursively "sdk/metric"))))) (build-system go-build-system) (arguments (list From 18de77b86499defae56024b4c8a3e1507a4c164c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:04:00 +0000 Subject: [PATCH 305/862] gnu: go-go-opentelemetry-io-otel-sdk: Update to 1.33.0. * gnu/packages/golang-web.scm (go-go-opentelemetry-io-otel-sdk): Update to 1.33.0. Change-Id: Ia426a309f2270d12768eb58c2f04691c4080b20d --- gnu/packages/golang-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 312251ed7d2..592006995ae 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6771,7 +6771,7 @@ go.opentelemetry.io/otel/trace.") (define-public go-go-opentelemetry-io-otel-sdk (package (name "go-go-opentelemetry-io-otel-sdk") - (version "1.30.0") + (version "1.33.0") (source (origin (method git-fetch) @@ -6780,7 +6780,7 @@ go.opentelemetry.io/otel/trace.") (commit (go-version->git-ref version #:subdir "sdk")))) (file-name (git-file-name name version)) (sha256 - (base32 "0mpkwz2ryah5j2fb835pdw9084nwhr6fj3jig2mnvwwnsymp2bvy")) + (base32 "0sb36qyq389fif9qp5iiqp6w41dfcwi95gb0bsbvznvijhd8c1cc")) (modules '((guix build utils) (ice-9 ftw) (srfi srfi-26))) From 655fa2d4ae7af866f57052baded27521acb61b2d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 14:59:53 +0000 Subject: [PATCH 306/862] gnu: Add go-go-opentelemetry-io-otel-log. * gnu/packages/golang-web.scm (go-go-opentelemetry-io-otel-log): New variable. Change-Id: If0e230231c7f538dc8e31e26642f6515704c88d0 --- gnu/packages/golang-web.scm | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 592006995ae..e12b75d63b2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6768,6 +6768,61 @@ go.opentelemetry.io/otel, go.opentelemetry.io/otel/metric and go.opentelemetry.io/otel/trace.") (license license:asl2.0))) +(define-public go-go-opentelemetry-io-otel-log + (package + (name "go-go-opentelemetry-io-otel-log") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go") + (commit (go-version->git-ref version + #:subdir "log")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sb36qyq389fif9qp5iiqp6w41dfcwi95gb0bsbvznvijhd8c1cc")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-26))) + (snippet + #~(begin + ;; XXX: 'delete-all-but' is copied from the turbovnc package. + ;; Consider to implement it as re-usable procedure in + ;; guix/build/utils or guix/build-system/go. + (define (delete-all-but directory . preserve) + (define (directory? x) + (and=> (stat x #f) + (compose (cut eq? 'directory <>) stat:type))) + (with-directory-excursion directory + (let* ((pred + (negate (cut member <> (append '("." "..") preserve)))) + (items (scandir "." pred))) + (for-each (lambda (item) + (if (directory? item) + (delete-file-recursively item) + (delete-file item))) + items)))) + (delete-all-but "." "log"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/otel/log" + #:unpack-path "go.opentelemetry.io/otel")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-go-logr-logr + go-go-opentelemetry-io-otel)) + (home-page "https://go.opentelemetry.io/otel") + (synopsis "OpenTelemetry Logs API") + (description + "This package is intended to be used by bridges between existing logging +libraries and OpenTelemetry. Users should not directly use this package as a +logging library. Instead, install one of the bridges listed in the +[registry], and use the associated logging library.") + (license license:asl2.0))) + (define-public go-go-opentelemetry-io-otel-sdk (package (name "go-go-opentelemetry-io-otel-sdk") From 9593febbfcb411687243648fee205b3243f48e35 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:03:48 +0000 Subject: [PATCH 307/862] gnu: Add go-go-opentelemetry-io-otel-sdk-log. * gnu/packages/golang-web.scm (go-go-opentelemetry-io-otel-sdk-log): New variable. Change-Id: Id41e47f0e413ca9008a5593032b3ae9e8d7b4c5e --- gnu/packages/golang-web.scm | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e12b75d63b2..5142a824442 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6879,6 +6879,61 @@ logging library. Instead, install one of the bridges listed in the "This package provides OpenTelemetry Otel SDK.") (license license:asl2.0))) +(define-public go-go-opentelemetry-io-otel-sdk-log + (package + (name "go-go-opentelemetry-io-otel-sdk-log") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go") + (commit (go-version->git-ref version + #:subdir "sdk/log")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sb36qyq389fif9qp5iiqp6w41dfcwi95gb0bsbvznvijhd8c1cc")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-26))) + (snippet + #~(begin + ;; XXX: 'delete-all-but' is copied from the turbovnc package. + ;; Consider to implement it as re-usable procedure in + ;; guix/build/utils or guix/build-system/go. + (define (delete-all-but directory . preserve) + (define (directory? x) + (and=> (stat x #f) + (compose (cut eq? 'directory <>) stat:type))) + (with-directory-excursion directory + (let* ((pred + (negate (cut member <> (append '("." "..") preserve)))) + (items (scandir "." pred))) + (for-each (lambda (item) + (if (directory? item) + (delete-file-recursively item) + (delete-file item))) + items)))) + (delete-all-but "sdk" "log") + (delete-all-but "." "sdk"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/otel/sdk/log" + #:unpack-path "go.opentelemetry.io/otel")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-go-logr-logr + go-github-com-go-logr-stdr + go-github-com-google-go-cmp + go-go-opentelemetry-io-otel-log + go-go-opentelemetry-io-otel-sdk)) + (home-page "https://go.opentelemetry.io/otel") + (synopsis "OpenTelemetry Log SDK library") + (description "Package log provides the @code{OpenTelemetry} Logs SDK.") + (license license:asl2.0))) + (define-public go-golang-org-x-oauth2 (package (name "go-golang-org-x-oauth2") From 49cd3234e12127153eadfbd72e7d1d2054a1cb46 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:12:24 +0000 Subject: [PATCH 308/862] gnu: Add go-go-opentelemetry-io-otel-sdk-metric. * gnu/packages/golang-web.scm (go-go-opentelemetry-io-otel-sdk-metric): New variable. Change-Id: I80123fa1a60356a958e4d50bfcb78e45f7e7296f --- gnu/packages/golang-web.scm | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 5142a824442..80bbae6fa44 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6934,6 +6934,68 @@ logging library. Instead, install one of the bridges listed in the (description "Package log provides the @code{OpenTelemetry} Logs SDK.") (license license:asl2.0))) +(define-public go-go-opentelemetry-io-otel-sdk-metric + (package + (name "go-go-opentelemetry-io-otel-sdk-metric") + (version "1.33.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go") + (commit (go-version->git-ref version + #:subdir "sdk/metric")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sb36qyq389fif9qp5iiqp6w41dfcwi95gb0bsbvznvijhd8c1cc")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-26))) + (snippet + #~(begin + ;; XXX: 'delete-all-but' is copied from the turbovnc package. + ;; Consider to implement it as re-usable procedure in + ;; guix/build/utils or guix/build-system/go. + (define (delete-all-but directory . preserve) + (define (directory? x) + (and=> (stat x #f) + (compose (cut eq? 'directory <>) stat:type))) + (with-directory-excursion directory + (let* ((pred + (negate (cut member <> (append '("." "..") preserve)))) + (items (scandir "." pred))) + (for-each (lambda (item) + (if (directory? item) + (delete-file-recursively item) + (delete-file item))) + items)))) + (delete-all-but "sdk" "metric") + (delete-all-but "." "sdk"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/otel/sdk/metric" + #:unpack-path "go.opentelemetry.io/otel" + #:test-flags + #~(list "-skip" (string-join + (list "TestGlobalInstRegisterCallback" + "TestMeterProviderDelegation") + "|")))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-go-logr-logr + go-github-com-go-logr-stdr + go-github-com-google-go-cmp + go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel-sdk)) + (home-page "https://go.opentelemetry.io/otel") + (synopsis "OpenTelemetry Metric SDK library") + (description + "Package metric provides an implementation of the @code{OpenTelemetry} +metrics SDK.") + (license license:asl2.0))) + (define-public go-golang-org-x-oauth2 (package (name "go-golang-org-x-oauth2") From 6ff5590fb7dfe91823be6f0959368ac0e9e1869a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:15:38 +0000 Subject: [PATCH 309/862] gnu: go-pprof: Disable tests, fix build. * gnu/packages/golang-check.scm (go-pprof): Disable tests. Change-Id: I2543b0c9b0e56adec33f86710d070ec6b0efcd98 --- gnu/packages/golang-check.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 9d2bf38a740..32f5b8a8123 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -2147,6 +2147,7 @@ without needing to use a tool like Wireshark."))) (name "go-pprof") (arguments (list + #:tests? #f #:install-source? #f #:import-path "github.com/google/pprof")) (description From 68588c767eeba2ca68f7bbdc4b4770eea21c88d9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:23:28 +0000 Subject: [PATCH 310/862] gnu: Add go-github-com-hebcal-greg. * gnu/packages/golang-xyz.scm (go-github-com-hebcal-greg): New variable. Change-Id: I96dd53035c555e29347ba31000f463b09acb2156 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 78d077be4f0..fc724d889cd 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4996,6 +4996,31 @@ expressing configuration which is easy for both humans and machines to read.") (home-page "https://github.com/hashicorp/hcl") (license license:mpl2.0))) +(define-public go-github-com-hebcal-greg + (package + (name "go-github-com-hebcal-greg") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hebcal/greg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cf53ay6sj0m635k9p3f64iw03asx81aqmyrk102lzmhg838mq1a")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hebcal/greg")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/hebcal/greg") + (synopsis "Converts between Gregorian dates and Rata Die day numbers") + (description + "Hebcal's greg package converts between Gregorian dates and R.D. (Rata +Die) day numbers.") + (license license:gpl2))) + (define-public go-github-com-hhrutter-tiff (package (name "go-github-com-hhrutter-tiff") From cb26bb6d7529e5e527c9c990e07016029eccbb6f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:25:28 +0000 Subject: [PATCH 311/862] gnu: Add go-github-com-hebcal-hdate. * gnu/packages/golang-xyz.scm (go-github-com-hebcal-hdate): New variable. Change-Id: Ib259acda2c53e4efab5325f4b560ff3275c35dca --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index fc724d889cd..5d586aa1607 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5021,6 +5021,31 @@ expressing configuration which is easy for both humans and machines to read.") Die) day numbers.") (license license:gpl2))) +(define-public go-github-com-hebcal-hdate + (package + (name "go-github-com-hebcal-hdate") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hebcal/hdate") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0i3r3ng9ygd7ly59znw948im4z4sbp23jqj3hhgxabwhh6b8mdmf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hebcal/hdate")) + (native-inputs (list go-github-com-stretchr-testify)) + (propagated-inputs (list go-github-com-hebcal-greg)) + (home-page "https://github.com/hebcal/hdate") + (synopsis "Converts between Hebrew and Gregorian dates") + (description + "Hebcal's hdate package converts between Hebrew and Gregorian dates.") + (license license:gpl2))) + (define-public go-github-com-hhrutter-tiff (package (name "go-github-com-hhrutter-tiff") From f5d3fd731a792ef1f31e6fc2a6b999cfe13252cc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:23:29 +0000 Subject: [PATCH 312/862] gnu: go-github-com-hebcal-hebcal-go: Update to 0.9.31. * gnu/packages/golang.scm (go-github-com-hebcal-hebcal-go): Update to 0.9.31. [propagated-inputs]: Add go-github-com-dustin-go-humanize, go-github-com-hebcal-greg, and go-github-com-hebcal-hdate. Change-Id: I90d111caefae7e3b4fae492d7405d490586c2cd6 --- gnu/packages/golang.scm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index fdce0bc7a04..057a399e292 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2608,21 +2608,19 @@ Hebrew letters.") (license license:bsd-2)))) (define-public go-github-com-hebcal-hebcal-go - (let ((commit "d42e881860cfc9e8249fc79f268091c3c4d36b0d") - (revision "0")) (package (name "go-github-com-hebcal-hebcal-go") - (version (git-version "0.9.11" revision commit)) + (version "0.9.31") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hebcal/hebcal-go") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "1m9akb8pwxchpaci05gambshrzw626gsrfhl25f36vjl7mq5292n")))) + "1vccmjb4g8g8x733a45g78lz25k2a0avsq4zvlp94varssk8wj1q")))) (build-system go-build-system) (arguments (list #:import-path "github.com/hebcal/hebcal-go" @@ -2635,7 +2633,10 @@ Hebrew letters.") (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs - (list go-github-com-hebcal-gematriya + (list go-github-com-dustin-go-humanize + go-github-com-hebcal-gematriya + go-github-com-hebcal-greg + go-github-com-hebcal-hdate go-github-com-nathan-osman-go-sunrise)) (home-page "https://github.com/hebcal/hebcal-go") (synopsis "Go library for the Hebcal perpetual Jewish calendar") @@ -2648,7 +2649,7 @@ are approximated based on location. Torah readings, Daf Yomi, and counting of the Omer can also be specified. Algorithms are included to calculate yahrzeits, birthdays, and anniversaries.") - (license license:gpl2+)))) + (license license:gpl2+))) (define-public go-gopkg.in-tomb.v2 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c") From 39dfe893a3cc495ffd116d7a251c37006d4deb64 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:31:15 +0000 Subject: [PATCH 313/862] gnu: go-github-com-hebcal-hebcal-go: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-hebcal-hebcal-go): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/calendar.scm: Add golang-xyz. Change-Id: I8e5c5dce15e12e0ce38004be79d7bfe75ad9d2ab --- gnu/packages/calendar.scm | 1 + gnu/packages/golang-xyz.scm | 43 ++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 44 ------------------------------------- 3 files changed, 44 insertions(+), 44 deletions(-) diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index 6717db867f2..e2e828b3d09 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -50,6 +50,7 @@ #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages gtk) #:use-module (gnu packages icu4c) #:use-module (gnu packages perl) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5d586aa1607..64519dee7f9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5046,6 +5046,49 @@ Die) day numbers.") "Hebcal's hdate package converts between Hebrew and Gregorian dates.") (license license:gpl2))) +(define-public go-github-com-hebcal-hebcal-go + (package + (name "go-github-com-hebcal-hebcal-go") + (version "0.9.31") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hebcal/hebcal-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vccmjb4g8g8x733a45g78lz25k2a0avsq4zvlp94varssk8wj1q")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/hebcal/hebcal-go" + ;; Source-only package + #:tests? #f + #:phases + #~(modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-dustin-go-humanize + go-github-com-hebcal-gematriya + go-github-com-hebcal-greg + go-github-com-hebcal-hdate + go-github-com-nathan-osman-go-sunrise)) + (home-page "https://github.com/hebcal/hebcal-go") + (synopsis "Go library for the Hebcal perpetual Jewish calendar") + (description + "This package provides a library for conversion between Hebrew and +Gregorian dates, and generation of lists of Jewish holidays for a given year. +Shabbat and holiday candle lighting and havdalah times are approximated based +on location. + +Torah readings, Daf Yomi, and counting of the Omer can also be specified. +Algorithms are included to calculate yahrzeits, birthdays, and +anniversaries.") + (license license:gpl2+))) + (define-public go-github-com-hhrutter-tiff (package (name "go-github-com-hhrutter-tiff") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 057a399e292..f7cd32030b1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2607,50 +2607,6 @@ sunset times from geographical coordinates and a date.") Hebrew letters.") (license license:bsd-2)))) -(define-public go-github-com-hebcal-hebcal-go - (package - (name "go-github-com-hebcal-hebcal-go") - (version "0.9.31") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/hebcal/hebcal-go") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1vccmjb4g8g8x733a45g78lz25k2a0avsq4zvlp94varssk8wj1q")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/hebcal/hebcal-go" - ;; Source-only package - #:tests? #f - #:phases - #~(modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) - (native-inputs - (list go-github-com-stretchr-testify)) - (propagated-inputs - (list go-github-com-dustin-go-humanize - go-github-com-hebcal-gematriya - go-github-com-hebcal-greg - go-github-com-hebcal-hdate - go-github-com-nathan-osman-go-sunrise)) - (home-page "https://github.com/hebcal/hebcal-go") - (synopsis "Go library for the Hebcal perpetual Jewish calendar") - (description - "This package provides a library for conversion between Hebrew -and Gregorian dates, and generation of lists of Jewish holidays for -a given year. Shabbat and holiday candle lighting and havdalah times -are approximated based on location. - -Torah readings, Daf Yomi, and counting of the Omer can also be -specified. Algorithms are included to calculate yahrzeits, birthdays, -and anniversaries.") - (license license:gpl2+))) - (define-public go-gopkg.in-tomb.v2 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c") (revision "0")) From 172323d41e77dc9968707914ebdd0ed9864637aa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:40:58 +0000 Subject: [PATCH 314/862] gnu: go-github-com-hebcal-hebcal-go: Enable tests. * gnu/packages/golang-xyz.scm (go-github-com-hebcal-hebcal-go): Enable tests. Change-Id: I1e3fa460d13169985129b491fc007b10686709f3 --- gnu/packages/golang-xyz.scm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 64519dee7f9..feb0c6e07b8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5061,13 +5061,9 @@ Die) day numbers.") (base32 "1vccmjb4g8g8x733a45g78lz25k2a0avsq4zvlp94varssk8wj1q")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/hebcal/hebcal-go" - ;; Source-only package - #:tests? #f - #:phases - #~(modify-phases %standard-phases - ;; Source-only package - (delete 'build)))) + (list + #:skip-build? #t + #:import-path "github.com/hebcal/hebcal-go")) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs From 4e422224c8ddd977cc6d78cf729569a6c4a6be26 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 19:46:28 +0000 Subject: [PATCH 315/862] gnu: go-github-com-pborman-getopt: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-pborman-getopt): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Iea88fdc069231f5520a12721a322c38a21230287 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index feb0c6e07b8..4d409fbf317 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8340,6 +8340,30 @@ memory accessible to the kernel. It does not account for memory used by other processes.") (license license:bsd-3)))) +(define-public go-github-com-pborman-getopt + (package + (name "go-github-com-pborman-getopt") + (version "2.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pborman/getopt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sacv6g8cxfibxd3gnfjnzp7fynrnc4s2aaz5wbxivqqhvflc22l")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pborman/getopt")) + (home-page "https://github.com/pborman/getopt") + (synopsis "Getopt style option parsing for Go") + (description + "This package provides traditional getopt processing for implementing +programs that use traditional command lines.") + (license license:bsd-3))) + (define-public go-github-com-pelletier-go-toml (package (name "go-github-com-pelletier-go-toml") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f7cd32030b1..d1c610b77a3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5443,29 +5443,6 @@ sinks and sources.") or capture raw audio.") (license license:expat)))) -(define-public go-github-com-pborman-getopt - (package - (name "go-github-com-pborman-getopt") - (version "2.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/pborman/getopt") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0sacv6g8cxfibxd3gnfjnzp7fynrnc4s2aaz5wbxivqqhvflc22l")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/pborman/getopt")) - (home-page "https://github.com/pborman/getopt") - (synopsis "Getopt style option parsing for Go") - (description - "This package provides traditional getopt processing for implementing -programs that use traditional command lines.") - (license license:bsd-3))) - (define-public go-git-sr-ht-adnano-go-gemini (package (name "go-git-sr-ht-adnano-go-gemini") From 7c8c15f505f6b55153cb8b48ad3f28f567f1d5b1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:02:45 +0000 Subject: [PATCH 316/862] gnu: Add go-github-com-pborman-getopt-v2. * gnu/packages/golang-xyz.scm (go-github-com-pborman-getopt): Downgrade to 1.0.0 to reflect go.mod import path. [source] : Remove v2 dirrectory and package separatly. (go-github-com-pborman-getopt-v2): New variable. (go-ulid) [native-inputs] Remove go-github-com-pborman-getopt; add go-github-com-pborman-getopt-v2. * gnu/packages/calendar.scm (hebcal) [inputs]: Remove go-github-com-pborman-getopt; add go-github-com-pborman-getopt-v2. Change-Id: I62aaa277cfffdb11e39a77688778a26b4600dc56 --- gnu/packages/calendar.scm | 2 +- gnu/packages/golang-xyz.scm | 43 ++++++++++++++++++++++++++++++------- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index e2e828b3d09..9f97b207057 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -456,7 +456,7 @@ configured to show the current time in different timezones.") (list #:import-path "github.com/hebcal/hebcal")) (inputs (list go-github-com-hebcal-hebcal-go - go-github-com-pborman-getopt)) + go-github-com-pborman-getopt-v2)) (synopsis "Perpetual Jewish Calendar program") (description "Hebcal is a program for converting between Hebrew and Gregorian diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4d409fbf317..80ac940324a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8343,6 +8343,38 @@ processes.") (define-public go-github-com-pborman-getopt (package (name "go-github-com-pborman-getopt") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pborman/getopt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1sa66n392hzqbahn47grbjyaasvpklnn4s1wkzs1kdwrfdd62kfa")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/pborman/getopt/v2 + (delete-file-recursively "v2"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pborman/getopt")) + (home-page "https://github.com/pborman/getopt") + (synopsis "Getopt style option parsing for Go") + (description + "This package provides traditional getopt processing for implementing +programs that use traditional command lines.") + (license license:bsd-3))) + +(define-public go-github-com-pborman-getopt-v2 + (package + (inherit go-github-com-pborman-getopt) + (name "go-github-com-pborman-getopt-v2") (version "2.1.0") (source (origin @@ -8356,13 +8388,8 @@ processes.") (build-system go-build-system) (arguments (list - #:import-path "github.com/pborman/getopt")) - (home-page "https://github.com/pborman/getopt") - (synopsis "Getopt style option parsing for Go") - (description - "This package provides traditional getopt processing for implementing -programs that use traditional command lines.") - (license license:bsd-3))) + #:import-path "github.com/pborman/getopt/v2" + #:unpack-path "github.com/pborman/getopt")))) (define-public go-github-com-pelletier-go-toml (package @@ -11955,7 +11982,7 @@ tool.")))) #:import-path "github.com/oklog/ulid/v2/cmd/ulid" #:unpack-path "github.com/oklog/ulid/v2")) (native-inputs - (list go-github-com-pborman-getopt)) + (list go-github-com-pborman-getopt-v2)) (description (string-append (package-description go-github-com-oklog-ulid) " This package provides an command line interface (CLI) From 24da6bb4a7ff79927a2b36d37cd4024985f530c8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 16:40:58 +0000 Subject: [PATCH 317/862] gnu: hebcal: Update to 5.8.7. * gnu/packages/calendar.scm (hebcal): Update to 5.8.7. [inputs]: Remove go-github-com-pborman-getopt; add go-github-com-pborman-getopt-v2. Change-Id: I7105ce40d84610ba598fc3c95718354415d36109 --- gnu/packages/calendar.scm | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index 9f97b207057..32493b0336b 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -437,23 +437,33 @@ configured to show the current time in different timezones.") (license license:bsd-3)))) (define-public hebcal - (let ((commit "2384bb88dc1a41a4a5ae57a29fb58b2dd49a475d") - (revision "0")) (package (name "hebcal") - (version (git-version "5.3.0" revision commit)) + (version "5.8.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hebcal/hebcal") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "12rv3b51jb7wcjwmmizz9jkw7gh37yklys4xncvpzgxdkkfgmmjx")))) + "1a1b9jip1ha6bzv6xg9fx47q167yzgbxjvrp5zngv175nzl9427j")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/hebcal/hebcal")) + (list + #:install-source? #f + #:import-path "github.com/hebcal/hebcal" + #:phases + #~(modify-phases %standard-phases + ;; taken from Makefile + (add-after 'unpack 'set-defautl-city + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (with-output-to-file "dcity.go" + (lambda () + (format #t "package main~%var defaultCity = ~s~%" + "Paris"))))))))) (inputs (list go-github-com-hebcal-hebcal-go go-github-com-pborman-getopt-v2)) @@ -469,4 +479,4 @@ the daily leaf of Talmud. The program can help with counting of the Omer or with calculation of Hebrew yahrzeits, birthdays, or anniversaries.") (home-page "https://github.com/hebcal/hebcal") - (license license:gpl2+)))) + (license license:gpl2+))) From 6dd9a1ae130218b488f7209b7c4aea37b9e3b561 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:22:19 +0000 Subject: [PATCH 318/862] gnu: hebcal: Fix indentation. * gnu/packages/calendar.scm (hebcal): Fix indentation. Change-Id: If460d109e3906c5395be3848d48011ede767be4c --- gnu/packages/calendar.scm | 80 +++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index 32493b0336b..c4a1274ac3a 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -437,46 +437,44 @@ configured to show the current time in different timezones.") (license license:bsd-3)))) (define-public hebcal - (package - (name "hebcal") - (version "5.8.7") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/hebcal/hebcal") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1a1b9jip1ha6bzv6xg9fx47q167yzgbxjvrp5zngv175nzl9427j")))) - (build-system go-build-system) - (arguments - (list - #:install-source? #f - #:import-path "github.com/hebcal/hebcal" - #:phases - #~(modify-phases %standard-phases - ;; taken from Makefile - (add-after 'unpack 'set-defautl-city - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (with-output-to-file "dcity.go" - (lambda () - (format #t "package main~%var defaultCity = ~s~%" - "Paris"))))))))) - (inputs - (list go-github-com-hebcal-hebcal-go - go-github-com-pborman-getopt-v2)) - (synopsis "Perpetual Jewish Calendar program") - (description - "Hebcal is a program for converting between Hebrew and Gregorian -dates, and generating lists of Jewish holidays for a given year. -Shabbat, holiday candle lighting, and havdalah times are approximated -using your location. + (package + (name "hebcal") + (version "5.8.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hebcal/hebcal") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1a1b9jip1ha6bzv6xg9fx47q167yzgbxjvrp5zngv175nzl9427j")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/hebcal/hebcal" + #:phases + #~(modify-phases %standard-phases + ;; taken from Makefile + (add-after 'unpack 'set-defautl-city + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (with-output-to-file "dcity.go" + (lambda () + (format #t "package main~%var defaultCity = ~s~%" + "Paris"))))))))) + (inputs + (list go-github-com-hebcal-hebcal-go + go-github-com-pborman-getopt-v2)) + (home-page "https://github.com/hebcal/hebcal") + (synopsis "Perpetual Jewish Calendar program") + (description + "Hebcal is a program for converting between Hebrew and Gregorian dates, +and generating lists of Jewish holidays for a given year. Shabbat, holiday +candle lighting, and havdalah times are approximated using your location. -It can also show daily prayer times, the weekly Torah reading, and -the daily leaf of Talmud. The program can help with counting of the -Omer or with calculation of Hebrew yahrzeits, birthdays, or -anniversaries.") - (home-page "https://github.com/hebcal/hebcal") +It can also show daily prayer times, the weekly Torah reading, and the daily +leaf of Talmud. The program can help with counting of the Omer or with +calculation of Hebrew yahrzeits, birthdays, or anniversaries.") (license license:gpl2+))) From 1bea991448d938875ef2de67e0eec60872cc669a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:23:45 +0000 Subject: [PATCH 319/862] gnu: go-github-com-gogo-protobuf: Update to 1.3.2. * gnu/packages/golang.scm (go-github-com-gogo-protobuf): Update to 1.3.2. Change-Id: I1eb7ae905d1a836bafca490c1d650d79954405f1 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d1c610b77a3..a34f5a8a0fa 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3592,7 +3592,7 @@ and lookup requests. Browse requests are not supported yet.") (define-public go-github-com-gogo-protobuf (package (name "go-github-com-gogo-protobuf") - (version "1.3.1") + (version "1.3.2") (source (origin (method git-fetch) (uri (git-reference @@ -3601,7 +3601,7 @@ and lookup requests. Browse requests are not supported yet.") (file-name (git-file-name name version)) (sha256 (base32 - "0x77x64sxjgfhmbijqfzmj8h4ar25l2w97h01q3cqs1wk7zfnkhp")))) + "0dfv1bhx5zhb5bsj5sj757nkacf2swp1ajpcyj9d0b37n602m18a")))) (build-system go-build-system) (arguments `(#:import-path "github.com/gogo/protobuf" From 90387a762ad532ec6a567d3e8cf90dd06cb99caf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:32:14 +0000 Subject: [PATCH 320/862] gnu: go-github-com-gogo-protobuf: Enable tests. * gnu/packages/golang.scm (go-github-com-gogo-protobuf): [arguments] : Set to #t, as no go files in project's root. . Enable them. : Skip 8 tests. Change-Id: I83544f09a4a3b150041db3a7a0261976b435b33d --- gnu/packages/golang.scm | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a34f5a8a0fa..408c4e1c398 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3604,12 +3604,22 @@ and lookup requests. Browse requests are not supported yet.") "0dfv1bhx5zhb5bsj5sj757nkacf2swp1ajpcyj9d0b37n602m18a")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/gogo/protobuf" - ; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'build)))) + (list + #:skip-build? #t + #:import-path "github.com/gogo/protobuf" + ;; protoc: exec: "protoc-min-version": executable file not found in $PATH + ;; err = exec: "protoc": executable file not found in $PATH: + #:test-flags + #~(list "-skip" (string-join + (list "TestDashFilename" + "TestEmbedMarshaler" + "TestGolden" + "TestParameters" + "TestPopulateWarning" + "TestRepeatedEmbed" + "TestStdTypesGoString" + "TestTakesTooLongToDebug") + "|")))) (synopsis "Protocol Buffers for Go with Gadgets") (description "Gogoprotobuf is a fork of golang/protobuf with extra code generation features. This code generation is used to achieve: From b4e44395eb5aa683ba78971e8cf3dc2045d7c37d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:36:28 +0000 Subject: [PATCH 321/862] gnu: go-github-com-gogo-protobuf: Move to golang-web. * gnu/packages/golang.scm (go-github-com-gogo-protobuf): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I5b923e2b8ffc07fef3de8642f93873845c0aa8fd --- gnu/packages/golang-web.scm | 46 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 45 ------------------------------------ 2 files changed, 46 insertions(+), 45 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 80bbae6fa44..84b31f32c9d 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2471,6 +2471,52 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.") "Fast JSON encoder/decoder compatible with encoding/json for Go.") (license license:expat))) +(define-public go-github-com-gogo-protobuf + (package + (name "go-github-com-gogo-protobuf") + (version "1.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gogo/protobuf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0dfv1bhx5zhb5bsj5sj757nkacf2swp1ajpcyj9d0b37n602m18a")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/gogo/protobuf" + ;; protoc: exec: "protoc-min-version": executable file not found in $PATH + ;; err = exec: "protoc": executable file not found in $PATH: + #:test-flags + #~(list "-skip" + (string-join + (list "TestDashFilename" + "TestEmbedMarshaler" + "TestGolden" + "TestParameters" + "TestPopulateWarning" + "TestRepeatedEmbed" + "TestStdTypesGoString" + "TestTakesTooLongToDebug") + "|")))) + (home-page "https://github.com/gogo/protobuf") + (synopsis "Protocol Buffers for Go with Gadgets") + (description "Gogoprotobuf is a fork of golang/protobuf with extra code +generation features. This code generation is used to achieve: +@itemize +@item fast marshalling and unmarshalling +@item more canonical Go structures +@item goprotobuf compatibility +@item less typing by optionally generating extra helper code +@item peace of mind by optionally generating test and benchmark code +@item other serialization formats +@end itemize") + (license license:bsd-3))) + (define-public go-github-com-golang-groupcache (package (name "go-github-com-golang-groupcache") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 408c4e1c398..923c4f2709d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3589,51 +3589,6 @@ and lookup requests. Browse requests are not supported yet.") (description "Go wrapper for taglib") (license license:unlicense)))) -(define-public go-github-com-gogo-protobuf - (package - (name "go-github-com-gogo-protobuf") - (version "1.3.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gogo/protobuf") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0dfv1bhx5zhb5bsj5sj757nkacf2swp1ajpcyj9d0b37n602m18a")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "github.com/gogo/protobuf" - ;; protoc: exec: "protoc-min-version": executable file not found in $PATH - ;; err = exec: "protoc": executable file not found in $PATH: - #:test-flags - #~(list "-skip" (string-join - (list "TestDashFilename" - "TestEmbedMarshaler" - "TestGolden" - "TestParameters" - "TestPopulateWarning" - "TestRepeatedEmbed" - "TestStdTypesGoString" - "TestTakesTooLongToDebug") - "|")))) - (synopsis "Protocol Buffers for Go with Gadgets") - (description "Gogoprotobuf is a fork of golang/protobuf with extra code -generation features. This code generation is used to achieve: -@itemize -@item fast marshalling and unmarshalling -@item more canonical Go structures -@item goprotobuf compatibility -@item less typing by optionally generating extra helper code -@item peace of mind by optionally generating test and benchmark code -@item other serialization formats -@end itemize") - (home-page "https://github.com/gogo/protobuf") - (license license:bsd-3))) - (define-public go-github-com-btcsuite-btclog (let ((commit "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a") (revision "0")) From 1303bf44f0565561b971a45d634cb6c8a34b3fc6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:40:22 +0000 Subject: [PATCH 322/862] gnu: go-github-com-jbenet-go-context: Update to 0.0.0-20150711004518-d14ea06fba99. * gnu/packages/golang.scm (go-github-com-jbenet-go-context): Update to 0.0.0-20150711004518-d14ea06fba99. Change-Id: Ifac6a73c93947a8e9ef3af620b10bb6bb50eeef1 --- gnu/packages/golang.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 923c4f2709d..6b9a1c0222f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4820,16 +4820,14 @@ that might only rarely be reached.") (license license:expat))) (define-public go-github-com-jbenet-go-context - (let ((commit "d14ea06fba99483203c19d92cfcd13ebe73135f4") - (revision "1")) (package (name "go-github-com-jbenet-go-context") - (version (git-version "0.0.1" revision commit)) + (version "0.0.0-20150711004518-d14ea06fba99") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jbenet/go-context") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -4846,7 +4844,7 @@ that might only rarely be reached.") (synopsis "@code{jbenet's} context extensions") (description "This package provides @code{jbenet's} context extensions.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-juju-ansiterm (package From e6c2d52752ab72b5d991ad021aadc54dc0f31ec0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:41:44 +0000 Subject: [PATCH 323/862] gnu: go-github-com-jbenet-go-context: Enable tests. * gnu/packages/golang.scm (go-github-com-jbenet-go-context): Enable tests. [propagated-inputs]: Add go-golang-org-x-net. Change-Id: Ib0ab11e29d998217e332b57715d47bd36befc55c --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6b9a1c0222f..83b9a10abe6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4834,12 +4834,10 @@ that might only rarely be reached.") "0q91f5549n81w3z5927n4a1mdh220bdmgl42zi3h992dcc4ls0sl")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/jbenet/go-context" - ; Source-only package - #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'build)))) + (list + #:import-path "github.com/jbenet/go-context")) + (propagated-inputs + (list go-golang-org-x-net)) (home-page "https://github.com/jbenet/go-context/") (synopsis "@code{jbenet's} context extensions") (description "This package provides @code{jbenet's} context From 16aee7935995450acc8c2dc8b61c6a01c49ee5ea Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:44:58 +0000 Subject: [PATCH 324/862] gnu: go-github-com-jbenet-go-context: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-jbenet-go-context): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ibe212716ee34cebde63e19f19949ee8f7b12202a --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 80ac940324a..56be82bd9c3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5834,6 +5834,31 @@ oglematchers.Matcher} for time values @end itemize") (license license:asl2.0))) +(define-public go-github-com-jbenet-go-context + (package + (name "go-github-com-jbenet-go-context") + (version "0.0.0-20150711004518-d14ea06fba99") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jbenet/go-context") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0q91f5549n81w3z5927n4a1mdh220bdmgl42zi3h992dcc4ls0sl")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jbenet/go-context")) + (propagated-inputs + (list go-golang-org-x-net)) + (home-page "https://github.com/jbenet/go-context/") + (synopsis "@code{jbenet's} context extensions") + (description + "This package provides @code{jbenet's} context extensions.") + (license license:expat))) + (define-public go-github-com-jbenet-go-random (package (name "go-github-com-jbenet-go-random") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 83b9a10abe6..66d6c4a56af 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4819,31 +4819,6 @@ in tests to find template errors early, and along template execution paths that might only rarely be reached.") (license license:expat))) -(define-public go-github-com-jbenet-go-context - (package - (name "go-github-com-jbenet-go-context") - (version "0.0.0-20150711004518-d14ea06fba99") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jbenet/go-context") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0q91f5549n81w3z5927n4a1mdh220bdmgl42zi3h992dcc4ls0sl")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/jbenet/go-context")) - (propagated-inputs - (list go-golang-org-x-net)) - (home-page "https://github.com/jbenet/go-context/") - (synopsis "@code{jbenet's} context extensions") - (description "This package provides @code{jbenet's} context -extensions.") - (license license:expat))) - (define-public go-github-com-juju-ansiterm (package (name "go-github-com-juju-ansiterm") From 8c67fd738a3f888abbc951a1e59614b7ca034194 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 20:49:34 +0000 Subject: [PATCH 325/862] gnu: nebula: Fix build. * gnu/packages/networking.scm (nebula) [arguments] : Run tests only from project's root. Change-Id: I42372fa2a1ddad510c4fac35475fe9d5eac83879 --- gnu/packages/networking.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 02e1d08e25e..86c2ca3135d 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -4752,6 +4752,8 @@ IPv6 Internet connectivity - it also works over IPv4.") (list #:import-path "github.com/slackhq/nebula" #:install-source? #f + ;; XXX: Pack missing packages for cmd/nebula-service + #:test-subdirs #~(list ".") #:phases #~(modify-phases %standard-phases (replace 'build From 289094d60d01b871162b26d9d4f5951e0cfecb15 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 21:16:53 +0000 Subject: [PATCH 326/862] gnu: Add go-github-com-kardianos-service. * gnu/packages/golang-xyz.scm (go-github-com-kardianos-service): New variable. Change-Id: Id6bfb66d9b55840661c16b72280310a85cde3036 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 56be82bd9c3..6c7af0e7d25 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6237,6 +6237,31 @@ ansi.") customized globally.") (license license:expat))) +(define-public go-github-com-kardianos-service + (package + (name "go-github-com-kardianos-service") + (version "1.2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kardianos/service") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wcrc632nf2l5gzwgjfpx7bh6v4la0qjmaykj58fysabb9fkk9dy")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kardianos/service" + #:test-flags #~(list "-skip" "TestPlatformName"))) + (propagated-inputs (list go-golang-org-x-sys)) + (home-page "https://github.com/kardianos/service") + (synopsis "Run go programs as a service") + (description + "This package provides a simple way to create a system service.") + (license license:zlib))) + (define-public go-github-com-karrick-godirwalk (package (name "go-github-com-karrick-godirwalk") From 7665ff0e6ca99e4142e91bb4ac746ab15b3fff7e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 11:56:30 +0000 Subject: [PATCH 327/862] gnu: go-github-com-bits-and-blooms-bitset: Update to 1.20.0. * gnu/packages/golang.scm (go-github-com-bits-and-blooms-bitset): Update to 1.20.0. Change-Id: I94b0c325248cbc0f400785f5aea74ea4c15f1c2a --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 66d6c4a56af..6b13dac7c2d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4402,7 +4402,7 @@ Proxy functionality.") (define-public go-github-com-bits-and-blooms-bitset (package (name "go-github-com-bits-and-blooms-bitset") - (version "1.11.0") + (version "1.20.0") (source (origin (method git-fetch) (uri (git-reference @@ -4411,7 +4411,7 @@ Proxy functionality.") (file-name (git-file-name name version)) (sha256 (base32 - "1ialciixmr98p10rh61rnnkxpqi1j9hycbkv9rnjl0vnmsnpy0cy")))) + "1m1rk1bf6i1jnhjxm774i3rhg8n8s88a3n5pnhg5a9gf34y7r8az")))) (build-system go-build-system) (arguments '(#:import-path "github.com/bits-and-blooms/bitset")) From 65e60d04fce1682f126b97b1a9976ffd5b395491 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 21:16:54 +0000 Subject: [PATCH 328/862] gnu: Add go-github-com-gaissmai-bart. * gnu/packages/golang-web.scm (go-github-com-gaissmai-bart): New variable. Change-Id: Ifc1b0eafae6f1ca48cae3b188a26125ed1944dbb --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 84b31f32c9d..7ddfc697fd9 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1769,6 +1769,30 @@ API and doesn't use reflection. It relies on small interfaces to decode/encode structures and slices.") (license license:expat))) +(define-public go-github-com-gaissmai-bart + (package + (name "go-github-com-gaissmai-bart") + (version "0.11.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gaissmai/bart") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rnbmykmkl0c1fzz4vkv7q72l7hl2xpmalbm41f4lifdjscx5nk7")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gaissmai/bart")) + (propagated-inputs + (list go-github-com-bits-and-blooms-bitset)) + (home-page "https://github.com/gaissmai/bart") + (synopsis "Balanced Routing Table in Golang") + (description "This package provides a Balanced-Routing-Table (BART).") + (license license:expat))) + (define-public go-github-com-gatherstars-com-jwz (package (name "go-github-com-gatherstars-com-jwz") From 54ac5c108b22e33c7ca57df42b0677cde8061e7e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 22 Dec 2024 21:18:03 +0000 Subject: [PATCH 329/862] gnu: nebula: Update to 1.9.5. * gnu/packages/networking.scm (nebula): Update to 1.9.5. [inputs]: Remove go-github-com-cespare-xxhash-v2, go-github-com-prometheus-client-model, go-github-com-prometheus-procfs, and go-github-com-vishvananda-netns; add go-github-com-gaissmai-bart, go-github-com-kardianos-service, go-golang-org-x-exp, go-golang-org-x-sync, and go-golang-zx2c4-com-wireguard. Change-Id: I8c6c634c0d9555f8653413b6267a60f9210c7568 --- gnu/packages/networking.scm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 86c2ca3135d..467e2e97da0 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -4731,7 +4731,7 @@ IPv6 Internet connectivity - it also works over IPv4.") (define-public nebula (package (name "nebula") - (version "1.9.3") + (version "1.9.5") (source (origin (method git-fetch) (uri (git-reference @@ -4740,7 +4740,7 @@ IPv6 Internet connectivity - it also works over IPv4.") (file-name (git-file-name name version)) (sha256 (base32 - "08zzbx2v713zd9p7i4kd1bvcw47xb0092p5apba1x5wg6fpxw5zr")) + "1slknnrdnf5a2ask11ql3gwnnl6c5359bp8rd712aq30lxa2d4r0")) ;; Remove windows-related binary blobs and files (snippet #~(begin @@ -4780,29 +4780,32 @@ IPv6 Internet connectivity - it also works over IPv4.") (list go-dario-cat-mergo go-github-com-anmitsu-go-shlex go-github-com-armon-go-radix - go-github-com-cespare-xxhash-v2 go-github-com-cyberdelia-go-metrics-graphite go-github-com-flynn-noise + go-github-com-gaissmai-bart go-github-com-gogo-protobuf go-github-com-google-gopacket + go-github-com-kardianos-service go-github-com-miekg-dns go-github-com-nbrownus-go-metrics-prometheus go-github-com-prometheus-client-golang - go-github-com-prometheus-client-model - go-github-com-prometheus-procfs go-github-com-rcrowley-go-metrics go-github-com-sirupsen-logrus go-github-com-skip2-go-qrcode go-github-com-songgao-water go-github-com-stretchr-testify + go-github-com-vishvananda-netlink go-golang-org-x-crypto + go-golang-org-x-exp go-golang-org-x-net + go-golang-org-x-sync go-golang-org-x-sys go-golang-org-x-term + go-golang-zx2c4-com-wireguard go-google-golang-org-protobuf go-gopkg-in-yaml-v2 - go-github-com-vishvananda-netlink - go-github-com-vishvananda-netns)) + ;go-gvisor-dev-gvisor ; for nebula-service, not packed yet + )) (home-page "https://github.com/slackhq/nebula") (synopsis "Scalable, peer-to-peer overlay networking tool") (description From 60469b0116a46b5585aec5372cf3d2f3a970dc48 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 01:42:17 +0000 Subject: [PATCH 330/862] gnu: go-github-com-spf13-viper: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-spf13-viper) [arguments] : Only run test in project's root. Change-Id: I85ddafe03ea8af8ba03169a3a3188ac0117045a2 --- gnu/packages/golang-xyz.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6c7af0e7d25..075895d424a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9464,7 +9464,9 @@ GNU extensions} to the POSIX recommendations for command-line options.") (build-system go-build-system) (arguments (list - #:import-path "github.com/spf13/viper")) + #:import-path "github.com/spf13/viper" + ;; Optional modules are not packed. + #:test-subdirs #~(list "."))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs From 8d903eff2f2abfcbb811182e6058eb144664dfc2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 01:42:15 +0000 Subject: [PATCH 331/862] gnu: exercism: Update to 3.5.4. * gnu/packages/education.scm (exercism): Update to 3.5.4. * gnu/packages/patches/exercism-disable-self-update.patch: Refresh it to be compatible. Change-Id: Ia1920522d232fa681b70178bce2220649b0bcbe0 --- gnu/packages/education.scm | 4 ++-- .../patches/exercism-disable-self-update.patch | 15 ++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index f0ff95b2871..021c7334601 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -1112,7 +1112,7 @@ machine, and more.") (define-public exercism (package (name "exercism") - (version "3.1.0") + (version "3.5.4") (source (origin (method git-fetch) @@ -1122,7 +1122,7 @@ machine, and more.") (file-name (git-file-name name version)) (sha256 (base32 - "0ah5v4pqq31bvj7s4rg3jyjn7jwxa15w31cn4c317gsqmi0n8rzl")) + "0shh84g7j977kn9kcm09rj3lz6a3y5qq9yvklsldgb9zvass5szd")) (patches (search-patches "exercism-disable-self-update.patch")))) (build-system go-build-system) (arguments diff --git a/gnu/packages/patches/exercism-disable-self-update.patch b/gnu/packages/patches/exercism-disable-self-update.patch index a96cbfbc55a..0827e5102b8 100644 --- a/gnu/packages/patches/exercism-disable-self-update.patch +++ b/gnu/packages/patches/exercism-disable-self-update.patch @@ -1,21 +1,23 @@ -From bc22f7d43c12c5f79c71b0319666e71f29d61322 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= -Date: Mon, 25 May 2020 18:53:04 +0200 +From a0e422b11a65d63bd435c96bee3cd08f06bb8ec8 Mon Sep 17 00:00:00 2001 +From: Sharlatan Hellseher +Date: Mon, 23 Dec 2024 01:59:10 +0000 Subject: [PATCH] Disable self-update. +For exercism cli V3.5.4. + Based on a Fedora patch by Elliott Sales de Andrade. --- cli/cli.go | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/cli/cli.go b/cli/cli.go -index 4312eb0..5f62297 100644 +index fe113ec..3baa4b0 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -10,13 +10,10 @@ import ( "io" - "io/ioutil" "net/http" + "os" - "runtime" "strings" "time" @@ -75,5 +77,4 @@ index 4312eb0..5f62297 100644 func (c *CLI) fetchLatestRelease() error { -- -2.26.2 - +2.46.0 From f7c257bf8c8fb67729e1716412eefbe139975213 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 02:56:10 +0000 Subject: [PATCH 332/862] gnu: go-github-com-cretz-bine: Fix tests. * gnu/packages/golang-web.scm (go-github-com-cretz-bine) [arguments] : Limit to 2 directories. Change-Id: I30b3a6fd3b889c0fb0efb206e1a56e5b59757163 --- gnu/packages/golang-web.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 7ddfc697fd9..a3158264bb3 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1238,6 +1238,7 @@ Any}.") (arguments (list #:import-path "github.com/cretz/bine" + #:test-subdirs #~(list "tests/..." "torutil/...") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'remove-examples From 8f35f70540c1b392f02a2270eb6a5e0ce00d3223 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 03:02:34 +0000 Subject: [PATCH 333/862] gnu: go-github-com-zeebo-blake3: Delete submodule. * gnu/packages/golang-crypto.scm (go-github-com-zeebo-blake3) [source] : Delete submodule with go.mod file. Change-Id: I0a6dd7c7abfad387cb371d0fc9f15cd4535a5924 --- gnu/packages/golang-crypto.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index af160d91d97..fb1faa89333 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1759,7 +1759,14 @@ PKCS#5 (v2.0) algorithms.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "117p973ccgalaqg7byj0qcd1xapysplql9np1sr9jkca500khcgf")))) + (base32 "117p973ccgalaqg7byj0qcd1xapysplql9np1sr9jkca500khcgf")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/zeebo/blake3/avo + (delete-file-recursively "avo"))))) (build-system go-build-system) (arguments (list From 52a3ea8f583c044faf58d254565c34a6a3e26224 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 11:22:30 +0000 Subject: [PATCH 334/862] gnu: Add go-github-com-zeebo-blake3-avo. * gnu/packages/golang-crypto.scm (go-github-com-zeebo-blake3-avo): New variable. Change-Id: Ice03c8c9680bb368f5b818d4bfc0424744be25eb --- gnu/packages/golang-crypto.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index fb1faa89333..a5cf97667f4 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1783,6 +1783,33 @@ PKCS#5 (v2.0) algorithms.") and SSE4.1 acceleration.") (license license:cc0))) +(define-public go-github-com-zeebo-blake3-avo + (package + (name "go-github-com-zeebo-blake3-avo") + (version "0.0.0-20240814144702-1a8215cf69be") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zeebo/blake3") + (commit (go-version->git-ref version + #:subdir "avo")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "117p973ccgalaqg7byj0qcd1xapysplql9np1sr9jkca500khcgf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/zeebo/blake3/avo" + #:unpack-path "github.com/zeebo/blake3")) + (propagated-inputs (list go-github-com-mmcloughlin-avo)) + (home-page "https://github.com/zeebo/blake3") + (synopsis "BLAKE3 Avo integration") + (description + "This package provides a @url{https://github.com/mmcloughlin/avo, avo} +vectorized version of BLAKE3 implementation in Golang.") + (license license:cc0))) + (define-public go-github-com-zeebo-pcg (package (name "go-github-com-zeebo-pcg") From 4bbfa60670154bbf2e0c3d0c308612d91de40627 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 11:35:25 +0000 Subject: [PATCH 335/862] gnu: containerd: Fix tests. * gnu/packages/docker.scm (containerd) [arguments] : Limit to project's root. Change-Id: If77d2e7c62233c6664715c921591fc4766899d04 --- gnu/packages/docker.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index d35707a8dab..aeed94e8040 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -196,6 +196,9 @@ Python without keeping their credentials in a Docker configuration file.") "REVISION=0"))) (list #:import-path "github.com/containerd/containerd" + ;; XXX: This package contains full vendor, tests fail when run with + ;; "...", limit to the project's root. Try to unvendor. + #:test-subdirs #~(list ".") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-paths From 04ea7f58188862ec057bf2b05b34f5489d8be631 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 12:11:09 +0000 Subject: [PATCH 336/862] gnu: go-github-com-bits-and-blooms-bitset: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-bits-and-blooms-bitset): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I2b4b08969f3b5973560e18755dfd34eb280b61d3 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 075895d424a..4b0b88909db 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1348,6 +1348,31 @@ robin or epsilon greedy mode, and unresponsive hosts are avoided.") information and periodically output metrics") (license license:expat))) +(define-public go-github-com-bits-and-blooms-bitset + (package + (name "go-github-com-bits-and-blooms-bitset") + (version "1.20.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bits-and-blooms/bitset") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1m1rk1bf6i1jnhjxm774i3rhg8n8s88a3n5pnhg5a9gf34y7r8az")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bits-and-blooms/bitset")) + (home-page "https://github.com/bits-and-blooms/bitset") + (synopsis "Bitsets in Go") + (description + "This package provides a Go implementation of bitsets, which are a +mapping between non-negative integers and boolean values focused on efficient +space usage.") + (license license:bsd-3))) + (define-public go-github-com-blang-semver (package (name "go-github-com-blang-semver") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6b13dac7c2d..d531cee74c4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4399,29 +4399,6 @@ a cron spec parser and job runner.") Proxy functionality.") (license license:expat))) -(define-public go-github-com-bits-and-blooms-bitset - (package - (name "go-github-com-bits-and-blooms-bitset") - (version "1.20.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bits-and-blooms/bitset") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1m1rk1bf6i1jnhjxm774i3rhg8n8s88a3n5pnhg5a9gf34y7r8az")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/bits-and-blooms/bitset")) - (synopsis "Bitsets in Go") - (description "This package provides a Go implementation of bitsets, which -are a mapping between non-negative integers and boolean values focused on -efficient space usage.") - (home-page "https://github.com/bits-and-blooms/bitset") - (license license:bsd-3))) - (define-public go-github-com-bits-and-blooms-bloom-v3 (package (name "go-github-com-bits-and-blooms-bloom-v3") From d44aad3fc4c943c989e69cfe7113bd9ecafa5b16 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 12:18:37 +0000 Subject: [PATCH 337/862] gnu: go-github-com-bits-and-blooms-bloom-v3: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-bits-and-blooms-bloom-v3): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ic66f3164c15d64f3fb9a2b6a22a83c2630bed528 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4b0b88909db..c0454f08e65 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1373,6 +1373,33 @@ mapping between non-negative integers and boolean values focused on efficient space usage.") (license license:bsd-3))) +(define-public go-github-com-bits-and-blooms-bloom-v3 + (package + (name "go-github-com-bits-and-blooms-bloom-v3") + (version "3.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bits-and-blooms/bloom") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "022pyzjp862ysl30aj105i2xmapn400ambjh8h1dcyjy9c0f8agn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bits-and-blooms/bloom")) + (propagated-inputs + (list go-github-com-bits-and-blooms-bitset + go-github-com-twmb-murmur3)) + (home-page "https://github.com/bits-and-blooms/bitset") + (synopsis "Bloom filters in Go") + (description + "This package provides a Go implementation of bloom filters, +based on murmurhash.") + (license license:bsd-2))) + (define-public go-github-com-blang-semver (package (name "go-github-com-blang-semver") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d531cee74c4..30591000ad7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4399,30 +4399,6 @@ a cron spec parser and job runner.") Proxy functionality.") (license license:expat))) -(define-public go-github-com-bits-and-blooms-bloom-v3 - (package - (name "go-github-com-bits-and-blooms-bloom-v3") - (version "3.7.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bits-and-blooms/bloom") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "022pyzjp862ysl30aj105i2xmapn400ambjh8h1dcyjy9c0f8agn")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/bits-and-blooms/bloom")) - (propagated-inputs - (list go-github-com-twmb-murmur3 go-github-com-bits-and-blooms-bitset)) - (synopsis "Bloom filters in Go") - (description "This package provides a Go implementation of bloom filters, -based on murmurhash.") - (home-page "https://github.com/bits-and-blooms/bitset") - (license license:bsd-2))) - (define-public go-golang-org-rainycape-unidecode (let ((commit "cb7f23ec59bec0d61b19c56cd88cee3d0cc1870c") (revision "1")) From ee08e6dac81e14686f7bc9939ffc2a84343ba3ae Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 12:21:55 +0000 Subject: [PATCH 338/862] gnu: go-github-com-bits-and-blooms-bloom-v3: Fix import path. * gnu/packages/golang-xyz.scm (go-github-com-bits-and-blooms-bloom-v3) [arguments] : Reflect go.mod module name. Change-Id: I6851190622a127baa696dd9f0e09cafaed7bec55 --- gnu/packages/golang-xyz.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c0454f08e65..301a22c2007 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1389,7 +1389,7 @@ space usage.") (build-system go-build-system) (arguments (list - #:import-path "github.com/bits-and-blooms/bloom")) + #:import-path "github.com/bits-and-blooms/bloom/v3")) (propagated-inputs (list go-github-com-bits-and-blooms-bitset go-github-com-twmb-murmur3)) From 0dbaac5d997f03697ffaa8e33b28c940eb0ba1be Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Dec 2024 12:25:27 +0000 Subject: [PATCH 339/862] gnu: go-github-com-quic-go-webtransport-go: Fix tests. * gnu/packages/golang-web.scm (go-github-com-quic-go-webtransport-go) [arguments] : Skip one test. Change-Id: I1fa7288e9fa60be10310fcd8dbc6347b55769ef5 --- gnu/packages/golang-web.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index a3158264bb3..48fccc14f34 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5818,7 +5818,9 @@ protocol.") (build-system go-build-system) (arguments (list - #:import-path "github.com/quic-go/webtransport-go")) + #:import-path "github.com/quic-go/webtransport-go" + ;; Error: "68" is not greater than "80" + #:test-flags #~(list "-skip" "TestDatagrams"))) (native-inputs (list go-go-uber-org-mock go-github-com-stretchr-testify)) From b4501ee8bc809e4b4f9a0f0e4e24fa98902fdf63 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 10:21:06 +0000 Subject: [PATCH 340/862] gnu: go-gopkg-in-errgo-fmt-errors: Enable tests. * gnu/packages/golang.scm (go-gopkg-in-errgo-fmt-errors) [arguments] : Set to #t, as no go files in project's root. [native-inputs]: Add go-gopkg-in-check-v1. Change-Id: I04497ef63cd550911c6ccb870f08f902227a4ef4 --- gnu/packages/golang.scm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 30591000ad7..5514a112397 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5194,12 +5194,11 @@ configuration languages, but other uses may be possible too.") "065mbihiy7q67wnql0bzl9y1kkvck5ivra68254zbih52jxwrgr2")))) (build-system go-build-system) (arguments - `(#:import-path "gopkg.in/errgo.v2" - #:tests? #f - ;; Source-only package - #:phases - (modify-phases %standard-phases - (delete 'build)))) + (list + #:skip-build? #t + #:import-path "gopkg.in/errgo.v2")) + (native-inputs + (list go-gopkg-in-check-v1)) (home-page "https://godoc.org/gopkg.in/errgo.v2") (synopsis "Functions that use the fmt package to format error messages") (description "This package is the same as @code{gopkg.in/errgo.v2/errors} From 1ec0aa1de9c531a459c7dd8db2b2ef4fa17222cf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 10:24:57 +0000 Subject: [PATCH 341/862] gnu: go-gopkg-in-errgo-fmt-errors: Move to golang-check. * gnu/packages/golang.scm (go-gopkg-in-errgo-fmt-errors): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: I2b5166dd147132d14647e4a9d16ac61df7c7cd6a --- gnu/packages/golang-check.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 32f5b8a8123..7370a88ab6c 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1760,6 +1760,34 @@ accurate testing of your code.") (with-directory-excursion (string-append "src/" import-path) (invoke "go" "test" "-v" "./...")))))))))) +(define-public go-gopkg-in-errgo-fmt-errors + (package + (name "go-gopkg-in-errgo-fmt-errors") + (version "2.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-errgo/errgo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "065mbihiy7q67wnql0bzl9y1kkvck5ivra68254zbih52jxwrgr2")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "gopkg.in/errgo.v2")) + (native-inputs + (list go-gopkg-in-check-v1)) + (home-page "https://godoc.org/gopkg.in/errgo.v2") + (synopsis "Functions that use the fmt package to format error messages") + (description + "This package is the same as @code{gopkg.in/errgo.v2/errors} except that +it adds convenience functions that use the fmt package to format error +messages.") + (license license:bsd-3))) + (define-public go-gopkg-in-go-playground-assert-v1 (package (name "go-gopkg-in-go-playground-assert-v1") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5514a112397..871b1404717 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5179,33 +5179,6 @@ losing type information. The primary intended use is for implementing configuration languages, but other uses may be possible too.") (license license:expat))) -(define-public go-gopkg-in-errgo-fmt-errors - (package - (name "go-gopkg-in-errgo-fmt-errors") - (version "2.1.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-errgo/errgo") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "065mbihiy7q67wnql0bzl9y1kkvck5ivra68254zbih52jxwrgr2")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "gopkg.in/errgo.v2")) - (native-inputs - (list go-gopkg-in-check-v1)) - (home-page "https://godoc.org/gopkg.in/errgo.v2") - (synopsis "Functions that use the fmt package to format error messages") - (description "This package is the same as @code{gopkg.in/errgo.v2/errors} -except that it adds convenience functions that use the fmt package to format -error messages.") - (license license:bsd-3))) - (define-public go-github-com-gologme-log ;; this is the same as v1.2.0, only the LICENSE file changed (let ((commit "720ba0b3ccf0a91bc6018c9967a2479f93f56a55")) From 30755a5dd4351b064775d604c36a01878e35c00c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 10:54:48 +0000 Subject: [PATCH 342/862] gnu: go-gopkg-in-errgo-fmt-errors: Rename variable. * gnu/packages/golang-check.scm (go-gopkg-in-errgo-fmt-errors): Reename variable to go-gopkg-in-errgo-v2 reflecting go.mod module path. * gnu/packages/golang.scm (gofumpt): [native-inputs]: Remove go-gopkg-in-errgo-fmt-errors; add go-gopkg-in-errgo-v2. Change-Id: Iaaae97df06a68c16162ced1db65bb905adc34ddc --- gnu/packages/golang-check.scm | 4 ++-- gnu/packages/golang.scm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 7370a88ab6c..f5a714c8b25 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1760,9 +1760,9 @@ accurate testing of your code.") (with-directory-excursion (string-append "src/" import-path) (invoke "go" "test" "-v" "./...")))))))))) -(define-public go-gopkg-in-errgo-fmt-errors +(define-public go-gopkg-in-errgo-v2 (package - (name "go-gopkg-in-errgo-fmt-errors") + (name "go-gopkg-in-errgo-v2") (version "2.1.0") (source (origin diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 871b1404717..2f854858697 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5378,7 +5378,7 @@ Gemini clients and servers.") (build-system go-build-system) (arguments `(#:import-path "mvdan.cc/gofumpt")) - (native-inputs (list go-gopkg-in-errgo-fmt-errors)) + (native-inputs (list go-gopkg-in-errgo-v2)) (propagated-inputs (list go-github-com-pkg-diff go-github-com-kr-text go-github-com-kr-pretty From 81bf219905d80d2c0747075258e4311bf4a09ab1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 11:04:54 +0000 Subject: [PATCH 343/862] gnu: go-github-com-skratchdot-open-golang: Update to 0.0.0-20200116055534-eef842397966. * gnu/packages/golang.scm (go-github-com-skratchdot-open-golang): Update to 0.0.0-20200116055534-eef842397966. Improve style. Change-Id: I018242b019c914854109ba66e7bde6824e252819 --- gnu/packages/golang.scm | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2f854858697..9404a7c38da 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5913,33 +5913,31 @@ aware of your profiles and configuration in ~/.aws/config.") (propagated-inputs (list go-github-com-stretchr-testify)))) (define-public go-github-com-skratchdot-open-golang - (let ((commit "79abb63cd66e41cb1473e26d11ebdcd68b04c8e5") - (revision "0")) (package (name "go-github-com-skratchdot-open-golang") - (version "1.42.0") + (version "0.0.0-20200116055534-eef842397966") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/skratchdot/open-golang") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 - "0jc13jn8cj7p14n79zhav2nwga6kf9rqs01ic5k7j7agwzzly3ww")))) + "0n6387csjn024db8wldadsiy8ljz7lk7szl6ls28fcbkax7rw86y")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/skratchdot/open-golang" - #:phases (modify-phases %standard-phases - (delete 'build) - (delete 'check)))) + (list + #:skip-build? #t + #:tests? #f ; requires xdg-open and firefox in the PATH + #:import-path "github.com/skratchdot/open-golang")) (synopsis "Open a file, directory, or URI using the default application") (description "Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use. On GNU/Linux, this is a proxy for the @command{xdg-open} command.") (home-page "https://github.com/skratchdot/open-golang") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-dreamacro-go-shadowsocks2 (package From 6c3144c958204da4e579361b2ae4ce748bed1427 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 11:06:45 +0000 Subject: [PATCH 344/862] gnu: go-github-com-skratchdot-open-golang: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-skratchdot-open-golang): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I7062387aa5e134582843e4bc673eaba47aee6d7e --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 301a22c2007..17a23ada985 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9248,6 +9248,33 @@ compatible with the standard library logger.") (description "This package provides a QR code encoder for the Goloang.") (license license:expat))) +(define-public go-github-com-skratchdot-open-golang + (package + (name "go-github-com-skratchdot-open-golang") + (version "0.0.0-20200116055534-eef842397966") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/skratchdot/open-golang") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0n6387csjn024db8wldadsiy8ljz7lk7szl6ls28fcbkax7rw86y")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:tests? #f ; requires xdg-open and firefox in the PATH + #:import-path "github.com/skratchdot/open-golang")) + (home-page "https://github.com/skratchdot/open-golang") + (synopsis "Open a file, directory, or URI using the default application") + (description + "Open a file, directory, or URI using the OS's default application for +that object type. Optionally, you can specify an application to use. On +GNU/Linux, this is a proxy for the @command{xdg-open} command.") + (license license:expat))) + (define-public go-github-com-songgao-water (package (name "go-github-com-songgao-water") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9404a7c38da..604b93b67ff 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5912,33 +5912,6 @@ aware of your profiles and configuration in ~/.aws/config.") (list #:import-path "github.com/go-ini/ini")) (propagated-inputs (list go-github-com-stretchr-testify)))) -(define-public go-github-com-skratchdot-open-golang - (package - (name "go-github-com-skratchdot-open-golang") - (version "0.0.0-20200116055534-eef842397966") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/skratchdot/open-golang") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0n6387csjn024db8wldadsiy8ljz7lk7szl6ls28fcbkax7rw86y")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:tests? #f ; requires xdg-open and firefox in the PATH - #:import-path "github.com/skratchdot/open-golang")) - (synopsis "Open a file, directory, or URI using the default application") - (description - "Open a file, directory, or URI using the OS's default application for -that object type. Optionally, you can specify an application to use. On -GNU/Linux, this is a proxy for the @command{xdg-open} command.") - (home-page "https://github.com/skratchdot/open-golang") - (license license:expat))) - (define-public go-github-com-dreamacro-go-shadowsocks2 (package (name "go-github-com-dreamacro-go-shadowsocks2") From c26e1438383e4937db814e9f78c50eae14858631 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 11:48:58 +0000 Subject: [PATCH 345/862] gnu: go-github-com-mitchellh-go-homedir: Update to 1.1.0. * gnu/packages/golang.scm (go-github-com-mitchellh-go-homedir): Update to 1.1.0. Change-Id: I709e3dd146bfb972a89ca4cdd742261ce908e2a1 --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 604b93b67ff..af797f2c082 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3720,21 +3720,19 @@ required by Go's standard Hash interface.") (license license:expat)))) (define-public go-github-com-mitchellh-go-homedir - (let ((commit "ae18d6b8b3205b561c79e8e5f69bff09736185f4") - (revision "0")) (package (name "go-github-com-mitchellh-go-homedir") - (version (git-version "1.0.0" revision commit)) + (version "1.1.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/mitchellh/go-homedir") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "0f0z0aa4wivk4z1y503dmnw0k0g0g403dly8i4q263gfshs82sbq")))) + "0ydzkipf28hwj2bfxqmwlww47khyk6d152xax4bnyh60f4lq3nx1")))) (build-system go-build-system) (arguments (quote (#:import-path "github.com/mitchellh/go-homedir" @@ -3756,7 +3754,7 @@ package cannot cross compile. But 99% of the time the use for @command{os/user} is just to retrieve the home directory, which we can do for the current user without cgo. This library does that, enabling cross-compilation.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-mitchellh-reflectwalk (package From 94de50ae7332a0955ee191582804dd43b68199ce Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 11:51:33 +0000 Subject: [PATCH 346/862] gnu: go-github-com-mitchellh-go-homedir: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-mitchellh-go-homedir): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I69e5d5931319d80e33c1d042255d250603913842 --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 37 ------------------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 17a23ada985..2b2e42ae0f5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7385,6 +7385,43 @@ colored strings.") "Colorstring provides functions for colorizing strings for terminal output.") (license license:expat))) +(define-public go-github-com-mitchellh-go-homedir + (package + (name "go-github-com-mitchellh-go-homedir") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitchellh/go-homedir") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ydzkipf28hwj2bfxqmwlww47khyk6d152xax4bnyh60f4lq3nx1")))) + (build-system go-build-system) + (arguments + (quote (#:import-path "github.com/mitchellh/go-homedir" + ;; TODO: Tests fail because it tries to access home. + #:tests? #f))) + (home-page "https://github.com/mitchellh/go-homedir") + (synopsis "Go library for detecting and expanding the user's home directory without cgo") + (description + "This is a Go library for detecting the user's home directory without the +use of @command{cgo}, so the library can be used in cross-compilation +environments. + +Usage is simple, just call homedir.Dir() to get the home directory for a user, +and homedir.Expand() to expand the @command{~} in a path to the home +directory. + +Why not just use @command{os/user}? The built-in @command{os/user} package +requires cgo on Darwin systems. This means that any Go code that uses that +package cannot cross compile. But 99% of the time the use for +@command{os/user} is just to retrieve the home directory, which we can do for +the current user without cgo. This library does that, enabling +cross-compilation.") + (license license:expat))) + ;; XXX: This package is in maintenance mode: "This repository has been ;; archived by the owner on Jul 22, 2024. It is now read-only." (define-public go-github-com-mitchellh-mapstructure diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index af797f2c082..a26fba3aa3e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3719,43 +3719,6 @@ required by Go's standard Hash interface.") (description "Just a type for protocol strings. Nothing more.") (license license:expat)))) -(define-public go-github-com-mitchellh-go-homedir - (package - (name "go-github-com-mitchellh-go-homedir") - (version "1.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mitchellh/go-homedir") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0ydzkipf28hwj2bfxqmwlww47khyk6d152xax4bnyh60f4lq3nx1")))) - (build-system go-build-system) - (arguments - (quote (#:import-path "github.com/mitchellh/go-homedir" - ;; TODO: Tests fail because it tries to access home. - #:tests? #f))) - (home-page "https://github.com/mitchellh/go-homedir") - (synopsis "Go library for detecting and expanding the user's home directory without cgo") - (description "This is a Go library for detecting the user's home -directory without the use of @command{cgo}, so the library can be used in -cross-compilation environments. - -Usage is simple, just call homedir.Dir() to get the home directory for a user, -and homedir.Expand() to expand the @command{~} in a path to the home -directory. - -Why not just use @command{os/user}? The built-in @command{os/user} package -requires cgo on Darwin systems. This means that any Go code that uses that -package cannot cross compile. But 99% of the time the use for -@command{os/user} is just to retrieve the home directory, which we can do for -the current user without cgo. This library does that, enabling -cross-compilation.") - (license license:expat))) - (define-public go-github-com-mitchellh-reflectwalk (package (name "go-github-com-mitchellh-reflectwalk") From 44f1a47929e44d6dcca6db9e425938f00af0fc68 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 11:58:47 +0000 Subject: [PATCH 347/862] gnu: go-github.com-nsf-termbox-go: Update to 1.1.1. * gnu/packages/terminals.scm (go-github.com-nsf-termbox-go): Update to 1.1.1. Change-Id: I24f70ca397a4dccaa442c94a2daf9d390f21f848 --- gnu/packages/terminals.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index 2760de48922..8c5b58659ae 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -991,20 +991,18 @@ minimalistic.") (license license:expat)))) (define-public go-github.com-nsf-termbox-go - (let ((commit "288510b9734e30e7966ec2f22b87c5f8e67345e3") - (revision "1")) (package (name "go-github.com-nsf-termbox-go") - (version (git-version "0.0.0" revision commit)) + (version "1.1.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/nsf/termbox-go") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "0hdyisfaf8yb55h3p03p4sbq19546mp9fy28f2kn659mycmhxqk4")))) + "0n5jwnx53nkjvq8rcqzv2scs532iq9w06pd83w6cipniccqp4m2i")))) (build-system go-build-system) (arguments '(#:import-path "github.com/nsf/termbox-go")) @@ -1016,7 +1014,7 @@ interfaces") "Termbox is a library that provides a minimalistic API which allows the programmer to write text-based user interfaces.") (home-page "https://github.com/nsf/termbox-go") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-junegunn-fzf (package From bc7dbfe4aa7b41e6aa38302240738558916e500e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:00:37 +0000 Subject: [PATCH 348/862] gnu: go-github.com-nsf-termbox-go: Move to golang-xyz. * gnu/packages/terminals.scm (go-github.com-nsf-termbox-go): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I5b3afcc5f87549e81318a43efa25ae1069f04dc7 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/terminals.scm | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2b2e42ae0f5..eecee5300d2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8078,6 +8078,32 @@ list of sentences.") pretty printed rendering in Golang.") (license license:expat))) +(define-public go-github.com-nsf-termbox-go + (package + (name "go-github.com-nsf-termbox-go") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nsf/termbox-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0n5jwnx53nkjvq8rcqzv2scs532iq9w06pd83w6cipniccqp4m2i")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/nsf/termbox-go")) + (propagated-inputs + (list go-github-com-mattn-go-runewidth)) + (home-page "https://github.com/nsf/termbox-go") + (synopsis "@code{termbox} provides a minimal API for text-based user interfaces") + (description + "Termbox is a library that provides a minimalistic API which allows the +programmer to write text-based user interfaces.") + (license license:expat))) + (define-public go-github-com-nsqio-go-diskqueue (package (name "go-github-com-nsqio-go-diskqueue") diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index 8c5b58659ae..88e84ce647a 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -990,32 +990,6 @@ minimalistic.") (home-page "https://www.uninformativ.de/git/xiate/file/README.html") (license license:expat)))) -(define-public go-github.com-nsf-termbox-go - (package - (name "go-github.com-nsf-termbox-go") - (version "1.1.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/nsf/termbox-go") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0n5jwnx53nkjvq8rcqzv2scs532iq9w06pd83w6cipniccqp4m2i")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/nsf/termbox-go")) - (propagated-inputs - (list go-github-com-mattn-go-runewidth)) - (synopsis "@code{termbox} provides a minimal API for text-based user -interfaces") - (description - "Termbox is a library that provides a minimalistic API which allows the -programmer to write text-based user interfaces.") - (home-page "https://github.com/nsf/termbox-go") - (license license:expat))) - (define-public go-github-com-junegunn-fzf (package (name "go-github-com-junegunn-fzf") From e71a9c69dd9171c26219d4a87415ece17877ff51 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 11:56:38 +0000 Subject: [PATCH 349/862] gnu: go-github-com-gizak-termui-v3: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-gizak-termui-v3): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I890a7ab5d8fc2089acc290c95806d2e6e98e2ff7 --- gnu/packages/golang-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 33 --------------------------------- 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index eecee5300d2..39ae07108b0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3887,6 +3887,42 @@ also favors portability, and includes support for all POSIX systems.") (modify-inputs (package-inputs go-github-com-gdamore-tcell) (prepend go-golang-org-x-term go-golang-org-x-sys)))))) +(define-public go-github-com-gizak-termui-v3 + (package + (name "go-github-com-gizak-termui-v3") + (version "3.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gizak/termui") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1v3k8l5p95kb1v297ra5mw9sxdd59y82y6ibjzya5ma2pry6k5cn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gizak/termui/v3" + #:unpack-path "github.com/gizak/termui")) + (propagated-inputs + (list go-github-com-mattn-go-runewidth + go-github-com-mitchellh-go-wordwrap + go-github.com-nsf-termbox-go)) + (home-page "https://github.com/gizak/termui") + (synopsis "Terminal dashboard widget Go library") + (description + "The termui Go library draws customizable dashboard widgets in a text +terminal. It includes several common widgets: lists, trees, tables and tabs, +but also more complex items such as (stacked) bar and pie charts, scatter +plots, gauges, and even images and a canvas for drawing `high resolution' +braille dots. + +You can also easily create new custom widgets. Widgets can be coloured and +styled and positioned absolutely or relatively. They respond to keyboard, +mouse, and terminal resizing events.") + (license license:expat))) + (define-public go-github-com-go-errors-errors (package (name "go-github-com-go-errors-errors") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a26fba3aa3e..dd6669302b8 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2287,39 +2287,6 @@ for speed on short messages.") your Go binary to be later served from an http.FileSystem.") (license license:asl2.0))) -(define-public go-github-com-gizak-termui-v3 - (package - (name "go-github-com-gizak-termui-v3") - (version "3.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gizak/termui") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1v3k8l5p95kb1v297ra5mw9sxdd59y82y6ibjzya5ma2pry6k5cn")))) - (build-system go-build-system) - (arguments - '(#:unpack-path "github.com/gizak/termui" - #:import-path "github.com/gizak/termui/v3")) - (propagated-inputs - (list go-github-com-mattn-go-runewidth - go-github-com-mitchellh-go-wordwrap go-github.com-nsf-termbox-go)) - (home-page "https://github.com/gizak/termui") - (synopsis "Terminal dashboard widget Go library") - (description - "The termui Go library draws customizable dashboard widgets in a text -terminal. It includes several common widgets: lists, trees, tables and tabs, -but also more complex items such as (stacked) bar and pie charts, scatter plots, -gauges, and even images and a canvas for drawing `high resolution' braille dots. - -You can also easily create new custom widgets. Widgets can be coloured and -styled and positioned absolutely or relatively. They respond to keyboard, -mouse, and terminal resizing events.") - (license license:expat))) - (define-public go-github-com-golangplus-fmt (package (name "go-github-com-golangplus-fmt") From f3c346c613ba2e05ef192861a5379569c1d295e9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:20:24 +0000 Subject: [PATCH 350/862] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.4. * gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Update to 1.2.4. [propagated-inputs]: Remove go-github-com-containerd-console, go-github-com-lucasb-eyer-go-colorful, go-github-com-mattn-go-isatty, go-github-com-mattn-go-isatty, go-github-com-mattn-go-runewidth, go-github-com-muesli-reflow, go-github-com-muesli-termenv, go-golang-org-x-crypto, and go-golang-org-x-term; add go-github-com-erikgeiser-coninput. Change-Id: I254a718bb6cd1e189255a92cea3ddb8985bccba0 --- gnu/packages/golang.scm | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index dd6669302b8..0e09d4fd971 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5558,7 +5558,7 @@ parser.") (define-public go-github-com-charmbracelet-bubbletea (package (name "go-github-com-charmbracelet-bubbletea") - (version "1.2.3") + (version "1.2.4") (source (origin (method git-fetch) @@ -5568,7 +5568,7 @@ parser.") (file-name (git-file-name name version)) (sha256 (base32 - "0ggkl29qixgin5av1mbnwfbb31kmwpczh8pgpjsx9z277fs55mph")))) + "0g5pj40lsdkh2gwixlpg53ji7fajncj512xj0v1x3mk5grgbc2zr")))) (build-system go-build-system) (arguments (list @@ -5596,19 +5596,11 @@ parser.") (list go-github-com-charmbracelet-lipgloss go-github-com-charmbracelet-x-ansi go-github-com-charmbracelet-x-term - go-github-com-containerd-console - go-github-com-lucasb-eyer-go-colorful - go-github-com-mattn-go-isatty - go-github-com-mattn-go-isatty - go-github-com-mattn-go-runewidth + go-github-com-erikgeiser-coninput go-github-com-muesli-ansi go-github-com-muesli-cancelreader - go-github-com-muesli-reflow - go-github-com-muesli-termenv - go-golang-org-x-crypto go-golang-org-x-sync - go-golang-org-x-sys - go-golang-org-x-term)) + go-golang-org-x-sys)) (home-page "https://github.com/charmbracelet/bubbletea") (synopsis "Powerful little TUI framework") (description From c5222e6a029329157b5fe859e59295e4cbbebd23 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:27:45 +0000 Subject: [PATCH 351/862] gnu: go-github-com-charmbracelet-bubbletea: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ice8bdd953a7687af28588f56ad5ecc4a89f21f1f --- gnu/packages/golang-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 54 ------------------------------------- 2 files changed, 54 insertions(+), 54 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 39ae07108b0..e2102914061 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1783,6 +1783,60 @@ tools.") @@url{https://github.com/charmbracelet/bubbletea, Bubble Tea} applications.") (license license:expat))) +(define-public go-github-com-charmbracelet-bubbletea + (package + (name "go-github-com-charmbracelet-bubbletea") + (version "1.2.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/bubbletea") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0g5pj40lsdkh2gwixlpg53ji7fajncj512xj0v1x3mk5grgbc2zr")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/charmbracelet/bubbletea" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + '("examples" "tutorials"))))) + (add-before 'check 'fix-tests + (lambda _ + ;; XXX: The package requires + ;; "go-github-com-charmbracelet-x-ansi" version 0.4.5; with the + ;; newer version of "ansi", some "bubbletea" screen tests fail + ;; as "ansi" 0.5.2 handles escape sequences a little bit + ;; differently. + (substitute* "src/github.com/charmbracelet/bubbletea/screen_test.go" + (("x1b\\[0K") + "x1b[K") + (("x1b\\[2;0H") + "x1b[2;H"))))))) + (propagated-inputs + (list go-github-com-charmbracelet-lipgloss + go-github-com-charmbracelet-x-ansi + go-github-com-charmbracelet-x-term + go-github-com-erikgeiser-coninput + go-github-com-muesli-ansi + go-github-com-muesli-cancelreader + go-golang-org-x-sync + go-golang-org-x-sys)) + (home-page "https://github.com/charmbracelet/bubbletea") + (synopsis "Powerful little TUI framework") + (description + "Bubble Tea is a Go framework based on The Elm Architecture. It is +well-suited for simple and complex terminal applications, either inline, +full-window, or a mix of both.") + (license license:asl2.0))) + (define-public go-github-com-charmbracelet-lipgloss (package (name "go-github-com-charmbracelet-lipgloss") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0e09d4fd971..4db08881ea5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5555,60 +5555,6 @@ parser.") @url{https://unicode.org/reports/tr29/, Unicode Standard Annex #29}.") (license license:expat))) -(define-public go-github-com-charmbracelet-bubbletea - (package - (name "go-github-com-charmbracelet-bubbletea") - (version "1.2.4") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/charmbracelet/bubbletea") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0g5pj40lsdkh2gwixlpg53ji7fajncj512xj0v1x3mk5grgbc2zr")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/charmbracelet/bubbletea" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'remove-examples - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file-recursively - '("examples" "tutorials"))))) - (add-before 'check 'fix-tests - (lambda _ - ;; XXX: The package requires - ;; "go-github-com-charmbracelet-x-ansi" version 0.4.5; with the - ;; newer version of "ansi", some "bubbletea" screen tests fail - ;; as "ansi" 0.5.2 handles escape sequences a little bit - ;; differently. - (substitute* "src/github.com/charmbracelet/bubbletea/screen_test.go" - (("x1b\\[0K") - "x1b[K") - (("x1b\\[2;0H") - "x1b[2;H"))))))) - (propagated-inputs - (list go-github-com-charmbracelet-lipgloss - go-github-com-charmbracelet-x-ansi - go-github-com-charmbracelet-x-term - go-github-com-erikgeiser-coninput - go-github-com-muesli-ansi - go-github-com-muesli-cancelreader - go-golang-org-x-sync - go-golang-org-x-sys)) - (home-page "https://github.com/charmbracelet/bubbletea") - (synopsis "Powerful little TUI framework") - (description - "Bubble Tea is a Go framework based on The Elm Architecture. It is -well-suited for simple and complex terminal applications, either inline, -full-window, or a mix of both.") - (license license:asl2.0))) - (define-public go-github-com-containerd-console (package (name "go-github-com-containerd-console") From 4d105351b5c7749313d8858d7cd049a4401fc5ce Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:31:28 +0000 Subject: [PATCH 352/862] gnu: go-github-com-sebdah-goldie-v2: Update to 2.5.5. * gnu/packages/golang-xyz.scm (go-github-com-sebdah-goldie-v2): Update to 2.5.5. [source] : Delete vendor and v2/vendor. [arguments] : Add it. : Skip 1 test. Change-Id: Ice7e012a7e02d278bdb69268b5c79bb93fc50589 --- gnu/packages/golang-xyz.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e2102914061..46cd5c58f7b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9192,7 +9192,7 @@ is undetermined, a customizable spinner is shown.") (define-public go-github-com-sebdah-goldie-v2 (package (name "go-github-com-sebdah-goldie-v2") - (version "2.5.3") + (version "2.5.5") (source (origin (method git-fetch) @@ -9201,11 +9201,19 @@ is undetermined, a customizable spinner is shown.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "12gji9p6b6zlkisbd3ww103zwd5chlwkb6h5dppfrmgxim84n5n0")))) + (base32 "06hyzl7cl09dfsmd0lb88icklv5g59hgs5wqgngl39fbawkbc411")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "vendor") + (delete-file-recursively "v2/vendor"))))) (build-system go-build-system) (arguments (list - #:import-path "github.com/sebdah/goldie/v2")) + #:import-path "github.com/sebdah/goldie/v2" + #:unpack-path "github.com/sebdah/goldie" + ;; Test requires to refresh test data: "The first time running go test, + ;; with -update, without -clean". + #:test-flags #~(list "-skip" "TestCleanFunction"))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs From 2405669021693b8aa7dcefe06164e121d0bdf5fb Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:42:09 +0000 Subject: [PATCH 353/862] gnu: packages/time: Remove golang module. * gnu/packages/time.scm: As all Golang dependencies were shifted to corresponded submodules, remove not required "golang" module from used ones. Change-Id: Idc13006a935c334ff8cd0e99e14888c7bf3984cf --- gnu/packages/time.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index 2a94f534746..302e86309fc 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -49,7 +49,6 @@ #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages geo) - #:use-module (gnu packages golang) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages libffi) #:use-module (gnu packages perl) From e66b3b63e8a73c6c3c910aeb0a49aa6c20182a83 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:45:42 +0000 Subject: [PATCH 354/862] gnu: go-github-com-charmbracelet-glamour: Update to 0.8.0. * gnu/packages/golang.scm (go-github-com-charmbracelet-glamour): Update to 0.8.0. [propagated-inputs]: Remove go-github-com-olekukonko-tablewriter; add go-github-com-charmbracelet-lipgloss, go-github-com-charmbracelet-x-ansi, go-github-com-charmbracelet-x-exp-golden, and go-golang-org-x-term. Change-Id: Iec424cb6c93f49cd202b74b4eaac6147de395647 --- gnu/packages/golang.scm | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4db08881ea5..fecee9d0ee9 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4603,7 +4603,7 @@ size of the terminal.") (define-public go-github-com-charmbracelet-glamour (package (name "go-github-com-charmbracelet-glamour") - (version "0.7.0") + (version "0.8.0") (source (origin (method git-fetch) (uri (git-reference @@ -4612,33 +4612,23 @@ size of the terminal.") (file-name (git-file-name name version)) (sha256 (base32 - "073kyx94r9f0hpjv5c3x9pfdd3dbpyqcy7jhx4yxz0ps25j1a41p")))) + "112clivb9nsxlaqvypwcidmk4dkszg7vglb4apia43rdqqj82s6k")))) (build-system go-build-system) (arguments (list #:embed-files #~(list ".*\\.xml") - #:import-path "github.com/charmbracelet/glamour" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'patch-tests - (lambda _ - ;; Some tests fail due to different number of '^[0m' symbols at - ;; the beginning and the end of paragraphs. To fix that we - ;; re-generate 'readme.test' so the test output will match the - ;; 'readme.test' contents. - (chmod "src/github.com/charmbracelet/glamour/testdata/readme.test" - #o644) - (substitute* "src/github.com/charmbracelet/glamour/glamour_test.go" - ((" generate = false") - " generate = true"))))))) + #:import-path "github.com/charmbracelet/glamour")) (propagated-inputs (list go-github-com-alecthomas-chroma-v2 + go-github-com-charmbracelet-lipgloss + go-github-com-charmbracelet-x-ansi + go-github-com-charmbracelet-x-exp-golden go-github-com-microcosm-cc-bluemonday go-github-com-muesli-reflow go-github-com-muesli-termenv - go-github-com-olekukonko-tablewriter go-github-com-yuin-goldmark - go-github-com-yuin-goldmark-emoji)) + go-github-com-yuin-goldmark-emoji + go-golang-org-x-term)) (home-page "https://github.com/charmbracelet/glamour/") (synopsis "Write handsome command-line tools with glamour") (description "@code{glamour} lets you render markdown documents and From 57b3410ca3f5ee0842f9b87f6a6ab4ab42268886 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:46:56 +0000 Subject: [PATCH 355/862] gnu: go-github-com-charmbracelet-glamour: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-charmbracelet-glamour): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ie8214f93c6c4fbb2937e2bf18aa27a9178a3d817 --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 36 ------------------------------------ 2 files changed, 37 insertions(+), 36 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 46cd5c58f7b..35958bbba40 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1837,6 +1837,43 @@ well-suited for simple and complex terminal applications, either inline, full-window, or a mix of both.") (license license:asl2.0))) +(define-public go-github-com-charmbracelet-glamour + (package + (name "go-github-com-charmbracelet-glamour") + (version "0.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/glamour") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "112clivb9nsxlaqvypwcidmk4dkszg7vglb4apia43rdqqj82s6k")))) + (build-system go-build-system) + (arguments + (list + #:embed-files #~(list ".*\\.xml") + #:import-path "github.com/charmbracelet/glamour")) + (propagated-inputs + (list go-github-com-alecthomas-chroma-v2 + go-github-com-charmbracelet-lipgloss + go-github-com-charmbracelet-x-ansi + go-github-com-charmbracelet-x-exp-golden + go-github-com-microcosm-cc-bluemonday + go-github-com-muesli-reflow + go-github-com-muesli-termenv + go-github-com-yuin-goldmark + go-github-com-yuin-goldmark-emoji + go-golang-org-x-term)) + (home-page "https://github.com/charmbracelet/glamour/") + (synopsis "Write handsome command-line tools with glamour") + (description + "@code{glamour} lets you render markdown documents and templates on ANSI +compatible terminals. You can create your own stylesheet or use one of our +glamorous default themes.") + (license license:expat))) + (define-public go-github-com-charmbracelet-lipgloss (package (name "go-github-com-charmbracelet-lipgloss") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index fecee9d0ee9..e97a54266ed 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4600,42 +4600,6 @@ maps (because they are not addressable using Go reflection).") size of the terminal.") (license license:expat)))) -(define-public go-github-com-charmbracelet-glamour - (package - (name "go-github-com-charmbracelet-glamour") - (version "0.8.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/charmbracelet/glamour") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "112clivb9nsxlaqvypwcidmk4dkszg7vglb4apia43rdqqj82s6k")))) - (build-system go-build-system) - (arguments - (list - #:embed-files #~(list ".*\\.xml") - #:import-path "github.com/charmbracelet/glamour")) - (propagated-inputs - (list go-github-com-alecthomas-chroma-v2 - go-github-com-charmbracelet-lipgloss - go-github-com-charmbracelet-x-ansi - go-github-com-charmbracelet-x-exp-golden - go-github-com-microcosm-cc-bluemonday - go-github-com-muesli-reflow - go-github-com-muesli-termenv - go-github-com-yuin-goldmark - go-github-com-yuin-goldmark-emoji - go-golang-org-x-term)) - (home-page "https://github.com/charmbracelet/glamour/") - (synopsis "Write handsome command-line tools with glamour") - (description "@code{glamour} lets you render markdown documents and -templates on ANSI compatible terminals. You can create your own stylesheet or -use one of our glamorous default themes.") - (license license:expat))) - (define-public go-github-com-charmbracelet-harmonica (package (name "go-github-com-charmbracelet-harmonica") From 44a48160dd11f736071f075a9528530e265c936b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:51:55 +0000 Subject: [PATCH 356/862] gnu: go-howett-net-plist: Fix tests. * gnu/packages/golang.scm (go-howett-net-plist) [arguments] : Skip tests in cmd. Change-Id: I5d1da9b029ff6a72fa9c725d0de18d17c8d358a7 --- gnu/packages/golang.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e97a54266ed..2970455da3e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1608,7 +1608,9 @@ retry strategies, such as fixed delay, backoff delay, and random delay.") (build-system go-build-system) (arguments (list - #:import-path "howett.net/plist")) + #:import-path "howett.net/plist" + ;; cmd requires gopkg.in/yaml.v1 + #:test-subdirs #~(list "internal/..." "."))) (propagated-inputs (list go-github-com-jessevdk-go-flags go-gopkg-in-check-v1)) From e66937d4165517277c41d46dfd6cacf9600c1165 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 12:56:36 +0000 Subject: [PATCH 357/862] gnu: go-github-com-charmbracelet-harmonica: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-charmbracelet-harmonica): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I0f20fd7b9916877dff377632ff247b3cac22242e --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 28 ---------------------------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 35958bbba40..c5a321a5953 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1874,6 +1874,35 @@ compatible terminals. You can create your own stylesheet or use one of our glamorous default themes.") (license license:expat))) +(define-public go-github-com-charmbracelet-harmonica + (package + (name "go-github-com-charmbracelet-harmonica") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/harmonica") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1aasg0c0xxhwav4ivm1mqmsqab6lk407xky8c19pb85r1hdbq0n7")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/charmbracelet/harmonica" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (delete-file-recursively + (string-append "src/" import-path "/examples"))))))) + (home-page "https://github.com/charmbracelet/harmonica") + (synopsis "Simple, physics-based animation library") + (description + "A simple, efficient spring animation library for smooth, natural motion.") + (license license:expat))) + (define-public go-github-com-charmbracelet-lipgloss (package (name "go-github-com-charmbracelet-lipgloss") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2970455da3e..c71290015f2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4602,34 +4602,6 @@ maps (because they are not addressable using Go reflection).") size of the terminal.") (license license:expat)))) -(define-public go-github-com-charmbracelet-harmonica - (package - (name "go-github-com-charmbracelet-harmonica") - (version "0.2.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/charmbracelet/harmonica") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1aasg0c0xxhwav4ivm1mqmsqab6lk407xky8c19pb85r1hdbq0n7")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/charmbracelet/harmonica" - #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'remove-examples - (lambda* (#:key import-path #:allow-other-keys) - (delete-file-recursively - (string-append "src/" import-path "/examples"))))))) - (home-page "https://github.com/charmbracelet/harmonica") - (synopsis "Simple, physics-based animation library") - (description - "A simple, efficient spring animation library for smooth, natural motion.") - (license license:expat))) - (define-public go-github-com-jba-templatecheck (package (name "go-github-com-jba-templatecheck") From d90e5dcf58b15335f9797386a432a993458fd908 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 13:02:52 +0000 Subject: [PATCH 358/862] gnu: packages/education: Remove golang module. * gnu/packages/time.scm: As all Golang dependencies were shifted to corresponded submodules, remove not required "golang" module from used ones. Change-Id: I9a647b3d6ff6aea4b77eff1d66fa18aa905dda10 --- gnu/packages/education.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 021c7334601..f42a2169722 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -47,7 +47,6 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) - #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-web) From 400ae6e8989aba7e9edba6a61d7096d5d5c56e01 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 14:47:09 +0000 Subject: [PATCH 359/862] gnu: go-github-com-warpfork-go-wish: Fix tests. * gnu/packages/golang-check.scm (go-github-com-warpfork-go-wish) [arguments] : Run tests on shorter range. : Skip more tests. Change-Id: I1f6e19c3c2e4001d583a7e3d0d04095740fe3e4c --- gnu/packages/golang-check.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index f5a714c8b25..be4037f5179 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1874,7 +1874,15 @@ testmark} format, which itself is a subset of Markdown format.") (build-system go-build-system) (arguments (list - #:import-path "github.com/warpfork/go-wish")) + #:import-path "github.com/warpfork/go-wish" + #:test-subdirs #~(list "cmp/..." "wishfix" ".") + #:test-flags + #~(list "-skip" (string-join + (list "TestDiff" + "TestOptions" + "TestGoTestOutputTree/non-verbose" + "TestGoTestOutputFun/non-verbose") + "|")))) (home-page "https://github.com/warpfork/go-wish") (synopsis "Test assertions for Golang") (description From 907e7e908b3ba3187196fcd7b23f76dee1444ed7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 15:05:01 +0000 Subject: [PATCH 360/862] gnu: Add go-github-com-go-yaml-yaml. * gnu/packages/golang-xyz.scm (go-github-com-go-yaml-yaml): New variable. Change-Id: I54c1b9d3b2669edfc7bc3b0548b616a95898b55b --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c5a321a5953..f0f27103274 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4427,6 +4427,30 @@ the library more lightweight.") (package-arguments go-github-com-go-task-slim-sprig) ((#:import-path _) "github.com/go-task/slim-sprig/v3"))))) +(define-public go-github-com-go-yaml-yaml + (package + (name "go-github-com-go-yaml-yaml") + (version "0.0.0-20220527083530-f6f7691b1fde") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-yaml/yaml") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01b0wjb7yzv8wzzz2iim8mjpkwjnykcanrwiq06pkl89lr6gv8hn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-yaml/yaml")) + (native-inputs (list go-gopkg-in-check-v1)) + (propagated-inputs (list go-gopkg-in-yaml-v3)) + (home-page "https://github.com/go-yaml/yaml") + (synopsis "YAML support for the Go language") + (description "Package yaml implements YAML support for the Go language.") + (license license:asl2.0))) + (define-public go-github-com-gobwas-glob (package (name "go-github-com-gobwas-glob") From 97e6ae2b3c47ef7ff7d9959f5230830204b11528 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 15:21:14 +0000 Subject: [PATCH 361/862] gnu: go-gopkg-in-yaml-v3: Move to golang-xyz. * gnu/packages/golang.scm (go-gopkg-in-yaml-v3): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: If8d59687150d2315be29caf29e5c1b5cb55bd80b --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 28 ---------------------------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f0f27103274..f92230f5882 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11555,6 +11555,35 @@ errors (warnings).") values.") (license license:asl2.0))) +(define-public go-gopkg-in-yaml-v3 + (package + (name "go-gopkg-in-yaml-v3") + (version "3.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gopkg.in/yaml.v3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01b0wjb7yzv8wzzz2iim8mjpkwjnykcanrwiq06pkl89lr6gv8hn")) + (patches (search-patches "go-gopkg-in-yaml-v3-32bit.patch")))) + (build-system go-build-system) + (arguments + (list + #:tests? (not (target-ppc32?)) ; Test killed with quit: ran too long (11m0s). + #:import-path "gopkg.in/yaml.v3")) + (native-inputs + (list go-gopkg-in-check-v1)) + (home-page "https://gopkg.in/yaml.v3") + (synopsis "YAML reader and writer for the Go language") + (description + "This package provides a Go library for encode and decode YAML values. +The yaml package supports most of YAML 1.2, but preserves some behavior from +1.1 for backwards compatibility.") + (license license:asl2.0))) + (define-public go-k8s-io-gengo-v2 (package (name "go-k8s-io-gengo-v2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c71290015f2..e5fe851b2bb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3160,34 +3160,6 @@ which satisfies the cron expression.") (license (list license:gpl3+ license:asl2.0))))) -(define-public go-gopkg-in-yaml-v3 - (package - (name "go-gopkg-in-yaml-v3") - (version "3.0.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://gopkg.in/yaml.v3") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "01b0wjb7yzv8wzzz2iim8mjpkwjnykcanrwiq06pkl89lr6gv8hn")) - (patches (search-patches "go-gopkg-in-yaml-v3-32bit.patch")))) - (build-system go-build-system) - (arguments - `(#:tests? ,(not (target-ppc32?)) ; Test killed with quit: ran too long (11m0s). - #:import-path "gopkg.in/yaml.v3")) - (native-inputs - (list go-gopkg-in-check-v1)) - (home-page "https://gopkg.in/yaml.v3") - (synopsis "YAML reader and writer for the Go language") - (description - "This package provides a Go library for encode and decode YAML values. -The yaml package supports most of YAML 1.2, but preserves some behavior from -1.1 for backwards compatibility.") - (license license:asl2.0))) - (define-public go-github-com-matrix-org-gomatrix (package (name "go-github-com-matrix-org-gomatrix") From 0c4e1b01ab78e346d46184564726da51b337c5b4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 16:18:36 +0000 Subject: [PATCH 362/862] gnu: go-github-com-oklog-ulid: Fix bulid. * gnu/packages/golang-xyz.scm (go-github-com-oklog-ulid) [native-inputs]: Add go-github-com-pborman-getopt-v2. Change-Id: I983721b1e0ffcbc68ebe29e403c513ee237f882d --- gnu/packages/golang-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f92230f5882..94d47520cc8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8409,6 +8409,8 @@ goroutines as a unit whole.") (arguments (list #:import-path "github.com/oklog/ulid")) + (native-inputs + (list go-github-com-pborman-getopt-v2)) ; for CLI (home-page "https://github.com/oklog/ulid") (synopsis "Universally Unique Lexicographically Sortable Identifier in Golang") (description From f5000f5f0729021512de8a8e99d909c69ab9ea9d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 16:23:07 +0000 Subject: [PATCH 363/862] gnu: go-github-com-alecthomas-participle-v2: Fix bulid. * gnu/packages/golang-xyz.scm (go-github-com-alecthomas-participle-v2) [native-inputs]: Add go-github-com-alecthomas-kong. Change-Id: I4e6b28bb9200efde0a249ff4ff793393a5fed851 --- gnu/packages/golang-xyz.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 94d47520cc8..576972457c1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -740,7 +740,8 @@ with as little developer effort as possible.") (list #:import-path "github.com/alecthomas/participle/v2")) (native-inputs - (list go-github-com-alecthomas-assert-v2)) + (list go-github-com-alecthomas-assert-v2 + go-github-com-alecthomas-kong)) ; for CLI (home-page "https://github.com/alecthomas/participle") (synopsis "Parser library for Go") (description From 7ccfb165811f962c10a2ce44cf0dabc535f7aa3b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 16:33:30 +0000 Subject: [PATCH 364/862] gnu: go-github-com-mikefarah-yq-v4: Fix bulid. * gnu/packages/web.scm (go-github-com-mikefarah-yq-v4, yq) [arguments] : Limit to project's root. Change-Id: I12dd2b2c8a0fc11827e4cf5652bb6a614edf7347 --- gnu/packages/web.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 2c46517f839..02bf887fdee 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -5551,6 +5551,7 @@ you'd expect.") (build-system go-build-system) (arguments (list #:import-path "github.com/mikefarah/yq/v4" + #:test-subdirs #~(list ".") ; XXX: try to enable all tests #:phases #~(modify-phases %standard-phases (add-after 'install 'remove-binary @@ -5593,6 +5594,7 @@ JSON, XML, properties, CSV and TSV.") (arguments (list #:install-source? #f #:import-path "github.com/mikefarah/yq/v4" + #:test-subdirs #~(list ".") ; XXX: try to enable all tests #:phases #~(modify-phases %standard-phases (add-after 'install 'rename-binary From 7eb566aead01601daa4c6de1f2e625cef5909aed Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 16:47:25 +0000 Subject: [PATCH 365/862] gnu: go-github-com-keybase-go-ps: Update to 0.0.0-20190827175125-91aafc93ba19. * gnu/packages/golang.scm (go-github-com-keybase-go-ps): Update to 0.0.0-20190827175125-91aafc93ba19. Change-Id: I2969f88ce35da1265d47d2a661e6463b8c31d341 --- gnu/packages/golang.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e5fe851b2bb..0b8e017e209 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2144,18 +2144,16 @@ web browsing activities based on HTTP Upgrade (HTTPT).") (license license:bsd-2)))) (define-public go-github-com-keybase-go-ps - (let ((commit "91aafc93ba19d1988cff338c1929d35b6c6f5b50") - (revision "0")) (package (name "go-github-com-keybase-go-ps") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20190827175125-91aafc93ba19") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/keybase/go-ps") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 "1la7m9pd1rrij727g34k9d2iapqwrkwdkqwpkbsbcq8ig0fg634h")))) @@ -2179,7 +2177,7 @@ web browsing activities based on HTTP Upgrade (HTTPT).") (synopsis "Process list library for Go") (description "Go-Ps is a library for Go that implements OS-specific APIs to list and manipulate processes in a safe way.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-apparentlymart-go-openvpn-mgmt (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") From e821854f754778369305317ec2d5c5cf54d8a4b5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 16:51:42 +0000 Subject: [PATCH 366/862] gnu: go-github-com-keybase-go-ps: Simplify. * gnu/packages/golang.scm (go-github-com-keybase-go-ps) [phases] {fix-tests}: Remove dependencies on coreutils. [native-inputs]: Remove coreutils. Change-Id: Icee6fe263db1b546ef8a0d6376998f63922c30d1 --- gnu/packages/golang.scm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0b8e017e209..c38ddf9b454 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2163,16 +2163,14 @@ web browsing activities based on HTTP Upgrade (HTTPT).") #:phases (modify-phases %standard-phases (add-after 'unpack 'fix-tests - (lambda* (#:key native-inputs inputs #:allow-other-keys) - (substitute* (find-files "." "test\\.go") - (("/bin/sleep" command) - (string-append - (assoc-ref (or native-inputs inputs) "coreutils") - command))) - (substitute* "src/github.com/keybase/go-ps/process_openbsd.go" - (("^// \\+build ignore") ""))))))) + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* (find-files "." "test\\.go") + (("/bin/sleep") (which "sleep"))) + (substitute* "process_openbsd.go" + (("^// \\+build ignore") "")))))))) (native-inputs - (list coreutils go-github-com-stretchr-testify)) + (list go-github-com-stretchr-testify)) (home-page "https://github.com/keybase/go-ps") (synopsis "Process list library for Go") (description "Go-Ps is a library for Go that implements OS-specific APIs From a2e9b71c19af31ad51c122042e14a098e3d897c6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 22:21:20 +0000 Subject: [PATCH 367/862] gnu: go-github-com-keybase-go-ps: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-keybase-go-ps): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I0362a55bf8c3a5e18a35b95207b1c696484d311e --- gnu/packages/golang-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 34 ---------------------------------- 2 files changed, 36 insertions(+), 34 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 576972457c1..48762ffdfe6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6545,6 +6545,42 @@ word-splitting rules.") (home-page "https://github.com/kballard/go-shellquote") (license license:expat)))) +(define-public go-github-com-keybase-go-ps + (package + (name "go-github-com-keybase-go-ps") + (version "0.0.0-20190827175125-91aafc93ba19") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/keybase/go-ps") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1la7m9pd1rrij727g34k9d2iapqwrkwdkqwpkbsbcq8ig0fg634h")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/keybase/go-ps" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* (find-files "." "test\\.go") + (("/bin/sleep") (which "sleep"))) + (substitute* "process_openbsd.go" + (("^// \\+build ignore") "")))))))) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/keybase/go-ps") + (synopsis "Process list library for Go") + (description + "Go-Ps is a library for Go that implements OS-specific APIs to list and +manipulate processes in a safe way.") + (license license:expat))) + (define-public go-github-com-klauspost-cpuid (package (name "go-github-com-klauspost-cpuid") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c38ddf9b454..4cc2cb5634f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2143,40 +2143,6 @@ incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol.") web browsing activities based on HTTP Upgrade (HTTPT).") (license license:bsd-2)))) -(define-public go-github-com-keybase-go-ps - (package - (name "go-github-com-keybase-go-ps") - (version "0.0.0-20190827175125-91aafc93ba19") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/keybase/go-ps") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1la7m9pd1rrij727g34k9d2iapqwrkwdkqwpkbsbcq8ig0fg634h")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/keybase/go-ps" - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-tests - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* (find-files "." "test\\.go") - (("/bin/sleep") (which "sleep"))) - (substitute* "process_openbsd.go" - (("^// \\+build ignore") "")))))))) - (native-inputs - (list go-github-com-stretchr-testify)) - (home-page "https://github.com/keybase/go-ps") - (synopsis "Process list library for Go") - (description "Go-Ps is a library for Go that implements OS-specific APIs -to list and manipulate processes in a safe way.") - (license license:expat))) - (define-public go-github-com-apparentlymart-go-openvpn-mgmt (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") (revision "0")) From ffbf9aa7e088f66ce36aae716edf4ae9eb5f78a8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 24 Dec 2024 22:47:40 +0000 Subject: [PATCH 368/862] gnu: Add go-github-com-keybase-dbus. * gnu/packages/golang-xyz.scm (go-github-com-keybase-dbus): New variable. Change-Id: I0a30af511d99f24dae69f82dccd788322b944a8d --- gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 48762ffdfe6..4382e7a36db 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6545,6 +6545,37 @@ word-splitting rules.") (home-page "https://github.com/kballard/go-shellquote") (license license:expat)))) +(define-public go-github-com-keybase-dbus + (package + (name "go-github-com-keybase-dbus") + (version "0.0.0-20220506165403-5aa21ea2c23a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/keybase/dbus") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ihicxqq685jy47dw522b5c7b8vcikay0xph6y55jcas3m3zj1lj")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f; tests require running D-bus + #:import-path "github.com/keybase/dbus")) + (home-page "https://github.com/keybase/dbus") + (synopsis "Native Go bindings for D-Bus") + (description + "Package dbus implements bindings to the D-Bus message bus system. +Features: +@itemize +@item complete native implementation of the D-Bus message protocol +@item go-like API (channels for signals / asynchronous method calls, +Goroutine-safe connections) +@item subpackages that help with the introspection / property interfaces +@end itemize") + (license license:bsd-2))) + (define-public go-github-com-keybase-go-ps (package (name "go-github-com-keybase-go-ps") From e4c1411a64f6fec93c23cedc7996d2704ccb31d3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 14:52:47 +0000 Subject: [PATCH 369/862] gnu: go-github-com-nats-io-nats-go: Update to 1.38.0. * gnu/packages/golang-xyz.scm (go-github-com-nats-io-nats-go): Update to 1.38.0. [arguments] : Limit to project's root tests. [propagated-inputs]: Add go-google-golang-org-protobuf. [native-inputs]: Add go-github-com-nats-io-jwt-v2. Change-Id: I1fbce2dfab11b2b29f1f78db16ebecf0520724d9 --- gnu/packages/golang-xyz.scm | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4382e7a36db..1dfd96a3f26 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8225,7 +8225,7 @@ varints.") (define-public go-github-com-nats-io-nats-go (package (name "go-github-com-nats-io-nats-go") - (version "1.32.0") + (version "1.38.0") (source (origin (method git-fetch) @@ -8234,15 +8234,22 @@ varints.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08b3n5mdpxvn9hipz0j001bp5r67i43cqji9x9dyzikypqdfg38k")))) + (base32 "1b21sxzds2x5a8b13hmf5n1pf1bf770ky7q12147gqq7vsw39fa1")))) (build-system go-build-system) (arguments (list - #:import-path "github.com/nats-io/nats.go")) - (propagated-inputs (list go-golang-org-x-text - go-github-com-nats-io-nuid - go-github-com-nats-io-nkeys - go-github-com-klauspost-compress)) + #:import-path "github.com/nats-io/nats.go" + ;; Most tests in "test" directory fail to set up, limit to project's + ;; root tests. + #:test-subdirs #~(list "."))) + (native-inputs + (list go-github-com-nats-io-jwt-v2)) + (propagated-inputs + (list go-github-com-klauspost-compress + go-github-com-nats-io-nkeys + go-github-com-nats-io-nuid + go-golang-org-x-text + go-google-golang-org-protobuf)) ; for encoders (home-page "https://github.com/nats-io/nats.go") (synopsis "Go Client for NATS server") (description From c0b740c5ba7817b6dd231c1d506d8a91a34d13ea Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 15:11:03 +0000 Subject: [PATCH 370/862] gnu: nats-server: Fix tests. * gnu/packages/high-availability.scm (nats-server) [arguments] : Port tests options as seen in project's GitHub Actions workflow. : Likewise. Change-Id: I989163842c5c2bed672ddc021f0e0c572e352831 --- gnu/packages/high-availability.scm | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm index 677b2b49aee..2799b5097d1 100644 --- a/gnu/packages/high-availability.scm +++ b/gnu/packages/high-availability.scm @@ -215,6 +215,21 @@ applications.") (sha256 (base32 "0r1d0l3mmb90956wl97vqlb3cdhax7jkqa95hvx9b380g93a08py")))) (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/nats-io/nats-server" + ;; The test logic is taken from project's GitHub Actions workflow file + ;; <.github/workflows/tests.yaml>. + #:test-flags + #~(list "-count=1" "-vet=off" "-failfast" + "-skip" (string-join + (list "TestHTTPHost" + "TestSysLogger" + "TestLogMaxArchives") + "|") ) + #:test-subdirs + #~(list "conf/..." "internal/..." "logger/..." "test/..."))) (inputs (list go-github-com-klauspost-compress go-github-com-minio-highwayhash @@ -226,10 +241,6 @@ applications.") go-golang-org-x-crypto go-golang-org-x-sys go-golang-org-x-time)) - (arguments - (list - #:import-path "github.com/nats-io/nats-server" - #:install-source? #f)) (home-page "https://github.com/nats-io/nats-server") (synopsis "High performance message broker") (description From ba7a5f7e1e1bf435ddde602870bebfb2124e5170 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 15:17:54 +0000 Subject: [PATCH 371/862] gnu: go-github-com-go-jose-go-jose-v3: Delete submodule. * gnu/packages/golang-web.scm (go-github-com-go-jose-go-jose-v3) [source] : Delete submodule which needs to be packages separately. Change-Id: If5490cd8218e917649ab46a7786fa8beaeb8dbf3 --- gnu/packages/golang-web.scm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 48fccc14f34..4fbade8bae2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1932,15 +1932,23 @@ decompose request handling into many smaller layers.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0kbkplhzqv9ai28r4smhdsxxwh20d96srr3am37pwwnh48ivwch8")))) + (base32 "0kbkplhzqv9ai28r4smhdsxxwh20d96srr3am37pwwnh48ivwch8")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separatly: + ;; + ;; - github.com/go-jose/go-jose/jose-util + (delete-file-recursively "jose-util"))))) (build-system go-build-system) (arguments - '( #:import-path "github.com/go-jose/go-jose/v3")) - (propagated-inputs - (list go-golang-org-x-crypto)) + (list + #:import-path "github.com/go-jose/go-jose/v3")) (native-inputs (list go-github-com-google-go-cmp go-github-com-stretchr-testify)) + (propagated-inputs + (list go-golang-org-x-crypto)) (home-page "https://github.com/go-jose/go-jose") (synopsis "Implementation of JOSE standards (JWE, JWS, JWT) in Go") (description From ac2b370a493e32a2ed56d13f722164e93143b1dc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 15:24:21 +0000 Subject: [PATCH 372/862] gnu: Add go-jose-util. * gnu/packages/golang-web.scm (go-jose-util): New variable. Change-Id: I452a6a339e0c6728707f3c1c8abc5041f2eb773a --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 4fbade8bae2..18c7cd93053 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7384,6 +7384,37 @@ protocol.") ;;; Executables: ;;; +(define-public go-jose-util + (package + (name "go-jose-util") + (version "0.0.0-20240226165647-31202557b449") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-jose/go-jose") + (commit (go-version->git-ref version + #:subdir "jose-util")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19kr2r9nnrnixpmpp37p5adnxc92bc3gzqz7rpybgaly2wfssz0q")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/go-jose/go-jose/jose-util" + #:unpack-path "github.com/go-jose/go-jose")) + (native-inputs + (list go-github-com-go-jose-go-jose-v3 + go-gopkg-in-alecthomas-kingpin-v2)) + (home-page "https://github.com/go-jose/go-jose") + (synopsis "JOSE CLI") + (description + "The @code{jose-util} command line utility allows for encryption, +decryption,signing and verification of JOSE messages. Its main purpose is to +facilitate dealing with JOSE messages when testing or debugging.") + (license license:asl2.0))) + (define-public go-gojay (package (inherit go-github-com-francoispqt-gojay) From 0f49ff892f08469b7f12f5b7750c210b35feee8f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 15:36:25 +0000 Subject: [PATCH 373/862] gnu: Add go-nullprogram-com-x-optparse. * gnu/packages/golang-xyz.scm (go-nullprogram-com-x-optparse): New variable. Change-Id: I52563130c2c305b68d7ed498995fad2cf8499994 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1dfd96a3f26..1fb30722f0a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11960,6 +11960,33 @@ kubernetes-independent packages supplementing the defined in @url{https://editorconfig.org/,https://editorconfig.org/}.") (license license:bsd-3))) +(define-public go-nullprogram-com-x-optparse + (package + (name "go-nullprogram-com-x-optparse") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/skeeto/optparse-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1yzpzlhmxdm8gd8ikh9c91qmshjp1jg49l0qsslmm432wk19zym9")))) + (build-system go-build-system) + (arguments + (list + #:import-path "nullprogram.com/x/optparse")) + (home-page "https://nullprogram.com/x/optparse/") + (synopsis "Traditional long option parser for Go") + (description + "Package optparse parses command line arguments very similarly to GNU +@code{getopt_long()}. It supports long options and optional arguments, but +does not permute arguments. It is intended as a replacement for Go's flag +package.") + ;; License type does latterly says it' "UNLICENSE". + (license license:unlicense))) + (define-public go-rsc-io-binaryregexp (package (name "go-rsc-io-binaryregexp") From b0409fd07c16ef96cb810e7040e1a596f433b756 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 16:09:12 +0000 Subject: [PATCH 374/862] gnu: Add go-github-com-twitchyliquid64-golang-asm. * gnu/packages/golang-build.scm (go-github-com-twitchyliquid64-golang-asm): New variable. Change-Id: I03f9113fd3d5bb1eb8941f64a719e652a19455cb --- gnu/packages/golang-build.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 61e87d39030..b7e6d14e379 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -363,6 +363,31 @@ simplifies development without sacrificing performance.") primitives in Go.") (license license:bsd-2))) +(define-public go-github-com-twitchyliquid64-golang-asm + (package + (name "go-github-com-twitchyliquid64-golang-asm") + (version "0.15.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twitchyliquid64/golang-asm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1akw41i0snxqw9lqzmnn4gx6hd5js5dr1vmfkm49wxans4k14vw4")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/twitchyliquid64/golang-asm")) + (home-page "https://github.com/twitchyliquid64/golang-asm") + (synopsis "Assembler from the Go compiler, in library form") + (description + "This package provides a mirror of the assembler from the Go compiler, with +import paths re-written for the assembler to be functional as a standalone +library.") + (license license:bsd-3))) + (define-public go-github-com-yuin-goldmark (package (name "go-github-com-yuin-goldmark") From 5bedf80c98b43594ced2a39a721d265e549cf2df Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 17:23:05 +0000 Subject: [PATCH 375/862] gnu: Add go-github-com-gin-contrib-sse. * gnu/packages/golang-web.scm (go-github-com-gin-contrib-sse): New variable. Change-Id: I0a471d5643de1f3780eb2d0f6d384678eafc6ea5 --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 18c7cd93053..9bcd3658c32 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1897,6 +1897,34 @@ OpenAPI v3.1}.") logging system.") (license license:bsd-3)))) +(define-public go-github-com-gin-contrib-sse + (package + (name "go-github-com-gin-contrib-sse") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gin-contrib/sse") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "072nq91a65n5xvwslqjyvydfd0mfpnvb3vwjyfvmzm1ym96wr1nd")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gin-contrib/sse")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/gin-contrib/sse") + (synopsis "Server-Sent Events implementation in Golang") + (description + "@acronym{Server-sent events, SSE} is a technology where a browser +receives automatic updates from a server via HTTP connection. The SSE +@code{EventSource} API is +@url{http://www.w3.org/TR/2009/WD-eventsource-20091029/,standardized as part +of HTML5[1] by the W3C}.") + (license license:expat))) + (define-public go-github-com-go-chi-chi-v5 (package (name "go-github-com-go-chi-chi-v5") From 66ab35787979cb1db261c61f6963d05bb2e56633 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 17:45:40 +0000 Subject: [PATCH 376/862] gnu: Add go-github-com-knz-go-libedit. * gnu/packages/golang-xyz.scm (go-github-com-knz-go-libedit): New variable. Change-Id: I4c482205e86035f21552dbbd2a2e7f39e543fd50 --- gnu/packages/golang-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1fb30722f0a..890b6983b0f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -91,6 +91,7 @@ #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-maths) #:use-module (gnu packages golang-web) + #:use-module (gnu packages libedit) #:use-module (gnu packages linux) #:use-module (gnu packages specifications) #:use-module (gnu packages xdisorg) @@ -6657,6 +6658,44 @@ very eas to use.") (list #:import-path "github.com/klauspost/cpuid/v2")))) +(define-public go-github-com-knz-go-libedit + (package + (name "go-github-com-knz-go-libedit") + (version "1.10.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/knz/go-libedit") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04a5ryzldsk7agybcz4rpd7g1v5vh7smawlky58bwj0341083p44")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/knz/go-libedit" + #:phases + #~(modify-phases %standard-phases + ;; These steps are taken from the project's README. + (add-after 'unpack 'use-system-wide-libedit + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "unix/editline_unix.go" + ((".*#cgo linux CFLAGS.*") "") + (("#cgo linux CPPFLAGS.*") + (string-append "#cgo linux CPPFLAGS: -I" + #$(this-package-input "libedit") + "/include -Ishim\n")) + (("#cgo linux LDFLAGS.*") "#cgo linux LDFLAGS: -ledit\n")))))))) + (inputs + (list libedit)) + (home-page "https://github.com/knz/go-libedit") + (synopsis "Go wrapper around @code{libedit}") + (description + "This packae provides a wrapper around @code{libedit} for Golang.") + (license license:asl2.0))) + (define-public go-github-com-kpango-glg (package (name "go-github-com-kpango-glg") From 80103bb04187557f400de10fd311a62fab2f0030 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 20:12:48 +0000 Subject: [PATCH 377/862] gnu: Add go-github-com-cloudwego-iasm. * gnu/packages/golang-xyz.scm (go-github-com-cloudwego-iasm): New variable. Change-Id: I5cf7c77d212e303981abb0b60d56497e2230cdb0 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 890b6983b0f..fb59c347116 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2331,6 +2331,38 @@ levels that works by wrapping the standard @code{log} library.") dependencies and is intended to be used in long running processes.") (license license:expat))) +(define-public go-github-com-cloudwego-iasm + (package + (name "go-github-com-cloudwego-iasm") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cloudwego/iasm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j9jvx6ijlr2xz3am4qrz5py68xpl8np7m7yfq9m2ilkli3ksq9x")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cloudwego/iasm")) + (native-inputs + (list go-github-com-davecgh-go-spew + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-klauspost-cpuid-v2 + go-github-com-knz-go-libedit + go-nullprogram-com-x-optparse)) + (home-page "https://github.com/cloudwego/iasm") + (synopsis "Interactive Assembler for Golang") + (description + "This package provides x86_64 variant of ported from a Python module +@url{https://github.com/Maratyszcza/PeachPy,PeachPy}, with some adaption to +the Go language features.") + (license license:asl2.0))) + (define-public go-github-com-containerd-cgroups (package (name "go-github-com-containerd-cgroups") From 0d29827223dbacad4b9a6d8e5fe1969418ddc94b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 20:23:41 +0000 Subject: [PATCH 378/862] gnu: Add go-github-com-bytedance-sonic-loader. * gnu/packages/golang-xyz.scm (go-github-com-bytedance-sonic-loader): New variable. Change-Id: Ife1c5d1cfc74cb7fb2c4e0a8e08c6d69483c3dd2 --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index fb59c347116..44206a80c82 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1699,6 +1699,36 @@ strings into words like a POSIX or Windows shell would.") similar to Go's standard library @code{json} and @code{xml} package.") (license license:expat))) +(define-public go-github-com-bytedance-sonic-loader + (package + (name "go-github-com-bytedance-sonic-loader") + (version "0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bytedance/sonic") + (commit (go-version->git-ref version + #:subdir "loader")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fyjq3hr4cmai2r06ppzil314bcqz416gd1zpw7lfp9h7mcwxwa4")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bytedance/sonic/loader" + #:unpack-path "github.com/bytedance/sonic")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-cloudwego-iasm)) + (home-page "https://github.com/bytedance/sonic") + (synopsis "Function loader for Sonic Golang library") + (description + "This package provides functionality to load functions used in Sonic JSON +library.") + (license license:asl2.0))) + (define-public go-github-com-caarlos0-env (package (name "go-github-com-caarlos0-env") From a0525d4193227340267b7989e8d06d0606afd87e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 20:24:32 +0000 Subject: [PATCH 379/862] gnu: go-github-com-burntsushi-toml: Simplify. * gnu/packages/golang-xyz.scm (go-github-com-burntsushi-toml) [arguments] : Use default 'check. Change-Id: I53dd7c48c47a42c07d0787718101d3985b63b576 --- gnu/packages/golang-xyz.scm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 44206a80c82..8a9a18189fb 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1683,15 +1683,7 @@ strings into words like a POSIX or Windows shell would.") (build-system go-build-system) (arguments (list - #:import-path "github.com/BurntSushi/toml" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Replace when go-build-system supports nested path. - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:import-path "github.com/BurntSushi/toml")) (home-page "https://github.com/BurntSushi/toml") (synopsis "Toml parser and encoder for Go") (description From 7568d0b9777e387b00857a095a9d5494995a144c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 20:35:28 +0000 Subject: [PATCH 380/862] gnu: Add go-github-com-cloudwego-base64x. * gnu/packages/golang-crypto.scm (go-github-com-cloudwego-base64x): New variable. Change-Id: Idf698d1c228a1edadb5ae153f02d59e86fd9d5b8 --- gnu/packages/golang-crypto.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index a5cf97667f4..8877fe33802 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -519,6 +519,36 @@ cryptographic algorithms targeting Post-Quantum (PQ) and Elliptic Curve Cryptography (ECC).") (license license:bsd-3))) +(define-public go-github-com-cloudwego-base64x + (package + (name "go-github-com-cloudwego-base64x") + (version "0.1.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cloudwego/base64x") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lgs28mj5w350vp6pazz2265hx2kab3kbjw7vnk0w1skslxbj8kx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cloudwego/base64x")) + (native-inputs + (list go-github-com-davecgh-go-spew + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-bytedance-sonic-loader + go-github-com-klauspost-cpuid-v2)) + (home-page "https://github.com/cloudwego/base64x") + (synopsis "Drop-in replacement of the std @code{encoding/base64} library") + (description + "This package provides a drop-in replacement of the Golang standard +@code{encoding/base64} library.") + (license (list license:asl2.0 license:asl2.0)))) + (define-public go-github-com-davidlazar-go-crypto (package (name "go-github-com-davidlazar-go-crypto") From 684346995de4625369896176ff1da3b5f3379772 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 20:49:33 +0000 Subject: [PATCH 381/862] gnu: Add go-github-com-bytedance-sonic. * gnu/packages/golang-xyz.scm (go-github-com-bytedance-sonic): New variable. Change-Id: Ibbff1bf8656eb9af55aade8cda12d08a08ef8c40 --- gnu/packages/golang-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8a9a18189fb..b1d4a57c7d2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1691,6 +1691,55 @@ strings into words like a POSIX or Windows shell would.") similar to Go's standard library @code{json} and @code{xml} package.") (license license:expat))) +(define-public go-github-com-bytedance-sonic + (package + (name "go-github-com-bytedance-sonic") + (version "1.12.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bytedance/sonic") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "011hp6lvqvx4facxsmy6vya02g9q3rlnmxcii827sbf6bssy7wxp")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/bytedance/sonic/external_jsonlib_test + ;; - github.com/bytedance/sonic/fuzz + ;; - github.com/bytedance/sonic/generic_test + ;; - github.com/bytedance/sonic/loader + (for-each delete-file-recursively + (list "external_jsonlib_test" + "fuzz" + "generic_test" + "loader")))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bytedance/sonic")) + (native-inputs + (list go-github-com-davecgh-go-spew + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-bytedance-sonic-loader + go-github-com-cloudwego-base64x + go-github-com-klauspost-cpuid-v2 + go-github-com-twitchyliquid64-golang-asm + go-golang-org-x-arch)) + (home-page "https://github.com/bytedance/sonic") + (synopsis "JSON serializing and deserializing library") + (description + "This package implements a functionality to serialize/deserialize JSON by +using JIT and SIMD approaches.") + ;; There some other licenses in "licenses" but all of them look like ASL + ;; compatible. + (license license:asl2.0))) + (define-public go-github-com-bytedance-sonic-loader (package (name "go-github-com-bytedance-sonic-loader") From 60c73d0d28b2f19445ba17ca4c7d68108217f9cb Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 20:57:30 +0000 Subject: [PATCH 382/862] gnu: Add go-github-com-gin-gonic-gin. * gnu/packages/golang-web.scm (go-github-com-gin-gonic-gin): New variable. Change-Id: If4b1eb590f0dc26210597d7f52854ef4832ea46e --- gnu/packages/golang-web.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 9bcd3658c32..7dd725a6ab6 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1925,6 +1925,55 @@ receives automatic updates from a server via HTTP connection. The SSE of HTML5[1] by the W3C}.") (license license:expat))) +(define-public go-github-com-gin-gonic-gin + (package + (name "go-github-com-gin-gonic-gin") + (version "1.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gin-gonic/gin") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01xjvw2d46b77jnszgbwqbdzh9jx7y3h5ik3q30y9dn9gaq5mhks")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gin-gonic/gin")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-bytedance-sonic + go-github-com-gin-contrib-sse + go-github-com-go-playground-validator-v10 + go-github-com-goccy-go-json + go-github-com-json-iterator-go + go-github-com-mattn-go-isatty + go-github-com-pelletier-go-toml-v2 + go-github-com-ugorji-go-codec + go-golang-org-x-net + go-google-golang-org-protobuf + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/gin-gonic/gin") + (synopsis "HTTP web framework") + (description + "This package provides a Golang web framework wit martini-like API. + +Features: +@itemize +@item zero allocation router +@item middleware support +@item crash-free +@item JSON validation +@item routes grouping +@item error management +@item rendering built-in +@item extendable +@end itemize") + (license license:expat))) + (define-public go-github-com-go-chi-chi-v5 (package (name "go-github-com-go-chi-chi-v5") From 5f2e774983fd30d0e18571f7ed3bb5b207eb7c79 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 21:18:56 +0000 Subject: [PATCH 383/862] gnu: go-github-com-valyala-fasthttp: Update to 1.58.0. * gnu/packages/golang-web.scm (go-github-com-valyala-fasthttp): Update to 1.58.0. [arguments] : Skip 2 tests. Change-Id: If264f2b5a64d5883b3c9b1cbd87d5bec7622b6f2 --- gnu/packages/golang-web.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 7dd725a6ab6..1abe862eb22 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6446,7 +6446,7 @@ encoding library for the MessagePack, CBOR, JSON and the Binc formats.") (define-public go-github-com-valyala-fasthttp (package (name "go-github-com-valyala-fasthttp") - (version "1.39.0") + (version "1.58.0") (source (origin (method git-fetch) @@ -6455,11 +6455,17 @@ encoding library for the MessagePack, CBOR, JSON and the Binc formats.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "12qwx0yk7wjj25v4fswgmj28r69gk94kqdmzavca8k9f0yznniz1")))) + (base32 "0r823fikgyhnmcn322anhs3ivkbzhdgbywvwi81v9kvfhi35plli")))) (build-system go-build-system) (arguments (list #:import-path "github.com/valyala/fasthttp" + #:test-flags + #~(list "-skip" (string-join + ;; Network set up is required. + (list "TestClientConfigureClientFailed" + "TestDialer_GetDialFunc") + "|")) #:phases #~(modify-phases %standard-phases (replace 'check From 354f610744085d3dd43d0c50da1451b04e2ca5d3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 21:18:45 +0000 Subject: [PATCH 384/862] gnu: Add go-github-com-gofiber-fiber-v2. * gnu/packages/golang-web.scm (go-github-com-gofiber-fiber-v2): New variable. Change-Id: I2f62478740fc30e49df0e4aa42d4013467546830 --- gnu/packages/golang-web.scm | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 1abe862eb22..3163f8dcd21 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2581,6 +2581,49 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.") "Fast JSON encoder/decoder compatible with encoding/json for Go.") (license license:expat))) +(define-public go-github-com-gofiber-fiber-v2 + (package + (name "go-github-com-gofiber-fiber-v2") + (version "2.52.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gofiber/fiber") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12gr7a38dd02p7b9fimrk16ybxfp93krh7wah0jzc0v6syjmzfi0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gofiber/fiber/v2" + #:test-flags + #~(list "-skip" + (string-join + (list "Test_Proxy_DoRedirects_TooManyRedirects" + "Test_Proxy_Do_WithRealURL" + "Test_Proxy_DoRedirects_RestoreOriginalURL" + "Test_Proxy_Do_WithRedirect") + "|")))) + (propagated-inputs + (list go-github-com-google-uuid + go-github-com-mattn-go-colorable + go-github-com-mattn-go-isatty + go-github-com-mattn-go-runewidth + go-github-com-tinylib-msgp + go-github-com-valyala-bytebufferpool + go-github-com-valyala-fasthttp + go-golang-org-x-sys)) + (home-page "https://github.com/gofiber/fiber") + (synopsis "Express inspired web framework written in Golang") + (description + "Package fiber is an @code{https://github.com/expressjs/express, Express} +inspired web framework built on top of Fasthttp, the fastest HTTP engine for +Go. Designed to ease things up for fast development with zero memory +allocation and performance in mind.") + (license license:expat))) + (define-public go-github-com-gogo-protobuf (package (name "go-github-com-gogo-protobuf") From 4d4e7af574d99698fcc34c1ff4b48960186546cf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 21:28:32 +0000 Subject: [PATCH 385/862] gnu: Add go-github-com-gobwas-pool. * gnu/packages/golang-xyz.scm (go-github-com-gobwas-pool): New variable. Change-Id: Icf49a84c9bca97eae69c19211e17123e4d89112a --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b1d4a57c7d2..d0235b11562 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4580,6 +4580,30 @@ the library more lightweight.") "This package provides a Go implementation of globs.") (license license:expat))) +(define-public go-github-com-gobwas-pool + (package + (name "go-github-com-gobwas-pool") + (version "0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gobwas/pool") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0imipsf8nslc78in78wcri2ir2zzajp2h543dp2cshrrdbwkybx7")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gobwas/pool")) + (home-page "https://github.com/gobwas/pool") + (synopsis "Go Pooling Helpers") + (description + "Package pool contains helpers for pooling structures distinguishable by +size.") + (license license:expat))) + (define-public go-github-com-goccy-go-yaml (package (name "go-github-com-goccy-go-yaml") From 190b3a5ba35cce964255acbdb7362da860fd0ddc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 21:28:32 +0000 Subject: [PATCH 386/862] gnu: Add go-github-com-gobwas-httphead. * gnu/packages/golang-web.scm (go-github-com-gobwas-httphead): New variable. Change-Id: I2b116bae78ec56c42504c046873caed7102ff201 --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 3163f8dcd21..db37d813623 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2557,6 +2557,30 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.") ;; For the WebAuthn's fork: LICENSE. license:bsd-3)))) +(define-public go-github-com-gobwas-httphead + (package + (name "go-github-com-gobwas-httphead") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gobwas/httphead") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "106l8ml5yihld3rrf45q5fhlsx64hrpj2dsvnnm62av4ya5nf0gb")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gobwas/httphead")) + (home-page "https://github.com/gobwas/httphead") + (synopsis "Tiny HTTP header value parsing library in Golang") + (description + "Package httphead contains utils for parsing HTTP and HTTP-grammar +compatible text protocols headers.") + (license license:expat))) + (define-public go-github-com-goccy-go-json (package (name "go-github-com-goccy-go-json") From dc7d7642d8cfab423a7e65177a8c81d8709a939c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 21:29:50 +0000 Subject: [PATCH 387/862] gnu: Add go-github-com-gobwas-ws. * gnu/packages/golang-web.scm (go-github-com-gobwas-ws): New variable. Change-Id: Ifc0d14ec23caf97fd71903e8e567de7485a72f7e --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index db37d813623..af1a7669660 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2581,6 +2581,34 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.") compatible text protocols headers.") (license license:expat))) +(define-public go-github-com-gobwas-ws + (package + (name "go-github-com-gobwas-ws") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gobwas/ws") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nqgb75cizx11igwjqx6b6mlzl7yxy6x683m9aaalgcx9n1qxan7")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gobwas/ws")) + (propagated-inputs + (list go-github-com-gobwas-httphead + go-github-com-gobwas-pool)) + (home-page "https://github.com/gobwas/ws") + (synopsis "Tiny WebSocket library for Golang") + (description + "Package ws implements a client and server for the @code{WebSocket} +protocol as specified in @url{https://rfc-editor.org/rfc/rfc6455.html, RFC +6455}.") + (license license:expat))) + (define-public go-github-com-goccy-go-json (package (name "go-github-com-goccy-go-json") From 4f97dbd2bd7133dda5b8197e4aa643e90f07432d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 21:37:22 +0000 Subject: [PATCH 388/862] gnu: go-github-com-coder-websocket: Delete submodule. * gnu/packages/golang-web.scm (go-github-com-coder-websocket) [source] : Delete submodule which would be packaged separately. [native-inputs]: Add go-golang-org-x-time. Change-Id: Ia4b491f94e29b4bd4a0365433ddaf0fe781024ee --- gnu/packages/golang-web.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index af1a7669660..925baf21615 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1068,10 +1068,19 @@ browser window.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "172v9mqghswf50ga512qghb6ii0ivz5fi2iyjzdnbm42g0cr4fjj")))) + (base32 "172v9mqghswf50ga512qghb6ii0ivz5fi2iyjzdnbm42g0cr4fjj")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/coder/websocket/internal/thirdparty + (delete-file-recursively "internal/thirdparty"))))) (build-system go-build-system) (arguments (list #:import-path "github.com/coder/websocket")) + (native-inputs + (list go-golang-org-x-time)) ; for examples (home-page "https://github.com/coder/websocket") (synopsis "WebSocket library for Go") (description From a7d3b617d9dc163ec24347467ca8dfb33bb4de91 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 22:18:07 +0000 Subject: [PATCH 389/862] gnu: go-go-uber-org-dig: Update to 1.18.0. * gnu/packages/golang-xyz.scm (go-go-uber-org-dig): Update to 1.18.0. Change-Id: Ib87fe3659e9c8a2fecb5f5b455511602b3906569 --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d0235b11562..66841fa4e3c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11454,7 +11454,7 @@ CPU quota.") (define-public go-go-uber-org-dig (package (name "go-go-uber-org-dig") - (version "1.17.1") + (version "1.18.0") (source (origin (method git-fetch) @@ -11463,7 +11463,7 @@ CPU quota.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "020dak2r0yykk6fkfwad2wbz73pjbbdkdamn0ir7xf2irxsmjakm")))) + (base32 "1hc56szkalhsxfnpw5iphhm1vhlq2za5049vcwi4zlcy64mjx8v9")))) (build-system go-build-system) (arguments (list From 90e1996eccab417652702c4f1599b08fbe7818b6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 22:18:19 +0000 Subject: [PATCH 390/862] gnu: go-go-uber-org-multierr: Update to 1.11.0. * gnu/packages/golang-xyz.scm (go-go-uber-org-multierr): Update to 1.11.0. Change-Id: I9934b8b614d0a3d637cd182ed7de2e443f2342f6 --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 66841fa4e3c..195cc68a906 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11512,7 +11512,7 @@ applications out of reusable, composable modules.") (define-public go-go-uber-org-multierr (package (name "go-go-uber-org-multierr") - (version "1.6.0") + (version "1.11.0") (source (origin (method git-fetch) @@ -11521,7 +11521,7 @@ applications out of reusable, composable modules.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "162941s8f6a9x2w04qm4qa3zz0zylwag9149hywrj9ibp2nzcsqz")))) + (base32 "1s6skad93nbsq4b0sy5dsgacrdh2kzg0p8wjlhvff49vasqsi3qx")))) (build-system go-build-system) (arguments '(#:import-path "go.uber.org/multierr")) From 666361cf6a5f0610fddaf499e59033d872851d7c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 22:18:18 +0000 Subject: [PATCH 391/862] gnu: go-go-uber-org-fx: Update to 1.23.0. * gnu/packages/golang-xyz.scm (go-go-uber-org-fx): Update to 1.23.0. [source] : Delete submodule with it's own go.mod to package separately. [arguments] : Skip 3 tests. Change-Id: I1ca93808e6dd343a86bf04184248f2e2d51e4e8d --- gnu/packages/golang-xyz.scm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 195cc68a906..824d0090d6e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11480,7 +11480,7 @@ object dependencies graph during the process startup.") (define-public go-go-uber-org-fx (package (name "go-go-uber-org-fx") - (version "1.21.0") + (version "1.23.0") (source (origin (method git-fetch) @@ -11489,11 +11489,25 @@ object dependencies graph during the process startup.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "16pbqmkij02zw6xa4660k905y0r0rc50vyqhg41i2411r68jrdnn")))) + (base32 "03m26d2k9gwcdjjmwajz1fnihdjvb46l6c5ws07r8l8skcz1jx16")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - go.uber.org/fx/tools + (delete-file-recursively "tools"))))) (build-system go-build-system) (arguments (list - #:import-path "go.uber.org/fx")) + #:import-path "go.uber.org/fx" + #:test-flags + #~(list "-skip" (string-join + ;; Tests require networking set up. + (list "TestNopLoggerOptionString" + "TestRun" + "TestDeepStack") + "|")))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs From 802be6b1b807ac4e95c7dbb5d8c5b7242ab6c8cc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 22:28:34 +0000 Subject: [PATCH 392/862] gnu: Add go-fxlint. * gnu/packages/golang-xyz.scm (go-go-uber-org-fx-tools, go-fxlint): New variables. Change-Id: I9fcccc99393a990967188a7977c28b5e00a4cee9 --- gnu/packages/golang-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 824d0090d6e..756f9d09b50 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11523,6 +11523,36 @@ object dependencies graph during the process startup.") applications out of reusable, composable modules.") (license license:expat))) +(define-public go-go-uber-org-fx-tools + (package + (name "go-go-uber-org-fx-tools") + (version "0.0.0-20241011173146-861011200d8a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/uber-go/fx") + (commit (go-version->git-ref version + #:subdir "tools")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1y9zavn5dmb5v2g2krc1apznp1fwc2zb70hlgxw4xcz2ifdwx7wz")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "go.uber.org/fx/tools" + #:unpack-path "go.uber.org/fx")) + (propagated-inputs (list go-golang-org-x-tools)) + (home-page "https://go.uber.org/fx") + (synopsis "Verify FX events") + (description + "This Package implements a Go analysis pass that verifies that an +@code{fxevent.Logger} implementation handles all known fxevent types. As a +special case for no-op or fake fxevent.Loggers, it ignores implementations +that handle none of the event types.") + (license license:expat))) + (define-public go-go-uber-org-multierr (package (name "go-go-uber-org-multierr") @@ -12507,6 +12537,21 @@ tool.")))) (string-append (package-description go-github-com-olekukonko-tablewriter) "\nThis package provides a command line interface (CLI) tool.")))) +(define-public go-fxlint + (package + (inherit go-go-uber-org-fx-tools) + (name "go-fxlint") + (arguments + (list + #:tests? #f + #:install-source? #f + #:import-path "go.uber.org/fx/tools/cmd/fxlint" + #:unpack-path "go.uber.org/fx")) + (description + (string-append (package-description go-go-uber-org-fx-tools) + " This package provides a command line interface (CLI) +linter that verifies correct usage of Fx.")))) + (define-public go-hclogvet (package (inherit go-github-com-hashicorp-go-hclog) From aa17d975e993bc84593db2dce7b588f8e749cf11 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 23:15:18 +0000 Subject: [PATCH 393/862] gnu: Add go-github-com-libp2p-go-libp2p-testing. * gnu/packages/ipfs.scm (go-github-com-libp2p-go-libp2p-testing): New variable. Change-Id: I6805b070f21dac97473713e1186dc51656221651 --- gnu/packages/ipfs.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 87a4d584649..df38c7179c8 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -1007,6 +1007,31 @@ their levels to be controlled individually.") @url{https://github.com/libp2p/specs,libp2p}.") (license license:expat))) +(define-public go-github-com-libp2p-go-libp2p-testing + (package + (name "go-github-com-libp2p-go-libp2p-testing") + (version "0.12.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libp2p/go-libp2p-testing") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08n17mqskdj5il6lws53wk1zsf9d8c55f58bap1rjngf2d669p39")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t ; to break cycle with go-github-com-libp2p-go-libp2p + #:tests? #f + #:import-path "github.com/libp2p/go-libp2p-testing")) + (home-page "https://github.com/libp2p/go-libp2p-testing") + (synopsis "Test toolbox for go-libp2p modules") + (description + "This package provides a testing toolbox for go-libp2p modules.") + (license (list license:expat license:asl2.0)))) + (define-public go-github-com-whyrusleeping-cbor-gen (package (name "go-github-com-whyrusleeping-cbor-gen") From 62b3293e99fed5042d0b69448e41f51f8c2b5014 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 23:15:20 +0000 Subject: [PATCH 394/862] gnu: go-github-com-gorilla-websocket: Update to 1.5.3. * gnu/packages/golang-web.scm (go-github-com-gorilla-websocket): Update to 1.5.3. Change-Id: I04c30a9be141d2667b07bd2d012653ae8cf38ba4 --- gnu/packages/golang-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 925baf21615..a07deb2b823 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3069,7 +3069,7 @@ sessions, flash messages, custom backends, and more.") (define-public go-github-com-gorilla-websocket (package (name "go-github-com-gorilla-websocket") - (version "1.5.0") + (version "1.5.3") (home-page "https://github.com/gorilla/websocket") (source (origin @@ -3079,7 +3079,7 @@ sessions, flash messages, custom backends, and more.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1xrr6snvs9g1nzxxg05w4i4pq6k1xjljl5mvavd838qc468n118i")))) + (base32 "1k84plbz6bxarbdrdcsrm9vhiy971prpvfnkcpsfv2q4ac80ccmx")))) (build-system go-build-system) (arguments `(#:import-path "github.com/gorilla/websocket")) From 6e67062dcb2872adf863f900014c08cb4a9e6f11 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 23:15:20 +0000 Subject: [PATCH 395/862] gnu: go-github-com-libp2p-go-libp2p: Update to 0.36.5. * gnu/packages/ipfs.scm (go-github-com-libp2p-go-libp2p): Update to 0.36.5. [source] : Delete submodules with their own go.mod files to be packaged separately. [propagated-inputs]: Remove go-github-com-stretchr-testify, go-go-uber-org-goleak, and go-go-uber-org-mock; add go-go-uber-org-zap. [native-inputs]: Add go-github-com-libp2p-go-libp2p-testing, go-github-com-stretchr-testify, go-go-uber-org-mock, and go-go-uber-org-goleak. Change-Id: Idffc875c58abf9673977c96dd1e2403d9028a9b4 --- gnu/packages/ipfs.scm | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index df38c7179c8..6c427202301 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -925,7 +925,7 @@ their levels to be controlled individually.") (define-public go-github-com-libp2p-go-libp2p (package (name "go-github-com-libp2p-go-libp2p") - (version "0.36.3") + (version "0.36.5") (source (origin (method git-fetch) @@ -934,12 +934,35 @@ their levels to be controlled individually.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1bpjqrb2zdp86va7ms36lpci1l6lgkx85rc3q13fmzks38mqqw8s")))) + (base32 "0fmalwb0g0nykd1v22nm5gmif9mvapshsja8w1ihlm8ahbqq9vb2")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separatly: + ;; + ;; - github.com/libp2p/go-libp2p/scripts/test_analysis + ;; - github.com/libp2p/go-libp2p/test-plans/m/v2 + (for-each delete-file-recursively + (list "scripts/test_analysis" "test-plans")))))) (build-system go-build-system) (arguments (list #:embed-files #~(list "sorted-network-list.bin") - #:import-path "github.com/libp2p/go-libp2p")) + #:import-path "github.com/libp2p/go-libp2p" + ;; XXX: Check how to enable the most of the tests, see GitHub Actions + ;; workflow files of the project. + #:test-subdirs #~(list "core/..." ".") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) + (native-inputs + (list go-github-com-libp2p-go-libp2p-testing + go-github-com-stretchr-testify + go-go-uber-org-mock + go-go-uber-org-goleak)) (propagated-inputs (list go-github-com-benbjohnson-clock go-github-com-davidlazar-go-crypto @@ -989,10 +1012,8 @@ their levels to be controlled individually.") go-github-com-quic-go-quic-go go-github-com-quic-go-webtransport-go go-github-com-raulk-go-watchdog - go-github-com-stretchr-testify go-go-uber-org-fx - go-go-uber-org-goleak - go-go-uber-org-mock + go-go-uber-org-zap go-golang-org-x-crypto go-golang-org-x-exp go-golang-org-x-sync From 6f1a5f87986504a448c3ef805120934d31ed5a6b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 23:27:09 +0000 Subject: [PATCH 396/862] gnu: go-github-com-willscott-goturn: Update to 0.0.0-20170802220503-19f41278d0c9. * gnu/packages/golang.scm (go-github-com-willscott-goturn): Update to 0.0.0-20170802220503-19f41278d0c9. Change-Id: I9fef2106903c819d9796b2b490fb3baf332f438c --- gnu/packages/golang.scm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4cc2cb5634f..14a9939f6f0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1890,30 +1890,29 @@ obfuscated via the Elligator 2 mapping. (license license:bsd-2))) (define-public go-github-com-willscott-goturn - (let ((commit "19f41278d0c9251d64e0ee29f37d51e87a24a97b") - (revision "0")) (package (name "go-github-com-willscott-goturn") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20170802220503-19f41278d0c9") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/willscott/goturn") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 "0zwvhfznr84ayzknn9flh65nvqjsixisgy9fkhz2jlahl1ldqcq7")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/willscott/goturn")) + `(#:tests? #f ; tests are broken on a newer go, starting from 1.17. + #:import-path "github.com/willscott/goturn")) (home-page "https://github.com/willscott/goturn") (synopsis "Go TURN dialer") (description "GoTURN is a library providing a Go interface compatible with the golang proxy package which connects through a TURN relay. It provides parsing and encoding support for STUN and TURN protocols.") - (license license:bsd-3)))) + (license license:bsd-3))) (define-public go-github-com-flopp-go-findfont (package From 7c3c20aefa68a39d76cb88c574f241522f20e340 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 23:27:03 +0000 Subject: [PATCH 397/862] gnu: go-github-com-operatorfoundation-obfs4: Simplify. * gnu/packages/golang.scm (go-github-com-operatorfoundation-obfs4) [arguments] : Use default 'build, 'check and 'install. Change-Id: I1679f1fab4d07bfca9df6e0447712280906029ec --- gnu/packages/golang.scm | 88 +++-------------------------------------- 1 file changed, 6 insertions(+), 82 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 14a9939f6f0..5283e36a65a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1786,88 +1786,12 @@ protocol from the Pluggable Transports 2.0 specification.") (base32 "0s730xagdxs66wfh65hb5v9a5h01q5ncic3pyij0a043scagizgr")))) (build-system go-build-system) (arguments - `(#:unpack-path "github.com/OperatorFoundation/obfs4" - #:phases - (modify-phases %standard-phases - (replace 'build - (lambda arguments - (for-each - (lambda (directory) - (apply (assoc-ref %standard-phases 'build) - `(,@arguments #:import-path ,directory))) - (list - "github.com/OperatorFoundation/obfs4/common/csrand" - "github.com/OperatorFoundation/obfs4/common/drbg" - "github.com/OperatorFoundation/obfs4/common/log" - "github.com/OperatorFoundation/obfs4/common/ntor" - "github.com/OperatorFoundation/obfs4/common/probdist" - "github.com/OperatorFoundation/obfs4/common/pt_extras" - "github.com/OperatorFoundation/obfs4/common/replayfilter" - "github.com/OperatorFoundation/obfs4/common/socks5" - "github.com/OperatorFoundation/obfs4/common/termmon" - "github.com/OperatorFoundation/obfs4/common/uniformdh" - "github.com/OperatorFoundation/obfs4/modes/pt_socks5" - "github.com/OperatorFoundation/obfs4/modes/stun_udp" - "github.com/OperatorFoundation/obfs4/modes/transparent_tcp" - "github.com/OperatorFoundation/obfs4/modes/transparent_udp" - "github.com/OperatorFoundation/obfs4/obfs4proxy" - "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http" - "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4" - "github.com/OperatorFoundation/obfs4/transports")))) - (replace 'check - (lambda arguments - (for-each - (lambda (directory) - (apply (assoc-ref %standard-phases 'check) - `(,@arguments #:import-path ,directory))) - (list - "github.com/OperatorFoundation/obfs4/common/csrand" - "github.com/OperatorFoundation/obfs4/common/drbg" - "github.com/OperatorFoundation/obfs4/common/log" - "github.com/OperatorFoundation/obfs4/common/ntor" - "github.com/OperatorFoundation/obfs4/common/probdist" - "github.com/OperatorFoundation/obfs4/common/pt_extras" - "github.com/OperatorFoundation/obfs4/common/replayfilter" - "github.com/OperatorFoundation/obfs4/common/socks5" - "github.com/OperatorFoundation/obfs4/common/termmon" - "github.com/OperatorFoundation/obfs4/common/uniformdh" - ;; ERROR: Println arg dialFn is a func value, not called. - ;;"github.com/OperatorFoundation/obfs4/modes/pt_socks5" - ;; ERROR: Infof format %s has arg ln of wrong type *net.UDPConn. - ;;"github.com/OperatorFoundation/obfs4/modes/stun_udp" - "github.com/OperatorFoundation/obfs4/modes/transparent_tcp" - ;; ERROR: Infof format %s has arg ln of wrong type *net.UDPConn - ;;"github.com/OperatorFoundation/obfs4/modes/transparent_udp" - ;; ERROR: Println call has possible formatting directive %s. - ;;"github.com/OperatorFoundation/obfs4/obfs4proxy" - "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http" - "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4" - "github.com/OperatorFoundation/obfs4/transports")))) - (replace 'install - (lambda arguments - (for-each - (lambda (directory) - (apply (assoc-ref %standard-phases 'install) - `(,@arguments #:import-path ,directory))) - (list - "github.com/OperatorFoundation/obfs4/common/csrand" - "github.com/OperatorFoundation/obfs4/common/drbg" - "github.com/OperatorFoundation/obfs4/common/log" - "github.com/OperatorFoundation/obfs4/common/ntor" - "github.com/OperatorFoundation/obfs4/common/probdist" - "github.com/OperatorFoundation/obfs4/common/pt_extras" - "github.com/OperatorFoundation/obfs4/common/replayfilter" - "github.com/OperatorFoundation/obfs4/common/socks5" - "github.com/OperatorFoundation/obfs4/common/termmon" - "github.com/OperatorFoundation/obfs4/common/uniformdh" - "github.com/OperatorFoundation/obfs4/modes/pt_socks5" - "github.com/OperatorFoundation/obfs4/modes/stun_udp" - "github.com/OperatorFoundation/obfs4/modes/transparent_tcp" - "github.com/OperatorFoundation/obfs4/modes/transparent_udp" - "github.com/OperatorFoundation/obfs4/obfs4proxy" - "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http" - "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4" - "github.com/OperatorFoundation/obfs4/transports"))))))) + (list + #:skip-build? #t + #:import-path "github.com/OperatorFoundation/obfs4" + #:test-subdirs #~(list "common/..." + "proxy_dialers/..." + "transports/obfs4/..."))) (propagated-inputs (list go-github-com-dchest-siphash go-github-com-operatorfoundation-ed25519 From f2c75428a3ad3bf020d14c77006c485c30007877 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 23:38:43 +0000 Subject: [PATCH 398/862] gnu: go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel: Fix tests. * gnu/packages/golang.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel) [arguments] : Limit to project's root. Change-Id: I0003e95f7b57a31f9c8ea52a2fa724db0dbca9c4 --- gnu/packages/golang.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5283e36a65a..64ced9bab84 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2059,7 +2059,8 @@ incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol.") (base32 "0nvd0qp1mdy7w32arnkhghxm5k2g6gy33cxlarxc6vdm4yh6v5nv")))) (build-system go-build-system) (arguments - `(#:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel")) + `(#:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel" + #:test-subdirs '("."))) (home-page "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel") (synopsis "Go WebTunnel Pluggable Transport") (description "WebTunnel is a Go Pluggable Transport that attempts to imitate From 9d282c283db2aaf931b4186d2d460cd821e19c7f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 23:43:46 +0000 Subject: [PATCH 399/862] gnu: go-github-com-polydawn-refmt: Update to 0.89.0. * gnu/packages/golang-xyz.scm (go-github-com-polydawn-refmt): Update to 0.89.0. [propagated-inputs]: Remove go-gopkg-in-yaml-v2; add go-github-com-go-yaml-yaml. Change-Id: I70ca4a256ec7e7cb6f06fea729f469e9850a6e58 --- gnu/packages/golang-xyz.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 756f9d09b50..ad29dfbdc95 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9102,25 +9102,25 @@ Pion}.") (define-public go-github-com-polydawn-refmt (package (name "go-github-com-polydawn-refmt") - (version "0.89.1-0.20231129105047-37766d95467a") + (version "0.89.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/polydawn/refmt/") - (commit (go-version->git-ref version)))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0grgzacc7igfndk1v3n1g6k4wdz6bjsiqfq3n5br2zpr7n40ha9n")))) + (base32 "1v4av75nlgvps5q2h3q6w3cmry0gg316l82zmj6sph9bp2c87621")))) (build-system go-build-system) (arguments (list #:import-path "github.com/polydawn/refmt")) (propagated-inputs - (list go-github-com-urfave-cli - go-github-com-warpfork-go-wish + (list go-github-com-go-yaml-yaml go-github-com-smartystreets-goconvey - go-gopkg-in-yaml-v2)) + go-github-com-urfave-cli + go-github-com-warpfork-go-wish)) (home-page "https://github.com/polydawn/refmt/") (synopsis "Object mapping for Go language") (description From 1032e50d368d5fb762e81bf32a8c46312b151e64 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 23:47:32 +0000 Subject: [PATCH 400/862] gnu: go-github-com-ipld-go-ipld-prime: Fix build. * gnu/packages/ipfs.scm (go-github-com-ipld-go-ipld-prime) [arguments] : Remove it. : Limit to project's root. Change-Id: I4346f2c12e5d0d83e0306b00df8a53d12cbd025b --- gnu/packages/ipfs.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 6c427202301..5635763c5b3 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -809,8 +809,9 @@ code prior to it getting merged into @code{go-cid}.") (build-system go-build-system) (arguments (list - #:unpack-path "github.com/ipld/go-ipld-prime/" - #:import-path "github.com/ipld/go-ipld-prime/" + #:import-path "github.com/ipld/go-ipld-prime" + ;; XXX: More input requires to cover all shipped go packages. + #:test-subdirs #~(list ".") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'copy-ipld-specfs From e7f2f899edcf322c233744c93d0ab2447a7f1038 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 00:11:09 +0000 Subject: [PATCH 401/862] gnu: kubo: Update to 0.31.0. * gnu/packages/ipfs.scm (kubo): Update to 0.31.0. Change-Id: Ia077b3d9c28a73a017e9eb92507db00d3a883f2a --- gnu/packages/ipfs.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 5635763c5b3..43923a90ac5 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -1085,7 +1085,7 @@ types.") (define-public kubo (package (name "kubo") - (version "0.30.0") + (version "0.31.0") (source (origin (method url-fetch/tarbomb) @@ -1093,7 +1093,7 @@ types.") "https://dist.ipfs.io/kubo/v" version "/kubo-source.tar.gz")) (sha256 - (base32 "0kwbwbrlvgcb8lcg85gpab6czyrnq7r9139i5gp827231zfbcqzq")) + (base32 "0271rh54xbwikbllzsjnkjlj29cb2xy5lnhia47qlf2ymvl48kvf")) (file-name (string-append name "-" version "-source")) (modules '((guix build utils))) (snippet '(for-each delete-file-recursively @@ -1208,6 +1208,7 @@ types.") (build-system go-build-system) (arguments (list + #:go go-1.22 #:embed-files #~(list "sorted-network-list.bin") #:unpack-path "github.com/ipfs/kubo" #:import-path "github.com/ipfs/kubo/cmd/ipfs" From 65747079678a4649586cd1212a68a2bea12383f3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 09:51:14 +0000 Subject: [PATCH 402/862] gnu: go-1.23: Update to 1.23.4. * gnu/packages/golang.scm (go-1.23): Update to 1.23.4. Change-Id: I27463a1f1921b4c6c37aac43e6ae7b0e55f2f538 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 64ced9bab84..479e9b97cfb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -992,7 +992,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (package (inherit go-1.22) (name "go") - (version "1.23.2") + (version "1.23.4") (source (origin (method git-fetch) @@ -1001,7 +1001,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (commit (string-append "go" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0v8j43yqkhp5i5649nbxsq7lc9bjjn39gqqvlnz0d9c47qz9h7y7")))))) + (base32 "0aiaphmns23i0bxbaxzkh4h6nz60sxm1vs381819vfg5n2gna6dd")))))) ;; ;; Default Golang version used in guix/build-system/go.scm to build packages. From 56fee099e67dbb0ce36f80b62f6affbe09cd8b9a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 09:58:01 +0000 Subject: [PATCH 403/862] gnu: go-1.22: Update to 1.22.10. * gnu/packages/golang.scm (go-1.22): Update to 1.22.10. Change-Id: I5ab93daf77cef4c0cc570805513a0d35f236c2dd --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 479e9b97cfb..d914879a794 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -956,7 +956,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (package (inherit go-1.21) (name "go") - (version "1.22.7") + (version "1.22.10") (source (origin (method git-fetch) @@ -965,7 +965,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (commit (string-append "go" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0m1idhhifhpjf6n56pca4wg6cyripdzmyl0jswdiy0kiqvs3whqb")))) + (base32 "0piy2mc3v3cadn3ls1ylcm713vjl957j0m0bj4vqggqihy7rp54g")))) (arguments (substitute-keyword-arguments (package-arguments go-1.21) ((#:phases phases) From 036620401115251895dc5e966a2634f3a54e56ba Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 10:07:03 +0000 Subject: [PATCH 404/862] gnu: go-1.21: Update to 1.21.13. * gnu/packages/golang.scm (go-1.21): Update to 1.21.13. Change-Id: I3f8aa0bde70f24019b5671114c56a66cefd263e3 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d914879a794..39896d20746 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -822,7 +822,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (package (inherit go-1.20) (name "go") - (version "1.21.5") + (version "1.21.13") (source (origin (method git-fetch) (uri (git-reference @@ -831,7 +831,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (file-name (git-file-name name version)) (sha256 (base32 - "0f11kya6rpqfldpw82g0yiknz657i655d3c0yh3qy6f8xa8x7zn2")))) + "0x4qdib1d3gzgz620aysi1rrg682g93710dar4ga32b0j0w5kbhj")))) (arguments (substitute-keyword-arguments (package-arguments go-1.20) ;; Source patching phases are broken up into discrete steps to allow From 614ae7bff1d6492822ffce5cead83d98e34ca430 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 12:04:38 +0000 Subject: [PATCH 405/862] gnu: Add go-github-com-hashicorp-go-envparse. * gnu/packages/golang-xyz.scm (go-github-com-hashicorp-go-envparse): New variable. Change-Id: Ib580d027ccc59b0fc3d8e6e0575aa9cd1a24e731 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ad29dfbdc95..ac401bdcd8e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5011,6 +5011,31 @@ configuration.") wrapping errors and checking if an error contains another error.") (license license:mpl2.0))) +(define-public go-github-com-hashicorp-go-envparse + (package + (name "go-github-com-hashicorp-go-envparse") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hashicorp/go-envparse") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wqb96gbfrj5986a1cg1sa0412dk7qpnh9l2w3y5q7a38v2dlh9j")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hashicorp/go-envparse")) + (home-page "https://github.com/hashicorp/go-envparse") + (synopsis "Environment variable parser for Golang") + (description + "Package envparse is a minimal environment variable parser. It handles +empty lines, comments, single quotes, double quotes, and JSON escape +sequences.") + (license license:mpl2.0))) + (define-public go-github-com-hashicorp-go-hclog (package (name "go-github-com-hashicorp-go-hclog") From 34757c63b95eed1bf0a3c5d36741b1c28df6ad69 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 12:04:41 +0000 Subject: [PATCH 406/862] gnu: Add go-github-com-beevik-ntp. * gnu/packages/golang-web.scm (go-github-com-beevik-ntp): New variable. Change-Id: I4f43146da02860dde9a3c969810968c91e546759 --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index a07deb2b823..c7c051c8092 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -693,6 +693,37 @@ credentials sources.") Manager,NTLM}/Negotiate authentication over HTTP.") (license license:expat))) +(define-public go-github-com-beevik-ntp + (package + (name "go-github-com-beevik-ntp") + (version "1.4.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/beevik/ntp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0n2mr4nnbsv5f0w3hkk3kmyn3wd2xqi5zxgcm8s50fdizk0nqmi9")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/beevik/ntp" + ;; Tests requir access to <0.beevik-ntp.pool.ntp.org:53>. + #:test-flags #~(list "-skip" "TestOnlineQuery|TestOnlineTime"))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-golang-org-x-net)) + (home-page "https://github.com/beevik/ntp") + (synopsis "NTP client package for Golang") + (description + "Package ntp provides an implementation of a Simple NTP (SNTP) client +capable of querying the current time from a remote NTP server as specified in +@url{https://rfc-editor.org/rfc/rfc5905.html, RFC 5905}.") + (license license:bsd-2))) + (define-public go-github-com-bep-golibsass (package (name "go-github-com-bep-golibsass") From 2c34c9bb6fac92d3356ef018e64ffc252a07d896 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 12:11:27 +0000 Subject: [PATCH 407/862] gnu: Add go-github-com-hashicorp-yamux. * gnu/packages/golang-web.scm (go-github-com-hashicorp-yamux): New variable. Change-Id: Ic37744576fd6c822f71933242822c1b7eaae9ae4 --- gnu/packages/golang-web.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index c7c051c8092..fc283292068 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3205,6 +3205,43 @@ standard @code{net/http} client library and exposes nearly the same public API.") (license license:mpl2.0))) +(define-public go-github-com-hashicorp-yamux + (package + (name "go-github-com-hashicorp-yamux") + (version "0.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hashicorp/yamux") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1c46zdj94lv28sb9rmhinzcckl72vs3gwm197nsa80ca3b161yi6")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hashicorp/yamux")) + (home-page "https://github.com/hashicorp/yamux") + (synopsis "Golang connection multiplexing library") + (description + "Yamux (Yet another Multiplexer) relies on an underlying connection to +provide reliability and ordering, such as TCP or Unix domain sockets, and +provides stream-oriented multiplexing. It is inspired by SPDY but is not +interoperable with it. + +Features: +@itemize +@item streams can be opened by either client or server +@item useful for nat traversal +@item server-side push support +@item avoid starvation +@item back-pressure to prevent overwhelming a receiver +@item enables persistent connections over a load balancer +@item enables thousands of logical streams with low overhead +@end itemize") + (license license:mpl2.0))) + (define-public go-github-com-hjson-hjson-go-v4 (package (name "go-github-com-hjson-hjson-go-v4") From 0d44363e8293957fb12f210f49bc131f92b3ea9f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 12:16:54 +0000 Subject: [PATCH 408/862] gnu: go-github.com-nsf-termbox-go: Fix name. * gnu/packages/golang-xyz.scm (go-github.com-nsf-termbox-go): Rename variable to go-github-com-nsf-termbox-go. (go-github-com-gizak-termui-v3) [propagated- inputs]: Remove go-github.com-nsf-termbox-go; add go-github-com-nsf-termbox-go. * gnu/packages/games.scm (harmonist) [inputs]: Remove go-github.com-nsf-termbox-go; add go-github-com-nsf-termbox-go. * gnu/packages/time.scm (countdown) [inputs]: Remove go-github.com-nsf-termbox-go; add go-github-com-nsf-termbox-go. Change-Id: I621304593cc00cdf8bcf9acc0f8e1064682e0d3f --- gnu/packages/games.scm | 2 +- gnu/packages/golang-xyz.scm | 6 +++--- gnu/packages/time.scm | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index e3de42ec740..162c25de405 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -10650,7 +10650,7 @@ terminal full-window applications.") '(#:import-path "git.tuxfamily.org/harmonist/harmonist")) (inputs `(("go-github-com-gdamore-tcell-v2" ,go-github-com-gdamore-tcell-v2) - ("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go) + ("go-github-com-nsf-termbox-go" ,go-github-com-nsf-termbox-go) ("go-github-com-anaseto-gruid" ,go-github-com-anaseto-gruid) ("go-github-com-anaseto-gruid-tcell" ,go-github-com-anaseto-gruid-tcell))) (home-page "https://harmonist.tuxfamily.org/") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ac401bdcd8e..761d0ee2bc2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4133,7 +4133,7 @@ also favors portability, and includes support for all POSIX systems.") (propagated-inputs (list go-github-com-mattn-go-runewidth go-github-com-mitchellh-go-wordwrap - go-github.com-nsf-termbox-go)) + go-github-com-nsf-termbox-go)) (home-page "https://github.com/gizak/termui") (synopsis "Terminal dashboard widget Go library") (description @@ -8524,9 +8524,9 @@ list of sentences.") pretty printed rendering in Golang.") (license license:expat))) -(define-public go-github.com-nsf-termbox-go +(define-public go-github-com-nsf-termbox-go (package - (name "go-github.com-nsf-termbox-go") + (name "go-github-com-nsf-termbox-go") (version "1.1.1") (source (origin diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index 302e86309fc..376fbe1504b 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -695,7 +695,7 @@ choosing.") (list #:import-path "github.com/antonmedv/countdown")) (native-inputs - (list go-github.com-nsf-termbox-go)) + (list go-github-com-nsf-termbox-go)) (home-page "https://github.com/antonmedv/countdown") (synopsis "Counts to zero with a text user interface") (description From 0b0ffebe9c036f4ccd1d8bcfaa3f29173360fd61 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 12:20:56 +0000 Subject: [PATCH 409/862] gnu: Add go-github-com-posener-complete. * gnu/packages/golang-xyz.scm (go-github-com-posener-complete): New variable. Change-Id: I00aba7ba2c98c9cfcdea2672fca3a46e7cd3548d --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 761d0ee2bc2..04fc36c078f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9152,6 +9152,34 @@ Pion}.") "@code{refmt} is a serialization and object-mapping library.") (license license:expat))) +(define-public go-github-com-posener-complete + (package + (name "go-github-com-posener-complete") + (version "1.2.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/posener/complete") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nri6hkfb0z3dkxf2fsfidr4bxbn91rjsqhg5s0c2jplf0aclppz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/posener/complete")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-hashicorp-go-multierror)) + (home-page "https://github.com/posener/complete") + (synopsis "Bash completion implemented in Golang") + (description + "Package complete provides a tool for bash writing bash completion in go, +and bash completion for the go command line.") + (license license:expat))) + (define-public go-github-com-pterm-pterm (package (name "go-github-com-pterm-pterm") From 8b5d188ee8af789269750c89a7c24e1158e7d753 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 12:27:46 +0000 Subject: [PATCH 410/862] gnu: Add go-github-com-safchain-ethtool. * gnu/packages/golang-web.scm (go-github-com-safchain-ethtool): New variable. Change-Id: I82ece19fc5819b4ae6466016760644e518058268 --- gnu/packages/golang-web.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index fc283292068..e203ec724e2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6171,6 +6171,45 @@ per host/process @end itemize") (license license:expat))) +(define-public go-github-com-safchain-ethtool + (package + (name "go-github-com-safchain-ethtool") + (version "0.5.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/safchain/ethtool") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01q0qfyksnhd4a2w2824yzdmyb4g4xr0y2z4ffnpbzz1wp60rydg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/safchain/ethtool" + #:test-flags + ;; Unable to retrieve driver from any interface of this system. + #~(list "-skip" + (string-join + (list "TestCmdGet" + "TestCmdGetMapped" + "TestMsglvlGet" + "TestStats" + "TestDriverName" + "TestBusInfo") + "|")))) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/safchain/ethtool") + (synopsis "Ethtool library for Golang") + (description + "The ethtool package aims to provide a library that implements easy +access to the Linux SIOCETHTOOL ioctl operations. It can be used to retrieve +information from a network device such as statistics, driver related +information or even the peer of a VETH interface.") + (license license:asl2.0))) + (define-public go-github-com-sherclockholmes-webpush-go (package (name "go-github-com-sherclockholmes-webpush-go") From 7c926c14a671477877d1b52180da08a31adddd20 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 12:33:45 +0000 Subject: [PATCH 411/862] gnu: Add go-github-com-lithammer-dedent. * gnu/packages/golang-xyz.scm (go-github-com-lithammer-dedent): New variable. Change-Id: I4e7e399e6852b49a407beb343ece1c216234222b --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 04fc36c078f..c489a0218a1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7176,6 +7176,32 @@ allocator. This is primarily useful for long lived buffers that usually sit emp length-delimited slices. It's helpful for building wire protocols.") (license license:expat))) +(define-public go-github-com-lithammer-dedent + (package + (name "go-github-com-lithammer-dedent") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lithammer/dedent") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zqdlz3csraphk12q91vmv5zhap3abscjn9v725d8r55qblwrvs0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/lithammer/dedent")) + (home-page "https://github.com/lithammer/dedent") + (synopsis "Remove any common leading whitespace from multiline strings") + (description + "This package provides a functionality to remove common leading +whitespace from multiline strings. Inspired by +@url{https://docs.python.org/3/library/textwrap.html#textwrap.dedent,(code +textwrap.dedent)} in Python.") + (license license:expat))) + (define-public go-github-com-lithammer-fuzzysearch (package (name "go-github-com-lithammer-fuzzysearch") From 9ee0e3c98273e5a4a2ef0e12d41e95094f195757 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 12:45:18 +0000 Subject: [PATCH 412/862] gnu: Add go-github-com-ema-qdisc. * gnu/packages/golang-web.scm (go-github-com-ema-qdisc): New variable. Change-Id: Id932cb6904d85c62f40205f145cfb848843ec93f --- gnu/packages/golang-web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e203ec724e2..63078009576 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1408,6 +1408,32 @@ target of this project is to offer an optimized proxy server, usable with reasonable amount of traffic, yet customizable and programmable.") (license license:bsd-3))) +(define-public go-github-com-ema-qdisc + (package + (name "go-github-com-ema-qdisc") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ema/qdisc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1v2k2z1xjxfa0qrrnafvb51dxwxm0s3nbsi6n64cm2rylxjskfmy")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ema/qdisc")) + (propagated-inputs + (list go-github-com-mdlayher-netlink)) + (home-page "https://github.com/ema/qdisc") + (synopsis "Queuing discipline information via netlink") + (description + "Package @code{qdisc} allows getting queuing discipline information via +netlink,similarly to what @code{tc -s qdisc show} does.") + (license license:expat))) + (define-public go-github-com-emersion-go-imap (package (name "go-github-com-emersion-go-imap") From 873d85a90830615f9fe3f96136e2674434a3a699 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 13:03:42 +0000 Subject: [PATCH 413/862] gnu: Add go-github-com-dennwc-ioctl. * gnu/packages/golang-xyz.scm (go-github-com-dennwc-ioctl): New variable. Change-Id: Icf43c1ef532397d433910cebcdac2e102535ad2c --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c489a0218a1..f9777227338 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3048,6 +3048,30 @@ more complicated parallel cases.") (propagated-inputs (list go-github-com-elliotchance-orderedmap-v2)))) +(define-public go-github-com-dennwc-ioctl + (package + (name "go-github-com-dennwc-ioctl") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dennwc/ioctl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01b5d6fywrzs0q4q1j2c3qb15hwslb405w7bbc54w4qav0f61l55")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/dennwc/ioctl")) + (home-page "https://github.com/dennwc/ioctl") + (synopsis "Golang implementation of ioctl") + (description + "This package provides @code{ioctl} wrapper to std @code{syscall} and +@code{os}.") + (license license:expat))) + (define-public go-github-com-dennwc-varint (package (name "go-github-com-dennwc-varint") From e4320eb52d7b2f7cc40d7b0b995baeac933f07c5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 13:08:29 +0000 Subject: [PATCH 414/862] gnu: go-github-com-dennwc-varint: Simplify. * gnu/packages/golang-xyz.scm (go-github-com-dennwc-varint) [arguments] : Skip 2 tests precisely. : Remove 'disable-failing-tests. Change-Id: I8bf9bca1185cb90aaeabeef39a9a0e81b16857be --- gnu/packages/golang-xyz.scm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f9777227338..01cac3d4027 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3089,14 +3089,9 @@ more complicated parallel cases.") (arguments (list #:import-path "github.com/dennwc/varint" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* (find-files "." "\\_test.go$") - ;; XXX: varint_test.go:94: unexpected error: -11. - (("TestUvarint") "OffTestUvarint")))))))) + ;; XXX: varint_test.go:94: unexpected error: -11. + #:test-flags + #~(list "-skip" "TestUvarint/overflow|TestUvarint/overflow_short"))) (home-page "https://github.com/dennwc/varint") (synopsis "Fast varint library for Golang") (description From ad2d08270025f365f51b1c3ad01af17ad7affd2b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 13:33:18 +0000 Subject: [PATCH 415/862] gnu: Add go-github-com-dennwc-btrfs. * gnu/packages/golang-xyz.scm (go-github-com-dennwc-btrfs): New variable. Change-Id: I6047e0904296b2c70720cd148eddf8a514908510 --- gnu/packages/golang-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 01cac3d4027..01f2b764035 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3048,6 +3048,45 @@ more complicated parallel cases.") (propagated-inputs (list go-github-com-elliotchance-orderedmap-v2)))) +(define-public go-github-com-dennwc-btrfs + (package + (name "go-github-com-dennwc-btrfs") + (version "0.0.0-20241002142654-12ae127e0bf6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dennwc/btrfs") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0afc1clhzzhvshxp6xqs4d1hq681pzm85fqwjdgs9yh0j5bxjnhg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/dennwc/btrfs" + #:test-flags + ;; Tests require "mount" and "mkfs.btrfs" in the PATH. + #~(list "-skip" + (string-join + (list "TestCloneFile" + "TestCompression" + "TestIsSubvolume" + "TestOpen" + "TestResize" + "TestSubvolumes") + "|")))) + (native-inputs + (list go-github-com-spf13-cobra)) ; for CLI + (propagated-inputs (list go-github-com-dennwc-ioctl)) + (home-page "https://github.com/dennwc/btrfs") + (synopsis "Btrfs library in a pure Golang") + ;; XXX: Projects lacks README or any other documentation describing the + ;; functionality. + (description + "This package implements Btrfs functionality in a pure Go.") + (license license:asl2.0))) + (define-public go-github-com-dennwc-ioctl (package (name "go-github-com-dennwc-ioctl") From 4be3046430962955c30ebd41ce3879b55782aeda Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 14:40:13 +0000 Subject: [PATCH 416/862] gnu: Add go-github-com-hodgesds-perf-utils. * gnu/packages/golang-xyz.scm (go-github-com-hodgesds-perf-utils): New variable. Change-Id: Ica2d7271aa61b5427edeae9ae14fe851e7879038 --- gnu/packages/golang-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 01f2b764035..43761c50e64 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5559,6 +5559,54 @@ anniversaries.") @end itemize") (license license:bsd-3))) +(define-public go-github-com-hodgesds-perf-utils + (package + (name "go-github-com-hodgesds-perf-utils") + (version "0.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hodgesds/perf-utils") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wrma5rn0pybav8lwmv5xjwjl6slgnr8ya64f1npijam59r7afzj")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hodgesds/perf-utils" + #:test-flags + ;; XXX: Tests requiring root access to mount file system or shaky, check + ;; if they may be fixed. + #~(list "-skip" + (string-join + (list "TestAvailableEvents" + "TestAvailablePMUs" + "TestBusCycles" + "TestCPURefCycles" + "TestDebugFSMount" + "TestGroupProfiler" + "TestLLCache" + "TestMSR" + "TestMSRPaths" + "TestNodeCache" + "TestProfiler" + "TestSoftwareProfiler" + "TestTraceFSMount") + "|")))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-golang-org-x-sys + go-go-uber-org-multierr)) + (home-page "https://github.com/hodgesds/perf-utils") + (synopsis "Perf Utilities for Golang") + (description + "This package is a Go library for interacting with the @code{perf} +subsystem in Linux.") + (license license:expat))) + (define-public go-github-com-ianlancetaylor-demangle ;; No release, see . (package From 4a9599081e1ee298cec46939d0ae970b9fdd55c4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 14:40:16 +0000 Subject: [PATCH 417/862] gnu: Add go-github-com-mattn-go-xmlrpc. * gnu/packages/golang-web.scm (go-github-com-mattn-go-xmlrpc): New variable. Change-Id: I9e00e476a90870e4e79224fd986d38be6b7dc4b0 --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 63078009576..2845e48dfe3 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4350,6 +4350,30 @@ supported by HTTP PATCH method, allowing for standards based partial updates via REST APIs.") (license license:asl2.0))) +(define-public go-github-com-mattn-go-xmlrpc + (package + (name "go-github-com-mattn-go-xmlrpc") + (version "0.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mattn/go-xmlrpc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hv843qf8lzyn01mgk4lwwhirzpzpz33a1cz2ws998shhvq75dvg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mattn/go-xmlrpc")) + (home-page "https://github.com/mattn/go-xmlrpc") + (synopsis "XML RPC interface for Golang") + (description + "This package implements XML RPC interface for Go programming +language.") + (license license:expat))) + (define-public go-github-com-mdlayher-netlink (package (name "go-github-com-mdlayher-netlink") From 9acac0e40f9e2c20d3a2ea83bccba80561502c69 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 14:46:12 +0000 Subject: [PATCH 418/862] gnu: Add go-github-com-mdlayher-genetlink. * gnu/packages/golang-web.scm (go-github-com-mdlayher-genetlink): New variable. Change-Id: If2871537d7fd98fbe42916a3bf1a3c97ec29dd19 --- gnu/packages/golang-web.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2845e48dfe3..41c3e853a8f 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4374,6 +4374,36 @@ via REST APIs.") language.") (license license:expat))) +(define-public go-github-com-mdlayher-genetlink + (package + (name "go-github-com-mdlayher-genetlink") + (version "1.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mdlayher/genetlink") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vppn8071nh8pnbyq9769j1zcgq76iadd5fry90xkmfq429if356")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mdlayher/genetlink")) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-mdlayher-netlink + go-golang-org-x-net + go-golang-org-x-sys)) + (home-page "https://github.com/mdlayher/genetlink") + (synopsis "Generic netlink interactions and data types") + (description + "Package genetlink implements generic netlink interactions and data +types.") + (license license:expat))) + (define-public go-github-com-mdlayher-netlink (package (name "go-github-com-mdlayher-netlink") From 4bea2102dce1155e8e0049a419791a55e0b6853a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 14:50:11 +0000 Subject: [PATCH 419/862] gnu: Add go-github-com-mdlayher-ethtool. * gnu/packages/golang-web.scm (go-github-com-mdlayher-ethtool): New variable. Change-Id: Ia24c8b928cd030259cf13f0304837fa56aca0e6c --- gnu/packages/golang-web.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 41c3e853a8f..09bd12f4833 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4374,6 +4374,39 @@ via REST APIs.") language.") (license license:expat))) +(define-public go-github-com-mdlayher-ethtool + (package + (name "go-github-com-mdlayher-ethtool") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mdlayher/ethtool") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pwm4cg1yf364k0c4i0jrrvgn82k14b163xcvnm3bvpglfbcy2ks")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mdlayher/ethtool")) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-josharian-native + go-github-com-mdlayher-genetlink + go-github-com-mdlayher-netlink + go-golang-org-x-sys)) + (home-page "https://github.com/mdlayher/ethtool") + (synopsis "Control of the Linux ethtool generic netlink interface") + (description + "Package ethtool allows control of the Linux ethtool generic netlink +interface. as it's described in +@url{https://www.kernel.org/doc/html/latest/networking/ethtool-netlink.html, +ethtool-netlink}.") + (license license:expat))) + (define-public go-github-com-mdlayher-genetlink (package (name "go-github-com-mdlayher-genetlink") From 4cb960abea3573923463b517c928a10b04750232 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 14:53:26 +0000 Subject: [PATCH 420/862] gnu: Add go-github-com-mdlayher-wifi. * gnu/packages/golang-web.scm (go-github-com-mdlayher-wifi): New variable. Change-Id: I4c92b118799ea5ed45ecaeb4aa7ce1fdc763da35 --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 09bd12f4833..7a97de0ccd3 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4505,6 +4505,37 @@ integrates with Go's runtime network poller to provide asynchronous I/O and deadline support.") (license license:expat))) +(define-public go-github-com-mdlayher-wifi + (package + (name "go-github-com-mdlayher-wifi") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mdlayher/wifi") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18h5n58gr3i4jbf7c4hfvx3w87bjjiaavcnpcl0j310bgrc6dnzi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mdlayher/wifi")) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-mdlayher-genetlink + go-github-com-mdlayher-netlink + go-golang-org-x-crypto + go-golang-org-x-sys)) + (home-page "https://github.com/mdlayher/wifi") + (synopsis "Access to IEEE 802.11 WiFi device actions") + (description + "Package wifi provides access to IEEE 802.11 @code{WiFi} device +operations on Linux using nl80211.") + (license license:expat))) + (define-public go-github-com-mholt-acmez (package (name "go-github-com-mholt-acmez") From a19d1f3e0335c40ab59d0d078077ca53e304e47b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 14:59:36 +0000 Subject: [PATCH 421/862] gnu: Add go-github-com-opencontainers-selinux. * gnu/packages/golang-xyz.scm (go-github-com-opencontainers-selinux): New variable. Change-Id: Icc4b4dbd75874280ccacaad86dfd114dc11d01c1 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 43761c50e64..e7ba7475dd9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8947,6 +8947,31 @@ levels per backend and logger.") specification-runtime-spec.") (license license:asl2.0))) +(define-public go-github-com-opencontainers-selinux + (package + (name "go-github-com-opencontainers-selinux") + (version "1.11.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/opencontainers/selinux") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19j92lj9037d94lsls97b9d6cr0y8qavi8rampyawlykcp7gknqz")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/opencontainers/selinux")) + (propagated-inputs (list go-golang-org-x-sys)) + (home-page "https://github.com/opencontainers/selinux") + (synopsis "Common SELinux implementation") + (description + "Common SELinux package used across the container ecosystem.") + (license license:asl2.0))) + (define-public go-github-com-openhistogram-circonusllhist (package (name "go-github-com-openhistogram-circonusllhist") From b6dee14689215be781df790db132db5e13d30926 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 15:01:51 +0000 Subject: [PATCH 422/862] gnu: Add go-github-com-opencontainers-go-digest. * gnu/packages/golang-xyz.scm (go-github-com-opencontainers-go-digest): New variable. Change-Id: Ibb4662a3b3be650e0c4fac2fcb7824a29609f053 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e7ba7475dd9..8b1d51a60eb 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8918,6 +8918,33 @@ syslog, file and memory. Multiple backends can be utilized with different log levels per backend and logger.") (license license:bsd-3))) +(define-public go-github-com-opencontainers-go-digest + (package + (name "go-github-com-opencontainers-go-digest") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/opencontainers/go-digest") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0i5acjajvr6hi9zb7gxwifd8w28y884cv7cx36adj8lngj647xbi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/opencontainers/go-digest")) + (home-page "https://github.com/opencontainers/go-digest") + (synopsis "Common digest package used across the container ecosystem") + (description + "Package digest provides a generalized type to opaquely represent message +digests and their operations within the registry. The Digest type is designed +to serve as a flexible identifier in a content-addressable system. More +importantly, it provides tools and wrappers to work with hash.Hash-based +digests with little effort.") + (license (list license:asl2.0 license:cc-by-sa4.0)))) + ;; XXX: Find a way to source from specification-runtime-spec. (define-public go-github-com-opencontainers-runtime-spec (package From 1e68d255c7420512d896a41d406d1cccb1c5ecf8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 15:23:34 +0000 Subject: [PATCH 423/862] gnu: Add go-github-com-opencontainers-image-spec. * gnu/packages/golang-xyz.scm (go-github-com-opencontainers-image-spec): New variable. Change-Id: I1c9a22c2bb242e20e3e065132e8aecb87a2905fc --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8b1d51a60eb..5c7eac2319d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8945,6 +8945,36 @@ importantly, it provides tools and wrappers to work with hash.Hash-based digests with little effort.") (license (list license:asl2.0 license:cc-by-sa4.0)))) +(define-public go-github-com-opencontainers-image-spec + (package + (name "go-github-com-opencontainers-image-spec") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/opencontainers/image-spec") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "108jws0i4kbawcihprj3wxp3yqv7nrynkwzwmbz42sx8dmbfq0kc")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/opencontainers/image-spec")) + (propagated-inputs + (list go-github-com-opencontainers-go-digest + go-github-com-russross-blackfriday + go-github-com-xeipuuv-gojsonreference + go-github-com-xeipuuv-gojsonschema)) + (home-page "https://github.com/opencontainers/image-spec") + (synopsis "OCI Image Format Specification") + (description + "The OCI Image Format project creates and maintains the software shipping +container image format spec (OCI Image Format).") + (license license:asl2.0))) + ;; XXX: Find a way to source from specification-runtime-spec. (define-public go-github-com-opencontainers-runtime-spec (package From 6036d09b6c5c53eb53d28107064bd5872bbe7e67 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 15:21:35 +0000 Subject: [PATCH 424/862] gnu: go-github-com-godbus-dbus: Simplify. * gnu/packages/golang.scm (go-github-com-godbus-dbus) [arguments] : Remove 'disable-failing-tests and move skipped tests to 'check. Change-Id: Id7081a0e052ec307a8bc8dcb76e142702990857c --- gnu/packages/golang.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 39896d20746..c7d65664488 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4732,18 +4732,15 @@ and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.") #:import-path "github.com/godbus/dbus" #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? unpack-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" unpack-path) - (substitute* (find-files "." "\\_test.go$") - ;; Disable tests which require a system D-Bus instance. - (("TestSystemBus") "OffTestSystemBus") - (("TestConnectSystemBus") "OffTestConnectSystemBus"))))) (replace 'check (lambda* (#:key tests? import-path #:allow-other-keys) (when tests? (with-directory-excursion (string-append "src/" import-path) - (invoke "dbus-run-session" "--" "go" "test" "./...")))))))) + (invoke "dbus-run-session" "--" + "go" "test" "./..." + ;; Disable tests which require a system D-Bus + ;; instance. + "-skip" "TestSystemBus|TestConnectSystemBus")))))))) (native-inputs (list dbus)) ;dbus-launch (home-page "https://github.com/godbus/dbus/") From a824967f2c8d3cd759b666177e9aa77b445b3fe5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 15:27:12 +0000 Subject: [PATCH 425/862] gnu: go-github-com-godbus-dbus: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-godbus-dbus, go-github-com-godbus-dbus-v5): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Add glib module. Change-Id: I9fd0199177ca170403c081e190ac4f3ace2d0eb5 --- gnu/packages/golang-xyz.scm | 59 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 56 ----------------------------------- 2 files changed, 59 insertions(+), 56 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5c7eac2319d..6b5b7757038 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -84,6 +84,7 @@ #:use-module (gnu packages cmake) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) + #:use-module (gnu packages glib) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) @@ -4712,6 +4713,64 @@ size.") @end itemize") (license license:expat))) +(define-public go-github-com-godbus-dbus + (package + (name "go-github-com-godbus-dbus") + (version "0.0.0-20190726142602-4481cbc300e2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/godbus/dbus") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0h0cl1r136g0kxbw3i7ggb9mhavpi1yr7d7312iwhkxm93dxkphg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/godbus/dbus" + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "dbus-run-session" "--" + "go" "test" "./..." + ;; Disable tests which require a system D-Bus + ;; instance. + "-skip" "TestSystemBus|TestConnectSystemBus")))))))) + (native-inputs + (list dbus)) ;dbus-launch + (home-page "https://github.com/godbus/dbus/") + (synopsis "Native Go client bindings for the D-Bus") + (description + "@code{dbus} is a library that implements native Go client bindings for +the D-Bus message bus system.") + (license license:bsd-2))) + +(define-public go-github-com-godbus-dbus-v5 + (package + (inherit go-github-com-godbus-dbus) + (name "go-github-com-godbus-dbus-v5") + (version "5.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/godbus/dbus") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kayd4x7idrhi06ahh5kqkgwzgh9icvv71mjar2d0jl486dfs8r5")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-godbus-dbus) + ((#:import-path _ "github.com/godbus/dbus") + "github.com/godbus/dbus/v5"))))) + + (define-public go-github-com-gofrs-flock (package (name "go-github-com-gofrs-flock") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c7d65664488..018b4bc6f13 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4713,62 +4713,6 @@ algorithm described in @url{https://rfc-editor.org/rfc/rfc2898.html,RFC 2898} and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.") (license license:asl2.0))) -(define-public go-github-com-godbus-dbus - (package - (name "go-github-com-godbus-dbus") - (version "0.0.0-20190726142602-4481cbc300e2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/godbus/dbus") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0h0cl1r136g0kxbw3i7ggb9mhavpi1yr7d7312iwhkxm93dxkphg")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/godbus/dbus" - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "dbus-run-session" "--" - "go" "test" "./..." - ;; Disable tests which require a system D-Bus - ;; instance. - "-skip" "TestSystemBus|TestConnectSystemBus")))))))) - (native-inputs - (list dbus)) ;dbus-launch - (home-page "https://github.com/godbus/dbus/") - (synopsis "Native Go client bindings for the D-Bus") - (description "@code{dbus} is a library that implements native Go client -bindings for the D-Bus message bus system.") - (license license:bsd-2))) - -(define-public go-github-com-godbus-dbus-v5 - (package - (inherit go-github-com-godbus-dbus) - (name "go-github-com-godbus-dbus-v5") - (version "5.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/godbus/dbus") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1kayd4x7idrhi06ahh5kqkgwzgh9icvv71mjar2d0jl486dfs8r5")))) - (arguments - (substitute-keyword-arguments - (package-arguments go-github-com-godbus-dbus) - ((#:import-path _ "github.com/godbus/dbus") - "github.com/godbus/dbus/v5"))))) - (define-public go-github-com-delthas-go-libnp (let ((commit "0e45ece1f878f202fee2c74801e287804668f677")) (package From 645d65f8a14bfb5a5d01b452e0da9921221fb1be Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 15:35:34 +0000 Subject: [PATCH 426/862] gnu: Add go-github-com-prometheus-community-go-runit. * gnu/packages/golang-xyz.scm (go-github-com-prometheus-community-go-runit): New variable. Change-Id: If3c8d3ef6139a56917a1c82ad2eba9fbb5688d6b --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6b5b7757038..62aab97d7b8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9453,6 +9453,30 @@ Pion}.") and bash completion for the go command line.") (license license:expat))) +(define-public go-github-com-prometheus-community-go-runit + (package + (name "go-github-com-prometheus-community-go-runit") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/prometheus-community/go-runit") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1f5z10ynf67xx566ahnp5ndwxqz0i8rd8xnjiw7za6pz0wgj6wmk")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/prometheus-community/go-runit")) + (home-page "https://github.com/prometheus-community/go-runit") + (synopsis "Wrapping runit service status") + (description + "This package provides a wrapper round runit service status.") + (license license:expat))) + (define-public go-github-com-pterm-pterm (package (name "go-github-com-pterm-pterm") From 0440821acf2ba9d63761f861d690bb7498603ed0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 15:36:55 +0000 Subject: [PATCH 427/862] gnu: go-howett-net-plist: Move to golang-xyz. * gnu/packages/golang.scm (go-howett-net-plist): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ib43cfcd5783bc37a4b84e892b443683c5d6443ae --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 62aab97d7b8..26f0ec4bee9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12221,6 +12221,35 @@ The yaml package supports most of YAML 1.2, but preserves some behavior from 1.1 for backwards compatibility.") (license license:asl2.0))) +(define-public go-howett-net-plist + (package + (name "go-howett-net-plist") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DHowett/go-plist") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gcrxkmdj87xq01458asgxvvijrkih74ydbzfmir1p16xr9z0x39")))) + (build-system go-build-system) + (arguments + (list + #:import-path "howett.net/plist" + ;; cmd requires gopkg.in/yaml.v1 + #:test-subdirs #~(list "internal/..." "."))) + (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.") + (license license:giftware))) + (define-public go-k8s-io-gengo-v2 (package (name "go-k8s-io-gengo-v2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 018b4bc6f13..e44c1398b7e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1592,35 +1592,6 @@ functionality for functions that may fail. It includes various customizable retry strategies, such as fixed delay, backoff delay, and random delay.") (license license:expat)))) -(define-public go-howett-net-plist - (package - (name "go-howett-net-plist") - (version "1.0.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/DHowett/go-plist") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1gcrxkmdj87xq01458asgxvvijrkih74ydbzfmir1p16xr9z0x39")))) - (build-system go-build-system) - (arguments - (list - #:import-path "howett.net/plist" - ;; cmd requires gopkg.in/yaml.v1 - #:test-subdirs #~(list "internal/..." "."))) - (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.") - (license license:giftware))) - (define-public go-github-com-blanu-dust (package (name "go-github-com-blanu-dust") From 2557dee20f4e99d775ef3ad7c6faa5b0598e3c27 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 16:07:13 +0000 Subject: [PATCH 428/862] gnu: go-github-com-prometheus-client-golang: Update to 1.20.5. * gnu/packages/prometheus.scm: Add golang-compression module. (go-github-com-prometheus-client-golang): Update to 1.20.5. [source]: Delete submodules with their own go.mod files to fix build. [arguments] : Use default 'check. : Skip one test. [propagated-inputs]: Remove go-github-com-davecgh-go-spew; add go-github-com-google-go-cmp, go-github-com-klauspost-compress, and go-github-com-kylelemons-godebug. Change-Id: Ib6a605c6ebfbdf0fa2fa3a554cfaa6532e2a957d --- gnu/packages/prometheus.scm | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index c498c270302..26a85eb81c9 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -34,6 +34,7 @@ #:use-module (gnu packages) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz)) @@ -129,7 +130,7 @@ registry.") (define-public go-github-com-prometheus-client-golang (package (name "go-github-com-prometheus-client-golang") - (version "1.19.1") + (version "1.20.5") (source (origin (method git-fetch) @@ -138,15 +139,27 @@ registry.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0mx5q221pbkx081ycf1lp8sxz513220ya8qczkkvab943cwlcarv")))) + (base32 "1q3n22p5ic22xzha6mffh0m0jzbxrkyjrcmnxsnanl61jwb4rkpw")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - dagger + ;; - .bingo - fake module + (delete-file-recursively "dagger") + (delete-file-recursively ".bingo"))))) (build-system go-build-system) (arguments (list + #:skip-build? #t ;; XXX: Check if the most of the tests may be enabled: ;; api/prometheus/v1/api_test.go:1063:23: cannot use 1634644800304 ;; (untyped int constant) as int value in map literal (overflows) #:tests? (target-64bit?) #:import-path "github.com/prometheus/client_golang" + ;; Assertion fails in one test. + #:test-flags #~(list "-skip" "TestHandler") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'remove-examples-and-tutorials @@ -155,19 +168,14 @@ registry.") (for-each delete-file-recursively (list "api/prometheus/v1/example_test.go" "examples" - "tutorial"))))) - ;; XXX: Workaround for go-build-system's lack of Go modules support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + "tutorials")))))))) (propagated-inputs (list go-github-com-beorn7-perks go-github-com-cespare-xxhash-v2 - go-github-com-davecgh-go-spew + go-github-com-google-go-cmp go-github-com-json-iterator-go + go-github-com-klauspost-compress + go-github-com-kylelemons-godebug go-github-com-prometheus-client-model go-github-com-prometheus-common go-github-com-prometheus-procfs From d638d137e631a87853084268f877baa390415d87 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 20:15:16 +0000 Subject: [PATCH 429/862] gnu: Add go-github-com-mdlayher-vsock. * gnu/packages/golang-web.scm (go-github-com-mdlayher-vsock): New variable. Change-Id: I18f866f051167f849b000c0146657371c53366b2 --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 7a97de0ccd3..2b657b6931f 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4505,6 +4505,37 @@ integrates with Go's runtime network poller to provide asynchronous I/O and deadline support.") (license license:expat))) +(define-public go-github-com-mdlayher-vsock + (package + (name "go-github-com-mdlayher-vsock") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mdlayher/vsock") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pnhxz9jz25469gnd5p9a8jl10w3affcjxlvzhlni2c434s3l6kx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mdlayher/vsock")) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-mdlayher-socket + go-golang-org-x-net + go-golang-org-x-sync + go-golang-org-x-sys)) + (home-page "https://github.com/mdlayher/vsock") + (synopsis "Access to Linux VM sockets for Golang") + (description + "Package vsock provides access to Linux VM sockets (AF_VSOCK) for +communication between a hypervisor and its virtual machines.") + (license license:expat))) + (define-public go-github-com-mdlayher-wifi (package (name "go-github-com-mdlayher-wifi") From 530b01588fc7075868be34dec0491bac25bf2ac3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 20:15:25 +0000 Subject: [PATCH 430/862] gnu: go-github-com-prometheus-exporter-toolkit: Update to 0.13.2. * gnu/packages/prometheus.scm (go-github-com-prometheus-exporter-toolkit): Update to 0.13.2. [propagated-inputs]: Add go-github-com-mdlayher-vsock. Change-Id: I6679a25c2178d9a1f88534b0755ba6035ff86a68 --- gnu/packages/prometheus.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index 26a85eb81c9..f9691e1054a 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -410,7 +410,7 @@ Protocol,ICMP} echo (ping) functionality.") (define-public go-github-com-prometheus-exporter-toolkit (package (name "go-github-com-prometheus-exporter-toolkit") - (version "0.11.0") + (version "0.13.2") (source (origin (method git-fetch) @@ -419,7 +419,7 @@ Protocol,ICMP} echo (ping) functionality.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1n46jw3b13g355iv8phxxnnci7a877y5dscc1rlj3rpz4vy6yfzx")))) + (base32 "05k4sfrc1zs96iprgnap0gd42vwfq47j6vg2bv83nckcv731gmiv")))) (build-system go-build-system) (arguments (list @@ -441,6 +441,7 @@ Protocol,ICMP} echo (ping) functionality.") (list go-github-com-alecthomas-kingpin-v2 go-github-com-coreos-go-systemd-v22 go-github-com-go-kit-log + go-github-com-mdlayher-vsock ; Imported for go-github-com-prometheus-common to break the cycle. go-github-com-prometheus-client-golang go-github-com-prometheus-common From b237558558a7f3d53d77e63b8e56f5e3d29012ee Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 20:17:34 +0000 Subject: [PATCH 431/862] gnu: go-github-com-prometheus-common: Update to 0.61.0. * gnu/packages/prometheus.scm (go-github-com-prometheus-common): Update to 0.61.0. Change-Id: I476ae2926c3096be69a61f9a2c2368afa03267f6 --- gnu/packages/prometheus.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index f9691e1054a..390350e267c 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -221,7 +221,7 @@ Prometheus metrics.") (define-public go-github-com-prometheus-common (package (name "go-github-com-prometheus-common") - (version "0.55.0") + (version "0.61.0") (source (origin (method git-fetch) @@ -230,7 +230,7 @@ Prometheus metrics.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0bsbxil7qz8rhckhv0844nmn38g7i7347cjv5m6na47hbdpi0rqh")) + (base32 "0wng61rzvh27s2rlaadvjbffwgpn74p1wjrz6insl57k1pg3cmcn")) (modules '((guix build utils))) (snippet #~(begin From 67d7cf46982223abcd4cecfb3e4f192878afc277 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 20:26:05 +0000 Subject: [PATCH 432/862] gnu: go-github-com-prometheus-common-assets: Update to 0.2.0. Set the correct version for go submodule. * gnu/packages/prometheus.scm (go-github-com-prometheus-common-assets): Update to 0.2.0. Change-Id: I99fe5d058115401557847be6c026739d1b391c68 --- gnu/packages/prometheus.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index 390350e267c..c9a03eb4fb3 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -297,16 +297,17 @@ metrics.") (define-public go-github-com-prometheus-common-assets (package (name "go-github-com-prometheus-common-assets") - (version "0.55.0") + (version "0.2.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/prometheus/common") - (commit (string-append "v" version)))) + (commit (go-version->git-ref version + #:subdir "assets")))) (file-name (git-file-name name version)) (sha256 - (base32 "0bsbxil7qz8rhckhv0844nmn38g7i7347cjv5m6na47hbdpi0rqh")))) + (base32 "0r7sym4yaysbkc5anyypl57v9ay0a1flq00j85j7lcficl2scwrs")))) (build-system go-build-system) (arguments (list From 6a54c79b3e81a2ff2d23cc4d9768e127e8faa4ab Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 20:40:17 +0000 Subject: [PATCH 433/862] gnu: go-github-com-prometheus-statsd-exporter: Update to 0.28.0. * gnu/packages/prometheus.scm (go-github-com-prometheus-statsd-exporter): Update to 0.28.0. Change-Id: Ie02e972f33b09059cf8dfcdc5eefb5cd43191f60 --- gnu/packages/prometheus.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index c9a03eb4fb3..dc2ac3076c7 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -507,7 +507,7 @@ kernel, and process metrics from the @file{/proc} pseudo file system.") (define-public go-github-com-prometheus-statsd-exporter (package (name "go-github-com-prometheus-statsd-exporter") - (version "0.27.1") + (version "0.28.0") (source (origin (method git-fetch) @@ -516,7 +516,7 @@ kernel, and process metrics from the @file{/proc} pseudo file system.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0y8n02h46q22wkcm2yy62bzsi9hxrarmvjamfpn2sygqhbb1pv38")))) + (base32 "0h7ypmsx1j6x1p5wdj03i3jzwms7ab03asn2capl1gg6x07k57w7")))) (build-system go-build-system) (arguments (list From fb0eefc221ec987ef1c008186ce9482462f84320 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 20:43:44 +0000 Subject: [PATCH 434/862] gnu: go-github-com-prometheus-community-pro-bing: Update to 0.5.0. * gnu/packages/prometheus.scm (go-github-com-prometheus-community-pro-bing): Update to 0.5.0. [arguments] : Skip one more test. Change-Id: If733e9c288d640ef412fd6932f34f2f6e42b4f4d --- gnu/packages/prometheus.scm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index dc2ac3076c7..1adb42bb9a1 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -378,7 +378,7 @@ from the default AWS credential chain.") (define-public go-github-com-prometheus-community-pro-bing (package (name "go-github-com-prometheus-community-pro-bing") - (version "0.4.1") + (version "0.5.0") (source (origin (method git-fetch) @@ -387,15 +387,19 @@ from the default AWS credential chain.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1yz4cf1qrm1jrzw2yd5p08663hynk4ihlf5mi2fn6irnzh343a7b")))) + (base32 "19757nqz0cpq7ir2w5xgjxpblhmkpk0j7spfw4j68agavbx6hxpm")))) (build-system go-build-system) (arguments (list - ;; Tests requiring network setup. + ;; Tests requiring network setup, and root access. #:test-flags - #~(list "-skip" (string-append "TestNewPingerValid" - "|TestSetIPAddr" - "|TestSetResolveTimeout")) + #~(list "-skip" + (string-join + (list "TestNewPingerValid" + "TestSetIPAddr" + "TestSetInterfaceName" + "TestSetResolveTimeout") + "|")) #:import-path "github.com/prometheus-community/pro-bing")) (propagated-inputs (list go-github-com-google-uuid From 61fd903f4bc4c485339c33a94b4baa7f00f28824 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 20:53:43 +0000 Subject: [PATCH 435/862] gnu: Add go-github-com-karrick-golf. * gnu/packages/golang-xyz.scm (go-github-com-karrick-golf): New variable. Change-Id: I7ee826d5f8f293d2f276a75a18a7d2400b3ebae7 --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 26f0ec4bee9..8b6f53a2b04 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6836,6 +6836,35 @@ customized globally.") "This package provides functions to read and traverse directory trees.") (license license:bsd-2))) +(define-public go-github-com-karrick-golf + (package + (name "go-github-com-karrick-golf") + (version "1.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/karrick/golf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0iskalk32zqiwwrfmi9lcd1s69xgn3yl056xcm5q4y5znbs96fac")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/karrick/golf" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "example"))))))) + (home-page "https://github.com/karrick/golf") + (synopsis "Light-weight long and short command line option parser") + (description + "Go long flag: a light-weight long and short command line option parser.") + (license license:bsd-3))) + (define-public go-github-com-kballard-go-shellquote ;; No release, see . (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0") From a3f747f94faaa6c23f05d81f3752835d233f0929 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 20:56:44 +0000 Subject: [PATCH 436/862] gnu: go-github-com-karrick-godirwalk: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-karrick-godirwalk) [native-inputs]: Add go-github-com-karrick-golf and go-github-com-mattn-go-isatty. Change-Id: Ife75e85bab93d269885fafdecc549d5fb0516709 --- gnu/packages/golang-xyz.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8b6f53a2b04..36b8a04b407 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6830,6 +6830,10 @@ customized globally.") (arguments (list #:import-path "github.com/karrick/godirwalk")) + ;; To build all examples as a test scenario. + (native-inputs + (list go-github-com-karrick-golf + go-github-com-mattn-go-isatty)) (home-page "https://github.com/karrick/godirwalk") (synopsis "Fast directory traversal library for Go") (description From 5567efc1141b76bc503adffb7920c3d1b3d75454 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 21:04:28 +0000 Subject: [PATCH 437/862] gnu: go-github-com-pierrec-lz4-v4: Fix build. * gnu/packages/golang-compression.scm (go-lz4c): Move "native-inputs" from here ... (go-github-com-pierrec-lz4-v4): ... to here. Change-Id: I9bc406b0dd8f99bff80b99fb3a9268d5e0c07a59 --- gnu/packages/golang-compression.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index f0f253c7e37..f73b1c11953 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -386,7 +386,12 @@ LZ4 data blocks. The implementation is based on the reference C (build-system go-build-system) (arguments (list - #:import-path "github.com/pierrec/lz4/v4")))) + #:import-path "github.com/pierrec/lz4/v4")) + ;; For CLI. + (native-inputs + (list go-code-cloudfoundry-org-bytefmt + go-github-com-pierrec-cmdflag + go-github-com-schollz-progressbar-v3)))) (define-public go-github-com-ulikunitz-xz (package @@ -469,10 +474,6 @@ tool.")))) #:install-source? #f #:import-path "github.com/pierrec/lz4/cmd/lz4c" #:unpack-path "github.com/pierrec/lz4")) - (native-inputs - (list go-code-cloudfoundry-org-bytefmt - go-github-com-pierrec-cmdflag - go-github-com-schollz-progressbar-v3)) (description (string-append (package-description go-github-com-pierrec-lz4-v4) " This package provides an additional command line From 6a7a470f8011891e4eaec5418a7873a83c403525 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 21:07:02 +0000 Subject: [PATCH 438/862] gnu: go-github-com-pierrec-cmdflag: Remove examples. * gnu/packages/golang-xyz.scm (go-github-com-pierrec-cmdflag) [arguments] : Add 'remove-examples. Change-Id: I58bc14d61893ca3d43edc375c3d6c9908ed589c4 --- gnu/packages/golang-xyz.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 36b8a04b407..7712f6d1cea 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9398,7 +9398,13 @@ protocols.") (build-system go-build-system) (arguments (list - #:import-path "github.com/pierrec/cmdflag")) + #:import-path "github.com/pierrec/cmdflag" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) (home-page "https://github.com/pierrec/cmdflag") (synopsis "Augment the flag package with commands") (description From 7cb8ea3f4babc647de98665b20910c3e371586ed Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 21:13:29 +0000 Subject: [PATCH 439/862] gnu: Add go-github-com-xo-dburl. * gnu/packages/golang-web.scm (go-github-com-xo-dburl): New variable. Change-Id: I93202a9664b7466e4faed4cec45e652c5a25a953 --- gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2b657b6931f..03eb9cd6f84 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7194,6 +7194,35 @@ programming language.") programming language, which supports draft-04, draft-06 and draft-07.") (license license:asl2.0))) +(define-public go-github-com-xo-dburl + (package + (name "go-github-com-xo-dburl") + (version "0.23.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xo/dburl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0yxyfrm45dqd26513r2cvgkqfsclijsfzqrckbw45wydk45mq442")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xo/dburl")) + (home-page "https://github.com/xo/dburl") + (synopsis + "URL style mechanism for parsing and opening SQL database connection strings") + (description + "Package dburl provides a standard, @code{net/url.URL} style mechanism +for parsing and opening SQL database connection strings for Go. Provides +standardized way to parse and open @@url{#URL,URL}'s for popular databases +@code{PostgreSQL}, @code{MySQL}, SQLite3, Oracle Database, Microsoft SQL +Server, in addition to most other SQL databases with a publicly available Go +driver.") + (license license:expat))) + (define-public go-github-com-xtaci-lossyconn (package (name "go-github-com-xtaci-lossyconn") From 0cd8106fe91401357135572707f1ec57567dbf76 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 21:19:51 +0000 Subject: [PATCH 440/862] gnu: go-github-com-pquerna-ffjson: Fix tests. * gnu/packages/golang-web.scm (go-github-com-pquerna-ffjson) [arguments] : Run only unit tests. [native-inputs]: Add go-github-com-google-gofuzz and go-github-com-stretchr-testify. Change-Id: I7c74cf08ab653b7972a6e041e854941080db73e9 --- gnu/packages/golang-web.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 03eb9cd6f84..53aff1de6e6 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6060,7 +6060,11 @@ Caching.") (build-system go-build-system) (arguments (list - #:import-path "github.com/pquerna/ffjson")) + #:import-path "github.com/pquerna/ffjson" + #:test-subdirs #~(list "fflib/v1/..."))) + (native-inputs + (list go-github-com-google-gofuzz + go-github-com-stretchr-testify)) (home-page "https://github.com/pquerna/ffjson") (synopsis "Faster JSON for Golang") (description From 82f5ca3ecb9dc9fb1cac1c990c31266817a822cc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 21:23:33 +0000 Subject: [PATCH 441/862] gnu: go-github-com-smarty-gunit: Fix tests. * gnu/packages/golang-check.scm (go-github-com-smarty-gunit) [arguments] : Skip one test. Change-Id: I83f00b9f43af9d0e45694d740b7864544a6791f0 --- gnu/packages/golang-check.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index be4037f5179..2e408226e08 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1460,7 +1460,13 @@ functions and even in applications.") (build-system go-build-system) (arguments (list - #:import-path "github.com/smarty/gunit")) + #:import-path "github.com/smarty/gunit" + ;; Expected: [&{ BowlingGameScoringTests [0xc000080020 + ;; 0xc000080040 0xc000080060 0xc000080080 0xc0000800a0]}] + ;; Actual: [&{ BowlingGameScoringTests [0xc0000da920 + ;; 0xc0000da940 0xc0000da960 0xc0000da9a0 0xc0000da9c0]}] + #:test-flags + #~(list "-skip" "TestParseFileWithValidFixturesAndConstructs"))) (home-page "https://github.com/smarty/gunit") (synopsis "Golang xUnit-style test fixture test adapter") (description From 8f8646c3115602db173f2060a5fda6fe8422f456 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 21:47:37 +0000 Subject: [PATCH 442/862] gnu: go-github-com-client9-misspell: Fix build. Simplify, final command inherits from the library, remove redundant modifications. * gnu/packages/golang.scm (go-github-com-client9-misspell) [arguments] : Use default 'build. : Do not run tests in "cmd" which are failing. (misspell): Inherit. Change-Id: Ia9cbe287918dce646ece2ba9e50da110659c2a8f --- gnu/packages/golang.scm | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e44c1398b7e..9e5dcf26c7c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3176,9 +3176,9 @@ Looks for an identical word on a list of words, if none is found, look for a similar word.") (license license:expat)))) -(define-public misspell +(define-public go-github-com-client9-misspell (package - (name "misspell") + (name "go-github-com-client9-misspell") (version "0.3.4") (source (origin (method git-fetch) @@ -3191,14 +3191,9 @@ similar word.") "1vwf33wsc4la25zk9nylpbp9px3svlmldkm0bha4hp56jws4q9cs")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/client9/misspell" - #:phases (modify-phases %standard-phases - (replace 'build - (lambda arguments - (apply (assoc-ref %standard-phases - 'build) - `(,@arguments #:import-path - "github.com/client9/misspell/cmd/misspell"))))))) + (list + #:import-path "github.com/client9/misspell" + #:test-subdirs #~(list "ignore" "."))) (propagated-inputs (list go-github-com-gobwas-glob)) (home-page "https://github.com/client9/misspell") (synopsis "Correct commonly misspelled English words in source files") @@ -3230,19 +3225,15 @@ locale can be selected.") alternative to @@code{exec.LookPath()}.") (license license:bsd-2))) -(define-public go-github-com-client9-misspell +(define-public misspell (package - (inherit misspell) - (name "go-github-com-client9-misspell") + (inherit go-github-com-client9-misspell) + (name "misspell") (arguments - `(#:import-path "github.com/client9/misspell" + `(#:import-path "github.com/client9/misspell/cmd/misspell" + #:unpack-path "github.com/client9/misspell" #:tests? #f - #:install-source? #t - #:phases (modify-phases %standard-phases - (delete 'build)))) - (propagated-inputs (package-inputs misspell)) - (native-inputs '()) - (inputs '()))) + #:install-source? #t)))) (define-public go-github-com-stevedonovan-luar (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead") From ef939455960378e99c0af7373ddd8741c118c529 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 21:53:49 +0000 Subject: [PATCH 443/862] gnu: go-github-com-client9-misspell: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-client9-misspell, misspell): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I3e2a09d61f1d9a44249b2aac31a73d8b1b220928 --- gnu/packages/golang-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 37 ------------------------------------ 2 files changed, 38 insertions(+), 37 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7712f6d1cea..a5c2758567a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2403,6 +2403,33 @@ levels that works by wrapping the standard @code{log} library.") dependencies and is intended to be used in long running processes.") (license license:expat))) +(define-public go-github-com-client9-misspell + (package + (name "go-github-com-client9-misspell") + (version "0.3.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/client9/misspell") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vwf33wsc4la25zk9nylpbp9px3svlmldkm0bha4hp56jws4q9cs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/client9/misspell" + #:test-subdirs #~(list "ignore" "."))) + (propagated-inputs (list go-github-com-gobwas-glob)) + (home-page "https://github.com/client9/misspell") + (synopsis "Correct commonly misspelled English words in source files") + (description + "misspell assists with correcting commonly misspelled English words in +source files. A neutral variety of English is used by default, but a US or UK +locale can be selected.") + (license license:expat))) + (define-public go-github-com-cloudwego-iasm (package (name "go-github-com-cloudwego-iasm") @@ -13146,6 +13173,17 @@ tool.")))) " This package provides an command line interface (CLI) tool.")))) +(define-public misspell + (package + (inherit go-github-com-client9-misspell) + (name "misspell") + (arguments + (list + #:install-source? #t + #:tests? #f + #:import-path "github.com/client9/misspell/cmd/misspell" + #:unpack-path "github.com/client9/misspell")))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9e5dcf26c7c..9b07498a3cd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3176,33 +3176,6 @@ Looks for an identical word on a list of words, if none is found, look for a similar word.") (license license:expat)))) -(define-public go-github-com-client9-misspell - (package - (name "go-github-com-client9-misspell") - (version "0.3.4") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/client9/misspell") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1vwf33wsc4la25zk9nylpbp9px3svlmldkm0bha4hp56jws4q9cs")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/client9/misspell" - #:test-subdirs #~(list "ignore" "."))) - (propagated-inputs (list go-github-com-gobwas-glob)) - (home-page "https://github.com/client9/misspell") - (synopsis "Correct commonly misspelled English words in source files") - (description - "misspell assists with correcting commonly misspelled English words in -source files. A neutral variety of English is used by default, but a US or UK -locale can be selected.") - (license license:expat))) - (define-public go-github-com-cli-safeexec (package (name "go-github-com-cli-safeexec") @@ -3225,16 +3198,6 @@ locale can be selected.") alternative to @@code{exec.LookPath()}.") (license license:bsd-2))) -(define-public misspell - (package - (inherit go-github-com-client9-misspell) - (name "misspell") - (arguments - `(#:import-path "github.com/client9/misspell/cmd/misspell" - #:unpack-path "github.com/client9/misspell" - #:tests? #f - #:install-source? #t)))) - (define-public go-github-com-stevedonovan-luar (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead") (revision "0")) From e0c5a11967da08c9f24b46b11d62365518dfe919 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 14:50:55 +0000 Subject: [PATCH 444/862] gnu: Add go-github-com-jmoiron-sqlx. * gnu/packages/golang-xyz.scm (go-github-com-jmoiron-sqlx): New variable. Change-Id: Ice141002afe8ecde3fe330feafc5c48e5e64b1b5 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a5c2758567a..a3faee39b8b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6639,6 +6639,38 @@ way of specifying command line options.") struct to another.") (license license:expat))) +(define-public go-github-com-jmoiron-sqlx + (package + (name "go-github-com-jmoiron-sqlx") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jmoiron/sqlx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10rg9b6cl1j7jjr6z95xa1k45016mhicii3cmz0pkwrxw3dpfzfh")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jmoiron/sqlx")) + (propagated-inputs + (list go-github-com-go-sql-driver-mysql + go-github-com-lib-pq + go-github-com-mattn-go-sqlite3)) + (home-page "https://github.com/jmoiron/sqlx") + (synopsis "General purpose extensions to golang's @code{database/sql}") + (description + "sqlx is a library which provides a set of extensions on go's standard +@code{database/sql} library. The sqlx versions of @code{sql.DB}, +@code{sql.TX}, @code{sql.Stmt}, et al. all leave the underlying interfaces +untouched, so that their interfaces are a superset on the standard ones. This +makes it relatively painless to integrate existing codebases using +database/sql with sqlx.") + (license license:expat))) + (define-public go-github-com-johnkerl-lumin (package (name "go-github-com-johnkerl-lumin") From 85b0072ec96cccee95eacedf7c9f6f3890bce550 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 14:50:53 +0000 Subject: [PATCH 445/862] gnu: Add go-github-com-tdewolff-argp. * gnu/packages/golang-xyz.scm (go-github-com-tdewolff-argp): New variable. Change-Id: I4f9497cda83800a4a43bf4f7d4d033e212ecba90 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a3faee39b8b..35865bdb1a6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10667,6 +10667,34 @@ storage system.") @url{https://en.wikipedia.org/wiki/Bloom_filter, bloom filter}.") (license license:bsd-2))) +(define-public go-github-com-tdewolff-argp + (package + (name "go-github-com-tdewolff-argp") + (version "0.0.0-20240625173203-87b04d5d3e52") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tdewolff/argp") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0d2xqir997qrxkwmbb6pn5hgl9ii0nz19f19lrgc4ixjhxxjwyy5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/tdewolff/argp")) + (native-inputs + (list go-github-com-tdewolff-test)) + (propagated-inputs + (list go-github-com-go-sql-driver-mysql + go-github-com-jmoiron-sqlx + go-github-com-pelletier-go-toml)) + (home-page "https://github.com/tdewolff/argp") + (synopsis "GNU command line argument parser") + (description "Command line argument parser following the GNU standard.") + (license license:expat))) + (define-public go-github-com-teambition-rrule-go (package (name "go-github-com-teambition-rrule-go") From 864d51214f81d197f1f5a20f84b8e5de6d6ee7fa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 14:50:56 +0000 Subject: [PATCH 446/862] gnu: go-github-com-tdewolff-parse-v2: Update to 2.7.19. * gnu/packages/golang-web.scm (go-github-com-tdewolff-parse-v2): Update to 2.7.19. Change-Id: I91be247c2f84a9d99ad1bdd8e5587b331d32d8f2 --- gnu/packages/golang-web.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 53aff1de6e6..89ee80163a0 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6628,7 +6628,7 @@ an interface to implement any other minifier.") (define-public go-github-com-tdewolff-parse-v2 (package (name "go-github-com-tdewolff-parse-v2") - (version "2.6.6") + (version "2.7.19") (source (origin (method git-fetch) @@ -6637,7 +6637,7 @@ an interface to implement any other minifier.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1dqki9ima079k9a3l72igmx5dml8qsl9z8rzw8a433f4gjhlv320")))) + (base32 "17yswndnxgdj425h5q25wfvchjxnjf6nxyx76k9yn12r16arbl44")))) (build-system go-build-system) (arguments (list From 927d655aeaa2e1d1aeec791a6479fab6eba376c9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 14:51:22 +0000 Subject: [PATCH 447/862] gnu: go-github-com-fsnotify-fsnotify: Update to 1.8.0. * gnu/packages/golang-xyz.scm (go-github-com-fsnotify-fsnotify): Update to 1.8.0. Change-Id: I614bfebc8cea9594f6252f875a1ae559b5fcbd65 --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 35865bdb1a6..d2a8f783bcc 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4018,7 +4018,7 @@ quoting, commenting, and escaping.") (define-public go-github-com-fsnotify-fsnotify (package (name "go-github-com-fsnotify-fsnotify") - (version "1.7.0") + (version "1.8.0") (source (origin (method git-fetch) @@ -4027,7 +4027,7 @@ quoting, commenting, and escaping.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1h7vs21lkj4bqbw5a6mqykaf56y181r0nja7c8pzajkvbsc39y8m")))) + (base32 "1wr3695yb7hl405h6pzkbdkkxpdbmc5kwjjwaf9almbvmpk6077r")))) (build-system go-build-system) (arguments (list From 5b7db059bd0f64cee9a60b88a72ac7a5224c0667 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 14:51:22 +0000 Subject: [PATCH 448/862] gnu: go-github-com-matryer-try: Update to 0.0.0-20161228173917-9ac251b645a2. * gnu/packages/golang-xyz.scm (go-github-com-matryer-try): Update to 0.0.0-20161228173917-9ac251b645a2. Change-Id: Ib846bc3295ccde07f5a7256dc8c59b4ad64e3c09 --- gnu/packages/golang-xyz.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d2a8f783bcc..51bf44a9b94 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7730,16 +7730,16 @@ functions.") (define-public go-github-com-matryer-try (package (name "go-github-com-matryer-try") - (version "1") + (version "0.0.0-20161228173917-9ac251b645a2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/matryer/try") - (commit (string-append "v" version)))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "15f0m5ywihivnvwzcw0mh0sg27aky9rkywvxqszxka9q051qvsmy")))) + (base32 "19fnqmpl3p54vmxgm1hmqvdc87brqx754wf3cdhq1bj04fcbb5h9")))) (build-system go-build-system) (arguments (list From 091bf5af932f7d5f2ed72a6d389aa6f36d58d335 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 14:50:56 +0000 Subject: [PATCH 449/862] gnu: go-github-com-tdewolff-minify-v2: Update to 2.21.2. * gnu/packages/golang-web.scm (go-github-com-tdewolff-minify-v2): Update to 2.21.2. [native-inputs]: Add go-github-com-djherbis-atime, go-github-com-fsnotify-fsnotify, go-github-com-matryer-try, and go-github-com-tdewolff-argp. (go-minify) [arguments]: Overwirte them. : Disable tests as all of them passed from the inherited library. [inputs]: Remove go-github-com-djherbis-atime, go-github-com-dustin-go-humanize, go-github-com-fsnotify-fsnotify, go-github-com-matryer-try, and go-github-com-spf13-pflag. Change-Id: I70b0259b705137f0937016d9e6fe31aefdc96ecb --- gnu/packages/golang-web.scm | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 89ee80163a0..794932bcf1b 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6587,7 +6587,7 @@ provided @code{http.FileSystem}.") (define-public go-github-com-tdewolff-minify-v2 (package (name "go-github-com-tdewolff-minify-v2") - (version "2.12.7") + (version "2.21.2") (source (origin (method git-fetch) @@ -6596,7 +6596,7 @@ provided @code{http.FileSystem}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0qhslaq885zbqs83nvbi29yh09b89kkb6ycami8lz28wkwrlayap")))) + (base32 "0vhblx1xim14i4npglzdp9hpjz92q2k29wbf9kp9m7id9cm7c7l9")))) (build-system go-build-system) (arguments (list @@ -6611,13 +6611,18 @@ provided @code{http.FileSystem}.") (format #f "src/~a/~a" import-path dir) (make-file-writable "hash.go") (format #t "Generating `hash.go' for ~a...~%" dir) - (invoke "go" "generate"))) + (invoke "go" "generate" "-v" "-n"))) '("css" "html" "svg"))))))) + ;; For tests and the CLI. + (native-inputs + (list go-github-com-djherbis-atime + go-github-com-fsnotify-fsnotify + go-github-com-matryer-try + go-github-com-tdewolff-argp + go-github-com-tdewolff-hasher ; to generate go files + go-github-com-tdewolff-test)) (propagated-inputs (list go-github-com-tdewolff-parse-v2)) - (native-inputs - (list go-github-com-tdewolff-hasher - go-github-com-tdewolff-test)) (home-page "https://go.tacodewolff.nl/minify") (synopsis "Go minifiers for web formats") (description @@ -7966,17 +7971,11 @@ go-github-com-multiformats-go-multiaddr-dns."))) (inherit go-github-com-tdewolff-minify-v2) (name "go-minify") (arguments - (substitute-keyword-arguments - (package-arguments go-github-com-tdewolff-minify-v2) - ((#:install-source? _ #t) #f) - ((#:import-path _ "github.com/tdewolff/minify/v2") - "github.com/tdewolff/minify/cmd/minify"))) - (inputs - (list go-github-com-djherbis-atime - go-github-com-dustin-go-humanize - go-github-com-fsnotify-fsnotify - go-github-com-matryer-try - go-github-com-spf13-pflag)) + (list + #:install-source? #f + #:tests? #f ; tested in the library + #:import-path "github.com/tdewolff/minify/cmd/minify" + #:unpack-path "github.com/tdewolff/minify")) (description "This package provides a CLI binary executible built from go-github-com-tdewolff-minify-v2 source."))) From d2c0c8528ffc087b66e0e8ba7c30d5c48d7809da Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 14:58:42 +0000 Subject: [PATCH 450/862] gnu: go-github-com-tdewolff-hasher: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-tdewolff-hasher): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I89ecc37721cffadb43177f20d311682a9e493a9e --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 51bf44a9b94..7428accb4c1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10695,6 +10695,32 @@ storage system.") (description "Command line argument parser following the GNU standard.") (license license:expat))) +(define-public go-github-com-tdewolff-hasher + (package + (name "go-github-com-tdewolff-hasher") + (version "0.0.0-20210521220142-bc97f602bca2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tdewolff/hasher") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12dmxpmdy2z7c2z7qv2mv2aq4hyvjncb6fzr0ymg3y5bfjvl4dcw")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/tdewolff/hasher")) + (native-inputs + (list go-github-com-cespare-mph + go-github-com-dgryski-go-mph)) + (home-page "https://github.com/tdewolff/hasher") + (synopsis "Go known-keys fast-lookup map generator") + (description + "Hasher is a tool to automate the creation of methods and tables for a +@code{string} to @code{uint32} mapper.") + (license license:bsd-3))) + (define-public go-github-com-teambition-rrule-go (package (name "go-github-com-teambition-rrule-go") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9b07498a3cd..3166e7e1d0c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2549,32 +2549,6 @@ per-goroutine.") (description "The @code{walker} function is a faster, parallel version, of @code{filepath.Walk}"))) -(define-public go-github-com-tdewolff-hasher - (package - (name "go-github-com-tdewolff-hasher") - (version "0.0.0-20210521220142-bc97f602bca2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/tdewolff/hasher") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "12dmxpmdy2z7c2z7qv2mv2aq4hyvjncb6fzr0ymg3y5bfjvl4dcw")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/tdewolff/hasher")) - (native-inputs - (list go-github-com-cespare-mph - go-github-com-dgryski-go-mph)) - (home-page "https://github.com/tdewolff/hasher") - (synopsis "Go known-keys fast-lookup map generator") - (description - "Hasher is a tool to automate the creation of methods and tables for a -@code{string} to @code{uint32} mapper.") - (license license:bsd-3))) - (define-public go-github-com-tj-docopt (package (name "go-github-com-tj-docopt") From d9eabbded6c0ea41453c7fc6f960aca516cee926 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:06:28 +0000 Subject: [PATCH 451/862] gnu: go-mvdan-cc-xurls-v2: Skip one test. * gnu/packages/golang-web.scm (go-mvdan-cc-xurls-v2) [arguments] : Skip one test. Change-Id: I5e9dd8f729c1c76994e9c4cdafbcba9b819b897f --- gnu/packages/golang-web.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 794932bcf1b..afb4d9f1558 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7848,7 +7848,8 @@ the code or routes.") (build-system go-build-system) (arguments (list - #:import-path "mvdan.cc/xurls/v2")) + #:import-path "mvdan.cc/xurls/v2" + #:test-flags #~(list "-skip" "TestScript/version"))) (propagated-inputs (list go-github-com-rogpeppe-go-internal go-golang-org-x-mod From 4ded98c12154cab45106bfa637ca90cb6267b3f8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:10:52 +0000 Subject: [PATCH 452/862] gnu: miniflux: Update to 2.2.4. * gnu/packages/web.scm (miniflux): Update to 2.2.4. [arguments] : Use default 'check. [inputs]: Remove go-mvdan-cc-xurls-v2; add go-golang-org-x-image. Change-Id: Ia5e8717fd239629684fdfc9612d6f5f7c1c1bef7 --- gnu/packages/web.scm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 02bf887fdee..b52f184d0ee 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -370,12 +370,6 @@ and its related documentation.") #$version)) #:phases #~(modify-phases %standard-phases - ;; XXX: Replace when go-build-system supports nested path. - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./..."))))) (add-after 'install 'install-manpage (lambda* (#:key import-path #:allow-other-keys) (let ((man1 (string-append #$output "/share/man/man1/")) @@ -402,8 +396,7 @@ and its related documentation.") go-golang-org-x-net go-golang-org-x-oauth2 go-golang-org-x-term - go-golang-org-x-text - go-mvdan-cc-xurls-v2)) + go-golang-org-x-text)) (home-page "https://miniflux.app/") (synopsis "Minimalist and opinionated feed reader") (description From 5d5b8bf7b86a01d5106e4741f86046ce27f7db67 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:15:51 +0000 Subject: [PATCH 453/862] gnu: noisetorch: Fix build. * gnu/packages/pulseaudio.scm (noisetorch) [arguments] : Limit to the project's root. Change-Id: I21fff0ea728dfe6438e2e8ebcec2dc3b2a8efc94 --- gnu/packages/pulseaudio.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/pulseaudio.scm b/gnu/packages/pulseaudio.scm index dd0d3985c0d..855ccf5da7e 100644 --- a/gnu/packages/pulseaudio.scm +++ b/gnu/packages/pulseaudio.scm @@ -491,6 +491,7 @@ The plug-in is made to work with 1 or 2 channels (LADSPA plugin), (arguments `(#:import-path "github.com/noisetorch/NoiseTorch" #:install-source? #f + #:test-subdirs '(".") #:phases (modify-phases %standard-phases (add-after 'unpack 'copy-rnnoise-library From 3c15a155d801f590acfaecea0d220a6667edde90 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:28:12 +0000 Subject: [PATCH 454/862] gnu: go-github-com-davecgh-go-xdr: Move to golang-web. * gnu/packages/golang.scm (go-github-com-davecgh-go-xdr): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: Ia49386d831382f20d49606621056166b8a935acc --- gnu/packages/golang-web.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index afb4d9f1558..67308d939b9 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1363,6 +1363,33 @@ client in Golang.") (modify-inputs (package-native-inputs go-github-com-datadog-datadog-go) (append go-github-com-golang-mock))))) +(define-public go-github-com-davecgh-go-xdr + (package + (name "go-github-com-davecgh-go-xdr") + (version "0.0.0-20161123171359-e6a2ba005892") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/davecgh/go-xdr") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vifrz4iil4r7k8sz5iqlfbh80ysgs5abp2simgyhsbrkxrrsrrd")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/davecgh/go-xdr/xdr2" + #:unpack-path "github.com/davecgh/go-xdr")) + (home-page "https://github.com/davecgh/go-xdr") + (synopsis "Pure Go implementation of the XDR standard") + (description + "@code{go-xdr} implements the data representation portion of the External +Data Representation (XDR) standard protocol as specified in RFC +4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.") + (license license:isc))) + (define-public go-github-com-elazarl-goproxy (package (name "go-github-com-elazarl-goproxy") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3166e7e1d0c..614e194d6e8 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5007,31 +5007,6 @@ That is, @code{gofumpt} is happy with a subset of the formats that (native-inputs '()) (inputs '()))) -(define-public go-github-com-davecgh-go-xdr - (package - (name "go-github-com-davecgh-go-xdr") - (version "0.0.0-20161123171359-e6a2ba005892") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/davecgh/go-xdr") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0vifrz4iil4r7k8sz5iqlfbh80ysgs5abp2simgyhsbrkxrrsrrd")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/davecgh/go-xdr/xdr2" - #:unpack-path "github.com/davecgh/go-xdr")) - (home-page "https://github.com/davecgh/go-xdr") - (synopsis "Pure Go implementation of the XDR standard") - (description "@code{go-xdr} implements the data representation portion of -the External Data Representation (XDR) standard protocol as specified in RFC -4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.") - (license license:isc))) - (define-public go-gopkg-in-djherbis-times-v1 (package (name "go-gopkg-in-djherbis-times-v1") From 6c7186903169ef4d4f56af436d34b9ba80bd83fc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:31:00 +0000 Subject: [PATCH 455/862] gnu: go-github-com-gologme-log: Update to 1.3.0. * gnu/packages/golang.scm (go-github-com-gologme-log): Update to 1.3.0. Change-Id: Iba2fe62ec8137d394b02e8f4503d1c7c299c6984 --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 614e194d6e8..b029dda8391 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4734,21 +4734,19 @@ configuration languages, but other uses may be possible too.") (license license:expat))) (define-public go-github-com-gologme-log - ;; this is the same as v1.2.0, only the LICENSE file changed - (let ((commit "720ba0b3ccf0a91bc6018c9967a2479f93f56a55")) (package (name "go-github-com-gologme-log") - (version "1.2.0") + (version "1.3.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/gologme/log") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "0z3gs5ngv2jszp42ypp3ai0pn410v3b2m674g73ma7vsbn2yjk1n")))) + "0m7dszaisviq7fgwyxg9lwhxyzdab0w7d1zbilrnarzvyx9wh3ax")))) (build-system go-build-system) (arguments '(#:import-path "github.com/gologme/log")) @@ -4759,7 +4757,7 @@ configuration languages, but other uses may be possible too.") log package. All the functionality of the built-in package still exists and is unchanged. This package contains a series of small enhancements and additions.") - (license license:bsd-3)))) + (license license:bsd-3))) (define-public go-github-com-kardianos-minwinsvc (package From 7850a8e2af7e4cbbf95f2e4c1695e00acae3d502 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:32:19 +0000 Subject: [PATCH 456/862] gnu: go-github-com-gologme-log: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-gologme-log): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I9f27017454569160f2e183ee38ff983e6b352cc5 --- gnu/packages/golang-xyz.scm | 25 ++++++++++++++++++++++++- gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7428accb4c1..90c2d023451 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -27,7 +27,6 @@ ;;; Copyright © 2021 Ricardo Wurmus ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Stefan Reichör -;;; Copyright © 2021 raingloom ;;; Copyright © 2021, 2023, 2024 Sharlatan Hellseher ;;; Copyright © 2022 (unmatched-parenthesis ;;; Copyright © 2022 Dhruvin Gandhi @@ -4893,6 +4892,30 @@ execution.") "The chardet package ports character set detection from ICU to Go.") (license license:expat))) +(define-public go-github-com-gologme-log + (package + (name "go-github-com-gologme-log") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gologme/log") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0m7dszaisviq7fgwyxg9lwhxyzdab0w7d1zbilrnarzvyx9wh3ax")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/gologme/log")) + (home-page "https://github.com/gologme/log/") + (synopsis "Fork of the golang built in log package to add support for levels") + (description + "This package is a drop in replacement for the built-in Go log package. +All the functionality of the built-in package still exists and is unchanged. +This package contains a series of small enhancements and additions.") + (license license:bsd-3))) + (define-public go-github-com-google-gnostic-models (package (name "go-github-com-google-gnostic-models") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b029dda8391..cb0ad587edc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4733,32 +4733,6 @@ losing type information. The primary intended use is for implementing configuration languages, but other uses may be possible too.") (license license:expat))) -(define-public go-github-com-gologme-log - (package - (name "go-github-com-gologme-log") - (version "1.3.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gologme/log") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0m7dszaisviq7fgwyxg9lwhxyzdab0w7d1zbilrnarzvyx9wh3ax")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/gologme/log")) - (home-page "https://github.com/gologme/log/") - (synopsis - "Fork of the golang built in log package to add support for levels") - (description "This package is a drop in replacement for the built-in Go -log package. All the functionality of the built-in package still exists and -is unchanged. This package contains a series of small enhancements and -additions.") - (license license:bsd-3))) - (define-public go-github-com-kardianos-minwinsvc (package (name "go-github-com-kardianos-minwinsvc") From 5416958ba161d86886c09e5477d002786237f5d9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:38:02 +0000 Subject: [PATCH 457/862] gnu: go-github-com-gorhill-cronexpr: Update to 0.0.0-20180427100037-88b0669f7d75. * gnu/packages/golang.scm (go-github-com-gorhill-cronexpr): Update to 0.0.0-20180427100037-88b0669f7d75. Change-Id: I31b974e790d3e6c692b3409f9f0509868256e527 --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cb0ad587edc..0ac2111c04b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2964,21 +2964,19 @@ Docker on them, then configures the Docker client to talk to them.") (license license:asl2.0)))) (define-public go-github-com-gorhill-cronexpr - (let ((commit "f0984319b44273e83de132089ae42b1810f4933b") - (revision "0")) (package (name "go-github-com-gorhill-cronexpr") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20180427100037-88b0669f7d75") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/gorhill/cronexpr") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 - "0dphhhqy3i7265znv3m8n57l80dmaq6z4hsj5kgd87qd19z8x0l2")))) + "0hc7xdfclp2qgkr1581jb3ckjvl34nxmqrnraci5jzmqx5av9j1r")))) (build-system go-build-system) (arguments '(#:import-path "github.com/gorhill/cronexpr")) @@ -2989,7 +2987,7 @@ Docker on them, then configures the Docker client to talk to them.") Given a cron expression and a time stamp, you can get the next time stamp which satisfies the cron expression.") (license (list license:gpl3+ - license:asl2.0))))) + license:asl2.0)))) (define-public go-github-com-matrix-org-gomatrix (package From 516e9be0009123396d3a513ca6b951c1dddd034d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:39:25 +0000 Subject: [PATCH 458/862] gnu: go-github-com-gorhill-cronexpr: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-gorhill-cronexpr): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I21a1b8a4cbb4ec2f3db1bf93d66fe20430395fdf --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 90c2d023451..ab0a19b2a0a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5088,6 +5088,32 @@ underneath and returns only matching files or direcories, depending on the configuration.") (license license:expat))) +(define-public go-github-com-gorhill-cronexpr + (package + (name "go-github-com-gorhill-cronexpr") + (version "0.0.0-20180427100037-88b0669f7d75") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gorhill/cronexpr") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hc7xdfclp2qgkr1581jb3ckjvl34nxmqrnraci5jzmqx5av9j1r")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gorhill/cronexpr")) + (home-page "https://github.com/gorhill/cronexpr") + (synopsis "Cron expression parser in the Go language") + (description + "This package provides a cron expression parser in the Go language. +Given a cron expression and a time stamp, you can get the next time stamp +which satisfies the cron expression.") + (license (list license:gpl3+ + license:asl2.0)))) + (define-public go-github-com-hanwen-go-fuse (package (name "go-github-com-hanwen-go-fuse") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0ac2111c04b..148cab07e76 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2963,32 +2963,6 @@ hosting providers, and inside your data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them.") (license license:asl2.0)))) -(define-public go-github-com-gorhill-cronexpr - (package - (name "go-github-com-gorhill-cronexpr") - (version "0.0.0-20180427100037-88b0669f7d75") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gorhill/cronexpr") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0hc7xdfclp2qgkr1581jb3ckjvl34nxmqrnraci5jzmqx5av9j1r")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/gorhill/cronexpr")) - (home-page "https://github.com/gorhill/cronexpr") - (synopsis "Cron expression parser in the Go language") - (description - "This package provides a cron expression parser in the Go language. -Given a cron expression and a time stamp, you can get the next time stamp -which satisfies the cron expression.") - (license (list license:gpl3+ - license:asl2.0)))) - (define-public go-github-com-matrix-org-gomatrix (package (name "go-github-com-matrix-org-gomatrix") From fa50eecf7677f0e31e71f3d2bc352e2f944c91f5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:41:42 +0000 Subject: [PATCH 459/862] gnu: Add go-github-com-gosuri-uilive. * gnu/packages/golang-xyz.scm (go-github-com-gosuri-uilive): New variable. Change-Id: I6c7548347f3da03a53138ae5f3c9590180b36abb --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ab0a19b2a0a..e349ea8dcea 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5114,6 +5114,30 @@ which satisfies the cron expression.") (license (list license:gpl3+ license:asl2.0)))) +(define-public go-github-com-gosuri-uilive + (package + (name "go-github-com-gosuri-uilive") + (version "0.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gosuri/uilive") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pwxx0w4mv908dascnxkdjq865ks01niqy71imv4kllz0a84zkag")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gosuri/uilive")) + (home-page "https://github.com/gosuri/uilive") + (synopsis "Updating terminal output in realtime") + (description + "Package uilive provides a writer that live updates the terminal. It +provides a buffered io.Writer that is flushed at a timed interval.") + (license license:expat))) + (define-public go-github-com-hanwen-go-fuse (package (name "go-github-com-hanwen-go-fuse") From ae242ec9a930ba97522a33a7617e5ae7143c3d80 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:43:52 +0000 Subject: [PATCH 460/862] gnu: go-github-com-huandu-xstrings: Update to 1.5.0. * gnu/packages/golang.scm (go-github-com-huandu-xstrings): Update to 1.5.0. Change-Id: Ie4d00d39120a2235b28a216cd83eeec7493bc96d --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 148cab07e76..7941fdc0fbb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4237,7 +4237,7 @@ of Java Apache Commons.") (define-public go-github-com-huandu-xstrings (package (name "go-github-com-huandu-xstrings") - (version "1.3.2") + (version "1.5.0") (source (origin (method git-fetch) (uri (git-reference @@ -4246,7 +4246,7 @@ of Java Apache Commons.") (file-name (git-file-name name version)) (sha256 (base32 - "0pwar6rc0fqb6pll38a44s81g5kb65vbg71jg5lx8caphjnikq5r")))) + "04z4xb22mi03a772f1si2fqwi5vn5584afzxas73jc6n6sppz0db")))) (build-system go-build-system) (arguments `(#:import-path "github.com/huandu/xstrings")) From 9661973e279d758a2897089e19637ef07371de81 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:45:03 +0000 Subject: [PATCH 461/862] gnu: go-github-com-huandu-xstrings: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-huandu-xstrings): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I071023737c0c6c2726e1100e663c0593e53409f3 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e349ea8dcea..0303e2e9bcf 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5766,6 +5766,30 @@ anniversaries.") subsystem in Linux.") (license license:expat))) +(define-public go-github-com-huandu-xstrings + (package + (name "go-github-com-huandu-xstrings") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/huandu/xstrings") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04z4xb22mi03a772f1si2fqwi5vn5584afzxas73jc6n6sppz0db")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/huandu/xstrings")) + (home-page "https://github.com/huandu/xstrings/") + (synopsis "Collection of string functions") + (description + "Go package xstrings is a collection of string functions,which are widely +used in other languages but absent in Go package strings.") + (license license:expat))) + (define-public go-github-com-ianlancetaylor-demangle ;; No release, see . (package diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7941fdc0fbb..35aacb15de6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4234,28 +4234,6 @@ various ways. It is a Go implementation of some string manipulation libraries of Java Apache Commons.") (license license:asl2.0))) -(define-public go-github-com-huandu-xstrings - (package - (name "go-github-com-huandu-xstrings") - (version "1.5.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/huandu/xstrings") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "04z4xb22mi03a772f1si2fqwi5vn5584afzxas73jc6n6sppz0db")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/huandu/xstrings")) - (home-page "https://github.com/huandu/xstrings/") - (synopsis "Collection of string functions") - (description "Go package xstrings is a collection of string functions, -which are widely used in other languages but absent in Go package strings.") - (license license:expat))) - (define-public go-github-com-imdario-mergo (package (name "go-github-com-imdario-mergo") From 77a30f3ce3d5ff3458c3e25cf16f600428b48c76 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:51:23 +0000 Subject: [PATCH 462/862] gnu: go-github-com-mitchellh-copystructure: Update to 1.2.0. * gnu/packages/golang.scm (go-github-com-mitchellh-copystructure): Update to 1.2.0. [propagated-inputs]: Add go-github-com-mitchellh-reflectwalk. [native-inputs]: Remove go-github-com-mitchellh-reflectwalk. Change-Id: I3237a56e7fa916603237191c4c7bc485a0166da7 --- gnu/packages/golang.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 35aacb15de6..084fad84ba9 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3444,7 +3444,7 @@ unknown structures such as those decoded from JSON.") (define-public go-github-com-mitchellh-copystructure (package (name "go-github-com-mitchellh-copystructure") - (version "1.0.0") + (version "1.2.0") (source (origin (method git-fetch) @@ -3454,11 +3454,11 @@ unknown structures such as those decoded from JSON.") (file-name (git-file-name name version)) (sha256 (base32 - "05njg92w1088v4yl0js0zdrpfq6k37i9j14mxkr3p90p5yd9rrrr")))) + "1izw243b3r03nvgnnxvk706l3s3v3q7k69kq3n4asnzjkcymq7sm")))) (build-system go-build-system) (arguments `(#:import-path "github.com/mitchellh/copystructure")) - (native-inputs + (propagated-inputs (list go-github-com-mitchellh-reflectwalk)) (home-page "https://github.com/mitchellh/copystructure") (synopsis "Go library for decoding deep copying values") From 1504f45abbaf94d5026bf94a9f997201efe8f092 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:55:15 +0000 Subject: [PATCH 463/862] gnu: go-github-com-mitchellh-copystructure: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-mitchellh-copystructure): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I7c0276bdd98961223760bc809707a92f6d1231bb --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 0303e2e9bcf..1f0db6ce9a7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8204,6 +8204,35 @@ colored strings.") "Colorstring provides functions for colorizing strings for terminal output.") (license license:expat))) +(define-public go-github-com-mitchellh-copystructure + (package + (name "go-github-com-mitchellh-copystructure") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitchellh/copystructure") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1izw243b3r03nvgnnxvk706l3s3v3q7k69kq3n4asnzjkcymq7sm")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mitchellh/copystructure")) + (propagated-inputs + (list go-github-com-mitchellh-reflectwalk)) + (home-page "https://github.com/mitchellh/copystructure") + (synopsis "Go library for decoding deep copying values") + (description "@code{copystructure} is a Go library for deep copying values +in Go. + +This allows you to copy Go values that may contain reference values such as +maps, slices, or pointers, and copy their data as well instead of just their +references.") + (license license:expat))) + (define-public go-github-com-mitchellh-go-homedir (package (name "go-github-com-mitchellh-go-homedir") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 084fad84ba9..c677a22af3c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3441,35 +3441,6 @@ file system. Walking a complex structure can allow you to do manipulations on unknown structures such as those decoded from JSON.") (license license:expat))) -(define-public go-github-com-mitchellh-copystructure - (package - (name "go-github-com-mitchellh-copystructure") - (version "1.2.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mitchellh/copystructure") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1izw243b3r03nvgnnxvk706l3s3v3q7k69kq3n4asnzjkcymq7sm")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/mitchellh/copystructure")) - (propagated-inputs - (list go-github-com-mitchellh-reflectwalk)) - (home-page "https://github.com/mitchellh/copystructure") - (synopsis "Go library for decoding deep copying values") - (description "@code{copystructure} is a Go library for deep copying values -in Go. - -This allows you to copy Go values that may contain reference values such as -maps, slices, or pointers, and copy their data as well instead of just their -references.") - (license license:expat))) - (define-public go-github-com-whyrusleeping-tar-utils (let ((commit "8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc") (revision "0")) From 03afba75338de2778e4358df1e969daf3eb472f4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:58:21 +0000 Subject: [PATCH 464/862] gnu: go-github-com-mitchellh-reflectwalk: Update to 1.0.2. * gnu/packages/golang.scm (go-github-com-mitchellh-reflectwalk): Update to 1.0.2. Change-Id: Ie40debffcc3a621695354481b51fa584380bfe45 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c677a22af3c..32978e11a68 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3420,7 +3420,7 @@ required by Go's standard Hash interface.") (define-public go-github-com-mitchellh-reflectwalk (package (name "go-github-com-mitchellh-reflectwalk") - (version "1.0.1") + (version "1.0.2") (source (origin (method git-fetch) (uri (git-reference @@ -3429,7 +3429,7 @@ required by Go's standard Hash interface.") (file-name (git-file-name name version)) (sha256 (base32 - "0pa6a3nhzwv5s5yqcmsmsfhdp5ggxsg2wa86f3akawxrhrkjarnx")))) + "1nxgb4gskzv045539vb312n0a443308dvh1akz7vi6x1l0z46zsm")))) (build-system go-build-system) (arguments `(#:import-path "github.com/mitchellh/reflectwalk")) From f4abc9e310f70f4c961e5800f0b3a9c5d1e7c36c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 16:04:14 +0000 Subject: [PATCH 465/862] gnu: go-github-com-mitchellh-reflectwalk: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-mitchellh-reflectwalk): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Id9e77506e7d9191315fd69438f763faccfc538ec --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1f0db6ce9a7..fab1c382cde 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8294,6 +8294,31 @@ cross-compilation.") (description "Go library for decoding generic map values") (license license:expat))) +(define-public go-github-com-mitchellh-reflectwalk + (package + (name "go-github-com-mitchellh-reflectwalk") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitchellh/reflectwalk") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nxgb4gskzv045539vb312n0a443308dvh1akz7vi6x1l0z46zsm")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/mitchellh/reflectwalk")) + (home-page "https://github.com/mitchellh/reflectwalk/") + (synopsis "Walk a value in Go using reflection") + (description + "reflectwalk is a Go library for \"walking\" a value in Go using +reflection, in the same way a directory tree can be \"walked\" on the file +system. Walking a complex structure can allow you to do manipulations on +unknown structures such as those decoded from JSON.") + (license license:expat))) + (define-public go-github-com-moby-sys-mountinfo (package (name "go-github-com-moby-sys-mountinfo") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 32978e11a68..0d8167a7490 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3417,30 +3417,6 @@ required by Go's standard Hash interface.") (description "Just a type for protocol strings. Nothing more.") (license license:expat)))) -(define-public go-github-com-mitchellh-reflectwalk - (package - (name "go-github-com-mitchellh-reflectwalk") - (version "1.0.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mitchellh/reflectwalk") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1nxgb4gskzv045539vb312n0a443308dvh1akz7vi6x1l0z46zsm")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/mitchellh/reflectwalk")) - (home-page "https://github.com/mitchellh/reflectwalk/") - (synopsis "Walk a value in Go using reflection") - (description "reflectwalk is a Go library for \"walking\" a value in Go -using reflection, in the same way a directory tree can be \"walked\" on the -file system. Walking a complex structure can allow you to do manipulations on -unknown structures such as those decoded from JSON.") - (license license:expat))) - (define-public go-github-com-whyrusleeping-tar-utils (let ((commit "8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc") (revision "0")) From ef44b838fb46af208b2904171b8ece57a45a8745 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 16:06:28 +0000 Subject: [PATCH 466/862] gnu: go-github-com-mitchellh-go-wordwrap: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-mitchellh-go-wordwrap): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ie558bdc39a725dd69a033078bdf91426ba4245e0 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index fab1c382cde..60759a71a9b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8270,6 +8270,33 @@ the current user without cgo. This library does that, enabling cross-compilation.") (license license:expat))) +(define-public go-github-com-mitchellh-go-wordwrap + (package + (name "go-github-com-mitchellh-go-wordwrap") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitchellh/go-wordwrap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12imq66hgj8q9ii2xqdy8apc0icphh6yimjb0div1pvl3s9gn83y")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mitchellh/go-wordwrap")) + (propagated-inputs + (list go-gopkg-in-yaml-v2)) + (home-page "https://github.com/mitchellh/go-wordwrap") + (synopsis "Go library for word-wrapping strings") + (description + "This Go library automatically wraps words onto multiple lines. It's +primary goal is to format command-line output, but of course word wrapping is +a generally useful thing to do.") + (license license:expat))) + ;; XXX: This package is in maintenance mode: "This repository has been ;; archived by the owner on Jul 22, 2024. It is now read-only." (define-public go-github-com-mitchellh-mapstructure diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0d8167a7490..d74ab2bf5c4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2167,32 +2167,6 @@ your Go binary to be later served from an http.FileSystem.") (description "This package provides additions to Go's stdlib @code{fmt}.") (license license:bsd-3))) -(define-public go-github-com-mitchellh-go-wordwrap - (package - (name "go-github-com-mitchellh-go-wordwrap") - (version "1.0.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mitchellh/go-wordwrap") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "12imq66hgj8q9ii2xqdy8apc0icphh6yimjb0div1pvl3s9gn83y")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/mitchellh/go-wordwrap")) - (propagated-inputs - (list go-gopkg-in-yaml-v2)) - (home-page "https://github.com/mitchellh/go-wordwrap") - (synopsis "Go library for word-wrapping strings") - (description - "This Go library automatically wraps words onto multiple lines. It's -primary goal is to format command-line output, but of course word wrapping is a -generally useful thing to do.") - (license license:expat))) - (define-public go-github-com-motemen-go-colorine (let ((commit "45d19169413a019e4e2be69629dde5c7d92f8706") (revision "0")) From 29b7872d56da541febca942ddd2884ac84009ce5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 15:51:23 +0000 Subject: [PATCH 467/862] gnu: go-github-com-masterminds-sprig-v3: Update to 3.3.0. * gnu/packages/golang-xyz.scm (go-github-com-masterminds-sprig-v3): Update to 3.3.0. [arguments] : Move skip test logic here. : Remove 'remove-network-tests. [propagated-inputs]: Remove go-github-com-imdario-mergo and go-github-com-mitchellh-reflectwalk; add go-dario-cat-mergo. Change-Id: Ia03b8795cb25d5108584aca2bbebc283df44bdf9 --- gnu/packages/golang-xyz.scm | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 60759a71a9b..4aa0de737e4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7782,7 +7782,7 @@ semantic versions. Specifically it provides the ability to: (define-public go-github-com-masterminds-sprig-v3 (package (name "go-github-com-masterminds-sprig-v3") - (version "3.2.3") + (version "3.3.0") (source (origin (method git-fetch) @@ -7791,29 +7791,21 @@ semantic versions. Specifically it provides the ability to: (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1gkwalx8j8h1jdhk6dz8bq8zp7vivxvcivr83dcq0h6nrn4xjqnl")))) + (base32 "1ljpizbfjh29xb4f40ipkrqriyixhdsfnd72y3pdzrjf2kbmgw9n")))) (build-system go-build-system) (arguments (list #:import-path "github.com/Masterminds/sprig/v3" - #:phases - #~(modify-phases %standard-phases - ;; Tests tries to reach Google: - ;; tpl := `{{"www.google.com" | getHostByName}}` - (add-after 'unpack 'remove-network-tests - (lambda* (#:key import-path #:allow-other-keys) - (delete-file - (string-append "src/" import-path "/network_test.go"))))))) + #:test-flags #~(list "-skip" "TestGetHostByName"))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs - (list go-github-com-google-uuid + (list go-dario-cat-mergo + go-github-com-google-uuid go-github-com-huandu-xstrings - go-github-com-imdario-mergo go-github-com-masterminds-goutils go-github-com-masterminds-semver-v3 go-github-com-mitchellh-copystructure - go-github-com-mitchellh-reflectwalk go-github-com-shopspring-decimal go-github-com-spf13-cast go-golang-org-x-crypto)) From ee10c24389d63870e922d656e67b2c40db7c8b94 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 19:58:46 +0000 Subject: [PATCH 468/862] gnu: Add go-github-com-dgryski-trifles. * gnu/packages/golang-xyz.scm (go-github-com-dgryski-trifles): New variable. Change-Id: I6bca977d99b2bf991a411f0d10a4443b9b8b0d12 --- gnu/packages/golang-xyz.scm | 88 +++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4aa0de737e4..11ae405097e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3297,6 +3297,94 @@ supports concurrent serializable transactions.") on throughput and hit ratio performance.") (license (list license:asl2.0 license:expat)))) +;; The project provides no go.mod files and contains a veracity of commands +;; and libraries which might need missing dependencies, update them on demand. +(define-public go-github-com-dgryski-trifles + (package + (name "go-github-com-dgryski-trifles") + (version "0.0.0-20240922021506-5ecb8eeff266") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dgryski/trifles") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "071pnsyax99ikc58b110hdvqk1v46mqk6zdd0sshrf9lmwixwpnj")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:tests? #f + #:import-path "github.com/dgryski/trifles")) + (home-page "https://github.com/dgryski/trifles") + (synopsis "Collection of Golang utitity libraries and commands") + (description + "This package provides a collection veriaty of utility libraries: + +@itemize +@item intset - compress a stream of integers +@item lz - lempel-ziv compression +@item threadtree - a threaded binary-tree +@item numerical - numerical integration and root finding +@item maze - maze generation stuff +@item hist - simple command-line histogramming tool +@item simhash - trivial simhash implementation +@item wscat - trivial websocket netcat +@item servedir - trivial http fileserver +@item rndtxt - generate random text strings +@item mpush - push to multiple notification services (pushbullet, nma, pushover) +@item superbat - batmanjs and go-restful playground +@item msgrpc - msgpack rpc python/go interop samples +@item quantile - testing different streaming quantile estimators +@item wtflog - logging package with some renamed log levels +@item qrshow - display QR codes in a terminal +@item nlz - asm code to find number of leading zeros +@item httpecho - server to dump information about an http request +@item lzpack - trivial packed format for lz4 compression +@item grinderplot - generate a flot chart from grinder logs +@item worker - framework for spawning concurrent workers +@item gddo - search godoc.org from the command line +@item uuid - generate random UUIDs +@item entropy - reducer to compute entropy per epoch for a set of values in a category +@item inthash - integer hashing functions +@item udprelay - simple udp-to-tcp multiplexing relay +@item shufsecs - shuffle sorted epoch-data within epochs +@item strtable - dumb string->uint32 hash table for profiling vs native maps +@item cachetest - playing with different caching algorithms (clock, lru, lfu, random) +@item glj - passing data from go to lua with msgpack +@item toms - text filter for time.Duration to milliseconds +@item bluniq - bloom-filter based unique filter +@item skvdist - check distribution of shardedkv choosers +@item gcwatch - print out garbage collection stats from /debug/vars +@item toepoch - convert time fields to epochs +@item repl - framework for making dumb repls for testing +@item skvchk - tool for checking shardedkv distributions +@item interp - interpolation search +@item oma - simulation of the Dutch children's board game \"Met de bus naar Oma\" +@item rndsample - uniform random sample from stdin +@item pphrase - simple passphrase generator +@item fastrand - fast xorshift rng with bias-free [0..n) +@item range2cird - turn IP ranges into CIDR +@item gfmt - trivial filter wrapping go-linebreak +@item mtest - port of libtommath test program +@item leven - fastest levenshtein distance algorithm I could find +@item matcher - test different methods of testing string set membership +@item cstbucket - crunch carbonserver logs for time-ranges of queries +@item stablepart - stable partition a sort.Interface on a boolean predicate +@item jumpreplica - tool for playing with replica choices for jump-hash +@item sshdregex - demo using ragel for optimized regexp matching +@item hllbench - benchmark different hyperloglog implementations +@item shlines, sipsum - tools for siphashing things +@item urlq - extract query parameters from a list of URLs +@item median - compute the median of 5 numbers with a sorting network +@item hashbench - benchmark different hashing functions +@item fastpprof - how to use pprof with fasthttp +@item ewmaest - progress logging with ewma-based ETA estimation +@end itemize") + (license license:expat))) + (define-public go-github-com-dimchansky-utfbom (package (name "go-github-com-dimchansky-utfbom") From edb7c039252a1da3f8d4a1459059d05e33d57b68 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 19:58:51 +0000 Subject: [PATCH 469/862] gnu: Add go-github-com-arbovm-levenshtein. * gnu/packages/golang-xyz.scm (go-github-com-arbovm-levenshtein): New variable. Change-Id: I6eb61438459cccf23e0d9b49b9691a4498e36441 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 11ae405097e..9dc8097be19 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -936,6 +936,31 @@ commands.") "This package implements optimal parameters for data-types.") (license license:expat))) +(define-public go-github-com-arbovm-levenshtein + (package + (name "go-github-com-arbovm-levenshtein") + (version "0.0.0-20160628152529-48b4e1c0c4d0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arbovm/levenshtein") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nmx2iip8xpnbmy6gvqpc9ikizr33dr40xgv746h0b0by8n7rv7y")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/arbovm/levenshtein")) + (home-page "https://github.com/arbovm/levenshtein") + (synopsis "Levenshtein Distance in Golang") + (description + "This package implements a functionality to calculate the +@url{http://en.wikipedia.org/wiki/Levenshtein_distance, Levenshtein +Distance}.") + (license license:bsd-3))) + (define-public go-github-com-arceliar-phony (package (name "go-github-com-arceliar-phony") From abe86f3e7eadd044405c78cbc6fb0e1449bbfdd8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 19:58:52 +0000 Subject: [PATCH 470/862] gnu: Add go-github-com-agnivade-levenshtein. * gnu/packages/golang-xyz.scm (go-github-com-agnivade-levenshtein): New variable. Change-Id: I1a993e2618cbafd225c1effa179f41d895937af4 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9dc8097be19..5f2a0e10a57 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -546,6 +546,34 @@ XDG defined locations instead of hardcoding paths. The package also includes the locations of well known user directories.") (license license:expat))) +(define-public go-github-com-agnivade-levenshtein + (package + (name "go-github-com-agnivade-levenshtein") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/agnivade/levenshtein") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vg9aj9k4qv96nqqp261qrm9g7kj0axqhv3mm9qvw932l72943hn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/agnivade/levenshtein")) + (native-inputs ; for tests only + (list go-github-com-arbovm-levenshtein + go-github-com-dgryski-trifles)) + (home-page "https://github.com/agnivade/levenshtein") + (synopsis "Golang implementation to calculate Levenshtein Distance") + (description + "This package implements a functionality to calculate +@url{https://en.wikipedia.org/wiki/Levenshtein_distance, Levenshtein +Distance}.") + (license license:expat))) + (define-public go-github-com-alecthomas-chroma (package (name "go-github-com-alecthomas-chroma") From 032b497809ac06a12d21ed51a58e41389d50fb44 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 19:58:52 +0000 Subject: [PATCH 471/862] gnu: Add go-github-com-andreyvit-diff. * gnu/packages/golang-check.scm (go-github-com-andreyvit-diff): New variable. Change-Id: I2caa018f0451f61d9761eea474f7bf35ec5b3dc9 --- gnu/packages/golang-check.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 2e408226e08..d037f14d4fb 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -121,6 +121,32 @@ value and call @code{t.Fatal()} if the assertion fails.") @end itemize") (license license:expat))) +(define-public go-github-com-andreyvit-diff + (package + (name "go-github-com-andreyvit-diff") + (version "0.0.0-20170406064948-c7f18ee00883") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/andreyvit/diff") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1s4qjkxig5yqahpzfl4xqh4kzi9mymdpkzq6kj3f4dr5dl3hlynr")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/andreyvit/diff")) + (propagated-inputs + (list go-github-com-sergi-go-diff)) + (home-page "https://github.com/andreyvit/diff") + (synopsis "Diffing strings in tests") + (description + "This package provides a quick and easy string diffing functions based on +github.com/sergi/go-diff, mainly for diffing strings in tests.") + (license license:expat))) + (define-public go-github-com-bitfield-gotestdox (package (name "go-github-com-bitfield-gotestdox") From 78573f47e91819ec881e880ff2b4e3819d14a4f9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 19:58:52 +0000 Subject: [PATCH 472/862] gnu: Add go-github-com-vektah-gqlparser-v2. * gnu/packages/golang-web.scm (go-github-com-vektah-gqlparser-v2): New variable. Change-Id: I31b8b619c4f46e1059f7b907d12f02a253c9c249 --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 67308d939b9..46a8ed0197f 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6912,6 +6912,37 @@ encoding library for the MessagePack, CBOR, JSON and the Binc formats.") replacement for native @code{net/http} module.") (license license:expat))) +(define-public go-github-com-vektah-gqlparser-v2 + (package + (name "go-github-com-vektah-gqlparser-v2") + (version "2.5.21") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vektah/gqlparser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hrzm9f3kvcblff4hypf1p95kxsv5pww7vcghhw2jb7r8r4kmdf0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/vektah/gqlparser/v2")) + (native-inputs + (list go-github-com-andreyvit-diff + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-agnivade-levenshtein + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/vektah/gqlparser") + (synopsis "Port of the parser from @code{graphql-js} into golang") + (description + "This is a parser for GraphQL, written to mirror the +@url{https://github.com/graphql/graphql-js, graphql-js} reference +implementation as closely while remaining idiomatic and easy to use.") + (license license:expat))) + (define-public go-github-com-vishvananda-netlink (package (name "go-github-com-vishvananda-netlink") From 131ee6ccab26ef466738d0383c2d90ec6e4d6d6c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 19:58:52 +0000 Subject: [PATCH 473/862] gnu: go-git-sr-ht-emersion-gqlclient: Fix build. * gnu/packages/golang-web.scm (go-git-sr-ht-emersion-gqlclient) [arguments] : Add them. [native-inputs]: Add go-github-com-dave-jennifer and go-github-com-vektah-gqlparser-v2. Change-Id: Ia7f6fe4eec6f4b7178e5251ac847ba9b6f04d9f7 --- gnu/packages/golang-web.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 46a8ed0197f..19f1a981e16 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -128,7 +128,13 @@ API service accounts for Go.") (base32 "0x64kcryawdr0daq1w6fada60zqrddw75yi397835b9ij7wb5gmh")))) (build-system go-build-system) (arguments - (list #:import-path "git.sr.ht/~emersion/gqlclient")) + (list + #:embed-files #~(list "prelude.graphql") + #:import-path "git.sr.ht/~emersion/gqlclient")) + ;; For the CLI. + (native-inputs + (list go-github-com-dave-jennifer + go-github-com-vektah-gqlparser-v2)) (home-page "https://git.sr.ht/~emersion/gqlclient") (synopsis "GraphQL client and code generator") (description From 38963b2bdc9cbb6f6b3c0c6a44da5907e4e01506 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 20:14:42 +0000 Subject: [PATCH 474/862] gnu: Add go-gqlclient. * gnu/packages/golang-web.scm (go-gqlclient): New variable. Change-Id: I8079989035246fc22f845ceebb87999e62f65cac --- gnu/packages/golang-web.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 19f1a981e16..0bc7fc26fab 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8001,6 +8001,40 @@ facilitate dealing with JOSE messages when testing or debugging.") "This package provides a command line tool to generate gojay's marshaling and unmarshaling interface implementation for custom struct type(s)."))) +(define-public go-gqlclient + (package + (inherit go-git-sr-ht-emersion-gqlclient) + (name "go-gqlclient") + (arguments + (substitute-keyword-arguments + (package-arguments go-git-sr-ht-emersion-gqlclient) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:phases _ '%standard-phases) + #~(modify-phases %standard-phases + (replace 'build + (lambda arguments + (for-each + (lambda (cmd) + (apply (assoc-ref %standard-phases 'build) + `(,@arguments #:import-path ,cmd))) + (list "git.sr.ht/~emersion/gqlclient/cmd/gqlclient" + "git.sr.ht/~emersion/gqlclient/cmd/gqlclientgen" + "git.sr.ht/~emersion/gqlclient/cmd/gqlintrospect")))) + (replace 'install + (lambda arguments + (for-each + (lambda (cmd) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,cmd))) + (list "git.sr.ht/~emersion/gqlclient/cmd/gqlclient" + "git.sr.ht/~emersion/gqlclient/cmd/gqlclientgen" + "git.sr.ht/~emersion/gqlclient/cmd/gqlintrospect")))))))) + (description + "This package provides command line tools: @code{gqlclient}, +@code{gqlclientgen}, and @code{gqlintrospect}. For the Golang libriray, see +go-git-sr-ht-emersion-gqlclient package."))) + (define-public go-html2text (package (inherit go-github-com-jaytaylor-html2text) From e9f2c713e3a1c14eb9366068cf9660968b5bc743 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 20:18:45 +0000 Subject: [PATCH 475/862] gnu: umoci: Fix build. * gnu/packages/virtualization.scm (umoci) [arguments] : Limit to project's root. Change-Id: Ib002c142fefa7b8fa60c7d9c650615753bf03eba --- gnu/packages/virtualization.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 29f29e0b53f..b8819bb14d7 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -2290,6 +2290,7 @@ Open Container Initiative specification.") (package (name "umoci") (version "0.4.7") + ;; XXX: Source contain vendor, consider to pack all missing dependencies. (source (origin (method url-fetch) @@ -2303,6 +2304,7 @@ Open Container Initiative specification.") (arguments '(#:import-path "github.com/opencontainers/umoci" #:install-source? #f + #:test-subdirs '(".") #:phases (modify-phases %standard-phases (replace 'unpack From 17093c6651dfc2c101d5478d3c75c2b62bea8919 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 21:34:20 +0000 Subject: [PATCH 476/862] gnu: gopls: Update to 0.17.1. * gnu/packages/golang.scm (gopls): Update to 0.17.1, fix build. [arguments] : Run tests in some subdirectories as there are no tests in project's root. Change-Id: I8b9e1456d2c37e1cbd846ea1127845931d5443f2 --- gnu/packages/golang.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d74ab2bf5c4..7c7f2aff588 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2552,7 +2552,7 @@ command-line parsers.") (name "gopls") ;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which ;; needs to be discussed if it may be included in Guix. - (version "0.16.2") + (version "0.17.1") (source (origin (method git-fetch) @@ -2561,13 +2561,20 @@ command-line parsers.") (commit (go-version->git-ref version #:subdir "gopls")))) (file-name (git-file-name name version)) (sha256 - (base32 "1l6mkh4v0f602spw3zdmkxqizk32zvgpfy461sinqwhlag8v8v3a")))) + (base32 "1qksn79nc94fig5bia0l8h7fzm1zbn9rvya25hwf0f18v8a0id9l")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "golang.org/x/tools/gopls" #:unpack-path "golang.org/x/tools" + ;; XXX: No tests in project's root, limit to some of subdris, try to + ;; enable more. + #:test-subdirs + #~(list "internal/protocol/..." + "internal/util/..." + "internal/vulncheck/...") #:phases #~(modify-phases %standard-phases (add-before 'unpack 'override-tools From cbe1dd297a9ee8645f0957b4c22036423916fd6f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 22:15:16 +0000 Subject: [PATCH 477/862] gnu: Remove go-github-com-tj-docopt. It's a not maintained (10y) fork of , fails to build and not in use by any other packages in Guix. * gnu/packages/golang.scm (go-github-com-tj-docopt): Delete variable. Change-Id: I356cd0250fe246a300ac2e6cd31255552cf95675 --- gnu/packages/golang.scm | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7c7f2aff588..f62cc66944c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2523,30 +2523,6 @@ per-goroutine.") (description "The @code{walker} function is a faster, parallel version, of @code{filepath.Walk}"))) -(define-public go-github-com-tj-docopt - (package - (name "go-github-com-tj-docopt") - (version "1.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/tj/docopt") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "06h8hdg1mh3s78zqlr01g4si7k0f0g6pr7fj7lnvfg446hgc7080")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/tj/docopt")) - (synopsis "Go implementation of docopt") - (description - "This library allows the user to define a command-line interface from a -program's help message rather than specifying it programmatically with -command-line parsers.") - (home-page "https://github.com/tj/docopt") - (license license:expat))) - (define-public gopls (package (name "gopls") From 34c10a61c348d91a6fa3455f918302a889f4c82e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 28 Dec 2024 22:48:06 +0000 Subject: [PATCH 478/862] gnu: go-github-com-rakyll-statik: Skip some tests. * gnu/packages/golang.scm (go-github-com-rakyll-statik) [arguments] : Skip 5 tests. Change-Id: Id02cf2a6ab916e62c125da9dc6edc78b905a03dd --- gnu/packages/golang.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f62cc66944c..508555986d1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2139,7 +2139,18 @@ for speed on short messages.") "fmt.Print(helpText + \"\\n\")")))))) (build-system go-build-system) (arguments - `(#:import-path "github.com/rakyll/statik")) + (list + #:import-path "github.com/rakyll/statik" + #:test-flags + #~(list "-skip" + (string-join + (list + "TestOpen/Files_should_retain_their_original_file*" + "TestOpen/Images_should_successfully_unpack" + "TestOpen/'index.html'_files_should_be_returned*" + "TestOpen/listed_all_sub_directories_in_deep_directory" + "TestOpen/Paths_containing_dots_should_be_properly_sanitized") + "|")))) (home-page "https://github.com/rakyll/statik/") (synopsis "Embed files into a Go executable") (description "Statik allows you to embed a directory of static files into From 08f26bc70d9f716286f13076e7d02dbf28fa11c8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 00:04:04 +0000 Subject: [PATCH 479/862] gnu: go-github-com-prometheus-node-exporter: 1.8.2-0.b8aac7c. * gnu/packages/monitoring.scm: Add golang-build, golang-web, golang-xyz, and prometheus modules. (go-github-com-prometheus-node-exporter): 1.8.2-0.b8aac7c. [arguments] : Skip source installation as it's a final command. : Provide ldflags. : Copy 2 files required as not symlinks. : Add 'pre-check and 'post-check - unpacking and removing provided test data. [propagated-inputs]: Add go-github-com-alecthomas-kingpin-v2, go-github-com-beevik-ntp, go-github-com-coreos-go-systemd-v22, go-github-com-dennwc-btrfs, go-github-com-ema-qdisc, go-github-com-go-kit-log, go-github-com-godbus-dbus-v5, go-github-com-hashicorp-go-envparse, go-github-com-hodgesds-perf-utils, go-github-com-josharian-native, go-github-com-jsimonetti-rtnetlink, go-github-com-mattn-go-xmlrpc, go-github-com-mdlayher-ethtool, go-github-com-mdlayher-netlink, go-github-com-mdlayher-wifi, go-github-com-jsimonetti-rtnetlink-v2, go-github-com-opencontainers-selinux, go-github-com-prometheus-client-golang, go-github-com-prometheus-client-model, go-github-com-prometheus-common, go-github-com-prometheus-community-go-runit, go-github-com-prometheus-exporter-toolkit, go-github-com-prometheus-procfs-next, go-github-com-safchain-ethtool, go-golang-org-x-exp, go-golang-org-x-sys, and go-howett-net-plist. * gnu/packages/prometheus.scm (go-github-com-prometheus-procfs-next): New variable. Change-Id: I06f9d5d99266ca1abb3e8203ec66d9415842306a --- gnu/packages/monitoring.scm | 103 +++++++++++++++++++++++++++++------- gnu/packages/prometheus.scm | 20 +++++++ 2 files changed, 104 insertions(+), 19 deletions(-) diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index 7dd30f9a6e0..2198eb9d531 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -54,6 +54,9 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages gnome) ;libnotify #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-web) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages image) #:use-module (gnu packages mail) #:use-module (gnu packages ncurses) @@ -62,6 +65,7 @@ #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages prometheus) #:use-module (gnu packages python) #:use-module (gnu packages python-build) #:use-module (gnu packages python-web) @@ -522,26 +526,87 @@ WSGI and the node exporter textfile collector.") (license license:asl2.0))) (define-public go-github-com-prometheus-node-exporter - (package - (name "go-github-com-prometheus-node-exporter") - (version "0.18.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/prometheus/node_exporter") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0s3sp1gj86p7npxl38hkgs6ymd3wjjmc5hydyg1b5wh0x3yvpx07")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/prometheus/node_exporter")) - (synopsis "Prometheus exporter for hardware and OS metrics") - (description "Prometheus exporter for metrics exposed by *NIX kernels, + ;; The latest release is failing to build, use the latest commit from the + ;; master branch. + (let ((commit "b8aac7c92e2d7f3dea56b2d4802d4ef3ee29c3cc") + (revision "0")) + (package + (name "go-github-com-prometheus-node-exporter") + (version (git-version "1.8.2" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/prometheus/node_exporter") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0n2s2z168xzp6i0ihaqvvs8zinp1iqld45c6lj89x7wjv8m741j3")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:build-flags + #~(list (string-append + "-ldflags=" + "-X github.com/prometheus/common/version.Version=" #$version + " -X github.com/prometheus/common/version.Revision=" #$revision + " -X github.com/prometheus/common/version.Branch=master" + " -X github.com/prometheus/common/version.BuildUser=guix" + " -X github.com/prometheus/common/version.BuildDate=n/a")) + #:embed-files #~(list "landing_page.css" "landing_page.html") + #:import-path "github.com/prometheus/node_exporter" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (invoke "./ttar" "-C" "collector/fixtures" + "-x" "-f" "collector/fixtures/sys.ttar") + (invoke "./ttar" "-C" "collector/fixtures" + "-x" "-f" "collector/fixtures/udev.ttar")))) + (add-after 'check 'post-check + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + (list "collector/fixtures/sys" + "collector/fixtures/sys.ttar" + "collector/fixtures/udev" + "collector/fixtures/udev.ttar")))))))) + (propagated-inputs + (list go-github-com-alecthomas-kingpin-v2 + go-github-com-beevik-ntp + go-github-com-coreos-go-systemd-v22 + go-github-com-dennwc-btrfs + go-github-com-ema-qdisc + go-github-com-go-kit-log + go-github-com-godbus-dbus-v5 + go-github-com-hashicorp-go-envparse + go-github-com-hodgesds-perf-utils + go-github-com-josharian-native + go-github-com-jsimonetti-rtnetlink + go-github-com-mattn-go-xmlrpc + go-github-com-mdlayher-ethtool + go-github-com-mdlayher-netlink + go-github-com-mdlayher-wifi + go-github-com-jsimonetti-rtnetlink-v2 + go-github-com-opencontainers-selinux + go-github-com-prometheus-client-golang + go-github-com-prometheus-client-model + go-github-com-prometheus-common + go-github-com-prometheus-community-go-runit + go-github-com-prometheus-exporter-toolkit + go-github-com-prometheus-procfs-next + go-github-com-safchain-ethtool + go-golang-org-x-exp + go-golang-org-x-sys + go-howett-net-plist)) + (home-page "https://github.com/prometheus/node_exporter") + (synopsis "Prometheus exporter for hardware and OS metrics") + (description + "Prometheus exporter for metrics exposed by *NIX kernels, written in Go with pluggable metric collectors.") - (home-page "https://github.com/prometheus/node_exporter") - (license license:asl2.0))) + (license license:asl2.0)))) (define-public temper-exporter (let ((commit "a87bbab19c05609d62d9e4c7941178700c1ef84d") diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index 1adb42bb9a1..e582673a0d7 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -508,6 +508,26 @@ Protocol,ICMP} echo (ping) functionality.") kernel, and process metrics from the @file{/proc} pseudo file system.") (license license:asl2.0))) +;; To make it compatible with node_exporter, see +;; . +(define-public go-github-com-prometheus-procfs-next + (let ((commit "24ab3d8d880d820115eef19f7b0c2c38fffd6a25") + (revision "0")) + (hidden-package + (package + (inherit go-github-com-prometheus-procfs) + (name "go-github-com-prometheus-procfs") + (version (git-version "0.15.2" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/prometheus/procfs") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fv3f83q5wigbpl6mdpk4k7bj8jabc81rap0ym95l7rpw93cdlim")))))))) + (define-public go-github-com-prometheus-statsd-exporter (package (name "go-github-com-prometheus-statsd-exporter") From 9194eb4da053f0afed6b1638b24992e2ae02b041 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 00:13:15 +0000 Subject: [PATCH 480/862] gnu: Deprecate go-github-com-prometheus-node-exporter. * gnu/packages/monitoring.scm (prometheus-node-exporter): New variable. (go-github-com-prometheus-node-exporter): Deprecate variable. Change-Id: Ife482a546906a1150f68391b58fa8ab1b1497a94 --- gnu/packages/monitoring.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index 2198eb9d531..a1b74f15853 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -525,13 +525,13 @@ Metrics can be exposed through a standalone web server, or through Twisted, WSGI and the node exporter textfile collector.") (license license:asl2.0))) -(define-public go-github-com-prometheus-node-exporter +(define-public prometheus-node-exporter ;; The latest release is failing to build, use the latest commit from the ;; master branch. (let ((commit "b8aac7c92e2d7f3dea56b2d4802d4ef3ee29c3cc") (revision "0")) (package - (name "go-github-com-prometheus-node-exporter") + (name "prometheus-node-exporter") (version (git-version "1.8.2" revision commit)) (source (origin (method git-fetch) @@ -608,6 +608,10 @@ WSGI and the node exporter textfile collector.") written in Go with pluggable metric collectors.") (license license:asl2.0)))) +(define-public go-github-com-prometheus-node-exporter + (deprecated-package "go-github-com-prometheus-node-exporter" + prometheus-node-exporter)) + (define-public temper-exporter (let ((commit "a87bbab19c05609d62d9e4c7941178700c1ef84d") (revision "0")) From 98a8f828e704992c6a7a968100480757373dc634 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 12:16:19 +0000 Subject: [PATCH 481/862] gnu: esbuild: Update to 0.24.0. * gnu/packages/web.scm (esbuild): Update to 0.24.0. [native-inputs]: Remove go-github-com-kylelemons-godebug. Change-Id: I163f99ae912270715f62a1ce4aed4e50a115a846 --- gnu/packages/web.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index b52f184d0ee..359d9e2c033 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1954,7 +1954,7 @@ UTS#46.") (define-public esbuild (package (name "esbuild") - (version "0.14.0") + (version "0.24.0") (source (origin (method git-fetch) @@ -1963,7 +1963,7 @@ UTS#46.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "09r1xy0kk6c9cpz6q0mxr4why373pwxbm439z2ihq3k1d5kk7x4w")) + (base32 "1j99m7rdql6iq3llrr8bm85hq34ssc8bmb6vhwr1ibgspjl0jd3k")) (modules '((guix build utils))) (snippet '(begin @@ -1992,8 +1992,6 @@ UTS#46.") #t))))) (inputs `(("golang.org/x/sys" ,go-golang-org-x-sys-for-esbuild))) - (native-inputs - `(("github.com/kylelemons/godebug" ,go-github-com-kylelemons-godebug))) (home-page "https://esbuild.github.io/") (synopsis "Bundler and minifier tool for JavaScript and TypeScript") (description From a49dc18fd05b21103c5faa3f0c09b466ef64cc2b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 12:29:15 +0000 Subject: [PATCH 482/862] gnu: esbuild: Improve style. * gnu/packages/web.scm (esbuild): Use G-expressions. [source] : Remove trailing #t. [arguments] : Port Makefile options here. : Likewise. : Use default 'check. [input]: Remove labels. [description]: Adjust fill-column. Change-Id: I95269f084e214b2c491b6813a1baf3615d9e79e1 --- gnu/packages/web.scm | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 359d9e2c033..460ce15dfa7 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1966,38 +1966,25 @@ UTS#46.") (base32 "1j99m7rdql6iq3llrr8bm85hq34ssc8bmb6vhwr1ibgspjl0jd3k")) (modules '((guix build utils))) (snippet - '(begin - ;; Remove prebuilt binaries - (delete-file-recursively "npm") - #t)))) + #~(begin + ;; Remove prebuilt binaries + (delete-file-recursively "npm"))))) (build-system go-build-system) (arguments - `(#:import-path "github.com/evanw/esbuild/cmd/esbuild" - #:unpack-path "github.com/evanw/esbuild" - #:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? unpack-path #:allow-other-keys) - (when tests? - ;; The "Go Race Detector" is only supported on 64-bit - ;; platforms, this variable disables it. - ;; TODO: Causes too many rebuilds, rewrite to limit to x86_64, - ;; aarch64 and ppc64le. - ,(if (target-riscv64?) - `(setenv "ESBUILD_RACE" "") - `(unless ,(target-64bit?) - (setenv "ESBUILD_RACE" ""))) - (with-directory-excursion (string-append "src/" unpack-path) - (invoke "make" "test-go"))) - #t))))) + (list + #:import-path "github.com/evanw/esbuild/cmd/esbuild" + #:unpack-path "github.com/evanw/esbuild" + #:test-flags #~(list #$(if (target-64bit?) "-race" "-short")) + ;; Test subdirectories are compiled from #:import-path. + #:test-subdirs #~(list "../../internal/..." "../../pkg/..." ))) (inputs - `(("golang.org/x/sys" ,go-golang-org-x-sys-for-esbuild))) + (list go-golang-org-x-sys-for-esbuild)) (home-page "https://esbuild.github.io/") (synopsis "Bundler and minifier tool for JavaScript and TypeScript") (description - "The esbuild tool provides a unified bundler, transpiler and -minifier. It packages up JavaScript and TypeScript code, along with JSON -and other data, for distribution on the web.") + "The esbuild tool provides a unified bundler, transpiler and minifier. +It packages up JavaScript and TypeScript code, along with JSON and other data, +for distribution on the web.") (license license:expat))) (define-public tinyproxy From 97452b52f2139c929fff1a774ca0a29c7c85b2f2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 14:28:38 +0000 Subject: [PATCH 483/862] gnu: go-github-com-stretchr-testify: Update to 1.10.0. Fix build on non x86_64 architectures by disabling tests. * gnu/packages/golang-check.scm: Add "guix utils" module. (go-github-com-stretchr-testify): Update to 1.10.0. [arguments] : Limit them to x86_64 architecture. Change-Id: Ib157a3824df37e3bc9293ef9278a86573ababef1 --- gnu/packages/golang-check.scm | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index d037f14d4fb..611cd501ba4 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -46,6 +46,7 @@ #:use-module (guix build-system go) #:use-module (guix gexp) #:use-module (guix git-download) + #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) @@ -1285,7 +1286,7 @@ current goroutine's ID.") (define-public go-github-com-stretchr-testify (package (name "go-github-com-stretchr-testify") - (version "1.9.0") + (version "1.10.0") (source (origin (method git-fetch) @@ -1294,11 +1295,14 @@ current goroutine's ID.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "12cnhk96h8b3ddlb7jfvwwavzc0j1c2iva92pszl9rv6r571ckzg")))) + (base32 "0g1bdpqih38a7dl1malahz5x4ag01adk61gx47jg2534cqzvid05")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/stretchr/testify")) + (list + ;; XXX: Tests are shaky on non x86_64 architectures, check if some may + ;; be enabled. + #:tests? (target-x86-64?) + #:import-path "github.com/stretchr/testify")) (propagated-inputs (list go-github-com-davecgh-go-spew go-github-com-pmezard-go-difflib @@ -1306,8 +1310,9 @@ current goroutine's ID.") go-gopkg-in-yaml-v3)) (home-page "https://github.com/stretchr/testify") (synopsis "Go helper library for tests and invariant checking") - (description "This package provide many tools for testifying that your -code will behave as you intend. + (description + "This package provide many tools for testifying that your code will +behave as you intend. Features include: @itemize From 0e12dcf05f94e94139b3f105e96f0bb1dae09d02 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 15:20:36 +0000 Subject: [PATCH 484/862] gnu: Add go-github-com-bgentry-speakeasy. * gnu/packages/golang-xyz.scm (go-github-com-bgentry-speakeasy): New variable. Change-Id: I0ff5c66605b24c264f68c341d31f5015b5eb2d99 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5f2a0e10a57..56e5d58ba68 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1356,6 +1356,32 @@ approximate quantiles over an unbounded data stream within low memory and CPU bounds.") (license license:expat))) +(define-public go-github-com-bgentry-speakeasy + (package + (name "go-github-com-bgentry-speakeasy") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bgentry/speakeasy") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pasgmb9gcchprc06fbn7yjgp6caz03j6pgj14mmr8bcx0zfq7ag")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bgentry/speakeasy")) + (home-page "https://github.com/bgentry/speakeasy") + (synopsis "Reading password input without cgo") + (description + "This package provides cross-platform Golang helpers for taking user +input from the terminal while not echoing the input back (similar to +@code{getpasswd}). The package uses syscalls to avoid any dependence on cgo, +and is therefore compatible with cross-compiling.") + (license license:expat))) + (define-public go-github-com-bitly-go-hostpool (package (name "go-github-com-bitly-go-hostpool") From e1caa22c459f7000bfbf658bfd4ba862b01dc6ec Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 15:20:35 +0000 Subject: [PATCH 485/862] gnu: Add go-github-com-mitchellh-cli. * gnu/packages/golang-xyz.scm (go-github-com-mitchellh-cli): New variable. Change-Id: Ic4f7db874edf8ce313598f42b5beede0bedb1c22 --- gnu/packages/golang-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 56e5d58ba68..c24785fbe04 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8340,6 +8340,52 @@ colored strings.") "The datacounter package provides counters for Go readers and writers.") (license license:expat))) +(define-public go-github-com-mitchellh-cli + (package + (name "go-github-com-mitchellh-cli") + (version "1.1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitchellh/cli") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gp1p7pqc27ps8njv49hmzsfnbxq4wg5azmqpqdw91qxw3prs3kr")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mitchellh/cli")) + (propagated-inputs + (list go-github-com-armon-go-radix + go-github-com-bgentry-speakeasy + go-github-com-fatih-color + go-github-com-masterminds-sprig-v3 + go-github-com-mattn-go-isatty + go-github-com-posener-complete)) + (home-page "https://github.com/mitchellh/cli") + (synopsis "Go library for implementing command-line interfaces") + (description + "cli is a library for implementing command-line interfaces. +Features: +@itemize +@item easy sub-command based CLIs: @code{cli foo}, @code{cli bar}, etc. +@item support for nested subcommands such as @code{cli foo bar} +@item optional support for default subcommands so @code{cli} does something +other than error +@item support for shell autocompletion of subcommands, flags, and arguments +with callbacks in Go +@item automatic help generation for listing subcommands +@item automatic help flag recognition of @code{-h}, @code{--help}, etc. +@item automatic version flag recognition of @code{-v}, @code{--version} +@item helpers for interacting with the terminal, such as outputting +information, asking for input, etc. +@item use of Go interfaces/types makes augmenting various parts of the library +a piece of cake +@end itemize") + (license license:mpl2.0))) + (define-public go-github-com-mitchellh-colorstring (package (name "go-github-com-mitchellh-colorstring") From 015b5ad2148f14e2aa860c64a5ed47d658337e93 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 15:20:37 +0000 Subject: [PATCH 486/862] gnu: Add go-github-com-hashicorp-go-sockaddr. * gnu/packages/golang-web.scm (go-github-com-hashicorp-go-sockaddr): New variable. Change-Id: Iea01aba92c4621db7264928a205bc8fe12136d47 --- gnu/packages/golang-web.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 0bc7fc26fab..3b9545ebd15 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3264,6 +3264,52 @@ standard @code{net/http} client library and exposes nearly the same public API.") (license license:mpl2.0))) +(define-public go-github-com-hashicorp-go-sockaddr + (package + (name "go-github-com-hashicorp-go-sockaddr") + (version "1.0.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hashicorp/go-sockaddr") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ajcffaqxrbqyg00b04a1ia7np0180x7z5q3bcxqxm0smqqag54z")) + (modules '((guix build utils))) + (snippet + #~(begin + (delete-file-recursively "cmd/sockaddr/vendor"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hashicorp/go-sockaddr" + #:test-flags + #~(list "-skip" + (string-join + ;; Tests require network set-up or fail randomly. + (list "TestGetDefaultInterface" + "TestGetDefaultInterfaces" + "TestGetIfAddrs" + "TestGetPrivateIP" + "TestGetPrivateIPs" + "TestGetPrivateInterfaces" + "TestSockAddr_IPAddrs_IPAddrsByNetworkSize/0" + "TestSockAddr_Parse") + "|")))) + (propagated-inputs + (list go-github-com-hashicorp-errwrap + go-github-com-mitchellh-cli + go-github-com-mitchellh-go-wordwrap + go-github-com-ryanuber-columnize)) + (home-page "https://github.com/hashicorp/go-sockaddr") + (synopsis "IP Address/UNIX Socket convenience functions for Golang") + (description + "This package provides an implementation of the UNIX socket family data +types and related helper functions.") + (license license:mpl2.0))) + (define-public go-github-com-hashicorp-yamux (package (name "go-github-com-hashicorp-yamux") From c8113c0262132f1776ec952913b8ce5352522d53 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 15:22:00 +0000 Subject: [PATCH 487/862] gnu: go-github-com-beorn7-perks: Simplify. * gnu/packages/golang-xyz.scm (go-github-com-beorn7-perks): Update to 1.0.1. [arguments] : Set to #t, as no go files in project's root. : Use default 'check. Change-Id: Ie6b535ff8ebd5426f0e067189c603ef9569841eb --- gnu/packages/golang-xyz.scm | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c24785fbe04..b2a116c4a8b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1338,16 +1338,8 @@ can use the realtime clock while tests can use the mock clock.") (build-system go-build-system) (arguments (list - #:import-path "github.com/beorn7/perks" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules support. - (delete 'build) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:skip-build? #t + #:import-path "github.com/beorn7/perks")) (home-page "https://github.com/beorn7/perks") (synopsis "Compute approximate quantiles over an unbounded data stream") (description From 2ebaf304a16558c565572497e9758a740af7ec76 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 15:29:38 +0000 Subject: [PATCH 488/862] gnu: Add go-github-com-sean--seed. * gnu/packages/golang-crypto.scm (go-github-com-sean--seed): New variable. Change-Id: I34032fe96c0e5209e30d8d7e6a07457509343341 --- gnu/packages/golang-crypto.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 8877fe33802..2310aac0c3b 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1662,6 +1662,30 @@ wide-block encryption mode developed by Halevi and Rogaway.") (description "Go-Bloom implements bloom filter using double hashing.") (license license:asl2.0)))) +(define-public go-github-com-sean--seed + (package + (name "go-github-com-sean--seed") + (version "0.0.0-20170313163322-e2103e2c3529") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sean-/seed") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0glir8jxi1w7aga2jwdb63pp1h8q4whknili7xixsqzwyy716125")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/sean-/seed")) + (home-page "https://github.com/sean-/seed") + (synopsis "Seed random number generator") + (description + "Boiler-plate to securely @url{https://en.wikipedia.org/wiki/Random_seed, +seed} Go's random number generator (if possible).") + (license license:expat))) + (define-public go-github-com-shadowsocks-go-shadowsocks2 (package (name "go-github-com-shadowsocks-go-shadowsocks2") From 9783b8b9747cf702a6ad9100fbdd9c5cb207826e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 16:03:28 +0000 Subject: [PATCH 489/862] gnu: Add go-gopkg-in-vmihailenco-msgpack-v2. * gnu/packages/golang-xyz.scm (go-gopkg-in-vmihailenco-msgpack-v2): New variable. Change-Id: I09b8e71702ca169ec55a30e480529ef06fa0b574 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b2a116c4a8b..5246df21d58 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12658,6 +12658,33 @@ machine readable. It is modeled after the Go standard library's @code{io} and (package-arguments go-github-com-op-go-logging) ((#:import-path _) "gopkg.in/op/go-logging.v1"))))) +(define-public go-gopkg-in-vmihailenco-msgpack-v2 + (package + (name "go-gopkg-in-vmihailenco-msgpack-v2") + (version "2.9.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vmihailenco/msgpack") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08rcdnshc252nmlxkswx8xgiwr2ry7cq806gcw1836b00hwlwmmz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gopkg.in/vmihailenco/msgpack.v2" + #:test-flags #~(list "-skip" "TestTypes"))) + (native-inputs + (list go-gopkg-in-check-v1)) + (home-page "https://msgpack.uptrace.dev/") + (synopsis "MessagePack encoding for Golang") + (description + "This package provides implementation of MessagePack encoding for Go +programming language.") + (license license:bsd-2))) + (define-public go-gopkg-in-warnings-v0 (package (name "go-gopkg-in-warnings-v0") From ccbb165fb2ff4ce82a90db0ecd2a8bde8fe896ba Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 16:15:57 +0000 Subject: [PATCH 490/862] gnu: go-github-com-expr-lang-expr: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-expr-lang-expr) [source] : Delete submodules with their own go.mod files which need to be packed separately. Change-Id: Ie99734135bf8fdc4525b856d232485501cdd12d7 --- gnu/packages/golang-xyz.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5246df21d58..e241f9de406 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4045,7 +4045,16 @@ more similar API to regexp.")))) (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08p7gcxm7psgn1rzhhy2s2va59ssy77x8wd706gdp2pif7wln883")))) + (base32 "08p7gcxm7psgn1rzhhy2s2va59ssy77x8wd706gdp2pif7wln883")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/expr-lang/expr/repl + ;; - github.com/expr-lang/expr/debug + (for-each delete-file-recursively + (list "repl" "debug")))))) (build-system go-build-system) (arguments (list From d62a69922a3ad6d573842779e004eaf9b537de99 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 16:14:31 +0000 Subject: [PATCH 491/862] gnu: vale: Simplify. * gnu/packages/textutils.scm (vale): Simplify. [arguments] : Move skipped tests here. : Use default 'check, add 'pre-check. Change-Id: I133f6c6763d4643b595ffddec85a3bf7ad1d24fe --- gnu/packages/textutils.scm | 41 +++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 59be80c19c7..f60a6412304 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -1520,31 +1520,26 @@ of a Unix terminal to HTML code.") #:embed-files #~(list ".*\\.gob") #:import-path "github.com/errata-ai/vale/cmd/vale" #:unpack-path "github.com/errata-ai/vale" + ;; Disable tests requring network access: Get + ;; "https://raw.githubusercontent.com/errata-ai/styles/master/library.json": + ;; dial tcp: lookup raw.githubusercontent.com on [::1]:53: read udp + ;; [::1]:52621->[::1]:53: read: connection refused. + #:test-flags + #~(list "-skip" + (string-join + (list "TestLibrary" + "TestLocalComplete" + "TestLocalDir" + "TestLocalOnlyStyles" + "TestLocalZip" + "TestNoPkgFound" + "TestV3Pkg") + "|")) #:phases #~(modify-phases %standard-phases - ;; Disable tests requring network access: Get - ;; "https://raw.githubusercontent.com/errata-ai/styles/master/library.json": - ;; dial tcp: lookup raw.githubusercontent.com on [::1]:53: - ;; read udp [::1]:52621->[::1]:53: read: connection refused. - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? unpack-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" unpack-path) - (substitute* (find-files "." "\\_test.go$") - (("TestLibrary") "OffTestLibrary") - (("TestLocalComplete") "OffTestLocalComplete") - (("TestLocalDir") "OffTestLocalDir") - (("TestLocalOnlyStyles") "OffTestLocalOnlyStyles") - (("TestLocalZip") "OffTestLocalZip") - (("TestNoPkgFound") "OffTestNoPkgFound") - (("TestV3Pkg") "OffTestV3Pkg"))))) - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (replace 'check - (lambda* (#:key tests? unpack-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" unpack-path) - (setenv "HOME" "/tmp") - (invoke "go" "test" "-v" "./...")))))))) + (add-before 'check 'pre-check + (lambda _ + (setenv "HOME" "/tmp")))))) (native-inputs (list go-github-com-masterminds-sprig-v3 go-github-com-adrg-strutil From 871cb6c803dbd8f2dcea71b4f8fc9df192eef358 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 16:25:53 +0000 Subject: [PATCH 492/862] gnu: Add go-github-com-shogo82148-go-shuffle. * gnu/packages/golang-crypto.scm (go-github-com-shogo82148-go-shuffle): New variable. Change-Id: Ie5bfed1f056776a7b6e8e64103dd6844440111cd --- gnu/packages/golang-crypto.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 2310aac0c3b..49733cf3c4d 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1721,6 +1721,30 @@ seed} Go's random number generator (if possible).") tunnel proxy protocol.") (license license:asl2.0))) +(define-public go-github-com-shogo82148-go-shuffle + (package + (name "go-github-com-shogo82148-go-shuffle") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shogo82148/go-shuffle") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0z5n5jp57b68pq70wkrmw9z3vibjnq7b7f6i62pjhh1a83kknfg1")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/shogo82148/go-shuffle")) + (home-page "https://github.com/shogo82148/go-shuffle") + (synopsis "Shuffling slices and user-defined collections") + (description + "Package shuffle provides primitives for shuffling slices and +user-defined collections.") + (license license:expat))) + (define-public go-github-com-skeema-knownhosts (package (name "go-github-com-skeema-knownhosts") From 93ef69c0fc28e890c629550393d979eac14edb5a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 16:26:58 +0000 Subject: [PATCH 493/862] gnu: go-github-com-shadowsocks-go-shadowsocks2: Simplify. * gnu/packages/golang-crypto.scm (go-github-com-shadowsocks-go-shadowsocks2) [arguments] : Use default 'check. Change-Id: I3a82a65b93a44a90804989a75d7238918702e4bf --- gnu/packages/golang-crypto.scm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 49733cf3c4d..914ff0cc383 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1702,16 +1702,7 @@ seed} Go's random number generator (if possible).") (build-system go-build-system) (arguments (list - #:import-path "github.com/shadowsocks/go-shadowsocks2" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Workaround for go-build-system's lack of Go modules - ;; support. - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:import-path "github.com/shadowsocks/go-shadowsocks2")) (propagated-inputs (list go-github-com-riobard-go-bloom go-golang-org-x-crypto)) From ad317033cf8cbe30a3772fcb6170ed61d44073d0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 16:36:30 +0000 Subject: [PATCH 494/862] gnu: Add go-github-com-mmcdole-goxpp. * gnu/packages/golang-xyz.scm (go-github-com-mmcdole-goxpp): New variable. Change-Id: I365377e5ccb1befdec46e8d91d99bbf4b7d32b49 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e241f9de406..d97d1ed3dec 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8552,6 +8552,34 @@ system. Walking a complex structure can allow you to do manipulations on unknown structures such as those decoded from JSON.") (license license:expat))) +(define-public go-github-com-mmcdole-goxpp + (package + (name "go-github-com-mmcdole-goxpp") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mmcdole/goxpp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g9va3vhc5s60s00kyp4agfhb6kjp8j8i41vkj3lwbz5sx947mif")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mmcdole/goxpp")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/mmcdole/goxpp") + (synopsis "XML pull prser for Golang") + (description + "The @code{goxpp} library, inspired by +@url{http://www.xmlpull.org/v1/download/unpacked/doc/quick_intro.html, Java's +XML@code{PullParser}}, is a lightweight wrapper for Go's standard XML +Decoder,tailored for developers who need fine-grained control over XML +parsing.") + (license license:expat))) + (define-public go-github-com-moby-sys-mountinfo (package (name "go-github-com-moby-sys-mountinfo") From 20330150ad47182665bf560803d0bfe3337b7114 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 19:17:46 +0000 Subject: [PATCH 495/862] gnu: Add go-github-com-levigross-grequests. * gnu/packages/golang-web.scm (go-github-com-levigross-grequests): New variable. Change-Id: I0ada84dde4199f6ad395ab593da3a033e049ef80 --- gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 3b9545ebd15..78180458b27 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3914,6 +3914,35 @@ router.") @acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.") (license license:expat))) +(define-public go-github-com-levigross-grequests + (package + (name "go-github-com-levigross-grequests") + (version "0.0.0-20231203190023-9c307ef1f48d") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/levigross/grequests") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "13r24vrcgfkps8r09crjlhsywpxs8bnnmlgn5qhbhqiqag754xdc")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; most of them need network access + #:embed-files #~(list "children" "nodes" "text") + #:import-path "github.com/levigross/grequests")) + (propagated-inputs + (list go-github-com-google-go-querystring + go-golang-org-x-net)) + (home-page "https://github.com/levigross/grequests") + (synopsis "Requests library for Golang") + (description + "Package grequests implements a friendly API over Go's existing +@code{net/http} library.") + (license license:asl2.0))) + (define-public go-github-com-libdns-libdns (package (name "go-github-com-libdns-libdns") From b8e1757edebc588bcd140a782b02159c48545075 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 19:19:56 +0000 Subject: [PATCH 496/862] gnu: go-github-com-koron-go-ssdp: Simplify. * gnu/packages/golang-web.scm (go-github-com-koron-go-ssdp): Simplify. [arguments] : Move test skip logic here. : Use default 'check. Change-Id: I4bcba4e387f7d74f11c812dbe49ef4b9a94a31bd --- gnu/packages/golang-web.scm | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 78180458b27..3d0fc3d8d2d 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3883,28 +3883,19 @@ router.") (arguments (list #:import-path "github.com/koron/go-ssdp" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* (find-files "." "\\_test.go$") - ;; Test requiring network setup. - (("TestAdvertise_Alive") "OffTestAdvertise_Alive") - (("TestAdvertise_Bye") "OffTestAdvertise_Bye") - (("TestAnnounceAlive") "OffTestAnnounceAlive") - (("TestAnnounceBye") "OffTestAnnounceBye") - (("TestInterfaces") "OffTestInterfaces") - (("TestSearch_Request") "OffTestSearch_Request") - (("TestSearch_Response") "OffTestSearch_Response") - (("TestSearch_ServiceRawHeader") "OffTestSearch_ServiceRawHeader"))))) - ;; XXX: Run all tests, workaround for go-build-system's lack of Go - ;; modules support. - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:test-flags + #~(list "-skip" + (string-join + ;; Tests requiring network setup. + (list "TestAdvertise_Alive" + "TestAdvertise_Bye" + "TestAnnounceAlive" + "TestAnnounceBye" + "TestInterfaces" + "TestSearch_Request" + "TestSearch_Response" + "TestSearch_ServiceRawHeader") + "|")))) (propagated-inputs (list go-golang-org-x-net)) (home-page "https://github.com/koron/go-ssdp") From d93498d427e87a21130fb2a88dc9b22b640701f5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 20:11:41 +0000 Subject: [PATCH 497/862] gnu: Add go-github-com-lyft-protoc-gen-star-v2. * gnu/packages/golang-xyz.scm (go-github-com-lyft-protoc-gen-star-v2): New variable. Change-Id: I30bbe7463d02164e1bbd33d28a7f387ec6599f88 --- gnu/packages/golang-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d97d1ed3dec..ab9523d6aee 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7856,6 +7856,54 @@ Printf/Sprintf etc.") (native-inputs (list go-github-com-stretchr-testify)))) +(define-public go-github-com-lyft-protoc-gen-star-v2 + (package + (name "go-github-com-lyft-protoc-gen-star-v2") + (version "2.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lyft/protoc-gen-star") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0c0w7xlarzkmbfsxdknakmnm562q3whxgs3ck3icwrva3dim94qc")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/lyft/protoc-gen-star/v2" + #:test-flags + #~(list "-skip" + (string-join + (list "TestGraph_Bidirectional" + "TestGraph_Bidirectional_Messages_Enums" + "TestGraph_Bidirectional_Recursive" + "TestGraph_Extensions" + "TestGraph_FDSet" + "TestGraph_Messages" + "TestGraph_Packageless" + "TestGraph_Services" + "TestGraph_SourceCodeInfo") + "|")) + ;; XXX: To enable all tests require more complex set up, check how to + ;; enable most of them. + #:test-subdirs #~(list "."))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-spf13-afero + go-golang-org-x-tools + go-google-golang-org-protobuf)) + (home-page "https://github.com/lyft/protoc-gen-star") + (synopsis "Protoc plugin library for efficient proto-based code generation") + ;; The Project lacks a good README, suggesting to read source code + ;; "... the true documentation source is the code itself ...". + (description + "PG* is a protoc plugin library for efficient proto-based code +generation.") + (license license:asl2.0))) + (define-public go-github-com-makenowjust-heredoc (package (name "go-github-com-makenowjust-heredoc") From 995633a59745829acfffbf888c63f00e180e17e5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 20:23:41 +0000 Subject: [PATCH 498/862] gnu: go-github-com-docker-go-connections: Fix bulid. * gnu/packages/golang.scm (go-github-com-docker-go-connections) [arguments] : Skip 2 tests. Change-Id: I0c7df7fefae4c19f5c39367f66982ce4a58dd843 --- gnu/packages/golang.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 508555986d1..1e97d06af7e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2873,7 +2873,16 @@ to interact with distribution components.") (base32 "0svfa9g4xvbn87l5kiww1jkijmci9g5821wjp81xz1rfp13cqrk8")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/docker/go-connections")) + (list + #:import-path "github.com/docker/go-connections" + #:test-flags + #~(list "-skip" + (string-join + ;; Unable to verify certificate 1: x509: certificate signed by + ;; unknown authority. + (list "TestConfigClientExclusiveRootPools" + "TestConfigServerExclusiveRootPools") + "|")))) (home-page "https://github.com/docker/go-connections") (synopsis "Networking library for Go") (description From 11286f4b0d7b76cfad76831c240bc63c97865227 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 20:36:57 +0000 Subject: [PATCH 499/862] gnu: go-github-com-maruel-panicparse: Update to 1.6.2. * gnu/packages/golang.scm (go-github-com-maruel-panicparse): Update to 1.6.2. [propagated-inputs]: Add go-github-com-mattn-go-colorable, go-github-com-mattn-go-isatty, go-github-com-mgutz-ansi, and go-golang-org-x-sys. [native-inputs]: Add go-github-com-google-go-cmp. Change-Id: Iea1a0070bec1d13a2819b0798c118ad14e9cc304 --- gnu/packages/golang.scm | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1e97d06af7e..cd47a809965 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3887,19 +3887,40 @@ optionally preserving color.") (define-public go-github-com-maruel-panicparse (package (name "go-github-com-maruel-panicparse") - (version "1.3.0") + (version "1.6.2") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/maruel/panicparse") - (commit (string-append "v" version)))) + (url "https://github.com/maruel/panicparse") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "13qkn7f64yln8jdmma37h6ra4c7anxkp3vfgvfyb6lb07dpr1ibq")))) + "07hj3z47v4mzppi8r7ja20arh2kd0dih913xgb9ylapf7w5q98bn")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/maruel/panicparse")) + (list + #:import-path "github.com/maruel/panicparse" + #:test-flags + #~(list "-skip" + (string-join + ;; Failed with panic. + (list "TestAugment" + "TestPanic" + "TestPanicweb" + "TestProcessTwoSnapshots" + "TestSnapshotHandler" + "TestSnapshotHandler_Err" + "TestSnapshotHandler_LargeMemory" + ) + "|")))) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-mattn-go-colorable + go-github-com-mattn-go-isatty + go-github-com-mgutz-ansi + go-golang-org-x-sys)) (synopsis "Toolkit for parsing Go stack traces") (description "This package provides a toolkit for parsing Go language panic stack traces. It simplifies the traces to make salient information more visible From 9a1a5f174cd0bac045c186208dcee967b0da695a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 20:41:42 +0000 Subject: [PATCH 500/862] gnu: go-github-com-maruel-panicparse: Move to golang-check. * gnu/packages/golang.scm (go-github-com-maruel-panicparse): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: Ib11a56341d3c77bb87a1eef21956482df7e1b50d --- gnu/packages/golang-check.scm | 51 ++++++++++++++++++++++++++++++++--- gnu/packages/golang.scm | 44 ------------------------------ 2 files changed, 48 insertions(+), 47 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 611cd501ba4..47990ec756d 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -9,21 +9,21 @@ ;;; Copyright © 2020 Joseph LaFreniere ;;; Copyright © 2020 Oleg Pykhalov ;;; Copyright © 2020 Ryan Prior +;;; Copyright © 2020, 2022 Efraim Flashner ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Tobias Geerinckx-Rice ;;; Copyright © 2022 ( -;;; Copyright © 2022 Efraim Flashner ;;; Copyright © 2023 Benjamin ;;; Copyright © 2023 Felix Lechner ;;; Copyright © 2023 Fries ;;; Copyright © 2023 Hilton Chain ;;; Copyright © 2023 Katherine Cox-Buday +;;; Copyright © 2024 Artyom V. Poptsov ;;; Copyright © 2024 Greg Hogan +;;; Copyright © 2024 Herman Rimm ;;; Copyright © 2024 Sharlatan Hellseher ;;; Copyright © 2024 Troy Figiel -;;; Copyright © 2024 Artyom V. Poptsov -;;; Copyright © 2024 Herman Rimm ;;; ;;; This file is part of GNU Guix. ;;; @@ -936,6 +936,51 @@ Many times certain facilities are not available, or tests must run differently.") (license license:expat))) +(define-public go-github-com-maruel-panicparse + (package + (name "go-github-com-maruel-panicparse") + (version "1.6.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/maruel/panicparse") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07hj3z47v4mzppi8r7ja20arh2kd0dih913xgb9ylapf7w5q98bn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/maruel/panicparse" + #:test-flags + #~(list "-skip" + (string-join + ;; Failed with panic. + (list "TestAugment" + "TestPanic" + "TestPanicweb" + "TestProcessTwoSnapshots" + "TestSnapshotHandler" + "TestSnapshotHandler_Err" + "TestSnapshotHandler_LargeMemory" + ) + "|")))) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-mattn-go-colorable + go-github-com-mattn-go-isatty + go-github-com-mgutz-ansi + go-golang-org-x-sys)) + (home-page "https://github.com/maruel/panicparse") + (synopsis "Toolkit for parsing Go stack traces") + (description + "This package provides a toolkit for parsing Go language panic stack +traces. It simplifies the traces to make salient information more visible and +aid debugging.") + (license license:asl2.0))) + (define-public go-github-com-marvinjwendt-testza (package (name "go-github-com-marvinjwendt-testza") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cd47a809965..98243a67526 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3884,50 +3884,6 @@ designed to clean up raw terminal output by stripping escape sequences, optionally preserving color.") (license license:expat))) -(define-public go-github-com-maruel-panicparse - (package - (name "go-github-com-maruel-panicparse") - (version "1.6.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/maruel/panicparse") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "07hj3z47v4mzppi8r7ja20arh2kd0dih913xgb9ylapf7w5q98bn")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/maruel/panicparse" - #:test-flags - #~(list "-skip" - (string-join - ;; Failed with panic. - (list "TestAugment" - "TestPanic" - "TestPanicweb" - "TestProcessTwoSnapshots" - "TestSnapshotHandler" - "TestSnapshotHandler_Err" - "TestSnapshotHandler_LargeMemory" - ) - "|")))) - (native-inputs - (list go-github-com-google-go-cmp)) - (propagated-inputs - (list go-github-com-mattn-go-colorable - go-github-com-mattn-go-isatty - go-github-com-mgutz-ansi - go-golang-org-x-sys)) - (synopsis "Toolkit for parsing Go stack traces") - (description "This package provides a toolkit for parsing Go language panic -stack traces. It simplifies the traces to make salient information more visible -and aid debugging.") - (home-page "https://github.com/maruel/panicparse") - (license license:asl2.0))) - (define-public go-github-com-robfig-cron (package (name "go-github-com-robfig-cron") From a6e9500e26c4226f0ad96f530de5bc1cc82a215d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:25:24 +0000 Subject: [PATCH 501/862] gnu: packages/calendar: Remove golang module. * gnu/packages/calendar.scm: As all Golang dependencies were shifted to corresponded submodules, remove not required "golang" module from used ones. Change-Id: Ib2bea914097c9395bf8819d740a2662f477ec197 --- gnu/packages/calendar.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index c4a1274ac3a..ed7a13a2c9d 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -49,7 +49,6 @@ #:use-module (gnu packages freedesktop) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) - #:use-module (gnu packages golang) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages gtk) #:use-module (gnu packages icu4c) From c043cab8fb9a53a55746dd8d5d1bd4d49f7a696a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:34:29 +0000 Subject: [PATCH 502/862] gnu: go-github-com-delthas-go-localeinfo: Update to 0.0.0-20240813094314-e5413e186769. * gnu/packages/golang.scm (go-github-com-delthas-go-localeinfo): Update to 0.0.0-20240813094314-e5413e186769. [arguments] : Enable them as all passing successfully. Change-Id: Id8fd3b63ce18c626aac103edb331160c464267db --- gnu/packages/golang.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 98243a67526..c3604851a35 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4490,7 +4490,7 @@ system.") (define-public go-github-com-delthas-go-localeinfo (package (name "go-github-com-delthas-go-localeinfo") - (version "0.0.0-20240607105203-b2e834fc307d") + (version "0.0.0-20240813094314-e5413e186769") (source (origin (method git-fetch) (uri (git-reference @@ -4499,10 +4499,11 @@ system.") (file-name (git-file-name name version)) (sha256 (base32 - "0817lhic77sz9lxizy2rchwssp0vzl7qxbsfghcddg6ssy1n0zhj")))) + "0nw21gv3j7cc9x4gq4avlg4s7xzgc7gxrkmq4v451zrvx0mnv0bn")))) (build-system go-build-system) - (arguments `(#:tests? #f ; FIXME: tests assume certain locale - #:import-path "github.com/delthas/go-localeinfo")) + (arguments + (list + #:import-path "github.com/delthas/go-localeinfo")) (home-page "https://github.com/delthas/go-localeinfo") (synopsis "Library for extracting locale information") (description "@code{go-localeinfo} extracts monetary/numeric/time From 24e094b81613e653256d6a1c85a9b79f0f299d13 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:38:45 +0000 Subject: [PATCH 503/862] gnu: go-github-com-delthas-go-localeinfo: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-delthas-go-localeinfo): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Icd8b6647bd7c2bbe1e385c4c6ec6571c3fb39d96 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ab9523d6aee..8f48c2006ac 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3146,6 +3146,30 @@ more complicated parallel cases.") (propagated-inputs (list go-github-com-elliotchance-orderedmap-v2)))) +(define-public go-github-com-delthas-go-localeinfo + (package + (name "go-github-com-delthas-go-localeinfo") + (version "0.0.0-20240813094314-e5413e186769") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/delthas/go-localeinfo") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nw21gv3j7cc9x4gq4avlg4s7xzgc7gxrkmq4v451zrvx0mnv0bn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/delthas/go-localeinfo")) + (home-page "https://github.com/delthas/go-localeinfo") + (synopsis "Library for extracting locale information") + (description + "@code{go-localeinfo} extracts monetary/numeric/time +formatting information, rather than the current locale name.") + (license license:expat))) + (define-public go-github-com-dennwc-btrfs (package (name "go-github-com-dennwc-btrfs") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c3604851a35..5f9ab7d4f91 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4487,29 +4487,6 @@ extracting information about the music/image/video that is Now Playing on the system.") (license license:expat)))) -(define-public go-github-com-delthas-go-localeinfo - (package - (name "go-github-com-delthas-go-localeinfo") - (version "0.0.0-20240813094314-e5413e186769") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/delthas/go-localeinfo") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0nw21gv3j7cc9x4gq4avlg4s7xzgc7gxrkmq4v451zrvx0mnv0bn")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/delthas/go-localeinfo")) - (home-page "https://github.com/delthas/go-localeinfo") - (synopsis "Library for extracting locale information") - (description "@code{go-localeinfo} extracts monetary/numeric/time -formatting information, rather than the current locale name.") - (license license:expat))) - (define-public go-github-com-zalando-go-keyring (package (name "go-github-com-zalando-go-keyring") From f99e54ba99779f8a5fca4715662789de6aa71b6f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:44:20 +0000 Subject: [PATCH 504/862] gnu: go-github-com-pkg-diff: Update to 0.0.0-20241224192749-4e6772a4315c. * gnu/packages/golang.scm (go-github-com-pkg-diff): Update to 0.0.0-20241224192749-4e6772a4315c. Change-Id: I9e701964d1acc3923214739b7bb3a9efa187ff24 --- gnu/packages/golang.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5f9ab7d4f91..036891bfdcc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4325,16 +4325,16 @@ temporal directories.") (define-public go-github-com-pkg-diff (package (name "go-github-com-pkg-diff") - (version "0.0.0-20210226163009-20ebb0f2a09e") + (version "0.0.0-20241224192749-4e6772a4315c") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/pkg/diff") - (commit "20ebb0f2a09e612109b224b32f79370409108bcc"))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 - "1g3dzgwhz4fx3ddpsv7fsa4r1v5clsp2lbw2qrkdk9y1vc5gi8yi")))) + "1iwaa6g3mbbi1k6rw7fn85sg6lm6rlnjz07yb91hq1kll6494s18")))) (build-system go-build-system) (arguments `(#:import-path "github.com/pkg/diff")) From 8112331bf05b92dca6235e3bc30a7e0789b57d7e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:45:43 +0000 Subject: [PATCH 505/862] gnu: go-github-com-pkg-diff: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-pkg-diff): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I0db7f5cf44a11e53ec19575a4c2d1d4917658276 --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8f48c2006ac..e26b2190052 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9979,6 +9979,29 @@ on top of the standard library @code{flag} package.") Pion}.") (license license:expat))) +(define-public go-github-com-pkg-diff + (package + (name "go-github-com-pkg-diff") + (version "0.0.0-20241224192749-4e6772a4315c") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pkg/diff") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1iwaa6g3mbbi1k6rw7fn85sg6lm6rlnjz07yb91hq1kll6494s18")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pkg/diff")) + (home-page "https://github.com/pkg/diff/") + (synopsis "Create and print diffs") + (description + "This package provides a Go library to create and print diffs.") + (license license:bsd-3))) + (define-public go-github-com-polydawn-refmt (package (name "go-github-com-polydawn-refmt") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 036891bfdcc..d4331c2537c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4322,28 +4322,6 @@ can manipulate a @file{ssh_config} file from a program.") temporal directories.") (license license:expat)))) -(define-public go-github-com-pkg-diff - (package - (name "go-github-com-pkg-diff") - (version "0.0.0-20241224192749-4e6772a4315c") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/pkg/diff") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1iwaa6g3mbbi1k6rw7fn85sg6lm6rlnjz07yb91hq1kll6494s18")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/pkg/diff")) - (home-page "https://github.com/pkg/diff/") - (synopsis "Create and print diffs") - (description - "This package provides a Go library to create and print diffs.") - (license license:bsd-3))) - (define-public go-github-com-twpayne-go-shell (package (name "go-github-com-twpayne-go-shell") From f12d7824a175abda1191a0594e1f6869b760da55 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:48:31 +0000 Subject: [PATCH 506/862] gnu: go-github-com-juju-ansiterm: Update to 1.0.0. * gnu/packages/golang.scm (go-github-com-juju-ansiterm): Update to 1.0.0. Change-Id: Ic5a33f16ea60f177de5bae616d2bf841121d2983 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d4331c2537c..9d9f4add9d3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4239,13 +4239,13 @@ that might only rarely be reached.") (define-public go-github-com-juju-ansiterm (package (name "go-github-com-juju-ansiterm") - (version "0.0.0-20210929141451-8b71cc96ebdc") + (version "1.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/juju/ansiterm") - (commit (go-version->git-ref version)))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "05mk7mlvg11dd6b0j0wlq547ghbmx2ywwrlbcb4kddpg7qaqp1va")))) From b7c9b8005803866ba727c15a85860eb66d424677 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:51:18 +0000 Subject: [PATCH 507/862] gnu: go-github-com-juju-ansiterm: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-juju-ansiterm): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I30480f256c3b711065bd91910d248d501cb574c4 --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e26b2190052..7d5d7b19ba7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7084,6 +7084,35 @@ called concurrently with themselves and each other.") "This package is a simple exponential backoff counter in Go.") (license license:expat)))) +(define-public go-github-com-juju-ansiterm + (package + (name "go-github-com-juju-ansiterm") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/juju/ansiterm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05mk7mlvg11dd6b0j0wlq547ghbmx2ywwrlbcb4kddpg7qaqp1va")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/juju/ansiterm")) + (propagated-inputs + (list go-gopkg-in-check-v1 + go-github-com-mattn-go-isatty + go-github-com-mattn-go-colorable + go-github-com-lunixbochs-vtclean)) + (home-page "https://github.com/juju/ansiterm") + (synopsis "Writer to output ANSI escape codes for color and styles") + (description + "The ansiterm package provides a writer to output the ANSI escape codes +for color and styles.") + (license license:lgpl3))) + (define-public go-github-com-k0kubun-go-ansi (package (name "go-github-com-k0kubun-go-ansi") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9d9f4add9d3..b5d46774a63 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4236,33 +4236,6 @@ in tests to find template errors early, and along template execution paths that might only rarely be reached.") (license license:expat))) -(define-public go-github-com-juju-ansiterm - (package - (name "go-github-com-juju-ansiterm") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/juju/ansiterm") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "05mk7mlvg11dd6b0j0wlq547ghbmx2ywwrlbcb4kddpg7qaqp1va")))) - (build-system go-build-system) - (arguments (list #:import-path "github.com/juju/ansiterm")) - (propagated-inputs - (list go-gopkg-in-check-v1 - go-github-com-mattn-go-isatty - go-github-com-mattn-go-colorable - go-github-com-lunixbochs-vtclean)) - (home-page "https://github.com/juju/ansiterm") - (synopsis "Writer to output ANSI escape codes for color and styles") - (description - "The ansiterm package provides a writer to output the ANSI escape codes -for color and styles.") - (license license:lgpl3))) - (define-public go-github-com-kevinburke-ssh-config (package (name "go-github-com-kevinburke-ssh-config") From 5263f38b29f2b57c93499243034f7e9392b67b36 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:56:48 +0000 Subject: [PATCH 508/862] gnu: go-github-com-savsgio-gotils: Simplify. * gnu/packages/golang.scm (go-github-com-savsgio-gotils): Simplify and improve style. [arguments]: Use default 'build, 'check and 'install. : No go files in project's root. [propagated-inputs]: Add go-github-com-google-uuid and go-github-com-valyala-bytebufferpool. [native-inputs]: Remove go-github-com-google-uuid and go-github-com-valyala-bytebufferpool. Change-Id: I976c1ac2c3c81fb3510d522810100c4e277c50ca --- gnu/packages/golang.scm | 58 ++++------------------------------------- 1 file changed, 5 insertions(+), 53 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b5d46774a63..60ef0f76a2d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1435,61 +1435,13 @@ configuration file.") (sha256 (base32 "0qr7i62h53frcig26vj027r2hn9zxsjzd7113wvbxy7qpprjjbjb")))) (build-system go-build-system) - (native-inputs + (arguments + (list + #:skip-build? #t + #:import-path "github.com/savsgio/gotils")) + (propagated-inputs (list go-github-com-google-uuid go-github-com-valyala-bytebufferpool)) - (arguments - '(#:import-path "github.com/savsgio/gotils" - #:phases - (modify-phases %standard-phases - (replace 'build - (lambda arguments - (for-each - (lambda (directory) - (apply (assoc-ref %standard-phases 'build) - `(,@arguments #:import-path ,directory))) - (list - "github.com/savsgio/gotils/bytes" - "github.com/savsgio/gotils/encoding/base64" - "github.com/savsgio/gotils/math" - "github.com/savsgio/gotils/nocopy" - "github.com/savsgio/gotils/strconv" - "github.com/savsgio/gotils/strings" - "github.com/savsgio/gotils/sync" - "github.com/savsgio/gotils/time" - "github.com/savsgio/gotils/uuid")))) - (replace 'check - (lambda arguments - (for-each - (lambda (directory) - (apply (assoc-ref %standard-phases 'check) - `(,@arguments #:import-path ,directory))) - (list - "github.com/savsgio/gotils/bytes" - "github.com/savsgio/gotils/encoding/base64" - "github.com/savsgio/gotils/math" - "github.com/savsgio/gotils/nocopy" - "github.com/savsgio/gotils/strconv" - "github.com/savsgio/gotils/strings" - "github.com/savsgio/gotils/sync" - "github.com/savsgio/gotils/time" - "github.com/savsgio/gotils/uuid")))) - (replace 'install - (lambda arguments - (for-each - (lambda (directory) - (apply (assoc-ref %standard-phases 'install) - `(,@arguments #:import-path ,directory))) - (list - "github.com/savsgio/gotils/bytes" - "github.com/savsgio/gotils/encoding/base64" - "github.com/savsgio/gotils/math" - "github.com/savsgio/gotils/nocopy" - "github.com/savsgio/gotils/strconv" - "github.com/savsgio/gotils/strings" - "github.com/savsgio/gotils/sync" - "github.com/savsgio/gotils/time" - "github.com/savsgio/gotils/uuid"))))))) (home-page "https://github.com/savsgio/gotils") (synopsis "Golang utilities") (description From c749bc77a8c7404c95ec9404019cd26c02e72526 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 21:59:23 +0000 Subject: [PATCH 509/862] gnu: go-github-com-savsgio-gotils: Update to 0.0.0-20240704082632-aef3928b8a38. * gnu/packages/golang.scm (go-github-com-savsgio-gotils): Update to 0.0.0-20240704082632-aef3928b8a38. Change-Id: Id7b295adb9ee217773f15e9b479a0c687345e090 --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 60ef0f76a2d..40c75da8a35 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1420,20 +1420,18 @@ configuration file.") (license license:isc))) (define-public go-github-com-savsgio-gotils - (let ((commit "52f3993e8d6d2629f18e7b7383b7f54a3d3f1d1f") - (revision "0")) (package (name "go-github-com-savsgio-gotils") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20240704082632-aef3928b8a38") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/savsgio/gotils") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0qr7i62h53frcig26vj027r2hn9zxsjzd7113wvbxy7qpprjjbjb")))) + (base32 "0s3xsq4wy2xi17wq0kzw2zszj9vwndzvvmkx7pp7crx8k43x16ll")))) (build-system go-build-system) (arguments (list @@ -1446,7 +1444,7 @@ configuration file.") (synopsis "Golang utilities") (description "Golang utilities to make your life easier with zero allocations.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-mufti1-interconv (let ((commit "d7c72925c6568d60d361757bb9f2d252dcca745c") From 0b33ec7456ab7726e5f24ab5ad3dce50e8371b30 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 22:00:38 +0000 Subject: [PATCH 510/862] gnu: go-github-com-savsgio-gotils: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-savsgio-gotils): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I93b4017fcedad946c5b26dcafc43320bcc9ebd42 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7d5d7b19ba7..04fafb1d55f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10462,6 +10462,33 @@ Identifier, UUID}. Supported versions are 1, 3, 4 and 5 (as specified in specified in DCE 1.1).") (license license:expat))) +(define-public go-github-com-savsgio-gotils + (package + (name "go-github-com-savsgio-gotils") + (version "0.0.0-20240704082632-aef3928b8a38") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/savsgio/gotils") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s3xsq4wy2xi17wq0kzw2zszj9vwndzvvmkx7pp7crx8k43x16ll")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/savsgio/gotils")) + (propagated-inputs + (list go-github-com-google-uuid + go-github-com-valyala-bytebufferpool)) + (home-page "https://github.com/savsgio/gotils") + (synopsis "Golang utilities") + (description + "Golang utilities to make your life easier with zero allocations.") + (license license:asl2.0))) + (define-public go-github-com-schollz-progressbar-v3 (package (name "go-github-com-schollz-progressbar-v3") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 40c75da8a35..527e1bb0332 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1419,33 +1419,6 @@ https://en.wikipedia.org/wiki/Extended_file_attributes} configuration file.") (license license:isc))) -(define-public go-github-com-savsgio-gotils - (package - (name "go-github-com-savsgio-gotils") - (version "0.0.0-20240704082632-aef3928b8a38") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/savsgio/gotils") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0s3xsq4wy2xi17wq0kzw2zszj9vwndzvvmkx7pp7crx8k43x16ll")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "github.com/savsgio/gotils")) - (propagated-inputs - (list go-github-com-google-uuid - go-github-com-valyala-bytebufferpool)) - (home-page "https://github.com/savsgio/gotils") - (synopsis "Golang utilities") - (description - "Golang utilities to make your life easier with zero allocations.") - (license license:asl2.0))) - (define-public go-github-com-mufti1-interconv (let ((commit "d7c72925c6568d60d361757bb9f2d252dcca745c") (revision "0")) From 341175b732ffb9b87a0c3011a119162ff9bc3f11 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 22:05:01 +0000 Subject: [PATCH 511/862] gnu: go-github-com-dpotapov-go-spnego: Update to 0.0.0-20220426193508-b7f82e4507db. * gnu/packages/golang.scm (go-github-com-dpotapov-go-spnego): Update to 0.0.0-20220426193508-b7f82e4507db. [propagated-inputs]: Remove go-github-com-stretchr-testify. [native-inputs]: Add go-github-com-stretchr-testify. Change-Id: Ia971da820ae37bf13614deaf28d1e97aa7cf8993 --- gnu/packages/golang.scm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 527e1bb0332..b38e4f56013 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1488,32 +1488,31 @@ configuration file.") (base32 "066bqlgw5h7a3kxswqlv734asb7nw2y6snsn09yqk0ixj23qw22s")))))) (define-public go-github-com-dpotapov-go-spnego - (let ((commit "298b63a544303a239753d04314aada5bdbad7e4a") - (revision "0")) (package (name "go-github-com-dpotapov-go-spnego") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20220426193508-b7f82e4507db") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/dpotapov/go-spnego") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0d3b0kazm0jskfml0pkhjn2v49m8dvqj4zymm49ldgvkhl9hcf6w")))) + (base32 "1rpcgzkqhdwfsi8a9f9qar16i663pdx3gvwd6c0vfppy7qjmpjfr")))) (build-system go-build-system) (arguments `(#:import-path "github.com/dpotapov/go-spnego")) - (propagated-inputs (list go-github-com-stretchr-testify - go-github-com-jcmturner-gokrb5-v8 + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs (list go-github-com-jcmturner-gokrb5-v8 go-golang-org-x-net)) (home-page "https://github.com/dpotapov/go-spnego") (synopsis "Simple golang library for retry mechanism") (description "This package is a simple Go library that provides retry functionality for functions that may fail. It includes various customizable retry strategies, such as fixed delay, backoff delay, and random delay.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-blanu-dust (package From e74d247d0bd5d25b0af04de8d9fe01253682bc5b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 22:08:07 +0000 Subject: [PATCH 512/862] gnu: go-github-com-dpotapov-go-spnego: Fix synopsis and description. * gnu/packages/golang.scm (go-github-com-dpotapov-go-spnego) [synopsis]: Update accordingly with upstream. [description]: Likewise. Change-Id: Ic6375c593bc2ad589d618b93bc8989830d4c8412 --- gnu/packages/golang.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b38e4f56013..279dca6cbf3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1508,10 +1508,11 @@ configuration file.") (propagated-inputs (list go-github-com-jcmturner-gokrb5-v8 go-golang-org-x-net)) (home-page "https://github.com/dpotapov/go-spnego") - (synopsis "Simple golang library for retry mechanism") - (description "This package is a simple Go library that provides retry -functionality for functions that may fail. It includes various customizable -retry strategies, such as fixed delay, backoff delay, and random delay.") + (synopsis "HTTP calls with Kerberos authentication") + (description + "The package extends Go's HTTP Transport allowing Kerberos +authentication through Negotiate mechanism (see +@url{https://tools.ietf.org/html/rfc4559, RFC4559}).") (license license:expat))) (define-public go-github-com-blanu-dust From e863412e8bb4cd68ed7b82276726f1f21ee07d92 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 22:11:28 +0000 Subject: [PATCH 513/862] gnu: go-github-com-dpotapov-go-spnego: Move to golang-web. * gnu/packages/golang.scm (go-github-com-dpotapov-go-spnego): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I4c4ab0aa707fe12f82a2393d763f6b5afc266f87 --- gnu/packages/golang-web.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 28 ---------------------------- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 3d0fc3d8d2d..5e55f82c872 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1396,6 +1396,36 @@ Data Representation (XDR) standard protocol as specified in RFC 4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.") (license license:isc))) +(define-public go-github-com-dpotapov-go-spnego + (package + (name "go-github-com-dpotapov-go-spnego") + (version "0.0.0-20220426193508-b7f82e4507db") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dpotapov/go-spnego") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rpcgzkqhdwfsi8a9f9qar16i663pdx3gvwd6c0vfppy7qjmpjfr")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/dpotapov/go-spnego")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-jcmturner-gokrb5-v8 + go-golang-org-x-net)) + (home-page "https://github.com/dpotapov/go-spnego") + (synopsis "HTTP calls with Kerberos authentication") + (description + "The package extends Go's HTTP Transport allowing Kerberos +authentication through Negotiate mechanism (see +@url{https://tools.ietf.org/html/rfc4559, RFC4559}).") + (license license:expat))) + (define-public go-github-com-elazarl-goproxy (package (name "go-github-com-elazarl-goproxy") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 279dca6cbf3..5b54e42ff9a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1487,34 +1487,6 @@ configuration file.") (sha256 (base32 "066bqlgw5h7a3kxswqlv734asb7nw2y6snsn09yqk0ixj23qw22s")))))) -(define-public go-github-com-dpotapov-go-spnego - (package - (name "go-github-com-dpotapov-go-spnego") - (version "0.0.0-20220426193508-b7f82e4507db") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/dpotapov/go-spnego") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1rpcgzkqhdwfsi8a9f9qar16i663pdx3gvwd6c0vfppy7qjmpjfr")))) - (build-system go-build-system) - (arguments `(#:import-path "github.com/dpotapov/go-spnego")) - (native-inputs - (list go-github-com-stretchr-testify)) - (propagated-inputs (list go-github-com-jcmturner-gokrb5-v8 - go-golang-org-x-net)) - (home-page "https://github.com/dpotapov/go-spnego") - (synopsis "HTTP calls with Kerberos authentication") - (description - "The package extends Go's HTTP Transport allowing Kerberos -authentication through Negotiate mechanism (see -@url{https://tools.ietf.org/html/rfc4559, RFC4559}).") - (license license:expat))) - (define-public go-github-com-blanu-dust (package (name "go-github-com-blanu-dust") From 08b4850e6c511d675e32a9d5e25c45fb04166ce4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 22:16:56 +0000 Subject: [PATCH 514/862] gnu: go-github-com-dchest-siphash: Update to 1.2.3. * gnu/packages/golang.scm (go-github-com-dchest-siphash): Update to 1.2.3. Change-Id: I56a083dfcbc09b1c8c57c6ed483618e401e8b123 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5b54e42ff9a..41f2d663a84 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1991,7 +1991,7 @@ running with its management port enabled.") (define-public go-github-com-dchest-siphash (package (name "go-github-com-dchest-siphash") - (version "1.2.1") + (version "1.2.3") (source (origin (method git-fetch) @@ -2001,7 +2001,7 @@ running with its management port enabled.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08s076y7vmjqnq7jz0762hkm896r6r31v8b31a3gy0n8rfa01k8k")))) + (base32 "1d6vbg5i5r6pgfk3vh93a20jdj67lgr17dk2iml7fffw67i25a2c")))) (build-system go-build-system) (arguments `(#:import-path "github.com/dchest/siphash")) From 011a10dbc0b80310df0e99dc7cc71fa832626f8e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 22:35:45 +0000 Subject: [PATCH 515/862] gnu: go-github-com-dchest-siphash: Move to golang-crypto. * gnu/packages/golang.scm (go-github-com-dchest-siphash): Move from here ... * gnu/packages/golang-crypto.scm: ... to here. Change-Id: I88a952103cf74c8a8482f243be0af6ee24cb85da --- gnu/packages/golang-crypto.scm | 23 +++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 914ff0cc383..517c3946fc2 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -599,6 +599,29 @@ one-time authenticator as specified in @end itemize") (license license:expat))) +(define-public go-github-com-dchest-siphash + (package + (name "go-github-com-dchest-siphash") + (version "1.2.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dchest/siphash") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1d6vbg5i5r6pgfk3vh93a20jdj67lgr17dk2iml7fffw67i25a2c")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/dchest/siphash")) + (home-page "https://github.com/dchest/siphash") + (synopsis "Go library for pseudorandom functions") + (description + "SipHash is a family of pseudorandom functions (PRFs) optimized +for speed on short messages.") + (license license:cc0))) + (define-public go-github-com-decred-dcrd-crypto-blake256 (package (name "go-github-com-decred-dcrd-crypto-blake256") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 41f2d663a84..066bc81f439 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1988,29 +1988,6 @@ management interface. It can be used to monitor and control an OpenVPN process running with its management port enabled.") (license license:expat)))) -(define-public go-github-com-dchest-siphash - (package - (name "go-github-com-dchest-siphash") - (version "1.2.3") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/dchest/siphash") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1d6vbg5i5r6pgfk3vh93a20jdj67lgr17dk2iml7fffw67i25a2c")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/dchest/siphash")) - (home-page "https://github.com/dchest/siphash") - (synopsis "Go library for pseudorandom functions") - (description "SipHash is a family of pseudorandom functions (PRFs) optimized -for speed on short messages.") - (license license:cc0))) - (define-public go-github-com-rakyll-statik (package (name "go-github-com-rakyll-statik") From 42cfb8540f1dadbac80482e1b195fad0323d2c1a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 10:18:35 +0000 Subject: [PATCH 516/862] gnu: Remove go-gopkg-in-go-playground-validator-v9. The package with v9 has no dependents and fails to build, remove it and overwrite definition with v10. * gnu/packages/golang.scm (go-gopkg-in-go-playground-validator-v9): Delete variable. (go-github-com-go-playground-validator-v10): Overwrite package definition of v9. [propagated-inputs]: Add go-github-com-go-playground-locales. Change-Id: I622d6ccb1cad7fdb038adb9523e74ba1ae4209a5 --- gnu/packages/golang.scm | 48 +++++++++++------------------------------ 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 066bc81f439..a693e36fb58 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2165,11 +2165,11 @@ professionally translated @end itemize") (license license:expat))) -(define-public go-gopkg-in-go-playground-validator-v9 +(define-public go-github-com-go-playground-validator-v10 (package - (name "go-gopkg-in-go-playground-validator-v9") - (version "9.31.0") - (home-page "https://gopkg.in/go-playground/validator.v9") + (name "go-github-com-go-playground-validator-v10") + (version "10.22.0") + (home-page "https://github.com/go-playground/validator") (source (origin (method git-fetch) @@ -2178,15 +2178,19 @@ professionally translated (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1f8c77s8kx9rip2jarv27x5s4xkcmanh4ndyhbcwvrhncs5rq061")))) + (base32 "0zff0qpqfzwa4xazppiq7jvpncnmx52m23qi4ih754b7rzhbk0iz")))) (build-system go-build-system) (arguments - '(#:import-path "gopkg.in/go-playground/validator.v9")) + '(#:import-path "github.com/go-playground/validator/v10")) (native-inputs - (list go-gopkg-in-go-playground-assert-v1)) + (list go-github-com-go-playground-assert-v2)) (propagated-inputs - (list go-github-com-go-playground-universal-translator - go-github-com-leodido-go-urn)) + (list go-github-com-gabriel-vasile-mimetype + go-github-com-go-playground-locales + go-github-com-go-playground-universal-translator + go-github-com-leodido-go-urn + go-golang-org-x-crypto + go-golang-org-x-text)) (synopsis "Validator for structs and individual fields based on tags") (description "This package implements value validations for structs and individual @@ -2212,32 +2216,6 @@ web framework @end itemize") (license license:expat))) -(define-public go-github-com-go-playground-validator-v10 - (package - (inherit go-gopkg-in-go-playground-validator-v9) - (name "go-github-com-go-playground-validator-v10") - (version "10.22.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-playground/validator") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0zff0qpqfzwa4xazppiq7jvpncnmx52m23qi4ih754b7rzhbk0iz")))) - (arguments - (list - #:import-path "github.com/go-playground/validator/v10")) - (propagated-inputs - (modify-inputs (package-propagated-inputs - go-gopkg-in-go-playground-validator-v9) - (append go-github-com-gabriel-vasile-mimetype - go-golang-org-x-crypto - go-golang-org-x-text))) - (native-inputs - (list go-github-com-go-playground-assert-v2)))) - (define-public go-github-com-nathan-osman-go-sunrise (let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73") (revision "0")) From 8f70c28459a61159bc7d12c6059ab1ba4fdb6234 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 10:26:30 +0000 Subject: [PATCH 517/862] gnu: go-github-com-go-playground-validator-v10: Update to 10.23.0. * gnu/packages/golang.scm (go-github-com-go-playground-validator-v10): Update to 10.23.0. Change-Id: I246f9800f069456521c896918912441b78f19124 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a693e36fb58..1c30eec6c12 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2168,7 +2168,7 @@ professionally translated (define-public go-github-com-go-playground-validator-v10 (package (name "go-github-com-go-playground-validator-v10") - (version "10.22.0") + (version "10.23.0") (home-page "https://github.com/go-playground/validator") (source (origin @@ -2178,7 +2178,7 @@ professionally translated (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0zff0qpqfzwa4xazppiq7jvpncnmx52m23qi4ih754b7rzhbk0iz")))) + (base32 "1frr06zq7fimmfjv9nac2cx9gclydbay0smn2h78znsbrylfhcmz")))) (build-system go-build-system) (arguments '(#:import-path "github.com/go-playground/validator/v10")) From 07536320d6ef8f55698cc2ba3e434d3499dfd79c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 11:11:08 +0000 Subject: [PATCH 518/862] gnu: go-github-com-go-playground-validator-v10: Move to golang-check. * gnu/packages/golang.scm (go-github-com-go-playground-validator-v10): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: Idd8b93fbd1415c0cd329fad722f40cd22a0e5d4b --- gnu/packages/golang-check.scm | 53 +++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 51 --------------------------------- 2 files changed, 53 insertions(+), 51 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 47990ec756d..99ed72cb659 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -455,6 +455,59 @@ workloads. This kind of profiling is also known as wall-clock profiling.") tests.") (license license:expat))) +(define-public go-github-com-go-playground-validator-v10 + (package + (name "go-github-com-go-playground-validator-v10") + (version "10.23.0") + (home-page "https://github.com/go-playground/validator") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-playground/validator") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1frr06zq7fimmfjv9nac2cx9gclydbay0smn2h78znsbrylfhcmz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-playground/validator/v10")) + (native-inputs + (list go-github-com-go-playground-assert-v2)) + (propagated-inputs + (list go-github-com-gabriel-vasile-mimetype + go-github-com-go-playground-locales + go-github-com-go-playground-universal-translator + go-github-com-leodido-go-urn + go-golang-org-x-crypto + go-golang-org-x-text)) + (synopsis "Validator for structs and individual fields based on tags") + (description + "This package implements value validations for structs and individual +fields based on tags. It has the following unique features: + +@itemize +@item Cross Field and Cross Struct validations by using validation tags or +custom validators +@item Slice, Array and Map diving, which allows any or all levels of a +multidimensional field to be validated +@item Ability to dive into both map keys and values for validation +@item Handles type interface by determining it's underlying type prior to +validation +@item Handles custom field types such as sql driver +@uref{https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29, +Valuer} +@item Alias validation tags, which allows for mapping of several validations +to a single tag for easier defining of validations on structs +@item Extraction of custom defined Field Name e.g. can specify to extract the +JSON name while validating and have it available in the resulting FieldError +@item Customizable i18n aware error messages. +@item Default validator for the @uref{https://github.com/gin-gonic/gin, gin} +web framework +@end itemize") + (license license:expat))) + (define-public go-github-com-go-quicktest-qt (package (name "go-github-com-go-quicktest-qt") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1c30eec6c12..3f68ee16d0e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2165,57 +2165,6 @@ professionally translated @end itemize") (license license:expat))) -(define-public go-github-com-go-playground-validator-v10 - (package - (name "go-github-com-go-playground-validator-v10") - (version "10.23.0") - (home-page "https://github.com/go-playground/validator") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-playground/validator") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1frr06zq7fimmfjv9nac2cx9gclydbay0smn2h78znsbrylfhcmz")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/go-playground/validator/v10")) - (native-inputs - (list go-github-com-go-playground-assert-v2)) - (propagated-inputs - (list go-github-com-gabriel-vasile-mimetype - go-github-com-go-playground-locales - go-github-com-go-playground-universal-translator - go-github-com-leodido-go-urn - go-golang-org-x-crypto - go-golang-org-x-text)) - (synopsis "Validator for structs and individual fields based on tags") - (description - "This package implements value validations for structs and individual -fields based on tags. It has the following unique features: - -@itemize -@item Cross Field and Cross Struct validations by using validation tags or -custom validators -@item Slice, Array and Map diving, which allows any or all levels of a -multidimensional field to be validated -@item Ability to dive into both map keys and values for validation -@item Handles type interface by determining it's underlying type prior to validation -@item Handles custom field types such as sql driver -@uref{https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29, -Valuer} -@item Alias validation tags, which allows for mapping of several validations -to a single tag for easier defining of validations on structs -@item Extraction of custom defined Field Name e.g. can specify to extract the -JSON name while validating and have it available in the resulting FieldError -@item Customizable i18n aware error messages. -@item Default validator for the @uref{https://github.com/gin-gonic/gin, gin} -web framework -@end itemize") - (license license:expat))) - (define-public go-github-com-nathan-osman-go-sunrise (let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73") (revision "0")) From 35a0b4cdaec79b984f06f0900268ccb1f88c3652 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 11:27:26 +0000 Subject: [PATCH 519/862] gnu: Remove go-gopkg-in-ini. This package fails to build and not in use by any other in Guix, the successor is go-github-com-go-ini-ini. * gnu/packages/golang.scm (go-gopkg-in-ini): Delete variable. (go-github-com-go-ini-ini): Overwrite package definition. Change-Id: I4254df32f610ea33581ab5746f8cc62222777458 --- gnu/packages/golang.scm | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3f68ee16d0e..520704e1911 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4884,37 +4884,8 @@ aware of your profiles and configuration in ~/.aws/config.") (define-public go-github-com-androiddnsfix (deprecated-package "go-github-com-androiddnsfix" go-github-com-mtibben-androiddnsfix)) -(define-public go-gopkg-in-ini - (package - (name "go-gopkg-in-ini") - (version "1.62.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://gopkg.in/ini.v1") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1dm9ydqyflasp5li22kb0w73s6kp2swii8naqfhnz64v171gmm5v")))) - (build-system go-build-system) - (native-inputs - (list go-github-com-smartystreets-goconvey)) - (arguments - '(#:import-path "gopkg.in/ini.v1" - #:phases %standard-phases)) - (synopsis "INI file read and write functionality in Go") - (description - "This package provides INI file read and write functionality in Go.") - (home-page "https://gopkg.in/ini.v1") - (license license:asl2.0))) - -;;; XXX: Since commit bfb61065f05a6eac0cf63b16db43d0c3e864c658, the -;;; canonical name of the ini package is `go-github-com-go-ini-ini`, -;;; not `go-gopkg-in-ini`. (define-public go-github-com-go-ini-ini (package - (inherit go-gopkg-in-ini) (name "go-github-com-go-ini-ini") (version "1.67.0") (source (origin @@ -4926,9 +4897,15 @@ aware of your profiles and configuration in ~/.aws/config.") (sha256 (base32 "1vpzkjmrwp7bqqsijp61293kk2vn6lcck56j8m5y6ks6cf21lpap")))) + (build-system go-build-system) (arguments (list #:import-path "github.com/go-ini/ini")) - (propagated-inputs (list go-github-com-stretchr-testify)))) + (propagated-inputs (list go-github-com-stretchr-testify)) + (home-page "https://gopkg.in/ini.v1") + (synopsis "INI file read and write functionality in Go") + (description + "This package provides INI file read and write functionality in Go.") + (license license:asl2.0))) (define-public go-github-com-dreamacro-go-shadowsocks2 (package From 85892f5a89207fd2ca7577ffa4efc76a60b7e6fc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 12:27:33 +0000 Subject: [PATCH 520/862] gnu: go-github-com-aws-smithy-go: Update to 1.22.1. * gnu/packages/golang-web.scm (go-github-com-aws-smithy-go): Update to 1.22.1. [sources] : Delete submodules with their own go.mod files which need to be packaged separately. [arguments] : Run all available tests. [propagated-inputs]: Remove go-github-com-jmespath-go-jmespath and go-github-com-google-go-cmp. Change-Id: I34e1cec67d7b4a9b133a09d0dba92244ffc2db50 --- gnu/packages/golang-web.scm | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 5e55f82c872..65c7e7aef12 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -620,25 +620,34 @@ credentials sources.") (define-public go-github-com-aws-smithy-go (package (name "go-github-com-aws-smithy-go") - (version "1.21.0") + (version "1.22.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aws/smithy-go") - (commit "v1.21.0"))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1pcq9d154l41c4k23q6ri51ba5i2kc8ihrv4sgkv4q59cw70rspi")))) + (base32 "16jbv7cyj85048f4kcrib8k2yif165sc099h0aklal5dwlf85xcg")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/aws/smithy-go/aws-http-auth + ;; - github.com/aws/smithy-go/codegen + ;; - github.com/aws/smithy-go/metrics/smithyotelmetrics + ;; - github.com/aws/smithy-go/tracing/smithyoteltracing + (for-each delete-file-recursively + (list "aws-http-auth" + "codegen" + "metrics/smithyotelmetrics" + "tracing/smithyoteltracing")))))) (build-system go-build-system) (arguments (list - #:import-path "github.com/aws/smithy-go" - ;; XXX: It contains a lot of sub packages defined with go.mod, consider - ;; to pack them separately. - #:test-subdirs #~(list "."))) - (propagated-inputs - (list go-github-com-jmespath-go-jmespath go-github-com-google-go-cmp)) + #:import-path "github.com/aws/smithy-go")) (home-page "https://github.com/aws/smithy-go") (synopsis "Smithy code generators for Go") (description From 7e8d58423784c770ddfb76a98db331c9466d7752 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 12:56:33 +0000 Subject: [PATCH 521/862] gnu: Add go-github-com-aws-smithy-go-aws-http-auth. * gnu/packages/golang-web.scm (go-github-com-aws-smithy-go-aws-http-auth): New variable. Change-Id: Ic899df5818dabedfd4e7c028a2c6cdd110a10e16 --- gnu/packages/golang-web.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 65c7e7aef12..b82144e2e5b 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -654,6 +654,33 @@ credentials sources.") "Package smithy provides the core components for a Smithy SDK.") (license license:asl2.0))) +(define-public go-github-com-aws-smithy-go-aws-http-auth + (package + (name "go-github-com-aws-smithy-go-aws-http-auth") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/smithy-go") + (commit (go-version->git-ref version + #:subdir "aws-http-auth")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1iy9rlcj6qwy58rrddbvqy38lzw9d7y1i2d3mvf3f3z4i6rkwvd4")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/aws/smithy-go/aws-http-auth" + #:unpack-path "github.com/aws/smithy-go")) + (home-page "https://github.com/aws/smithy-go") + (synopsis "Consumable SigV4 and SigV4a request signing") + (description + "This package implements generically consumable SigV4 and SigV4a request +signing.") + (license license:asl2.0))) + (define-public go-github-com-aymerick-douceur (package (name "go-github-com-aymerick-douceur") From 8b0e4b8ef6f27a30ebe6f99f29b198e0add72cb4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 13:02:11 +0000 Subject: [PATCH 522/862] gnu: Add go-github-com-aws-smithy-go-codegen. * gnu/packages/golang-web.scm (go-github-com-aws-smithy-go-codegen): New variable. Change-Id: I69fe6b5f7306c6200e94ca7f875f948da0c5a006 --- gnu/packages/golang-web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index b82144e2e5b..e2cf9d11fd7 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -681,6 +681,32 @@ credentials sources.") signing.") (license license:asl2.0))) +(define-public go-github-com-aws-smithy-go-codegen + (package + (name "go-github-com-aws-smithy-go-codegen") + (version "0.0.0-20241226171254-10fbeed6f845") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/smithy-go") + (commit (go-version->git-ref version + #:subdir "codegen")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16jbv7cyj85048f4kcrib8k2yif165sc099h0aklal5dwlf85xcg")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/aws/smithy-go/codegen" + #:unpack-path "github.com/aws/smithy-go")) + (home-page "https://github.com/aws/smithy-go") + (synopsis "Smithy code generators for Golang") + (description + "This package provides Gradle templates for Smithy code generators.") + (license license:asl2.0))) + (define-public go-github-com-aymerick-douceur (package (name "go-github-com-aymerick-douceur") From d0fc731e9023afae8bd5f372cf5b72d3276d7ccf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 13:33:50 +0000 Subject: [PATCH 523/862] gnu: go-go-opentelemetry-io-otel: Fix build. * gnu/packages/golang-web.scm (go-go-opentelemetry-io-otel) [arguments] : Skip one test. Change-Id: I38899669f900fb6948866f41b9adcdbd530c4be4 --- gnu/packages/golang-web.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e2cf9d11fd7..bd42392963a 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7561,7 +7561,9 @@ connection management for @url{https://github.com/xtaci/kcp-go,kcp-go}.") (build-system go-build-system) (arguments (list - #:import-path "go.opentelemetry.io/otel")) + #:import-path "go.opentelemetry.io/otel" + ;; Error: Both arguments must be pointers. + #:test-flags #~(list "-skip" "TestTraceProviderDelegatesSameInstance"))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs From 67458516ac4bbb5d3ab7b02bbc28d97f3125fa06 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 13:33:49 +0000 Subject: [PATCH 524/862] gnu: Add go-github-com-aws-smithy-go-metrics-smithyotelmetrics. * gnu/packages/golang-web.scm (go-github-com-aws-smithy-go-metrics-smithyotelmetrics): New variable. Change-Id: I210d30c6a672a822aaf120e7e17c3fee2ee16d5f --- gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index bd42392963a..34b219771a2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -707,6 +707,35 @@ signing.") "This package provides Gradle templates for Smithy code generators.") (license license:asl2.0))) +(define-public go-github-com-aws-smithy-go-metrics-smithyotelmetrics + (package + (name "go-github-com-aws-smithy-go-metrics-smithyotelmetrics") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/smithy-go") + (commit (go-version->git-ref version + #:subdir "metrics/smithyotelmetrics")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16jbv7cyj85048f4kcrib8k2yif165sc099h0aklal5dwlf85xcg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/aws/smithy-go/metrics/smithyotelmetrics" + #:unpack-path "github.com/aws/smithy-go")) + (propagated-inputs + (list go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel)) ; for go.opentelemetry.io/otel/metric + (home-page "https://github.com/aws/smithy-go") + (synopsis "AWS Smithy OTEL metrics adapter") + (description + "Package smithyotelmetrics implements a Smithy client metrics adapter for +the OTEL Go SDK.") + (license license:asl2.0))) + (define-public go-github-com-aymerick-douceur (package (name "go-github-com-aymerick-douceur") From 8c9156ac90a3eadc619da839769c44af06cc5e21 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 13:36:14 +0000 Subject: [PATCH 525/862] gnu: Add go-github-com-aws-smithy-go-tracing-smithyoteltracing. * gnu/packages/golang-web.scm (go-github-com-aws-smithy-go-tracing-smithyoteltracing): New variable. Change-Id: I259bd0473a2ac46a5f5354e8ee22af850fff35cb --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 34b219771a2..bf19459c2bf 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -736,6 +736,34 @@ signing.") the OTEL Go SDK.") (license license:asl2.0))) +(define-public go-github-com-aws-smithy-go-tracing-smithyoteltracing + (package + (name "go-github-com-aws-smithy-go-tracing-smithyoteltracing") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/smithy-go") + (commit (go-version->git-ref version + #:subdir "tracing/smithyoteltracing")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16jbv7cyj85048f4kcrib8k2yif165sc099h0aklal5dwlf85xcg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/aws/smithy-go/tracing/smithyoteltracing" + #:unpack-path "github.com/aws/smithy-go")) + (propagated-inputs + (list go-go-opentelemetry-io-otel)) + (home-page "https://github.com/aws/smithy-go") + (synopsis "AWS Smithy OTEL tracing adapter") + (description + "Package smithyoteltracing implements a Smithy client tracing adapter for +the OTEL Go SDK.") + (license license:asl2.0))) + (define-public go-github-com-aymerick-douceur (package (name "go-github-com-aymerick-douceur") From 13a2230cdf30f282d109b03d74a391d7b09e5830 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 13:38:34 +0000 Subject: [PATCH 526/862] gnu: go-github-com-aws-aws-sdk-go-v2-credentials: Update to 1.17.48. * gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go-v2-credentials): Update to 1.17.48. [arguments] : Ass 'fix-tests. Change-Id: I267ef898ad79512eddbcac0cd66419c693a1094a --- gnu/packages/golang-web.scm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index bf19459c2bf..99caefc72db 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -527,21 +527,29 @@ functions.") (define-public go-github-com-aws-aws-sdk-go-v2-credentials (package (name "go-github-com-aws-aws-sdk-go-v2-credentials") - (version "1.17.27") + (version "1.17.48") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aws/aws-sdk-go-v2") - (commit (string-append "credentials/v" version)))) + (commit (go-version->git-ref version + #:subdir "credentials")))) (file-name (git-file-name name version)) (sha256 - (base32 "0jdj7wim98g80hjbw3av7ffrr3dqxzbygprmhjs0cxc16cw62wj7")))) + (base32 "1n3spqncpw6w11pwkqaiq7jyv6dv0229jsbshibg24l2g3accdqi")))) (build-system go-build-system) (arguments (list #:import-path "github.com/aws/aws-sdk-go-v2/credentials" - #:unpack-path "github.com/aws/aws-sdk-go-v2")) + #:unpack-path "github.com/aws/aws-sdk-go-v2" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* (find-files "." "test\\.go") + (("/bin/sleep") (which "sleep"))))))))) (propagated-inputs (list go-github-com-google-go-cmp go-github-com-aws-smithy-go)) From 8bf47ea25dc4c7d028dcc66c60df4d56fa67fe1d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 14:07:31 +0000 Subject: [PATCH 527/862] gnu: aws-vault: Fix buld. * gnu/packages/golang.scm (aws-vault) [arguments] : Add 'set-home. Change-Id: Ie546c1ec0647afc2f562e4bcf5f463aeab43caf6 --- gnu/packages/golang.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 520704e1911..aeeeb0ca821 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4799,7 +4799,12 @@ dependencies and a simple API.") (copy-file "bash/aws-vault.bash" (string-append bash-completion-dir "/aws-vault")) (copy-file "fish/aws-vault.fish" - (string-append fish-completion-dir "/aws-vault.fish"))))))))) + (string-append fish-completion-dir "/aws-vault.fish")))))) + ;; aws-vault: error: add: mkdir /homeless-shelter: permission + ;; denied. + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" "/tmp")))))) (native-inputs (list go-github-com-99designs-keyring go-github-com-alecthomas-kingpin-v2 From f085c5c6cf13318a80198925d39ea479b93ed24c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 14:11:36 +0000 Subject: [PATCH 528/862] gnu: Add go-github-com-aws-aws-sdk-go-v2-service-secretsmanager. * gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go-v2-service-secretsmanager): New variable. Change-Id: I1209f1999120433976f13e46a7bfd546b81cab9d --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 99caefc72db..580d77e9bda 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -592,6 +592,34 @@ credentials sources.") (propagated-inputs (list go-github-com-aws-smithy-go)))) +(define-public go-github-com-aws-aws-sdk-go-v2-service-secretsmanager + (package + (name "go-github-com-aws-aws-sdk-go-v2-service-secretsmanager") + (version "1.34.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/aws-sdk-go-v2") + (commit (go-version->git-ref version + #:subdir "service/secretsmanager")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1n3spqncpw6w11pwkqaiq7jyv6dv0229jsbshibg24l2g3accdqi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/aws/aws-sdk-go-v2/service/secretsmanager" + #:unpack-path "github.com/aws/aws-sdk-go-v2")) + (propagated-inputs + (list go-github-com-aws-smithy-go)) + (home-page "https://github.com/aws/aws-sdk-go-v2") + (synopsis "AWS Secrets Manager service") + (description + "Package secretsmanager provides the API client, operations, and +parameter types for AWS Secrets Manager.") + (license license:asl2.0))) + (define-public go-github-com-aws-aws-sdk-go-v2-service-sso (package (inherit go-github-com-aws-aws-sdk-go-v2) From 3a18cf8ab15c4db7ae2580453946787fd23abcd5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 15:00:47 +0000 Subject: [PATCH 529/862] gnu: dstask: Update to 0.27. * gnu/packages/task-management.scm (dstask): Update to 0.27. [arguments] : Skip tests from "integration". [native-inputs]: Add go-github-com-burntsushi-toml, go-github-com-gofrs-uuid, go-github-com-mattn-go-isatty, go-github-com-mattn-go-runewidth, go-github-com-shurcool-githubv4, go-github-com-sirupsen-logrus, go-github-com-stretchr-testify, go-golang-org-x-oauth2, go-golang-org-x-sys, go-gopkg-in-yaml-v2, and go-mvdan-cc-xurls-v2. Change-Id: I1021c43952c21812db85438557aaf9c88e3e1358 --- gnu/packages/task-management.scm | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm index a24ecffb903..af99c08a6a3 100644 --- a/gnu/packages/task-management.scm +++ b/gnu/packages/task-management.scm @@ -39,6 +39,10 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-web) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages hunspell) @@ -278,20 +282,21 @@ time to a logfile.") (define-public dstask (package (name "dstask") - (version "0.26") + (version "0.27") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/naggie/dstask") - (commit (string-append "v" version)))) + (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "10q0524gfc76k0v9cy0j60cbgmmwkpnkbvl6w0pn1j5y690514f5")))) + (base32 "01vdxm3y5fg4hqhq4k1lk0m7w70kkwlka5jhixv7a9lf1gqldskd")))) (build-system go-build-system) (arguments `(#:import-path "github.com/naggie/dstask" #:install-source? #f + #:test-subdirs '("pkg/..." ".") #:phases (modify-phases %standard-phases (replace 'build @@ -314,6 +319,18 @@ time to a logfile.") (install-file "dstask-import" bindir) (install-file ".dstask-bash-completions.sh" bash-completion) (install-file ".dstask-zsh-completions.sh" zsh-completion)))))))) + (native-inputs + (list go-github-com-burntsushi-toml + go-github-com-gofrs-uuid + go-github-com-mattn-go-isatty + go-github-com-mattn-go-runewidth + go-github-com-shurcool-githubv4 + go-github-com-sirupsen-logrus + go-github-com-stretchr-testify + go-golang-org-x-oauth2 + go-golang-org-x-sys + go-gopkg-in-yaml-v2 + go-mvdan-cc-xurls-v2)) (synopsis "CLI-based TODO manager with git-based sync + markdown notes per task") (description "dstask is a personal task tracker that uses git for synchronization. It offers a note command to attach a Markdown based note to From 06b409255b5dff8d8b44bae3f64a3127887ee26c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 15:03:25 +0000 Subject: [PATCH 530/862] gnu: Remove go-github-com-docker-machine. Not in use by any other packages in Guix, fails to build: "This repository has been archived by the owner on Sep 26, 2021. It is now read-only." * gnu/packages/golang.scm (go-github-com-docker-machine): Delete variable. Change-Id: Ic860ddcba326124e707267d04ffc7ef39579dac5 --- gnu/packages/golang.scm | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index aeeeb0ca821..700079dd2bd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2712,33 +2712,6 @@ translation (NAT), proxies, sockets, and transport layer security (TLS).") machine friendly values.") (license license:asl2.0))) -(define-public go-github-com-docker-machine - (let ((commit "7b7a141da84480342357c51838be142bf183b095") - (revision "0")) - (package - (name "go-github-com-docker-machine") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/docker/machine") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0bavk0lvs462yh0lnmnxi9psi5qv1x3nvzmd2b0drsahlp1gxi8s")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/docker/machine")) - (home-page "https://github.com/docker/machine") - (synopsis "Machine management for a container-centric world") - (description - "@dfn{Machine} lets you create Docker hosts on your computer, on -hosting providers, and inside your data center. It creates servers, installs -Docker on them, then configures the Docker client to talk to them.") - (license license:asl2.0)))) - (define-public go-github-com-matrix-org-gomatrix (package (name "go-github-com-matrix-org-gomatrix") From 9623f6d92cc3cfe3e8f89fc67271c3237f5c0bff Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 16:22:56 +0000 Subject: [PATCH 531/862] gnu: go-github-com-go-playground-validator-v10: Limit tests to x86_64. Limit tests to x86_64 architecture as they fail on others, see . * gnu/packages/golang-check.scm (go-github-com-go-playground-validator-v10) [arguments] : Only run on x86_64 system. Change-Id: I0b07638cbfdf8a737ea2f040bcb0dd27bfede09a --- gnu/packages/golang-check.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 99ed72cb659..a8a765f8d6f 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -472,6 +472,11 @@ tests.") (build-system go-build-system) (arguments (list + ;; Tests on non-x86_64 architectures are not well supported upstream. + ;; + ;; Most of them fail with error like: Error:Field validation for + ;; 'IsColor' failed on the 'iscolor' tag. + #:tests? (target-x86-64?) #:import-path "github.com/go-playground/validator/v10")) (native-inputs (list go-github-com-go-playground-assert-v2)) From f5eaca3cbaa0379a597518b82cc9c869f55fa0d3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 16:46:40 +0000 Subject: [PATCH 532/862] gnu: Add go-github-com-jmhodges-clock. * gnu/packages/golang-check.scm (go-github-com-jmhodges-clock): New variable. Change-Id: I0fe9ad9addebc951c2d8776701453adecfa45c76 --- gnu/packages/golang-check.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index a8a765f8d6f..d3e2ef5b10f 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -994,6 +994,30 @@ Many times certain facilities are not available, or tests must run differently.") (license license:expat))) +(define-public go-github-com-jmhodges-clock + (package + (name "go-github-com-jmhodges-clock") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jmhodges/clock") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ys85dlg3zzzwl7p46kf5gckjm1ddgr5dai42v4p3wn9nm6ln252")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jmhodges/clock")) + (home-page "https://github.com/jmhodges/clock") + (synopsis "System time abstraction Golang library") + (description + "Package clock provides an abstraction for system time that enables +testing of time-sensitive code.") + (license license:expat))) + (define-public go-github-com-maruel-panicparse (package (name "go-github-com-maruel-panicparse") From 38228e03ab88b0616d6fc9cfe67b74fc6a5ff2fd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 30 Dec 2024 16:46:42 +0000 Subject: [PATCH 533/862] gnu: git-lfs: Update to 3.6.0. * gnu/packages/version-control.scm (git-lfs): Update to 3.6.0. [propagated-inputs]: Remove go-github-com-xeipuuv-gojsonreference and go-github-com-xeipuuv-gojsonpointer; add go-github-com-jmhodges-clock, go-github-com-stretchr-testify, and go-golang-org-x-sys. Sort. Change-Id: I5e7f79c70dee85d9bcb417128b9c41e0fac0fc76 --- gnu/packages/version-control.scm | 37 ++++++++++++++++---------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 8b0e7884fcf..0a3d2b7c0b2 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -3934,7 +3934,7 @@ will reconstruct the object along its delta-base chain and return it.") (define-public git-lfs (package (name "git-lfs") - (version "3.4.0") + (version "3.6.0") (source (origin (method git-fetch) (uri (git-reference @@ -3943,7 +3943,7 @@ will reconstruct the object along its delta-base chain and return it.") (file-name (git-file-name name version)) (sha256 (base32 - "0ljjs8kyznp2ifkqdcd9q3550sknyx5qxx247icwkd9djjq7x74m")))) + "09ry2nq5bpdxk446dyhc0d6d85wy5x2i5ckwwg9r00a3zdp5v4ry")))) (build-system go-build-system) (arguments (list @@ -3986,24 +3986,25 @@ will reconstruct the object along its delta-base chain and return it.") (list ronn-ng ruby-asciidoctor) '()))) (propagated-inputs - (list go-github-com-xeipuuv-gojsonschema - go-github-com-xeipuuv-gojsonreference - go-github-com-xeipuuv-gojsonpointer + (list go-github-com-avast-retry-go + go-github-com-dpotapov-go-spnego + go-github-com-git-lfs-gitobj-v2 + go-github-com-git-lfs-go-netrc + go-github-com-git-lfs-pktline + go-github-com-git-lfs-wildmatch-v2 + go-github-com-jmhodges-clock + go-github-com-leonelquinteros-gotext + go-github-com-mattn-go-isatty + go-github-com-olekukonko-ts + go-github-com-pkg-errors + go-github-com-rubyist-tracerx + go-github-com-spf13-cobra + go-github-com-ssgelm-cookiejarparser + go-github-com-stretchr-testify + go-github-com-xeipuuv-gojsonschema go-golang-org-x-net go-golang-org-x-sync - go-github-com-ssgelm-cookiejarparser - go-github-com-rubyist-tracerx - go-github-com-olekukonko-ts - go-github-com-leonelquinteros-gotext - go-github-com-git-lfs-wildmatch-v2 - go-github-com-git-lfs-pktline - go-github-com-git-lfs-go-netrc - go-github-com-git-lfs-gitobj-v2 - go-github-com-dpotapov-go-spnego - go-github-com-avast-retry-go - go-github-com-mattn-go-isatty - go-github-com-pkg-errors - go-github-com-spf13-cobra)) + go-golang-org-x-sys)) (home-page "https://git-lfs.github.com/") (synopsis "Git extension for versioning large files") (description From f27a0237d21a5d7af034b0c70a3e4607fdca65de Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 17:50:58 +0000 Subject: [PATCH 534/862] gnu: Add go-github-com-gorilla-schema. * gnu/packages/golang-web.scm (go-github-com-gorilla-schema): New variable. Change-Id: Ie31e0c3f7127c44be5de59b3509467f5429db8c4 --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 580d77e9bda..e7440f8ad43 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3291,6 +3291,30 @@ web applications.") incoming requests with their respective handler.") (license license:bsd-3))) +(define-public go-github-com-gorilla-schema + (package + (name "go-github-com-gorilla-schema") + (version "1.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gorilla/schema") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16gk174mybvz0gg2w1wmpc96jhhi94i1vvclyzr3qkv7s6gadifn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gorilla/schema")) + (home-page "https://github.com/gorilla/schema") + (synopsis "Fills a struct with form values") + (description + "This package implements a functionality to fills a struct with form +values.") + (license license:bsd-3))) + (define-public go-github-com-gorilla-securecookie (package (name "go-github-com-gorilla-securecookie") From 82db8071f7efef2234f61177e1e9a749cd5ba0e3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 17:57:02 +0000 Subject: [PATCH 535/862] gnu: Add go-github-com-pion-stun-v3. * gnu/packages/golang-web.scm (go-github-com-pion-stun-v3): New variable. Change-Id: Ic789d57ce1f0bf0356b64ba5db8e40b52552001e --- gnu/packages/golang-web.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e7440f8ad43..250538453fc 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6000,6 +6000,28 @@ Protocol,SCTP} as specified in go-golang-org-x-crypto go-golang-org-x-net)))) +(define-public go-github-com-pion-stun-v3 + (package + (inherit go-github-com-pion-stun-v2) + (name "go-github-com-pion-stun-v3") + (version "3.0.0") + (source + (origin + (inherit (package-source go-github-com-pion-stun)) + (uri (git-reference + (url "https://github.com/pion/stun") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0yavl76y0fida9f1jfdmzdg7rm5jhp6kvdgn3smsf93jad1vbr2x")))) + (arguments + (list + #:import-path "github.com/pion/stun/v3")) + (propagated-inputs + (list go-github-com-pion-dtls-v3 + go-github-com-pion-logging + go-github-com-pion-transport-v3)))) + (define-public go-github-com-pion-transport (package (name "go-github-com-pion-transport") From 8be844b517f542d56cbb46de3fe475f7d02d5655 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 17:59:02 +0000 Subject: [PATCH 536/862] gnu: go-github-com-pkg-xattr: Update to 0.4.10. * gnu/packages/golang.scm (go-github-com-pkg-xattr): Update to 0.4.10. Change-Id: I5545a958435e77a2b1b7fa0cd6aeb81d34b97a8e --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 700079dd2bd..9b936fab6ee 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1370,7 +1370,7 @@ the first isn't available. (define-public go-github-com-pkg-xattr (package (name "go-github-com-pkg-xattr") - (version "0.4.9") + (version "0.4.10") (source (origin (method git-fetch) (uri (git-reference @@ -1379,7 +1379,7 @@ the first isn't available. (file-name (git-file-name name version)) (sha256 (base32 - "0qg4zh0d8m4adaiicsd0cpw0w6g8sk01f4jz7jyxgirh1wfcsqyz")))) + "0rxvfiwgd0z9alj4n8jympmyi68zh1swf3siim8r2h01nm4i0vqh")))) (build-system go-build-system) (arguments '(#:import-path "github.com/pkg/xattr")) From f4fac344408431dbf94c4df0a1317ca9850f6026 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 18:01:17 +0000 Subject: [PATCH 537/862] gnu: go-github-com-pkg-xattr: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-pkg-xattr): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I4dd02064c98ab0534c2a76e6e709bc1a48089213 --- gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 30 ------------------------------ 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 04fafb1d55f..3f1ac697c95 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10031,6 +10031,37 @@ Pion}.") "This package provides a Go library to create and print diffs.") (license license:bsd-3))) +(define-public go-github-com-pkg-xattr + (package + (name "go-github-com-pkg-xattr") + (version "0.4.10") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pkg/xattr") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rxvfiwgd0z9alj4n8jympmyi68zh1swf3siim8r2h01nm4i0vqh")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pkg/xattr")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/pkg/xattr") + (synopsis "Support for extended file system attributes") + (description + "Package xattr provides support for extended attributes on Linux, Darwin +and FreeBSD. Extended attributes are name:value pairs permanently associated +with files or directories. They are similar to the environment strings +associated with a process. An attribute may be defined or undefined. If +defined, its value may be empty or non-empty. You can find more details here: +@@url{https://en.wikipedia.org/wiki/Extended_file_attributes, +https://en.wikipedia.org/wiki/Extended_file_attributes}.") + (license license:bsd-2))) + (define-public go-github-com-polydawn-refmt (package (name "go-github-com-polydawn-refmt") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9b936fab6ee..bb42a8f2d7f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1367,36 +1367,6 @@ the first isn't available. @end itemize") (license license:expat))) -(define-public go-github-com-pkg-xattr - (package - (name "go-github-com-pkg-xattr") - (version "0.4.10") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/pkg/xattr") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0rxvfiwgd0z9alj4n8jympmyi68zh1swf3siim8r2h01nm4i0vqh")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/pkg/xattr")) - (native-inputs (list go-golang-org-x-sys)) - (home-page "https://github.com/pkg/xattr") - (synopsis "Support for extended file system attributes") - (description - "Package xattr provides support for extended attributes on Linux, Darwin and -FreeBSD. Extended attributes are name:value pairs permanently associated with -files or directories. They are similar to the environment strings associated with -a process. An attribute may be defined or undefined. If defined, its value may -be empty or non-empty. You can find more details here: -@@url{https://en.wikipedia.org/wiki/Extended_file_attributes, -https://en.wikipedia.org/wiki/Extended_file_attributes} -.") - (license license:bsd-2))) - (define-public go-github-com-schachmat-ingo (package (name "go-github-com-schachmat-ingo") From cd64a71124cc9b78e6b68f450775491859f8c05d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 18:12:10 +0000 Subject: [PATCH 538/862] gnu: Add go-github-com-pkg-term. * gnu/packages/golang-xyz.scm (go-github-com-pkg-term): New variable. Change-Id: I23f0be5c38b51967d0b18b649148bb5130522c03 --- gnu/packages/golang-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3f1ac697c95..20edd533e13 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10031,6 +10031,41 @@ Pion}.") "This package provides a Go library to create and print diffs.") (license license:bsd-3))) +(define-public go-github-com-pkg-term + (package + (name "go-github-com-pkg-term") + (version "1.2.0-beta.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pkg/term") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fflh4lglbvdz8949h8spbw3vwdldgnl6zgps4ylzzr40hhyvgf5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pkg/term" + #:test-flags + #~(list "-skip" + (string-join + ;; Tests fail with error: inappropriate ioctl for device. + (list "TestTiocmbic" + "TestTiocmbis" + "TestTiocmget" + "TestTiocmset") + "|")))) + (propagated-inputs (list go-golang-org-x-sys)) + (home-page "https://github.com/pkg/term") + (synopsis "Manages POSIX terminals from Golang") + (description + "Package term manages POSIX terminals. As POSIX terminals are connected +to, or emulate, a UART, this package also provides control over the various +UART and serial line parameters.") + (license license:bsd-2))) + (define-public go-github-com-pkg-xattr (package (name "go-github-com-pkg-xattr") From d86dc5ecfc8c52b327d761018366623bbdc91281 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 18:20:23 +0000 Subject: [PATCH 539/862] gnu: Add go-github-com-c-bata-go-prompt. * gnu/packages/golang-xyz.scm (go-github-com-c-bata-go-prompt): New variable. Change-Id: Id5dbff75bc800728367bb1db3250242882a8e7d8 --- gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 20edd533e13..fd5dd62e0c5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1841,6 +1841,39 @@ using JIT and SIMD approaches.") library.") (license license:asl2.0))) +(define-public go-github-com-c-bata-go-prompt + (package + (name "go-github-com-c-bata-go-prompt") + (version "0.2.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/c-bata/go-prompt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16hfb5xvgixn1anbsvazs8ihcrzyww0n8fddx10yiygqhsp07avz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/c-bata/go-prompt")) + (propagated-inputs + (list go-github-com-mattn-go-colorable + go-github-com-mattn-go-runewidth + go-github-com-mattn-go-tty + go-github-com-pkg-term + go-golang-org-x-sys)) + (home-page "https://github.com/c-bata/go-prompt") + (synopsis "Interactive CLI prompts toolit") + (description + "This package provides a library for building powerful interactive +prompts inspired by +@url{https://github.com/jonathanslenders/python-prompt-toolkit, +python-prompt-toolkit}, making it easier to build cross-platform command line +tools using Go.") + (license license:expat))) + (define-public go-github-com-caarlos0-env (package (name "go-github-com-caarlos0-env") From fcbabcfa8cfbcc41e99de0950a999cb40fdf9b01 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 18:27:51 +0000 Subject: [PATCH 540/862] gnu: Add go-github-com-go-cmd-cmd. * gnu/packages/golang-xyz.scm (go-github-com-go-cmd-cmd): New variable. Change-Id: I4303a41624d8d0d7a588bafdb11a69c7761bbec6 --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index fd5dd62e0c5..87e25f34eda 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4458,6 +4458,35 @@ styled and positioned absolutely or relatively. They respond to keyboard, mouse, and terminal resizing events.") (license license:expat))) +(define-public go-github-com-go-cmd-cmd + (package + (name "go-github-com-go-cmd-cmd") + (version "1.4.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-cmd/cmd") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1n465pnvphvs4jp3mn1krbxb0wcjclfcrif1c5zcir8idj18vsax")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-cmd/cmd")) + (native-inputs + (list go-github-com-go-test-deep)) + (home-page "https://github.com/go-cmd/cmd") + (synopsis "Non-blocking external commands in Go with streaming output") + (description + "Package cmd runs external commands with concurrent access to output and +status. It wraps the Go standard library @code{os/exec.Command} to correctly +handle reading output (STDOUT and STDERR) while a command is running and +killing a command. All operations are safe to call from multiple +goroutines.") + (license license:expat))) + (define-public go-github-com-go-errors-errors (package (name "go-github-com-go-errors-errors") From 5d0eaf727e92b7a83cf10fd84a9465a011fbf54d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 18:32:48 +0000 Subject: [PATCH 541/862] gnu: Add go-github-com-labbsr0x-goh. * gnu/packages/golang-web.scm (go-github-com-labbsr0x-goh): New variable. Change-Id: I67969a5bef508b72cfcbd0620d718d7b848eabbb --- gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 250538453fc..97924a00a33 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4114,6 +4114,35 @@ router.") @acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.") (license license:expat))) +(define-public go-github-com-labbsr0x-goh + (package + (name "go-github-com-labbsr0x-goh") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/labbsr0x/goh") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06yrd6ih6r0rkxyn88b66gfarjxsqmi3wzi8cgsxskq7mbah0iyp")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/labbsr0x/goh")) + (propagated-inputs + (list go-github-com-go-cmd-cmd + go-github-com-go-errors-errors + go-github-com-sirupsen-logrus)) + (home-page "https://github.com/labbsr0x/goh") + (synopsis "Utility library for writing web hooks") + (description + "This package provides an utility library for writing extremely simple +webhooks in Golang.") + (license license:expat))) + (define-public go-github-com-levigross-grequests (package (name "go-github-com-levigross-grequests") From 62701b6657aabf08afcaf7d28158e8f49d1d656a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 31 Dec 2024 18:38:37 +0000 Subject: [PATCH 542/862] gnu: Add go-github-com-go-http-utils-headers. * gnu/packages/golang-web.scm (go-github-com-go-http-utils-headers): New variable. Change-Id: I5d55bcbc42f49c3889e88157485bb07ad08d375f --- gnu/packages/golang-web.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 97924a00a33..0f26d5b9042 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2281,6 +2281,31 @@ Features: decompose request handling into many smaller layers.") (license license:expat))) +(define-public go-github-com-go-http-utils-headers + (package + (name "go-github-com-go-http-utils-headers") + (version "0.0.0-20181008091004-fed159eddc2a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-http-utils/headers") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19h2sffi04hr56qxkag2baa17v91x4vp1a1zkm9rqr846xqwspvm")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-http-utils/headers")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/go-http-utils/headers") + (synopsis "HTTP header constants for Golang") + (description + "This package provides HTTP header constants.") + (license license:expat))) + (define-public go-github-com-go-jose-go-jose-v3 (package (name "go-github-com-go-jose-go-jose-v3") From e386ef9d4cf3d663e0a96dd6a5953f5483b6b2b3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 14:39:04 +0000 Subject: [PATCH 543/862] gnu: Add go-modernc-org-ccorpus2. * gnu/packages/golang-check.scm (go-modernc-org-ccorpus2): New variable. Change-Id: I5b39ac40d965aab779c30caebd1565414d2ca23d --- gnu/packages/golang-check.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index d3e2ef5b10f..d818a2b1f7d 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -2249,6 +2249,29 @@ used to skip the test advanced Go linter.") (license license:expat))) +(define-public go-modernc-org-ccorpus2 + (package + (name "go-modernc-org-ccorpus2") + (version "1.5.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/ccorpus2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1mwgi0jdj5a595wlllr5rn3gvl7cqz7fnjx28hn3ia9cs1nxkk0a")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/ccorpus2")) + (home-page "https://gitlab.com/cznic/ccorpus2") + (synopsis "Continuation of ccorpus using @code{embed.FS}") + (description + "This packge provides a test corpus of C code.") + (license license:bsd-3))) + (define-public go-pgregory-net-rapid (package (name "go-pgregory-net-rapid") From bd57719cd5f3e2b761ea2b26a4190f285086cd11 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 14:49:01 +0000 Subject: [PATCH 544/862] gnu: go-github-com-pmezard-go-difflib: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-pmezard-go-difflib): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ib9997937ae65d40d23cc1e6b03efb2772bba94bc --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 87e25f34eda..516c39d8af5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10159,6 +10159,30 @@ defined, its value may be empty or non-empty. You can find more details here: https://en.wikipedia.org/wiki/Extended_file_attributes}.") (license license:bsd-2))) +(define-public go-github-com-pmezard-go-difflib + (package + (name "go-github-com-pmezard-go-difflib") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pmezard/go-difflib") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pmezard/go-difflib/difflib" + #:unpack-path "github.com/pmezard/go-difflib/")) + (home-page "https://github.com/pmezard/go-difflib") + (synopsis "Go diff implementation") + (description + "This package provides unified and context-aware diffs in Go.") + (license license:bsd-3))) + (define-public go-github-com-polydawn-refmt (package (name "go-github-com-polydawn-refmt") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index bb42a8f2d7f..b850eced26b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3289,28 +3289,6 @@ GIT_TRACE mechanism.") anchor names.") (license license:expat))) -(define-public go-github-com-pmezard-go-difflib - (package - (name "go-github-com-pmezard-go-difflib") - (version "1.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/pmezard/go-difflib") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/pmezard/go-difflib/difflib" - #:unpack-path "github.com/pmezard/go-difflib/")) - (home-page "https://github.com/pmezard/go-difflib") - (synopsis "Go diff implementation") - (description "This package provides unified and context-aware diffs in Go.") - (license license:bsd-3))) - (define-public go-github-com-whyrusleeping-progmeter (let ((commit "f3e57218a75b913eff88d49a52c1debf9684ea04") (revision "0")) From 2f8db6f6b23785dc66da9b71b439ca92e4a7553c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 14:53:59 +0000 Subject: [PATCH 545/862] gnu: go-github-com-go-playground-universal-translator: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-go-playground-universal-translator): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I2f948b8025c39c48a84157fc605027e77978b69f --- gnu/packages/golang-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 38 ------------------------------------ 2 files changed, 39 insertions(+), 38 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 516c39d8af5..cd6f0c0a93a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4750,6 +4750,45 @@ implemented features include @end itemize") (license license:expat))) +(define-public go-github-com-go-playground-universal-translator + (package + (name "go-github-com-go-playground-universal-translator") + (version "0.18.1") + (home-page "https://github.com/go-playground/universal-translator") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lgz9wrkcfx6q3x6i9fprr8rfwnk0c6x61jgzacgikbmzsl7dw6v")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-playground/universal-translator")) + (propagated-inputs + (list go-github-com-go-playground-locales)) + (synopsis "Translator using Unicode CLDR data and pluralization rules") + (description + "This package offers an Internalization Translator for Go using +@uref{http://cldr.unicode.org/, Unicode CLDR Project} data and pluralization +rules. Its currently implemented features include + +@itemize +@item Rules generated from the CLDR data, v30.0.3 +@item Contains Cardinal, Ordinal and Range Plural Rules +@item Contains Month, Weekday and Timezone translations built in +@item Contains Date & Time formatting functions +@item Contains Number, Currency, Accounting and Percent formatting functions +@item Supports the \"Gregorian\" calendar only +@item Support loading translations from files +@item Exporting translations to file(s), mainly for getting them +professionally translated +@end itemize") + (license license:expat))) + (define-public go-github-com-go-sql-driver-mysql (package (name "go-github-com-go-sql-driver-mysql") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b850eced26b..993ed6f1091 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2097,44 +2097,6 @@ Under Windows, the console APIs are used. Otherwise, ANSI texts are output.") specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.") (license license:expat))) -(define-public go-github-com-go-playground-universal-translator - (package - (name "go-github-com-go-playground-universal-translator") - (version "0.18.1") - (home-page "https://github.com/go-playground/universal-translator") - (source - (origin - (method git-fetch) - (uri (git-reference - (url home-page) - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1lgz9wrkcfx6q3x6i9fprr8rfwnk0c6x61jgzacgikbmzsl7dw6v")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/go-playground/universal-translator")) - (propagated-inputs - (list go-github-com-go-playground-locales)) - (synopsis "Translator using Unicode CLDR data and pluralization rules") - (description - "This package offers an Internalization Translator for Go using -@uref{http://cldr.unicode.org/, Unicode CLDR Project} data and pluralization -rules. Its currently implemented features include - -@itemize -@item Rules generated from the CLDR data, v30.0.3 -@item Contains Cardinal, Ordinal and Range Plural Rules -@item Contains Month, Weekday and Timezone translations built in -@item Contains Date & Time formatting functions -@item Contains Number, Currency, Accounting and Percent formatting functions -@item Supports the \"Gregorian\" calendar only -@item Support loading translations from files -@item Exporting translations to file(s), mainly for getting them -professionally translated -@end itemize") - (license license:expat))) - (define-public go-github-com-nathan-osman-go-sunrise (let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73") (revision "0")) From 0f809fe2368d19f3c34db1e08802088044ea768e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 14:57:52 +0000 Subject: [PATCH 546/862] gnu: go-github-com-leodido-go-urn: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-leodido-go-urn): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I8098e7c33aef472cd2ebbbf37713541caff45edc --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cd6f0c0a93a..47be0210d95 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7686,6 +7686,32 @@ structure. It can also produce a much more verbose, one-item-per-line representation suitable for computing diffs.") (license license:asl2.0))) +(define-public go-github-com-leodido-go-urn + (package + (name "go-github-com-leodido-go-urn") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/leodido/go-urn") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0bn9dj6y299jdh8szfim32yxj9zip38cqgv965dj23cixgr7baxb")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/leodido/go-urn")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/leodido/go-urn") + (synopsis "Parser for uniform resource names as seen on RFC 2141") + (description + "This package implements a parser for uniform resource names (URN) as +specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.") + (license license:expat))) + (define-public go-github-com-lestrrat-go-envload (package (name "go-github-com-lestrrat-go-envload") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 993ed6f1091..c6a8a2adf19 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2072,31 +2072,6 @@ Under Windows, the console APIs are used. Otherwise, ANSI texts are output.") ;; dual-licensed (license (list license:bsd-3 license:expat)))) -(define-public go-github-com-leodido-go-urn - (package - (name "go-github-com-leodido-go-urn") - (version "1.4.0") - (home-page "https://github.com/leodido/go-urn") - (source - (origin - (method git-fetch) - (uri (git-reference - (url home-page) - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0bn9dj6y299jdh8szfim32yxj9zip38cqgv965dj23cixgr7baxb")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/leodido/go-urn")) - (native-inputs - (list go-github-com-stretchr-testify)) - (synopsis "Parser for uniform resource names as seen on RFC 2141") - (description - "This package implements a parser for uniform resource names (URN) as -specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.") - (license license:expat))) - (define-public go-github-com-nathan-osman-go-sunrise (let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73") (revision "0")) From c62f29ae1d947290552367159b4dbb8d556a63d1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 15:02:08 +0000 Subject: [PATCH 547/862] gnu: go-github-com-kylelemons-godebug: Simplify. * gnu/packages/golang-xyz.scm (go-github-com-kylelemons-godebug) [arguments] : No go files in project's root. : Use default 'check. Change-Id: I420cb48ec6a51698eac47ae51dcdb455aeae4e49 --- gnu/packages/golang-xyz.scm | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 47be0210d95..75f68750a31 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7668,16 +7668,8 @@ allocation. @code{fastime} is returning the approximate time.") (build-system go-build-system) (arguments (list - #:import-path "github.com/kylelemons/godebug" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Replace when go-build-system supports nested path. - (delete 'build) - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:skip-build? #t + #:import-path "github.com/kylelemons/godebug")) (home-page "https://github.com/kylelemons/godebug") (synopsis "Pretty printer for Go values") (description From 5a5c60e149a1e41482a1baa7a5a8a964328e2099 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 15:20:50 +0000 Subject: [PATCH 548/862] gnu: Add go-github-com-ncruces-go-strftime. * gnu/packages/golang-xyz.scm (go-github-com-ncruces-go-strftime): New variable. Change-Id: I1110f06fd8d1aeea7e474cdff5a4070e725a2a0f --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 75f68750a31..32e4caa8f84 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9385,6 +9385,30 @@ varints.") very fast, and tries to be entropy pool friendly.") (license license:asl2.0))) +(define-public go-github-com-ncruces-go-strftime + (package + (name "go-github-com-ncruces-go-strftime") + (version "0.1.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ncruces/go-strftime") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rmr44m8mj5w9j1sy4c24b3n55lx2gwz1z3lb2g3p4qw87wv0j2g")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ncruces/go-strftime")) + (home-page "https://github.com/ncruces/go-strftime") + (synopsis "Implementation of strftime/strptime for Golang") + (description + "Package strftime provides strftime/strptime compatible time formatting +and parsing.") + (license license:expat))) + (define-public go-github-com-neurosnap-sentences (package (name "go-github-com-neurosnap-sentences") From ed2851874a3344388e12f7f56b662458f8543a90 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 15:27:48 +0000 Subject: [PATCH 549/862] gnu: Add go-github-com-ettle-strcase. * gnu/packages/golang-xyz.scm (go-github-com-ettle-strcase): New variable. Change-Id: If03c617cc98869a87397a01f48a41600d4a6c11f --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 32e4caa8f84..2b4dc18eda4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4090,6 +4090,36 @@ and @code{io.ReadCloser}) with overwrites " This package is a fork of dlclark/regexp2 providing a more similar API to regexp.")))) +(define-public go-github-com-ettle-strcase + (package + (name "go-github-com-ettle-strcase") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ettle/strcase") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gg3zxbbp3vfskzg2dl1s1agjn34dw14282fj28g9nrwqbbq854x")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ettle/strcase" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-benchmark + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "benchmark"))))))) + (home-page "https://github.com/ettle/strcase") + (synopsis "String naming convention style library") + (description + "Package strcase is a package for converting strings into various word +cases (e.g. snake_case, camelCase, kebab-case, etc).") + (license license:expat))) + (define-public go-github-com-expr-lang-expr (package (name "go-github-com-expr-lang-expr") From e5bf6db0a029354d705cc12af1f9e582d2342cdd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 15:32:44 +0000 Subject: [PATCH 550/862] gnu: Add go-go-simpler-org-sloglint. * gnu/packages/golang-check.scm (go-go-simpler-org-sloglint): New variable. Change-Id: I29f210fd6d57e4eaf14000410271e9b77c7a3767 --- gnu/packages/golang-check.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index d818a2b1f7d..14a30317c94 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1771,6 +1771,33 @@ and restore them afterwards.") @url{http://www.freebsd.org/cgi/man.cgi?query=fail,failpoints} for Golang.") (license license:asl2.0))) +(define-public go-go-simpler-org-sloglint + (package + (name "go-go-simpler-org-sloglint") + (version "0.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-simpler/sloglint") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0y5hw79hib5g4fwwr1qdr0k6424vhj0hfs0rj2kxlqfwr3sn99qk")))) + (build-system go-build-system) + (arguments + (list + #:import-path "go-simpler.org/sloglint")) + (propagated-inputs + (list go-github-com-ettle-strcase + go-golang-org-x-tools)) + (home-page "https://pkg.go.dev/go-simpler.org/sloglint") + (synopsis "Ensure consistent code style when using @code{log/slog}") + (description + "Package sloglint implements the sloglint analyzer. The @code{log/slog} +API allows two different types of arguments: key-value pairs and attributes.") + (license license:mpl2.0))) + (define-public go-golang-org-sql-mock (package (name "go-golang-org-sql-mock") From baba666a6f735d6855b6281042283ce525524236 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 15:44:39 +0000 Subject: [PATCH 551/862] gnu: Add go-github-com-ldez-tagliatelle. * gnu/packages/golang-check.scm (go-github-com-ldez-tagliatelle): New variable. Change-Id: I78d19e9c1afa21ac126b76ee7ec0222d11c4ff9a --- gnu/packages/golang-check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 14a30317c94..be36e7503f3 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1018,6 +1018,34 @@ differently.") testing of time-sensitive code.") (license license:expat))) +(define-public go-github-com-ldez-tagliatelle + (package + (name "go-github-com-ldez-tagliatelle") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ldez/tagliatelle") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s891pqzwivmhw7xfw0m8n8fcg90xiykcg808rr869iflbkdik9n")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ldez/tagliatelle")) + (propagated-inputs + (list go-github-com-ettle-strcase + go-github-com-hashicorp-go-immutable-radix-v2 + go-golang-org-x-tools)) + (home-page "https://github.com/ldez/tagliatelle") + (synopsis "Struct tags handling linter for Golang") + (description + "This package implement a functionality for validating tags according to +rules you define and fixing them according to the defined rules.") + (license license:asl2.0))) + (define-public go-github-com-maruel-panicparse (package (name "go-github-com-maruel-panicparse") From 0f510fc044b817285de6bcccfa0cd4573cc3db4b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 16:47:29 +0000 Subject: [PATCH 552/862] gnu: go-github-com-golangplus-testing: Fix tests. These changes need to be applied together to allow bootstrapping of missing inputs. * gnu/packages/golang-check.scm (go-github-com-golangplus-testing-bootstrap): New variable. (go-github-com-golangplus-testing) [native-inputs]: Add go-github-com-golangplus-bytes-bootstrap. * gnu/packages/golang-xyz.scm (go-github-com-golangplus-bytes): New variable. Change-Id: Ib97363281fc9a169a734a63197db70a3ce8f9d48 --- gnu/packages/golang-check.scm | 13 +++++++++++++ gnu/packages/golang-xyz.scm | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index be36e7503f3..3061731ad1b 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -631,12 +631,25 @@ package, but can be used in other contexts too.") (build-system go-build-system) (arguments '(#:import-path "github.com/golangplus/testing")) + (native-inputs + (list go-github-com-golangplus-bytes-bootstrap)) (propagated-inputs (list go-github-com-golangplus-fmt)) (synopsis "Additions to Go's standard testing package") (description "This package provides additions to Go's stdlib testing.") (license license:bsd-3))) +(define-public go-github-com-golangplus-testing-bootstrap + (hidden-package + (package + (inherit go-github-com-golangplus-testing) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "github.com/golangplus/testing")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-github-com-google-gofuzz (package (name "go-github-com-google-gofuzz") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2b4dc18eda4..e5bc0204402 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5215,6 +5215,42 @@ execution.") "The chardet package ports character set detection from ICU to Go.") (license license:expat))) +(define-public go-github-com-golangplus-bytes + (package + (name "go-github-com-golangplus-bytes") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golangplus/bytes") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r8f9m7hm6idnbapfb01nw5h09a20b09r7sky2gkniympn98ra75")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/golangplus/bytes")) + (native-inputs + (list go-github-com-golangplus-testing-bootstrap)) + (home-page "https://github.com/golangplus/bytes") + (synopsis "Extention to Golang standard @code{bytes} library.") + (description + "Package bytesp is a plus to the standard @code{bytes} package.") + (license license:bsd-3))) + +(define-public go-github-com-golangplus-bytes-bootstrap + (hidden-package + (package + (inherit go-github-com-golangplus-bytes) + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "github.com/golangplus/bytes")) + (native-inputs '()) + (propagated-inputs '())))) + (define-public go-github-com-gologme-log (package (name "go-github-com-gologme-log") From 48c8f5d31e62ee610c8b50e8f37a5da4c79b5313 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 17:02:44 +0000 Subject: [PATCH 553/862] gnu: go-github-com-urfave-cli-v2: Delete submodule. * gnu/packages/golang-xyz.scm (go-github-com-urfave-cli-v2) [source] : Delete submodule with it's own go.mod file to be packaged separately.. Change-Id: Ie1bbfe26b4fce14fbb7b3cb7403bb7bf89daee0f --- gnu/packages/golang-xyz.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e5bc0204402..3148fa45dd2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12017,7 +12017,14 @@ distributable command line applications in an expressive way.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "03237hi2jqvms9cif4varyap3j1dhzcf1mr809dm7ncvzk7gxg83")))) + (base32 "03237hi2jqvms9cif4varyap3j1dhzcf1mr809dm7ncvzk7gxg83")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/urfave/cli/v2/cmd/urfave-cli-genflags + (delete-file-recursively "cmd"))))) (arguments (list #:import-path "github.com/urfave/cli/v2")) (propagated-inputs From fc32b8ccf6a860898b80dfcd17432af08827ba13 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 16:47:40 +0000 Subject: [PATCH 554/862] gnu: go-github-com-saracen-walker: Update to 0.1.4. * gnu/packages/golang.scm (go-github-com-saracen-walker): Update to 0.1.4. Change-Id: Idd162928fffdb53637fb228f2381166ee1897a9a --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c6a8a2adf19..2f993ce0caa 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2219,7 +2219,7 @@ per-goroutine.") (define-public go-github-com-saracen-walker (package (name "go-github-com-saracen-walker") - (version "0.1.1") + (version "0.1.4") (source (origin (method git-fetch) @@ -2228,7 +2228,7 @@ per-goroutine.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1rq1lrp99lx7k1ysbfznn4c1iagnxdhb4lnnklsadnnzi3gvygqz")))) + (base32 "17i2zrbcp0zgwfgap555pk358wpqfa8qj8pmgwhjkzwd77nyl77g")))) (build-system go-build-system) (arguments `(#:import-path "github.com/saracen/walker")) From 2df183a12334ea4297ff871bfdb398bab38c6192 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 21:14:58 +0000 Subject: [PATCH 555/862] gnu: Add go-github-com-creasty-defaults. * gnu/packages/golang-xyz.scm (go-github-com-creasty-defaults): New variable. Change-Id: I4e96c9945a2e36e8f379db60b9e635f1389bd6b8 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3148fa45dd2..65f846b44d5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2905,6 +2905,34 @@ submodules: "The pty package provides functions for working with Unix pseudoterminals.") (license license:expat))) +(define-public go-github-com-creasty-defaults + (package + (name "go-github-com-creasty-defaults") + (version "1.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/creasty/defaults") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1avbm47ghqc6hiafv0c61mzrw9rajgszjyqh4yww916fqzaw8li3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/creasty/defaults")) + (home-page "https://github.com/creasty/defaults") + (synopsis "Initialize structs with default values") + (description + "This package implements functionlity to initialize structs with default +values. It supports almost all kind of types: @code{int/8/16/32/64}, +@code{uint/8/16/32/64}, @code{float32/64}, @code{uintptr}, @code{bool}, +@code{string}, @code{map}, @code{slice}, @code{struct}, +@code{f,map[K1]map[K2]Struct}, @code{}[]map[K1]Struct[]}, +@code{time.Duration}, @code{*SampleStruct}, and @code{*int}") + (license license:expat))) + (define-public go-github-com-cskr-pubsub (package (name "go-github-com-cskr-pubsub") From 8820e3856e5fa91980c1fe46cba48bacbfadb49e Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:20 +0100 Subject: [PATCH 556/862] gnu: Add go-github-com-fatih-structs. * gnu/packages/golang-xyz.scm (go-github-com-fatih-structs): New variable. Change-Id: I7c2f90845754991253fcfa9699746d98ac030ff1 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 65f846b44d5..e00245a4ec4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4269,6 +4269,29 @@ Alphanum Algorithm} developed by Dave Koelle in Go.") defined output to the standard output.") (license license:expat))) +(define-public go-github-com-fatih-structs + (package + (name "go-github-com-fatih-structs") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/fatih/structs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wrhb8wp8zpzggl61lapb627lw8yv281abvr6vqakmf569nswa9q")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/fatih/structs")) + (home-page "https://github.com/fatih/structs") + (synopsis "Utilities for Go structs") + (description "This package provides various utilitiy functions to work +with Go structs.") + (license license:expat))) + ;; XXX: This repository has been archived by the owner on Nov 9, 2017. It is ;; now read-only. (define-public go-github-com-flynn-archive-go-shlex From 51b39028ff7161e6a7fa479b1fb9fbaab7bcc5fa Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:21 +0100 Subject: [PATCH 557/862] gnu: Add go-github-com-guptarohit-asciigraph. * gnu/packages/golang-xyz.scm (go-github-com-guptarohit-asciigraph): New variable. Change-Id: I621a684ede58485940c354a049c1343fb6d2bd0b Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e00245a4ec4..b545649d2a6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5548,6 +5548,29 @@ which satisfies the cron expression.") provides a buffered io.Writer that is flushed at a timed interval.") (license license:expat))) +(define-public go-github-com-guptarohit-asciigraph + (package + (name "go-github-com-guptarohit-asciigraph") + (version "0.7.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/guptarohit/asciigraph") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j708hj80hk1b39zbdfx6kqy75i70jhz55bml0jngqwfx698d1pv")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/guptarohit/asciigraph")) + (home-page "https://github.com/guptarohit/asciigraph") + (synopsis "ASCII line graphs for Golang") + (description + "This package can generate ASCII line graphs in Golang.") + (license license:bsd-3))) + (define-public go-github-com-hanwen-go-fuse (package (name "go-github-com-hanwen-go-fuse") From 5c1d6d5b7164bc6d3c12db0b84c5061b8bfec968 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 15:19:08 +0000 Subject: [PATCH 558/862] gnu: Add go-github-com-goverter-patherr. * gnu/packages/golang-xyz.scm (go-github-com-goverter-patherr): New variable. Change-Id: Ieaf77a4f223282b549864df8ba9717fd8fa7b24e --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b545649d2a6..a54e96ea442 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5548,6 +5548,30 @@ which satisfies the cron expression.") provides a buffered io.Writer that is flushed at a timed interval.") (license license:expat))) +(define-public go-github-com-goverter-patherr + (package + (name "go-github-com-goverter-patherr") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/goverter/patherr") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zjcyva959ir23rgk2rvc7ivlyan9dh2rqw7hl03h6xq935zznjq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/goverter/patherr")) + (home-page "https://github.com/goverter/patherr") + (synopsis "Implementation for Goverter's wrapErrorsUsing") + (description + "This package provides an implementation for the goverter feature +@code{wrapErrorsUsing}.") + (license license:expat))) + (define-public go-github-com-guptarohit-asciigraph (package (name "go-github-com-guptarohit-asciigraph") From bbfa7177c9379f63ca75e61ecc8066abc5af22d3 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:22 +0100 Subject: [PATCH 559/862] gnu: Add go-github-com-jmattheis-goverter. * gnu/packages/golang-xyz.scm (go-github-com-jmattheis-goverter): New variable. Change-Id: Ia6cb4b01bdb42fa819aff9badd7abcb532d2381c Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a54e96ea442..9c2324b0e4f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7193,6 +7193,51 @@ way of specifying command line options.") struct to another.") (license license:expat))) +(define-public go-github-com-jmattheis-goverter + (package + (name "go-github-com-jmattheis-goverter") + (version "1.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jmattheis/goverter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ph8470wxpf8p2cdr5w3hkchlgpiyzljlsdna9jvhgw53sf2c32n")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jmattheis/goverter" + ;; Test requiring compplex set-up, fails during build but passed outside + ;; build-system. + #:test-flags #~(list "-skip" "TestScenario") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-broken-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file-recursively + (list "example/enum/transform-custom" + "example/wrap-errors-using" + "example/protobuf")))))))) + (native-inputs + (list go-github-com-stretchr-testify + go-github-com-goverter-patherr)) + (propagated-inputs + (list go-github-com-dave-jennifer + go-golang-org-x-tools + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/jmattheis/goverter") + (synopsis "Type-safe Go converters by defining function signatures") + (description + "This package provides a functionality to generate type-safe converters +for Go. The project is meant as alternative to +@url{https://github.com/jinzhu/copier, jinzhu/copier} that doesn't use +reflection.") + (license license:expat))) + (define-public go-github-com-jmoiron-sqlx (package (name "go-github-com-jmoiron-sqlx") From 648754c3203a8dcbdbf23972f57499821afddbe3 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:23 +0100 Subject: [PATCH 560/862] gnu: Add go-github-com-vburenin-ifacemaker. * gnu/packages/golang-xyz.scm (go-github-com-vburenin-ifacemaker, go-ifacemaker): New variables. Change-Id: Iab364ac8a7108585009cefbe06fd0558265e806d Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9c2324b0e4f..bf57e98066e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12176,6 +12176,38 @@ distributable command line applications in an expressive way.") go-github-com-xrash-smetrics go-gopkg-in-yaml-v3)))) +(define-public go-github-com-vburenin-ifacemaker + (package + (name "go-github-com-vburenin-ifacemaker") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vburenin/ifacemaker") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00031373i4xqrsaf7yv93czfmcf5qzn94mmqwamyjd6gpq37p1hl")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/vburenin/ifacemaker")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-jessevdk-go-flags + go-golang-org-x-tools)) + (home-page "https://github.com/vburenin/ifacemaker") + (synopsis "Generate interfaces from structure methods in Golang") + (description + "This is a development helper program that generates a Golang interface +by inspecting the structure methods of an existing @code{.go} file. The +primary use case is to generate interfaces for gomock, so that gomock can +generate mocks from those interfaces.") + (license license:asl2.0))) + (define-public go-github-com-viant-toolbox (package (name "go-github-com-viant-toolbox") @@ -14148,6 +14180,17 @@ correctly."))) (string-append (package-description go-zgo-at-jfmt) " This package provides a command line interface (CLI) tool.")))) +(define-public go-ifacemaker + (package/inherit go-github-com-vburenin-ifacemaker + (name "go-ifacemaker") + (arguments + (list #:install-source? #f + #:tests? #f + #:import-path "github.com/vburenin/ifacemaker")) + (description + (string-append (package-description go-github-com-vburenin-ifacemaker) + " This package provides a command line interface (CLI) tool.")))) + (define-public go-msgio (package (inherit go-github-com-libp2p-go-msgio) From dce568c1a48730cc76ce672b9f96e1b65c9dd6b4 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:24 +0100 Subject: [PATCH 561/862] gnu: Add go-github-com-jedib0t-go-pretty-v6. * gnu/packages/golang-xyz.scm (go-github-com-jedib0t-go-pretty-v6): New variable. Change-Id: I5620f3c56d1847611d3c4c91a4c429de37f32ea3 Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index bf57e98066e..f9d805e61f0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7141,6 +7141,39 @@ as work arounds until issues are addressed in the official distribution.") "NLP-related string utility functions for Golang.") (license license:expat))) +(define-public go-github-com-jedib0t-go-pretty-v6 + (package + (name "go-github-com-jedib0t-go-pretty-v6") + (version "6.6.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jedib0t/go-pretty") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sy8fia04lxi07yga7z3h3fp19y4bla5p16v1n7ldip0ymdmvjnx")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/jedib0t/go-pretty/v6")) + (native-inputs + (list go-github-com-pkg-profile ; for the CLI + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-mattn-go-runewidth + go-golang-org-x-sys + go-golang-org-x-term + go-golang-org-x-text)) + (home-page "https://github.com/jedib0t/go-pretty") + (synopsis "Table-writer and more in Golang") + (description + "Utilities to prettify console output of tables, lists, progress-bars, +text, etc. with a heavy emphasis on customization.") + (license license:expat))) + (define-public go-github-com-jessevdk-go-flags (package (name "go-github-com-jessevdk-go-flags") From bb451548f1f28db6d62bfb03f193e127a7de0215 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:28 +0100 Subject: [PATCH 562/862] gnu: Add go-github-com-bool64-dev. * gnu/packages/golang-check.scm (go-github-com-bool64-dev): New variable. Change-Id: I6fce0b2cf64735ce2719d32063a37af2184aecf3 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-check.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 3061731ad1b..e51cf1bf90e 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -178,6 +178,30 @@ github.com/sergi/go-diff, mainly for diffing strings in tests.") results, converting test names WrittenInCamelCase into ordinary sentences.") (license license:expat))) +(define-public go-github-com-bool64-dev + (package + (name "go-github-com-bool64-dev") + (version "0.2.37") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bool64/dev") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "041ng9z0qbmbj0l7lpj55d681b7p35lrr8vcyv3iqc1m6jzqqg5q")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bool64/dev")) + (home-page "https://github.com/bool64/dev") + (synopsis "Go development helpers") + (description + "This package provides scripts and workflows to automate common routines +for Golang projects via modular Makefiles and GitHub Actions.") + (license license:expat))) + (define-public go-github-com-caarlos0-testfs (package (name "go-github-com-caarlos0-testfs") From 395b3cf94102dcf558e41888c571b56580a9f087 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:29 +0100 Subject: [PATCH 563/862] gnu: Add go-github-com-bool64-shared. * gnu/packages/golang-check.scm (go-github-com-bool64-shared): New variable. Change-Id: Ib6b26619e2065e3a40ccae59f821aabffa2b00a0 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-check.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index e51cf1bf90e..88f2ff0d590 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -202,6 +202,33 @@ results, converting test names WrittenInCamelCase into ordinary sentences.") for Golang projects via modular Makefiles and GitHub Actions.") (license license:expat))) +(define-public go-github-com-bool64-shared + (package + (name "go-github-com-bool64-shared") + (version "0.1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bool64/shared") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "157k7vw9cq84i5yy8bab8n1dk2lc9cmz8kjjy710ic9lwridmnf8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bool64/shared")) + (native-inputs + (list go-github-com-bool64-dev + go-github-com-stretchr-testify)) + (home-page "https://github.com/bool64/shared") + (synopsis "Share variables between test helpers in Golang") + (description + "This package provides a contract to share variables between test helpers +in Golang.") + (license license:expat))) + (define-public go-github-com-caarlos0-testfs (package (name "go-github-com-caarlos0-testfs") From dfa1d566c2eb32bf5623e097a00389c72793731f Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:30 +0100 Subject: [PATCH 564/862] gnu: Add go-github-com-iancoleman-orderedmap. * gnu/packages/golang-xyz.scm (go-github-com-iancoleman-orderedmap): New variable. Change-Id: Ifdc4e1b26beba3813dfebe64b31d882180739d47 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f9d805e61f0..64b92c5604d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6275,6 +6275,30 @@ the C++ ABI defined at https://codesourcery.com/cxx-abi/ and the ABI}.") (license license:bsd-3))) +(define-public go-github-com-iancoleman-orderedmap + (package + (name "go-github-com-iancoleman-orderedmap") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/iancoleman/orderedmap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rkahhb86ngvzjmdlrpw9rx24a0b1yshq2add1ry2ii6nkx0xbfs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/iancoleman/orderedmap")) + (home-page "https://github.com/iancoleman/orderedmap") + (synopsis "Ordered map in Golang") + (description + "This package provides a Golang data type for ordered maps where the keys +keep the order that they're added. It can be de/serialized from/to JSON.") + (license license:expat))) + (define-public go-github-com-iancoleman-strcase (package (name "go-github-com-iancoleman-strcase") From 929be156d860f34723e9b0761bd5112852d106da Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:31 +0100 Subject: [PATCH 565/862] gnu: Add go-github-com-yosuke-furukawa-json5. * gnu/packages/golang-xyz.scm (go-github-com-yosuke-furukawa-json5): New variable. Change-Id: Icac16f1dd4c696b5c701e3208e46b83cd9804fe1 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 64b92c5604d..56f5a1b3029 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12804,6 +12804,34 @@ the Jaro distance, the Jaro-Winkler distance, and more.") detection.") (license license:asl2.0))) +;; XXX: The latest release v0.1.1 was in 2014, master branch has more changes +;; since that time, use the latest commit. +(define-public go-github-com-yosuke-furukawa-json5 + (let ((commit "cf7bb3f354ffe5d5ad4c9b714895eab7e0498b5f") + (revision "0")) + (package + (name "go-github-com-yosuke-furukawa-json5") + (version (git-version "0.1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yosuke-furukawa/json5") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05h9ipfjr2ww8b89zq1sm1q9wfasjnmzwlxa241wppqajn3rvr7s")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/yosuke-furukawa/json5")) + (home-page "https://github.com/yosuke-furukawa/json5") + (synopsis "JSON5 implemented in Golang") + (description + "This package provides an implementation of +@url{https://github.com/yosuke-furukawa/json5, JSON5}.") + (license license:bsd-3)))) + (define-public go-github-com-yuin-gopher-lua (package (name "go-github-com-yuin-gopher-lua") From 4aa828cabed99dcbe6e614579c4c486491b31aa5 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:33 +0100 Subject: [PATCH 566/862] gnu: Add go-github-com-yudai-golcs. * gnu/packages/golang-xyz.scm (go-github-com-yudai-golcs): New variable. Change-Id: I3ce09b85717bfccf1d4faf8ddc28542508be08ba Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 56f5a1b3029..508a62e4ec5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12832,6 +12832,30 @@ detection.") @url{https://github.com/yosuke-furukawa/json5, JSON5}.") (license license:bsd-3)))) +(define-public go-github-com-yudai-golcs + (package + (name "go-github-com-yudai-golcs") + (version "0.0.0-20170316035057-ecda9a501e82") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yudai/golcs") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mx6wc5fz05yhvg03vvps93bc5mw4vnng98fhmixd47385qb29pq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/yudai/golcs")) + (home-page "https://github.com/yudai/golcs") + (synopsis "Calculate @acronym{LCS, longest common sequence} in Golang") + (description + "This package provides functions to calculate @acronym{LCS, longest +common sequence} values from two arbitrary arrays.") + (license license:expat))) + (define-public go-github-com-yuin-gopher-lua (package (name "go-github-com-yuin-gopher-lua") From 24c8a97c3cd024c8f76209a25d44e5f5aeaeae2b Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:34 +0100 Subject: [PATCH 567/862] gnu: Add go-github-com-yudai-gojsondiff. * gnu/packages/golang-xyz.scm (go-github-com-yudai-gojsondiff): New variable. Change-Id: I26c56581e3d181d8657ed50f9ba43ca84225cd7e Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 508a62e4ec5..9a444ec68f0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12832,6 +12832,40 @@ detection.") @url{https://github.com/yosuke-furukawa/json5, JSON5}.") (license license:bsd-3)))) +(define-public go-github-com-yudai-gojsondiff + (package + (name "go-github-com-yudai-gojsondiff") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yudai/gojsondiff") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qnymi0027mb8kxm24mmd22bvjrdkc56c7f4q3lbdf93x1vxbbc2")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "vendor"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/yudai/gojsondiff" + #:test-subdirs #~(list "formatter/..."))) + (native-inputs + (list go-github-com-onsi-ginkgo)) + (propagated-inputs + (list go-github-com-sergi-go-diff + go-github-com-yudai-golcs)) + (home-page "https://github.com/yudai/gojsondiff") + (synopsis "JSON Diff and Patch for Golang") + (description + "This package implements a \"diff\" algorithm that compares two JSON +objects and generates deltas that describe the differences between them. The +deltas can be applied to a JSON object to \"patch\" them.") + (license license:expat))) + (define-public go-github-com-yudai-golcs (package (name "go-github-com-yudai-golcs") From 18ac047ca0f4572ab544341685dcd1ceb27c3e99 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:35 +0100 Subject: [PATCH 568/862] gnu: Add go-github-com-swaggest-assertjson. * gnu/packages/golang-check.scm (go-github-com-swaggest-assertjson): New variable. Change-Id: Ib679c647d68c03bcd941ec6b475cc0745c6dc236 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-check.scm | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 88f2ff0d590..c89cd5ee61b 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1578,6 +1578,45 @@ Features include: strings must or must not be sent to a given local UDP listener.") (license license:expat))) +(define-public go-github-com-swaggest-assertjson + (package + (name "go-github-com-swaggest-assertjson") + (version "1.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/swaggest/assertjson") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0smxcs548dnchqqk4bys167xaawzz125qsvlvpa267fkhqrxk7f9")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/swaggest/assertjson" + #:test-flags #~(list "-skip" "TestEquals_message") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file + (list "example_test.go")))))))) + (native-inputs + (list go-github-com-bool64-dev + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-bool64-shared + go-github-com-iancoleman-orderedmap + go-github-com-yosuke-furukawa-json5 + go-github-com-yudai-gojsondiff)) + (home-page "https://github.com/swaggest/assertjson") + (synopsis "JSON equality assertions for Golang") + (description + "This package provides JSON equality assertions for Golang.") + (license license:expat))) + (define-public go-github-com-tdewolff-test (package (name "go-github-com-tdewolff-test") From 8ccad2041bf503fad140ebcadf116e79cf012c78 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:36 +0100 Subject: [PATCH 569/862] gnu: Add go-github-com-hetznercloud-hcloud-go-v2. * gnu/packages/golang-web.scm (go-github-com-hetznercloud-hcloud-go-v2): New variable. Change-Id: I539fb9435e38e311a9456f0224be02bb99ed75d1 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-web.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 0f26d5b9042..a3e44ceb0b4 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -67,6 +67,7 @@ #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages ipfs) + #:use-module (gnu packages prometheus) #:use-module (gnu packages tls) #:use-module (gnu packages web)) @@ -3581,6 +3582,39 @@ Features: @end itemize") (license license:mpl2.0))) +(define-public go-github-com-hetznercloud-hcloud-go-v2 + (package + (name "go-github-com-hetznercloud-hcloud-go-v2") + (version "2.17.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hetznercloud/hcloud-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rmrp100clcymz6j741dpvx217d6ljnfqn9qfndlmy9rwi64ih8h")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/hetznercloud/hcloud-go/v2")) + (native-inputs + (list go-github-com-google-go-cmp + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-jmattheis-goverter + go-github-com-prometheus-client-golang + go-github-com-vburenin-ifacemaker + go-golang-org-x-crypto + go-golang-org-x-net)) + (home-page "https://github.com/hetznercloud/hcloud-go") + (synopsis "Golang library for the Hetzner Cloud API") + (description + "This package provides a library for the Hetzner Cloud API.") + (license license:expat))) + (define-public go-github-com-hjson-hjson-go-v4 (package (name "go-github-com-hjson-hjson-go-v4") From 19f982a7d1dcbb1f50832abcfba776afd166f53c Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Sun, 29 Dec 2024 13:14:37 +0100 Subject: [PATCH 570/862] gnu: Add hetznercloud-cli. * gnu/packages/admin.scm (hetznercloud-cli): New variable. Change-Id: I7c7637a33d96ecb5fc4cfe6affe3f3aa469bb3e5 Signed-off-by: Sharlatan Hellseher --- gnu/packages/admin.scm | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 46f216bd344..d0cf24a3c53 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -147,7 +147,9 @@ #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-compression) + #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages groff) #:use-module (gnu packages gtk) @@ -284,6 +286,53 @@ usual file attributes can be checked for inconsistencies.") (home-page "https://aide.github.io/") (license license:gpl2+))) +(define-public hetznercloud-cli + (package + (name "hetznercloud-cli") + (version "1.49.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hetznercloud/cli") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mgd1rv0i18h7jbzl034ffpfxvnjirp60qwxsjpfy42jh1d8xbjm")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; XXX: figure out hot to enable them + #:install-source? #f + #:import-path "github.com/hetznercloud/cli/cmd/hcloud" + #:unpack-path "github.com/hetznercloud/cli")) + (native-inputs + (list go-github-com-burntsushi-toml + go-github-com-cheggaaa-pb-v3 + go-github-com-dustin-go-humanize + go-github-com-fatih-color + go-github-com-fatih-structs + go-github-com-goccy-go-yaml + go-github-com-guptarohit-asciigraph + go-github-com-hetznercloud-hcloud-go-v2 + go-github-com-jedib0t-go-pretty-v6 + go-github-com-spf13-cast + go-github-com-spf13-cobra + go-github-com-spf13-pflag + go-github-com-spf13-viper + go-github-com-stretchr-testify + go-github-com-swaggest-assertjson + go-go-uber-org-mock + go-golang-org-x-crypto + go-golang-org-x-term)) + (home-page "https://github.com/hetznercloud/cli") + (synopsis "Command-line interface for the Hetzner Cloud service") + (description + "This package provides the @code{hcloud} binary, a command-line interface +for interacting with the @url{https://www.hetzner.com/,Hetzner Cloud} +service.") + (license license:expat))) + (define-public progress (package (name "progress") From f8f921963c9ff88f1993d520878413c99e4a5eb9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 17:22:26 +0000 Subject: [PATCH 571/862] gnu: Update copyright headers. * gnu/packages/admin.scm: Add copyright line for Roman Scherer . * gnu/packages/golang-check.scm: Likewise. * gnu/packages/golang-web.scm: Likewise. * gnu/packages/golang-xyz.scm: Likewise. Change-Id: Ie9f9a0d1e72f5155d101c50ebd8e3178650e6f26 --- gnu/packages/admin.scm | 1 + gnu/packages/golang-check.scm | 1 + gnu/packages/golang-web.scm | 1 + gnu/packages/golang-xyz.scm | 1 + 4 files changed, 4 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index d0cf24a3c53..6f688fd3660 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -70,6 +70,7 @@ ;;; Copyright © 2024 Vinicius Monego ;;; Copyright © 2024 nathan ;;; Copyright © 2024 Nikita Domnitskii +;;; Copyright © 2024 Roman Scherer ;;; Copyright © 2024 Ashish SHUKLA ;;; Copyright © 2024 Ashvith Shetty ;;; Copyright © 2025 Dariqq diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index c89cd5ee61b..ac20594a452 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2024 Herman Rimm ;;; Copyright © 2024 Sharlatan Hellseher ;;; Copyright © 2024 Troy Figiel +;;; Copyright © 2024 Roman Scherer ;;; ;;; This file is part of GNU Guix. ;;; diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index a3e44ceb0b4..650b4aca632 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -36,6 +36,7 @@ ;;; Copyright © 2024 Jesse Eisses ;;; Copyright © 2024 Troy Figiel ;;; Copyright © 2024 Herman Rimm +;;; Copyright © 2024 Roman Scherer ;;; ;;; This file is part of GNU Guix. ;;; diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9a444ec68f0..87aaf91b637 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -55,6 +55,7 @@ ;;; Copyright © 2024 Spencer Peters ;;; Copyright © 2024 Troy Figiel ;;; Copyright © 2024 gemmaro +;;; Copyright © 2024 Roman Scherer ;;; ;;; This file is part of GNU Guix. ;;; From 73ddd3a023af5d4767e8cae72247b3dac040949a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 19:12:38 +0000 Subject: [PATCH 572/862] gnu: Add go-github-com-kolo-xmlrpc. * gnu/packages/golang-web.scm (go-github-com-kolo-xmlrpc): New variable. Change-Id: Ifcb3446bdf5740d92af5346a6d653c9245d6a239 --- gnu/packages/golang-web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 650b4aca632..1d27e740f0c 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4135,6 +4135,32 @@ jsoniter and variable type declarations (if any). jsoniter interfaces gives router.") (license license:bsd-3))) +(define-public go-github-com-kolo-xmlrpc + (package + (name "go-github-com-kolo-xmlrpc") + (version "0.0.0-20220921171641-a4b6fa1dd06b") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kolo/xmlrpc") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nhcnqycdc52k4ymdd4g2chcimsnvr86m0yx13ws91qxs5pgs9d2")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kolo/xmlrpc")) + (propagated-inputs + (list go-golang-org-x-text)) + (home-page "https://github.com/kolo/xmlrpc") + (synopsis "Implementation of XMLRPC protocol in Golang") + (description + "This package provides an implementation of client side part of XMLRPC +protocol in Go language.") + (license license:expat))) + (define-public go-github-com-koron-go-ssdp (package (name "go-github-com-koron-go-ssdp") From 616e2b026cf9bceaac628a547f095ea39705e260 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 19:17:36 +0000 Subject: [PATCH 573/862] gnu: Add go-github-com-nrdcg-goinwx. * gnu/packages/golang-web.scm (go-github-com-nrdcg-goinwx): New variable. Change-Id: I5ceb2c58bb3286c3a7e603fce0caef048a9e87bb --- gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 1d27e740f0c..c5ee1f62c16 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5363,6 +5363,35 @@ multistream-select protocol. The protocol is defined at 2616} HTTP/1.1 standard.") (license license:bsd-3))) +(define-public go-github-com-nrdcg-goinwx + (package + (name "go-github-com-nrdcg-goinwx") + (version "0.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nrdcg/goinwx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ld3spdi7q8cf4hf0wnbl7gyw2k8n4wp03fqncjx2gw2nsjng684")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/nrdcg/goinwx")) + (propagated-inputs + (list + go-github-com-fatih-structs + go-github-com-kolo-xmlrpc + go-github-com-mitchellh-mapstructure)) + (home-page "https://github.com/nrdcg/goinwx") + (synopsis "INWX Go API client") + (description + "This go library implements some parts of the official +@url{https://www.inwx.com/en/help/apidoc, INWX XML-RPC API}.") + (license license:expat))) + (define-public go-github-com-nwidger-jsoncolor (package (name "go-github-com-nwidger-jsoncolor") From 00c6a414821254413405a9912a7e087ae838fbc4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 19:53:13 +0000 Subject: [PATCH 574/862] gnu: Add go-github-com-johncgriffin-overflow. * gnu/packages/golang-maths.scm (go-github-com-johncgriffin-overflow): New variable. Change-Id: I885f4eefbeaf0e41b7add3e6469a0192d2950482 --- gnu/packages/golang-maths.scm | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index 957e625cdf9..b14533c1699 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -115,6 +115,47 @@ and GCC’s decimal extension.") (list #:import-path "github.com/cockroachdb/apd/v3")))) +(define-public go-github-com-johncgriffin-overflow + (package + (name "go-github-com-johncgriffin-overflow") + (version "0.0.0-20211019200055-46fa312c352c") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JohnCGriffin/overflow") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1g4sfhdmzjl5vr16lfv7nv042w8dbz608bwzyvf7xlw4i7ypjjpq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/JohnCGriffin/overflow" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'generate-impl + ;; Note that because Go has no template types, the majority of + ;; repetitive code is generated by overflow_template.sh. If you + ;; have to change an algorithm, change it there and regenerate the + ;; Go code. + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "overflow_template.sh" + (("/bin/sh") (which "sh"))) + (make-file-writable "overflow_impl.go") + (invoke "./overflow_template.sh") + (invoke "go" "generate"))))))) + (home-page "https://github.com/JohnCGriffin/overflow") + (synopsis "Check for int/int64/int32 arithmetic overflow in Golang") + (description + "This package offers overflow-checked integer arithmetic operations for +@code{int},@code{int32}, and @code{int64}. Each of the operations returns a +@code{result,bool} combination. This was prompted by the need to know when to +flow into higher precision types from the @code{math.big} library.") + ;; It's in README, see . + (license license:expat))) + (define-public go-github-com-montanaflynn-stats (package (name "go-github-com-montanaflynn-stats") From c6a575bade92c50b255a6ca51d2ea1a185ca91de Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 20:19:58 +0000 Subject: [PATCH 575/862] gnu: Add go-github-com-joho-godotenv. * gnu/packages/golang-xyz.scm (go-github-com-joho-godotenv): New variable. Change-Id: Ifb8235d5bc2772545ba7ec9ad1014e505f7a59e3 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 87aaf91b637..729badf6da6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7355,6 +7355,30 @@ just matching lines. This package proviedes a CLI tool and @code{colors} library.") (license license:bsd-2))) +(define-public go-github-com-joho-godotenv + (package + (name "go-github-com-joho-godotenv") + (version "1.5.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/joho/godotenv") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03vijs05k31jdf24pzj3vlk6b5jxf894v1kvzals4wzclyq2h3ch")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/joho/godotenv")) + (home-page "https://github.com/joho/godotenv") + (synopsis "Golang libary to load environment variables from @code{.env}") + (description + "This package provides a Go port of the Ruby's dotenv library +https://github.com/bkeepers/dotenv.") + (license license:expat))) + (define-public go-github-com-jonboulle-clockwork (package (name "go-github-com-jonboulle-clockwork") From 5d01c235487137bef3f353bebd2ee43a112aabba Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 20:38:20 +0000 Subject: [PATCH 576/862] gnu: doctl: Update to 1.120.0. * gnu/packages/admin.scm (doctl): Update to 1.120.0. [source] : Delete some bundled packages. [native-inputs]: Add go-golang-org-x-crypto, go-golang-org-x-mod, go-golang-org-x-net, go-golang-org-x-oauth2, go-golang-org-x-sync, go-golang-org-x-sys, go-golang-org-x-term, go-golang-org-x-text, go-golang-org-x-time, and go-golang-org-x-tools. Change-Id: I7b64ebb7023f8e0fbf445a085de42aa94934e96a --- gnu/packages/admin.scm | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 6f688fd3660..5b0473dafd9 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -6402,7 +6402,7 @@ file or files to several hosts.") (define-public doctl (package (name "doctl") - (version "1.94.0") + (version "1.120.0") (source (origin (method git-fetch) (uri (git-reference @@ -6411,7 +6411,12 @@ file or files to several hosts.") (file-name (git-file-name name version)) (sha256 (base32 - "0a221n0x7qrq0dbhhf1saya2g7jyy1798k3rhy9nzyvqzc4vnd0x")))) + "12fgymgiv6894ghar7ljg69hb7mi18pa2a74sp7fyymqvyhiv6z9")) + (snippet + ;; TODO: Unbundle more. + #~(begin (use-modules (guix build utils)) + (for-each delete-file-recursively + (list "vendor/golang.org")))))) (build-system go-build-system) (arguments (list #:import-path "github.com/digitalocean/doctl/cmd/doctl" @@ -6441,6 +6446,17 @@ file or files to several hosts.") "/etc/fish/completions/doctl.fish") (install-completion "zsh" "/etc/zsh/site-functions/_doctl")))))) + (native-inputs + (list go-golang-org-x-crypto + go-golang-org-x-mod + go-golang-org-x-net + go-golang-org-x-oauth2 + go-golang-org-x-sync + go-golang-org-x-sys + go-golang-org-x-term + go-golang-org-x-text + go-golang-org-x-time + go-golang-org-x-tools)) (home-page "https://github.com/digitalocean/doctl") (synopsis "Command line client for DigitalOcean") (description From 81e18fe086b74a95d05889e25b373895b611c16a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 20:41:22 +0000 Subject: [PATCH 577/862] gnu: go-github-com-saracen-walker: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-saracen-walker): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ib37b06d4712af1ec3937bb14f53f2adc46af490c --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 729badf6da6..22d587b29bf 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10958,6 +10958,32 @@ logging.") symbols in the style of Sublime Text, VSCode, @code{IntelliJ} IDEA et al.") (license license:expat))) +(define-public go-github-com-saracen-walker + (package + (name "go-github-com-saracen-walker") + (version "0.1.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/saracen/walker") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17i2zrbcp0zgwfgap555pk358wpqfa8qj8pmgwhjkzwd77nyl77g")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/saracen/walker")) + (inputs + (list go-golang-org-x-sync)) + (home-page "https://github.com/saracen/walker") + (synopsis "Faster, parallel version of Go's filepath.Walk") + (description + "The @code{walker} function is a faster, parallel version, of +@code{filepath.Walk}") + (license license:expat))) + (define-public go-github-com-satori-go-uuid (package (name "go-github-com-satori-go-uuid") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2f993ce0caa..ff65cb7a03b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2216,30 +2216,6 @@ per-goroutine.") (home-page "https://github.com/jtolds/gls") (license license:expat))) -(define-public go-github-com-saracen-walker - (package - (name "go-github-com-saracen-walker") - (version "0.1.4") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/saracen/walker") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "17i2zrbcp0zgwfgap555pk358wpqfa8qj8pmgwhjkzwd77nyl77g")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/saracen/walker")) - (inputs - (list go-golang-org-x-sync)) - (home-page "https://github.com/saracen/walker") - (synopsis "Faster, parallel version of Go's filepath.Walk") - (license license:expat) - (description "The @code{walker} function is a faster, parallel version, of -@code{filepath.Walk}"))) - (define-public gopls (package (name "gopls") From 07de0c94c1109142208096742ae01b5d8059e422 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 20:49:56 +0000 Subject: [PATCH 578/862] gnu: Add go-github-com-saracen-zipextra. * gnu/packages/golang-compression.scm (go-github-com-saracen-zipextra): New variable. Change-Id: I486302459e7bac7f919f0338ede1af1371a9db90 --- gnu/packages/golang-compression.scm | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index f73b1c11953..bdb9624c887 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -393,6 +393,37 @@ LZ4 data blocks. The implementation is based on the reference C go-github-com-pierrec-cmdflag go-github-com-schollz-progressbar-v3)))) +(define-public go-github-com-saracen-zipextra + (package + (name "go-github-com-saracen-zipextra") + (version "0.0.0-20220303013732-0187cb0159ea") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/saracen/zipextra") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j24jdi5495nfq08xm6yjr9s32z13x6y961ry1ihhhgi6s8zdddj")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/saracen/zipextra" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file "zipextra_example_test.go"))))))) + (home-page "https://github.com/saracen/zipextra") + (synopsis "Encoding and decoding ZIP archive format's \"Extra Fields\"") + (description + "This package provides a library for encoding and decoding ZIP archive +format's \"Extra Fields\". The intention is to eventually support and provide +a low-level API for the majority of PKWARE's and Info-ZIP's extra fields.") + (license license:expat))) + (define-public go-github-com-ulikunitz-xz (package (name "go-github-com-ulikunitz-xz") From 9da289ce201fd8213f571a6df7a877ebab4f603c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 22:34:11 +0000 Subject: [PATCH 579/862] gnu: go-github-com-klauspost-compress: Update to 1.17.11. * gnu/packages/golang-compression.scm (go-github-com-klauspost-compress): Update to 1.17.11. [arguments] : Remove 'fix-permissions. [propagated-inputs]: Remove go-github-com-golang-snappy. Change-Id: I65fc1e856fdd7b961e497a1538d5d0d242bcaedb --- gnu/packages/golang-compression.scm | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index bdb9624c887..ab32f28dc81 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -166,7 +166,7 @@ library included in the stdlib, and supports GIF, TIFF and PDF.") (define-public go-github-com-klauspost-compress (package (name "go-github-com-klauspost-compress") - (version "1.13.1") + (version "1.17.11") (source (origin (method git-fetch) @@ -175,20 +175,11 @@ library included in the stdlib, and supports GIF, TIFF and PDF.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0ydnf9rizlhm8rilh14674qqx272sbwbkjx06xn9pqvy6mmn2r3r")))) + (base32 "1i8r1xiba62nng651p4razxg1kw1910sl4grm7axm2g4q8s3i298")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/klauspost/compress" - #:phases - (modify-phases %standard-phases - (add-before 'reset-gzip-timestamps 'fix-permissions - (lambda* (#:key outputs #:allow-other-keys) - ;; Provide write permissions on gzip files so that - ;; reset-gzip-timestamps has sufficient permissions. - (for-each make-file-writable - (find-files (assoc-ref outputs "out") ".gz$"))))))) - (propagated-inputs - (list go-github-com-golang-snappy)) + (list + #:import-path "github.com/klauspost/compress")) (home-page "https://github.com/klauspost/compress") (synopsis "Go compression library") (description "@code{compress} provides various compression algorithms.") From 8f733800936ab217c85ec1cf307e4408c570fb63 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 22:33:40 +0000 Subject: [PATCH 580/862] gnu: Add go-github-com-saracen-fastzip. * gnu/packages/golang-compression.scm (go-github-com-saracen-fastzip): New variable. Change-Id: Idcc6bcaf6f665aa985202f8ecd56308be94efd98 --- gnu/packages/golang-compression.scm | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index ab32f28dc81..bc62277285b 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -29,6 +29,8 @@ #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-xyz)) ;;; Commentary: @@ -384,6 +386,48 @@ LZ4 data blocks. The implementation is based on the reference C go-github-com-pierrec-cmdflag go-github-com-schollz-progressbar-v3)))) +(define-public go-github-com-saracen-fastzip + (package + (name "go-github-com-saracen-fastzip") + (version "0.1.11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/saracen/fastzip") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1h63lhbwkga920n6lrh1ccfps2k4c3dn2pqap0i6mvjk6dba95s0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/saracen/fastzip")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-klauspost-compress + go-github-com-saracen-zipextra + go-golang-org-x-sync + go-golang-org-x-sys)) + (home-page "https://github.com/saracen/fastzip") + (synopsis "Zip archiver and extractor with a focus on speed") + (description + "Fastzip is an opinionated Zip archiver and extractor with a focus on +speed. +Features: +@itemize +@item archiving and extraction of files and directories can only occur within +a specified directory +@item permissions, ownership (uid, gid on linux/unix) and modification times +are preserved +@item buffers used for copying files are recycled to reduce allocations +@item files are archived and extracted concurrently +@item by default, @code{github.com/klauspost/compress/flate} library is used +for compression and decompression +@end itemize") + (license license:expat))) + (define-public go-github-com-saracen-zipextra (package (name "go-github-com-saracen-zipextra") From 1d0db2f9afa6248f70e99c5b145b5ff4c2b9b974 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 22:41:24 +0000 Subject: [PATCH 581/862] gnu: Remove go-github-com-dreamacro-go-shadowsocks2. Not in use by any other packages in Guix, project has been deleted in GitHub. * gnu/packages/golang.scm (go-github-com-dreamacro-go-shadowsocks2): Delete variable. Change-Id: I2ad9ab6cc23995f0ad3003c1f51b920af96e3fa6 --- gnu/packages/golang.scm | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ff65cb7a03b..7cdffa62738 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4746,36 +4746,6 @@ aware of your profiles and configuration in ~/.aws/config.") "This package provides INI file read and write functionality in Go.") (license license:asl2.0))) -(define-public go-github-com-dreamacro-go-shadowsocks2 - (package - (name "go-github-com-dreamacro-go-shadowsocks2") - (version "0.1.7") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/Dreamacro/go-shadowsocks2") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0sjr3r77fav6q0ii6dnp4px9gaz7cq861a0yxppvb6a58420bx3h")))) - (build-system go-build-system) - (arguments '(#:import-path "github.com/Dreamacro/go-shadowsocks2")) - (propagated-inputs (list go-golang-org-x-crypto)) - (home-page "https://github.com/Dreamacro/go-shadowsocks2") - (synopsis "Shadowsocks implementation in Go") - (description - "This package is @code{shadowsocks} implementation in Go - -Features: -@itemize -@item SOCKS5 proxy -@item Support for Netfilter TCP redirect (IPv6 should work but not tested) -@item UDP tunneling (e.g. relay DNS packets) -@item TCP tunneling (e.g. benchmark with iperf3) -@end itemize") - (license license:asl2.0))) - (define-public go-github-com-google-go-jsonnet (package (name "go-github-com-google-go-jsonnet") From 7685abec9eb69d64e9bd7005dc818673b8566dd4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 22:45:43 +0000 Subject: [PATCH 582/862] gnu: go-github-com-containerd-console: Update to 1.0.4. * gnu/packages/golang.scm (go-github-com-containerd-console): Update to 1.0.4. [propagated-inputs]: Remove labels. Change-Id: Ie23d0b7aaba6b24eb26da3ef4f8d549564e5e702 --- gnu/packages/golang.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7cdffa62738..c7225d66e97 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4544,7 +4544,7 @@ parser.") (define-public go-github-com-containerd-console (package (name "go-github-com-containerd-console") - (version "1.0.3") + (version "1.0.4") (source (origin (method git-fetch) @@ -4554,12 +4554,12 @@ parser.") (file-name (git-file-name name version)) (sha256 (base32 - "0pgx0y8x23jwc2f9jfk5hd5aslqk599nj6c7dj5846xvnkz2x7p2")))) + "1p10k6lwfxgij5a9i47dark8apffc6wn254dwj43ks8jr134854v")))) (build-system go-build-system) (arguments `(#:import-path "github.com/containerd/console")) (propagated-inputs - `(("golang.org/x/sys" ,go-golang-org-x-sys))) + (list go-golang-org-x-sys)) (home-page "https://github.com/containerd/console") (synopsis "Console package for Go") (description From 6d0f8af0f43cb501bd706f8dee9f83cb151bb1db Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 22:47:54 +0000 Subject: [PATCH 583/862] gnu: go-github-com-containerd-console: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-containerd-console): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ia6abf935788718ae023dd0395df26d417e7bf33c --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 22d587b29bf..149b7105830 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2673,6 +2673,32 @@ cgroup uses the OCI runtime-spec found go-golang-org-x-sys go-google-golang-org-protobuf)))) +(define-public go-github-com-containerd-console + (package + (name "go-github-com-containerd-console") + (version "1.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containerd/console") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1p10k6lwfxgij5a9i47dark8apffc6wn254dwj43ks8jr134854v")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/containerd/console")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/containerd/console") + (synopsis "Console package for Go") + (description + "This is Golang package for dealing with consoles. It has few +dependencies and a simple API.") + (license license:asl2.0))) + (define-public go-github-com-containerd-fifo (package (name "go-github-com-containerd-fifo") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c7225d66e97..5f719c252fd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4541,32 +4541,6 @@ parser.") @url{https://unicode.org/reports/tr29/, Unicode Standard Annex #29}.") (license license:expat))) -(define-public go-github-com-containerd-console - (package - (name "go-github-com-containerd-console") - (version "1.0.4") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/containerd/console") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1p10k6lwfxgij5a9i47dark8apffc6wn254dwj43ks8jr134854v")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/containerd/console")) - (propagated-inputs - (list go-golang-org-x-sys)) - (home-page "https://github.com/containerd/console") - (synopsis "Console package for Go") - (description - "This is Golang package for dealing with consoles. It has few -dependencies and a simple API.") - (license license:asl2.0))) - (define-public go-github-com-mtibben-percent (package (name "go-github-com-mtibben-percent") From 519f6436362a3c723c94347a9f6eba9e8cb2d44e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 22:53:07 +0000 Subject: [PATCH 584/862] gnu: Add go-github-com-containerd-btrfs-v2. * gnu/packages/golang-xyz.scm (go-github-com-containerd-btrfs-v2): New variable. Change-Id: I47c8158ad6cb24e9dd56c02b2d64d498491848e4 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 149b7105830..b4fc25931df 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2566,6 +2566,33 @@ locale can be selected.") the Go language features.") (license license:asl2.0))) +(define-public go-github-com-containerd-btrfs-v2 + (package + (name "go-github-com-containerd-btrfs-v2") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containerd/btrfs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05xwni5gvg5nka1n6lbx7mah0iykz2jw7ca010r33djcn4i8r5bs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/containerd/btrfs/v2")) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/containerd/btrfs") + (synopsis "Btrfs bindings for Go") + (description + "Package btrfs provides bindings for working with btrfs partitions from +Go. The Linux kernel headers are only required on compilation time, not on +run time.") + (license license:asl2.0))) + (define-public go-github-com-containerd-cgroups (package (name "go-github-com-containerd-cgroups") From 85465e73e91e22bc68cd157094d34a620a9bf8bb Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 22:55:49 +0000 Subject: [PATCH 585/862] gnu: go-github-com-rivo-uniseg: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-rivo-uniseg): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I949ac20c547ec55a59b445c28ad868af36d70f18 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b4fc25931df..fced56578d6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10814,6 +10814,30 @@ routines querying a database but without sending too much queries in order to not overload the given database.") (license license:expat))) +(define-public go-github-com-rivo-uniseg + (package + (name "go-github-com-rivo-uniseg") + (version "0.4.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rivo/uniseg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nlcqyvq4vhq3hqhk84h6fp0jbqkjj88kcpcl853yr7sh4sisdxc")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/rivo/uniseg")) + (home-page "https://github.com/rivo/uniseg") + (synopsis "Unicode Text Segmentation for Go") + (description + "This package implements Unicode Text Segmentation according to +@url{https://unicode.org/reports/tr29/, Unicode Standard Annex #29}.") + (license license:expat))) + (define-public go-github-com-rogpeppe-fastuuid (package (name "go-github-com-rogpeppe-fastuuid") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5f719c252fd..3c916dd0c29 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4519,28 +4519,6 @@ programming language.") parser.") (license license:bsd-2))) -(define-public go-github-com-rivo-uniseg - (package - (name "go-github-com-rivo-uniseg") - (version "0.4.7") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rivo/uniseg") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0nlcqyvq4vhq3hqhk84h6fp0jbqkjj88kcpcl853yr7sh4sisdxc")))) - (build-system go-build-system) - (arguments '(#:import-path "github.com/rivo/uniseg")) - (home-page "https://github.com/rivo/uniseg") - (synopsis "Unicode Text Segmentation for Go") - (description - "This package implements Unicode Text Segmentation according to -@url{https://unicode.org/reports/tr29/, Unicode Standard Annex #29}.") - (license license:expat))) - (define-public go-github-com-mtibben-percent (package (name "go-github-com-mtibben-percent") From 3d1843dc2779b937a2114a240760bba9302a0ff8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 22:59:56 +0000 Subject: [PATCH 586/862] gnu: go-github-com-rivo-tview: Update to 0.0.0-20241227133733-17b7edb88c57. * gnu/packages/golang.scm (go-github-com-rivo-tview): Update to 0.0.0-20241227133733-17b7edb88c57. [propagated-inputs]: Remove go-golang-org-x-term, go-golang-org-x-sys, and go-github-com-mattn-go-runewidth. Change-Id: I63314e96439261727d392ae6d5979e8c04265bd0 --- gnu/packages/golang.scm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3c916dd0c29..3bcb28d85fc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3385,7 +3385,7 @@ Go library.") (define-public go-github-com-rivo-tview (package (name "go-github-com-rivo-tview") - (version "0.0.0-20220703182358-a13d901d3386") + (version "0.0.0-20241227133733-17b7edb88c57") (source (origin (method git-fetch) (uri (git-reference @@ -3394,16 +3394,14 @@ Go library.") (file-name (git-file-name name version)) (sha256 (base32 - "0gf1m3ndbc3kgxpv0ryq9a1ahijg6m896sc9k7dvwfjd8vy0q0yd")))) + "1w59vyvs8k5mzl7k39zpwcwwdgam2pbz0rnrfnnjgvkld1rh81dc")))) (build-system go-build-system) (arguments (list #:import-path "github.com/rivo/tview")) - (propagated-inputs (list go-golang-org-x-term - go-golang-org-x-sys - go-github-com-rivo-uniseg - go-github-com-mattn-go-runewidth - go-github-com-lucasb-eyer-go-colorful - go-github-com-gdamore-tcell-v2)) + (propagated-inputs + (list go-github-com-gdamore-tcell-v2 + go-github-com-lucasb-eyer-go-colorful + go-github-com-rivo-uniseg)) (home-page "https://github.com/rivo/tview") (synopsis "Rich Interactive Widgets for Terminal UIs") (description From 09f03a4adb85086b195b2df26dd3c1d24b89fc3e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 23:01:01 +0000 Subject: [PATCH 587/862] gnu: go-github-com-rivo-tview: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-rivo-tview): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: If3a3daa2a26594c1a2d2a336a22e85a2c62a0011 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/golang.scm | 28 ---------------------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index fced56578d6..b586c0b971f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10814,6 +10814,34 @@ routines querying a database but without sending too much queries in order to not overload the given database.") (license license:expat))) +(define-public go-github-com-rivo-tview + (package + (name "go-github-com-rivo-tview") + (version "0.0.0-20241227133733-17b7edb88c57") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rivo/tview") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1w59vyvs8k5mzl7k39zpwcwwdgam2pbz0rnrfnnjgvkld1rh81dc")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/rivo/tview")) + (propagated-inputs + (list go-github-com-gdamore-tcell-v2 + go-github-com-lucasb-eyer-go-colorful + go-github-com-rivo-uniseg)) + (home-page "https://github.com/rivo/tview") + (synopsis "Rich Interactive Widgets for Terminal UIs") + (description + "The tview package implements rich widgets for terminal based user +interfaces. The widgets provided with this package are useful for data +exploration and data entry.") + (license license:expat))) + (define-public go-github-com-rivo-uniseg (package (name "go-github-com-rivo-uniseg") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3bcb28d85fc..59b3c39cd7e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3382,34 +3382,6 @@ over strings.") Go library.") (license license:expat))) -(define-public go-github-com-rivo-tview - (package - (name "go-github-com-rivo-tview") - (version "0.0.0-20241227133733-17b7edb88c57") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rivo/tview") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1w59vyvs8k5mzl7k39zpwcwwdgam2pbz0rnrfnnjgvkld1rh81dc")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/rivo/tview")) - (propagated-inputs - (list go-github-com-gdamore-tcell-v2 - go-github-com-lucasb-eyer-go-colorful - go-github-com-rivo-uniseg)) - (home-page "https://github.com/rivo/tview") - (synopsis "Rich Interactive Widgets for Terminal UIs") - (description - "The tview package implements rich widgets for terminal based user -interfaces. The widgets provided with this package are useful for data -exploration and data entry.") - (license license:expat))) - (define-public go-github-com-xo-terminfo (package (name "go-github-com-xo-terminfo") From 1b6ffbbdd98c860b473d47d0426f57124dd8bb47 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 23:03:06 +0000 Subject: [PATCH 588/862] gnu: go-github-com-gdamore-encoding: Update to 1.0.1. * gnu/packages/golang.scm (go-github-com-gdamore-encoding): Update to 1.0.1. Change-Id: I4b6329b319c8c48a56e4f68028e872d74190bb69 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 59b3c39cd7e..4e6d0cbcc22 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3280,7 +3280,7 @@ various color spaces.") (define-public go-github-com-gdamore-encoding (package (name "go-github-com-gdamore-encoding") - (version "1.0.0") + (version "1.0.1") (source (origin (method git-fetch) @@ -3290,7 +3290,7 @@ various color spaces.") (file-name (git-file-name name version)) (sha256 (base32 - "1vmm5zll92i2fm4ajqx0gyx0p9j36496x5nabi3y0x7h0inv0pk9")))) + "0506b4pnn3yk80sjrsh38z29qj41spxjl80fjw7vg3mz5kfkdxhi")))) (build-system go-build-system) (arguments '(#:import-path "github.com/gdamore/encoding")) From e1b533daff640a7e40ffffe946ed1eb70dba67ef Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 23:04:14 +0000 Subject: [PATCH 589/862] gnu: go-github-com-gdamore-encoding: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-gdamore-encoding): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I21385be5163f339c3faad405f71cc998fd2badf5 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b586c0b971f..e5d360e52e3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4484,6 +4484,33 @@ Differentiation between text and binary files}. @end itemize") (license license:expat))) +(define-public go-github-com-gdamore-encoding + (package + (name "go-github-com-gdamore-encoding") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gdamore/encoding") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0506b4pnn3yk80sjrsh38z29qj41spxjl80fjw7vg3mz5kfkdxhi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gdamore/encoding")) + (inputs + (list go-golang-org-x-text)) + (home-page "https://github.com/gdamore/encoding") + (synopsis "Provide encodings missing from Go") + (description + "This package provides useful encodings not included in the standard +@code{Text} package, including some for dealing with I/O streams from +non-UTF-friendly sources.") + (license license:expat))) + (define-public go-github-com-gdamore-tcell (package (name "go-github-com-gdamore-tcell") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4e6d0cbcc22..30e726a1034 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3277,32 +3277,6 @@ It stores colors in RGB and provides methods for converting these to various color spaces.") (license license:expat))) -(define-public go-github-com-gdamore-encoding - (package - (name "go-github-com-gdamore-encoding") - (version "1.0.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gdamore/encoding") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0506b4pnn3yk80sjrsh38z29qj41spxjl80fjw7vg3mz5kfkdxhi")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/gdamore/encoding")) - (inputs - (list go-golang-org-x-text)) - (home-page "https://github.com/gdamore/encoding") - (synopsis "Provide encodings missing from Go") - (description "This package provides useful encodings not included in the -standard @code{Text} package, including some for dealing with I/O streams from -non-UTF-friendly sources.") - (license license:expat))) - (define-public go-github-com-cention-sany-utf7 (package (name "go-github-com-cention-sany-utf7") From 5411a83ae689c97907023cc7dbcf5d27ee698a18 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 23:07:06 +0000 Subject: [PATCH 590/862] gnu: Remove go-github-com-whyrusleeping-tar-utils. Not in use by any packages in Guix, not maintained. * gnu/packages/golang.scm (go-github-com-whyrusleeping-tar-utils): Delete variable. Change-Id: Ie78368e21c5673f59dda81a753685cb1060d47f3 --- gnu/packages/golang.scm | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 30e726a1034..99180c66383 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3049,31 +3049,6 @@ required by Go's standard Hash interface.") (description "Just a type for protocol strings. Nothing more.") (license license:expat)))) -(define-public go-github-com-whyrusleeping-tar-utils - (let ((commit "8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc") - (revision "0")) - (package - (name "go-github-com-whyrusleeping-tar-utils") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/whyrusleeping/tar-utils") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "14jjdw3yics0k467xsyk388684wdpi0bbx8nqj0y4pqxa0s0in6s")))) - (build-system go-build-system) - (arguments - '(#:import-path - "github.com/whyrusleeping/tar-utils")) - (home-page "https://github.com/whyrusleeping/tar-utils") - (synopsis "Tar utilities extracted from go-ipfs codebase") - (description "Tar utilities extracted from @command{go-ipfs} codebase.") - (license license:expat)))) - (define-public go-github-com-sabhiram-go-gitignore (let ((commit "525f6e181f062064d83887ed2530e3b1ba0bc95a") (revision "1")) From 833af5c4e3e696c92bdf978a92ad79ab95b38277 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 23:08:59 +0000 Subject: [PATCH 591/862] gnu: Remove go-github-com-libp2p-go-libp2p-protocol. Deprecated: "This repository has been archived by the owner on Dec 7, 2019. It is now read-only.". Not in use by any packages in Guix. * gnu/packages/golang.scm (go-github-com-libp2p-go-libp2p-protocol): Delete variable. Change-Id: I00a79de2a0d009032f3103894580028aa1db2ac6 --- gnu/packages/golang.scm | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 99180c66383..18f2bde7a2f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3024,31 +3024,6 @@ Reference algorithm has been slightly hacked as to support the streaming mode required by Go's standard Hash interface.") (license license:bsd-3))) -(define-public go-github-com-libp2p-go-libp2p-protocol - (let ((commit "b29f3d97e3a2fb8b29c5d04290e6cb5c5018004b") - (revision "0")) - (package - (name "go-github-com-libp2p-go-libp2p-protocol") - (version (git-version "1.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/libp2p/go-libp2p-protocol") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1xgjfnx9zcqglg9li29wdqywsp8hz22wx6phns9zscni2jsfidld")))) - (build-system go-build-system) - (arguments - '(#:import-path - "github.com/libp2p/go-libp2p-protocol")) - (home-page "https://github.com/libp2p/go-libp2p-protocol") - (synopsis "Type for protocol strings in Golang") - (description "Just a type for protocol strings. Nothing more.") - (license license:expat)))) - (define-public go-github-com-sabhiram-go-gitignore (let ((commit "525f6e181f062064d83887ed2530e3b1ba0bc95a") (revision "1")) From 07f35737e3ead011ec5d8f7dee5b6f13a4f800c4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 23:10:33 +0000 Subject: [PATCH 592/862] gnu: go-github-com-twmb-murmur3: Update to 1.1.8. * gnu/packages/golang.scm (go-github-com-twmb-murmur3): Update to 1.1.8. Change-Id: I6e52ea89c044b5ebf1bf68d665c8dae5b0f9860e --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 18f2bde7a2f..ec732af413f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3001,7 +3001,7 @@ required by Go's standard Hash interface.") (define-public go-github-com-twmb-murmur3 (package (name "go-github-com-twmb-murmur3") - (version "1.1.3") + (version "1.1.8") (source (origin (method git-fetch) @@ -3011,7 +3011,7 @@ required by Go's standard Hash interface.") (file-name (git-file-name name version)) (sha256 (base32 - "00riapwkyf23l5wyis47mbr8rwr4yrjw491jfc30wpzs111c1gyy")))) + "064bbgbgc45i3m9b3rqyw09g0nlrjs7dq1k716i5f06zjjpr56wg")))) (build-system go-build-system) (arguments '(#:import-path "github.com/twmb/murmur3")) From 4abccd5fb870c71fa04b71b062a58dbf96a53228 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 2 Jan 2025 23:12:31 +0000 Subject: [PATCH 593/862] gnu: go-github-com-twmb-murmur3: Move to golang-crypto. * gnu/packages/golang.scm (go-github-com-twmb-murmur3): Move from here ... * gnu/packages/golang-crypto.scm: ... to here. Change-Id: I38c3e1e43b9d20e426bd653a1255033000f0917a --- gnu/packages/golang-crypto.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 517c3946fc2..fe4ed36e7a7 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1785,6 +1785,31 @@ adding the ability to obtain the list of host key algorithms for a known host.") (license license:asl2.0))) +(define-public go-github-com-twmb-murmur3 + (package + (name "go-github-com-twmb-murmur3") + (version "1.1.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twmb/murmur3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "064bbgbgc45i3m9b3rqyw09g0nlrjs7dq1k716i5f06zjjpr56wg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/twmb/murmur3")) + (home-page "https://github.com/twmb/murmur3") + (synopsis "Native MurmurHash3 Go implementation") + (description + "Native Go implementation of Austin Appleby's third MurmurHash +revision (aka MurmurHash3). Reference algorithm has been slightly hacked as to +support the streaming mode required by Go's standard Hash interface.") + (license license:bsd-3))) + (define-public go-github-com-xanzy-ssh-agent (package (name "go-github-com-xanzy-ssh-agent") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ec732af413f..cfe9784e8b3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2994,32 +2994,6 @@ encoding and 8 times faster decoding.") (description "Native Go implementation of Austin Appleby's third MurmurHash revision (aka MurmurHash3). -Reference algorithm has been slightly hacked as to support the streaming mode -required by Go's standard Hash interface.") - (license license:bsd-3))) - -(define-public go-github-com-twmb-murmur3 - (package - (name "go-github-com-twmb-murmur3") - (version "1.1.8") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/twmb/murmur3") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "064bbgbgc45i3m9b3rqyw09g0nlrjs7dq1k716i5f06zjjpr56wg")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/twmb/murmur3")) - (home-page "https://github.com/twmb/murmur3") - (synopsis "Native MurmurHash3 Go implementation") - (description "Native Go implementation of Austin Appleby's third -MurmurHash revision (aka MurmurHash3). - Reference algorithm has been slightly hacked as to support the streaming mode required by Go's standard Hash interface.") (license license:bsd-3))) From 88d3e4276b864332d056ad48604732521dbae3cc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 3 Jan 2025 22:26:20 +0000 Subject: [PATCH 594/862] gnu: go-1.21: Skip tests with time bomb. As seen in . Certificates which are used in tests are not valid after Jan 1 00:00:00 2025 GMT, Happy New Year!. See . * gnu/packages/golang.scm (go-1.21) [arguments] : Add 'skip-crypto-tls-tests. Change-Id: Id9f8ad93201aedae4f4451ee8b7b9cf40cd33cdb --- gnu/packages/golang.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cfe9784e8b3..267681f5512 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -841,6 +841,24 @@ in the style of communicating sequential processes (@dfn{CSP}).") #~(modify-phases #$phases (delete 'skip-TestGoPathShlibGccgo-tests) (delete 'patch-source) + ;; Time bomb in TLS tests: "Most of the test certificates + ;; (e.g. testRSACertificate, testRSACertificateIssuer, + ;; testRSA2048CertificateIssuer) have a not after of Jan 1 + ;; 00:00:00 2025 GMT." + ;; https://github.com/golang/go/issues/71077 + ;; https://github.com/golang/go/issues/71103 + ;; https://github.com/golang/go/issues/71104 + (add-after 'unpack 'skip-crypto-tls-tests + (lambda _ + (substitute* (list "src/crypto/tls/handshake_client_test.go" + "src/crypto/tls/handshake_server_test.go") + (("TestVerifyConnection.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestResumptionKeepsOCSPAndSCT.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestCrossVersionResume.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n"))))) + (add-after 'unpack 'patch-os-tests (lambda _ (substitute* "src/os/os_test.go" From 42d55657c2f455d8d22c845c9f252ee2b3b0e32f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 5 Jan 2025 21:34:04 +0000 Subject: [PATCH 595/862] gnu: go-github-com-go-git-go-git-fixtures-v5: Update to 5.0.0. * gnu/packages/golang-xyz.scm (go-github-com-go-git-go-git-fixtures-v5): Update to 5.0.0. Change-Id: Ib1d808e1595a17b2a5f260d620bbc2eaf5349d7e --- gnu/packages/golang-xyz.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e5d360e52e3..71e3c818bed 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4745,16 +4745,16 @@ operations.") (package (inherit go-github-com-go-git-go-git-fixtures-v4) (name "go-github-com-go-git-go-git-fixtures-v5") - (version "5.0.0-20241125094932-6b905c043834") + (version "5.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/go-git/go-git-fixtures") - (commit (go-version->git-ref version)))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1wgw5bzzk5gynqa0j49hxklcfliv2ql7jvpsjh4fn0053rwgs730")))) + (base32 "0mdwqdmqbqmrh21n25nqrv48zkamgw89parcbyp7k2skqk1jkjpf")))) (arguments (list #:import-path "github.com/go-git/go-git-fixtures/v5")))) From 33ffe7326bcf4e741edd9acc5cd821f46decf2ae Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 5 Jan 2025 21:39:49 +0000 Subject: [PATCH 596/862] gnu: go-github-com-go-git-go-git-v5: Update to 5.13.1. * gnu/packages/version-control.scm (go-github-com-go-git-go-git-v5): Update to 5.13.1. Change-Id: Ie31c5b04cada32ec8928711a88f857c7d8cabe71 --- gnu/packages/version-control.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 0a3d2b7c0b2..c5d30ebb9ce 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -4182,7 +4182,7 @@ defects faster.") (define-public go-github-com-go-git-go-git-v5 (package (name "go-github-com-go-git-go-git-v5") - (version "5.12.0") + (version "5.13.1") (source (origin (method git-fetch) (uri (git-reference @@ -4191,7 +4191,7 @@ defects faster.") (file-name (git-file-name name version)) (sha256 (base32 - "1zp7d4ncgrvr420hs6nf5p66s9015y61fb4krkz4y0sl802fzj7a")))) + "1mgzwwmq1awai9n8vkjp8xpq26hvivl53g57f1k2cgg6bkj13r2a")))) (build-system go-build-system) (arguments (list From f099ed03b6f5c9e05651d6982ee236dcd71bcbde Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 5 Jan 2025 21:46:04 +0000 Subject: [PATCH 597/862] gnu: go-github-com-xdg-go-pbkdf2: Move to golang-crypto. * gnu/packages/golang.scm (go-github-com-xdg-go-pbkdf2): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I3151905dcf2cdedc00c4d2f84b0e76f5b6a25d30 --- gnu/packages/golang-crypto.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index fe4ed36e7a7..d9cd2001ca3 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1836,6 +1836,31 @@ ssh-agent that uses UNIX sockets, and one could implement an alternative ssh-agent process using the sample server.") (license license:asl2.0))) +(define-public go-github-com-xdg-go-pbkdf2 + (package + (name "go-github-com-xdg-go-pbkdf2") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xdg-go/pbkdf2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nipijy5xkdnfyhkp5ryrjzm14si1i2v2xyfmblf84binwkbr8jh")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xdg-go/pbkdf2")) + (home-page "https://github.com/xdg-go/pbkdf2") + (synopsis "Go implementation of PBKDF2") + (description + "Package pbkdf2 implements password-based key derivation using the PBKDF2 +algorithm described in @url{https://rfc-editor.org/rfc/rfc2898.html,RFC 2898} +and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.") + (license license:asl2.0))) + (define-public go-github-com-youmark-pkcs8 (package (name "go-github-com-youmark-pkcs8") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 267681f5512..cd77969c615 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3910,29 +3910,6 @@ including errata. It also provides a profile for SASLprep as defined in RFC-4013.") (license license:asl2.0))) -(define-public go-github-com-xdg-go-pbkdf2 - (package - (name "go-github-com-xdg-go-pbkdf2") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/xdg-go/pbkdf2") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1nipijy5xkdnfyhkp5ryrjzm14si1i2v2xyfmblf84binwkbr8jh")))) - (build-system go-build-system) - (arguments '(#:import-path "github.com/xdg-go/pbkdf2")) - (home-page "https://github.com/xdg-go/pbkdf2") - (synopsis "Go implementation of PBKDF2") - (description - "Package pbkdf2 implements password-based key derivation using the PBKDF2 -algorithm described in @url{https://rfc-editor.org/rfc/rfc2898.html,RFC 2898} -and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.") - (license license:asl2.0))) - (define-public go-github-com-delthas-go-libnp (let ((commit "0e45ece1f878f202fee2c74801e287804668f677")) (package From bf626173883976e1f23f7c9090cd22addecb73a3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 5 Jan 2025 21:50:27 +0000 Subject: [PATCH 598/862] gnu: go-github-com-xdg-go-stringprep: Update to 1.0.4. * gnu/packages/golang.scm (go-github-com-xdg-go-stringprep): Update to 1.0.4. Change-Id: I235c3a36e171c7288ff01a11d7d5b760595b65cc --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cd77969c615..13a0007f650 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3888,7 +3888,7 @@ temporal directories.") (define-public go-github-com-xdg-go-stringprep (package (name "go-github-com-xdg-go-stringprep") - (version "1.0.2") + (version "1.0.4") (source (origin (method git-fetch) @@ -3897,7 +3897,7 @@ temporal directories.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1df0l5n3c520y9filzz83j42wa5c056jcygmfwhjyf1pq8f6jkv9")))) + (base32 "0xvaf2xiy34ra4xz75d6kylr29jv00dnyk14mh8kmq5692n8lqvb")))) (build-system go-build-system) (arguments '(#:import-path "github.com/xdg-go/stringprep")) (propagated-inputs From 01029576adf8c767f1f6068c4d7e5a6b875f7b0f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 19:06:52 +0000 Subject: [PATCH 599/862] gnu: go-github-com-xdg-go-stringprep: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-xdg-go-stringprep): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I0ef2efc4b8b3a5cc2e23ba365a78f653b7f9efc3 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 71e3c818bed..b2d08c1ec32 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12876,6 +12876,33 @@ edges and self-loops are not permitted. @end itemize") (license license:asl2.0))) +(define-public go-github-com-xdg-go-stringprep + (package + (name "go-github-com-xdg-go-stringprep") + (version "1.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xdg-go/stringprep") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xvaf2xiy34ra4xz75d6kylr29jv00dnyk14mh8kmq5692n8lqvb")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xdg-go/stringprep")) + (propagated-inputs + (list go-golang-org-x-text)) + (home-page "https://github.com/xdg-go/stringprep") + (synopsis "Go implementation of RFC-3454 stringprep and RFC-4013 SASLprep") + (description + "Package stringprep provides data tables and algorithms for RFC-3454, +including errata. It also provides a profile for SASLprep as defined in +RFC-4013.") + (license license:asl2.0))) + (define-public go-github-com-xhit-go-str2duration-v2 (package (name "go-github-com-xhit-go-str2duration-v2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 13a0007f650..43d2e29ba52 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3885,31 +3885,6 @@ temporal directories.") @uref{freedesktop.org}.") (license license:expat))) -(define-public go-github-com-xdg-go-stringprep - (package - (name "go-github-com-xdg-go-stringprep") - (version "1.0.4") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/xdg-go/stringprep") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0xvaf2xiy34ra4xz75d6kylr29jv00dnyk14mh8kmq5692n8lqvb")))) - (build-system go-build-system) - (arguments '(#:import-path "github.com/xdg-go/stringprep")) - (propagated-inputs - (list go-golang-org-x-text)) - (home-page "https://github.com/xdg-go/stringprep") - (synopsis "Go implementation of RFC-3454 stringprep and RFC-4013 SASLprep") - (description - "Package stringprep provides data tables and algorithms for RFC-3454, -including errata. It also provides a profile for SASLprep as defined in -RFC-4013.") - (license license:asl2.0))) - (define-public go-github-com-delthas-go-libnp (let ((commit "0e45ece1f878f202fee2c74801e287804668f677")) (package From a2f55801b67eee2a2c917e6081bf1e859642f4c9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 19:10:30 +0000 Subject: [PATCH 600/862] gnu: go-github-com-kevinburke-ssh-config: Update to 1.2.0. * gnu/packages/golang.scm (go-github-com-kevinburke-ssh-config): Update to 1.2.0. Change-Id: I9222e1bef74aeae3b158d6d15a1d7f47f9ea0491 --- gnu/packages/golang.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 43d2e29ba52..d85528fe61c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3758,16 +3758,16 @@ that might only rarely be reached.") (define-public go-github-com-kevinburke-ssh-config (package (name "go-github-com-kevinburke-ssh-config") - (version "1.0") + (version "1.2.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/kevinburke/ssh_config") - (commit version))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "05jvz5r58a057zxvic9dyr9v2wilha8l6366npwkqgxmnmk9sh5f")))) + "0jvv3i0g8ll210xlbxy8ywj09gab0im676rmnywh3wlpdhxdkbjd")))) (arguments `(#:import-path "github.com/kevinburke/ssh_config")) (build-system go-build-system) From 46459dba7fadea6522913c65f4c5c616b3cad892 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 19:12:15 +0000 Subject: [PATCH 601/862] gnu: go-github-com-kevinburke-ssh-config: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-kevinburke-ssh-config): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ie5124c30d672afae2fedbd393874b598fcbaf042 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b2d08c1ec32..9486d85f44f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7745,6 +7745,31 @@ word-splitting rules.") (home-page "https://github.com/kballard/go-shellquote") (license license:expat)))) +(define-public go-github-com-kevinburke-ssh-config + (package + (name "go-github-com-kevinburke-ssh-config") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kevinburke/ssh_config") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jvv3i0g8ll210xlbxy8ywj09gab0im676rmnywh3wlpdhxdkbjd")))) + (arguments + (list + #:import-path "github.com/kevinburke/ssh_config")) + (build-system go-build-system) + (home-page "https://github.com/kevinburke/ssh_config/") + (synopsis "Parser for @file{ssh_config} files") + (description + "This is a Go parser for @file{ssh_config} files. Importantly, this +parser attempts to preserve comments in a given file, so you can manipulate a +@file{ssh_config} file from a program.") + (license license:expat))) + (define-public go-github-com-keybase-dbus (package (name "go-github-com-keybase-dbus") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d85528fe61c..5662fce86ca 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3755,29 +3755,6 @@ in tests to find template errors early, and along template execution paths that might only rarely be reached.") (license license:expat))) -(define-public go-github-com-kevinburke-ssh-config - (package - (name "go-github-com-kevinburke-ssh-config") - (version "1.2.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kevinburke/ssh_config") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0jvv3i0g8ll210xlbxy8ywj09gab0im676rmnywh3wlpdhxdkbjd")))) - (arguments - `(#:import-path "github.com/kevinburke/ssh_config")) - (build-system go-build-system) - (home-page "https://github.com/kevinburke/ssh_config/") - (synopsis "Parser for @file{ssh_config} files") - (description "This is a Go parser for @file{ssh_config} files. -Importantly, this parser attempts to preserve comments in a given file, so you -can manipulate a @file{ssh_config} file from a program.") - (license license:expat))) - (define-public go-github-com-alcortesm-tgz (let ((commit "9c5fe88206d7765837fed3732a42ef88fc51f1a1") (revision "1")) From 4c3c8132c6f0384b2369b9e1858b172a96273647 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 19:16:01 +0000 Subject: [PATCH 602/862] gnu: go-github-com-jba-templatecheck: Update to 0.7.1. * gnu/packages/golang.scm (go-github-com-jba-templatecheck): Update to 0.7.1. [arguments]: : Use go-1.22. Change-Id: I19ab2b099e84bb5627076b3af141a6600dd2badd --- gnu/packages/golang.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5662fce86ca..5e5520294cb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3732,7 +3732,7 @@ size of the terminal.") (define-public go-github-com-jba-templatecheck (package (name "go-github-com-jba-templatecheck") - (version "0.6.0") + (version "0.7.1") (source (origin (method git-fetch) (uri (git-reference @@ -3741,10 +3741,12 @@ size of the terminal.") (file-name (git-file-name name version)) (sha256 (base32 - "12iwkidz4p6wdl65jfddqxls80mv879k2rpb42dj7y4dja5advlc")))) + "03nlpfgjiiqqhf0df6vgvxi7kn58ykh0jhnrffpa32wv2w67ndxz")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/jba/templatecheck")) + (list + #:go go-1.22 + #:import-path "github.com/jba/templatecheck")) (propagated-inputs (list go-github-com-google-safehtml)) (home-page "https://github.com/jba/templatecheck") (synopsis "Checks Go templates for problems") From 47317e3a49c70b7163af67981cc3183222cd0c54 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 19:31:23 +0000 Subject: [PATCH 603/862] gnu: go-github-com-jba-templatecheck: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-jba-templatecheck): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I056aac123819b9a625b5d80e77097a037a52f004 --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 28 ---------------------------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9486d85f44f..4acee0de7e1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7071,6 +7071,35 @@ oglematchers.Matcher} for time values @end itemize") (license license:asl2.0))) +(define-public go-github-com-jba-templatecheck + (package + (name "go-github-com-jba-templatecheck") + (version "0.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jba/templatecheck") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03nlpfgjiiqqhf0df6vgvxi7kn58ykh0jhnrffpa32wv2w67ndxz")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:import-path "github.com/jba/templatecheck")) + (propagated-inputs + (list go-github-com-google-safehtml)) + (home-page "https://github.com/jba/templatecheck") + (synopsis "Checks Go templates for problems") + (description + "Package templatecheck checks Go templates for problems. It can detect +many errors that are normally caught only during execution. Use templatecheck +in tests to find template errors early, and along template execution paths +that might only rarely be reached.") + (license license:expat))) + (define-public go-github-com-jbenet-go-context (package (name "go-github-com-jbenet-go-context") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5e5520294cb..00f242007a7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3729,34 +3729,6 @@ maps (because they are not addressable using Go reflection).") size of the terminal.") (license license:expat)))) -(define-public go-github-com-jba-templatecheck - (package - (name "go-github-com-jba-templatecheck") - (version "0.7.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jba/templatecheck") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "03nlpfgjiiqqhf0df6vgvxi7kn58ykh0jhnrffpa32wv2w67ndxz")))) - (build-system go-build-system) - (arguments - (list - #:go go-1.22 - #:import-path "github.com/jba/templatecheck")) - (propagated-inputs (list go-github-com-google-safehtml)) - (home-page "https://github.com/jba/templatecheck") - (synopsis "Checks Go templates for problems") - (description - "Package templatecheck checks Go templates for problems. It can detect -many errors that are normally caught only during execution. Use templatecheck -in tests to find template errors early, and along template execution paths -that might only rarely be reached.") - (license license:expat))) - (define-public go-github-com-alcortesm-tgz (let ((commit "9c5fe88206d7765837fed3732a42ef88fc51f1a1") (revision "1")) From 9c30e6c02c643b8795f4ce9486a1757f98d008cf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:06:08 +0000 Subject: [PATCH 604/862] gnu: go-github-com-masterminds-goutils: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-masterminds-goutils): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I610d1125c8bd4b9f6b1042aae09f2a41140fd3d7 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4acee0de7e1..b1a150a76f9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8560,6 +8560,31 @@ implementing features like: @end itemize") (license license:expat)))) +(define-public go-github-com-masterminds-goutils + (package + (name "go-github-com-masterminds-goutils") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Masterminds/goutils") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09m4mbcdlv9ng3xcrmjlxi0niavby52y9nl2jhjnbx1xxpjw0jrh")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/Masterminds/goutils")) + (home-page "https://github.com/Masterminds/goutils/") + (synopsis "Utility functions to manipulate strings") + (description + "GoUtils provides utility functions to manipulate strings in various +ways. It is a Go implementation of some string manipulation libraries of Java +Apache Commons.") + (license license:asl2.0))) + (define-public go-github-com-masterminds-semver-v3 (package (name "go-github-com-masterminds-semver-v3") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 00f242007a7..d5dc5e4c58a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3631,29 +3631,6 @@ Porter2 stemmer}. It is written completely using finite state machines to do suffix comparison, rather than the string-based or tree-based approaches.") (license license:asl2.0)))) -(define-public go-github-com-masterminds-goutils - (package - (name "go-github-com-masterminds-goutils") - (version "1.1.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/Masterminds/goutils") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "09m4mbcdlv9ng3xcrmjlxi0niavby52y9nl2jhjnbx1xxpjw0jrh")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/Masterminds/goutils")) - (home-page "https://github.com/Masterminds/goutils/") - (synopsis "Utility functions to manipulate strings") - (description "GoUtils provides utility functions to manipulate strings in -various ways. It is a Go implementation of some string manipulation libraries -of Java Apache Commons.") - (license license:asl2.0))) - (define-public go-github-com-imdario-mergo (package (name "go-github-com-imdario-mergo") From 4beb4b7320debe29ecc961938458c0e90f9e8298 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:20:29 +0000 Subject: [PATCH 605/862] gnu: Add go-github-com-lann-ps. * gnu/packages/golang-xyz.scm (go-github-com-lann-ps): New variable. Change-Id: Ic86df6f14e93c12d2f75342906c9d0cba9a05451 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b1a150a76f9..5eec6fa2645 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8103,6 +8103,33 @@ structure. It can also produce a much more verbose, one-item-per-line representation suitable for computing diffs.") (license license:asl2.0))) +(define-public go-github-com-lann-ps + (package + (name "go-github-com-lann-ps") + (version "0.0.0-20150810152359-62de8c46ede0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lann/ps") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10yhcyymypvdiiipchsp80jbglk8c4r7lq7h54v9f4mxmvz6xgf7")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/lann/ps")) + (home-page "https://github.com/lann/ps") + (synopsis "Persistent data structures for Golang") + (description + "This package implements a fully persistent data structures - a data +structure that always preserves the previous version of itself when it is +modified. Such data structures are effectively immutable, as their operations +do not update the structure in-place, but instead always yield a new +structure. It's a stable fork of https://github.com/mndrix/ps.") + (license license:expat))) + (define-public go-github-com-leodido-go-urn (package (name "go-github-com-leodido-go-urn") From c007debac88c86fedacc91f3313ec32bb6c799dd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:24:44 +0000 Subject: [PATCH 606/862] gnu: Add go-github-com-lann-builder. * gnu/packages/golang-xyz.scm (go-github-com-lann-builder): New variable. Change-Id: I37d916514b7c8dcbc0ac08fb7bf0ffa76320515a --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5eec6fa2645..e925ce14207 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8103,6 +8103,33 @@ structure. It can also produce a much more verbose, one-item-per-line representation suitable for computing diffs.") (license license:asl2.0))) +(define-public go-github-com-lann-builder + (package + (name "go-github-com-lann-builder") + (version "0.0.0-20180802200727-47ae307949d0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lann/builder") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kg9jy1rciznj627hafpq2mi7hr5d3ssgqcpwrm3bnlk9sqnydil")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/lann/builder")) + (propagated-inputs + (list go-github-com-lann-ps)) + (home-page "https://github.com/lann/builder") + (synopsis "Fluent immutable builders for Golang") + (description + "Package builder provides a method for writing fluent immutable DSL +builders. It uses immutable persistent data structures so that each step in +the method chain can be reused.") + (license license:expat))) + (define-public go-github-com-lann-ps (package (name "go-github-com-lann-ps") From c37f11f6287277bd72250e2a7fbbbb419345ec4e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:32:57 +0000 Subject: [PATCH 607/862] gnu: Add go-github-com-masterminds-squirrel. * gnu/packages/golang-xyz.scm (go-github-com-masterminds-squirrel): New variable. Change-Id: I14dbeb77ccb8d1c2a7ff0e037bd0dc18e44d187a --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e925ce14207..dfc482792a0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8708,6 +8708,36 @@ semantic versions. Specifically it provides the ability to: functions.") (license license:expat))) +(define-public go-github-com-masterminds-squirrel + (package + (name "go-github-com-masterminds-squirrel") + (version "1.5.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Masterminds/squirrel") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ws7p3gchw6n81sfdhpk1pbh7gsj1fm7fbjah702d7q1gbn00vja")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/Masterminds/squirrel")) + (native-inputs + (list go-github-com-go-sql-driver-mysql + go-github-com-lib-pq + go-github-com-mattn-go-sqlite3 + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-lann-builder)) + (home-page "https://github.com/Masterminds/squirrel") + (synopsis "Fluent SQL generation for golang") + (description + "Package squirrel provides a fluent SQL generator.") + (license license:expat))) + (define-public go-github-com-matryer-try (package (name "go-github-com-matryer-try") From 0a783758b6bdb34f7db4e92c1a736a83f071bc2e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:42:16 +0000 Subject: [PATCH 608/862] gnu: actionlint: Update to 1.7.6. * gnu/packages/check.scm (actionlint): Update to 1.7.6. [native-inputs]: Add go-github-com-bmatcuk-doublestar-v4, go-github-com-mattn-go-shellwords, go-github-com-yuin-goldmark, and go-golang-org-x-sys. Change-Id: I138d692c107ac170c4580a00a19827ed61a158d8 --- gnu/packages/check.scm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index f23258ca567..a628fa8d9e2 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1349,7 +1349,7 @@ but it works for any C/C++ project.") (define-public actionlint (package (name "actionlint") - (version "1.7.2") + (version "1.7.6") (source (origin (method git-fetch) @@ -1358,7 +1358,7 @@ but it works for any C/C++ project.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1rgsxv4clgfyl4gr8bjk81p4b87c6hr34flxzw6011h0vjc54n7x")))) + (base32 "1waq9v48pbys8b8qmmvl0wi77jzri033fh8194gcwfzipvxb6y9l")))) (build-system go-build-system) (arguments (list @@ -1370,13 +1370,16 @@ but it works for any C/C++ project.") #:unpack-path "github.com/rhysd/actionlint")) ;; XXX: Install Man page, wrap with shellcheck and pyflakes. (native-inputs - (list go-github-com-fatih-color + (list go-github-com-bmatcuk-doublestar-v4 + go-github-com-fatih-color + go-github-com-google-go-cmp go-github-com-mattn-go-colorable go-github-com-mattn-go-runewidth + go-github-com-mattn-go-shellwords go-github-com-robfig-cron + go-github-com-yuin-goldmark go-golang-org-x-sync - go-golang-org-x-sync - go-github-com-google-go-cmp + go-golang-org-x-sys go-gopkg-in-yaml-v3)) (home-page "https://rhysd.github.io/actionlint/") (synopsis "Static checker for GitHub Actions workflow files") From 9a52976e3033ea353dfd291c7f61558e17f83020 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:45:25 +0000 Subject: [PATCH 609/862] gnu: go-github-com-robfig-cron: Rename variable. * gnu/packages/golang.scm (go-github-com-robfig-cron): Rename variable to go-github-com-robfig-cron-v3 follow go.mod import style path to improve importer. [arguments] : Change to "github.com/robfig/cron/v3". * gnu/packages/check.scm (actionlint) [native-inputs]: Remove go-github-com-robfig-cron; add go-github-com-robfig-cron-v3. * gnu/packages/web.scm (poussetaches) [propagated-inputs]: Remove go-github-com-robfig-cron; add go-github-com-robfig-cron-v3. Change-Id: Iac02e0f256d37d8d11bfd03b7fe1d14b1d1c7894 --- gnu/packages/check.scm | 2 +- gnu/packages/golang.scm | 6 +++--- gnu/packages/web.scm | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index a628fa8d9e2..df858af4bde 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1376,7 +1376,7 @@ but it works for any C/C++ project.") go-github-com-mattn-go-colorable go-github-com-mattn-go-runewidth go-github-com-mattn-go-shellwords - go-github-com-robfig-cron + go-github-com-robfig-cron-v3 go-github-com-yuin-goldmark go-golang-org-x-sync go-golang-org-x-sys diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d5dc5e4c58a..19dafc036b5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3403,9 +3403,9 @@ designed to clean up raw terminal output by stripping escape sequences, optionally preserving color.") (license license:expat))) -(define-public go-github-com-robfig-cron +(define-public go-github-com-robfig-cron-v3 (package - (name "go-github-com-robfig-cron") + (name "go-github-com-robfig-cron-v3") (version "3.0.1") (source (origin @@ -3419,7 +3419,7 @@ optionally preserving color.") "1agzbw2dfk2d1mpmddr85s5vh6ygm8kqrvfg87i9d2wqnlsnliqm")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/robfig/cron")) + `(#:import-path "github.com/robfig/cron/v3")) (home-page "https://godoc.org/github.com/robfig/cron") (synopsis "Cron library for Go") (description "This package provides a cron library for Go. It implements diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 460ce15dfa7..c915f0e733f 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -8991,7 +8991,7 @@ Anonip can also be uses as a Python module in your own Python application.") "0kckcwvqklavd855np9aq5js6mg84isrlwchr504yigwma0sm7hm")))) (build-system go-build-system) (propagated-inputs - (list go-github-com-robfig-cron go-golang-org-x-time)) + (list go-github-com-robfig-cron-v3 go-golang-org-x-time)) (arguments `(#:import-path "github.com/tsileo/poussetaches")) (home-page "https://github.com/tsileo/poussetaches") From 0887597c5fe5a0aed981fbf02812a6dfe7f68452 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:50:23 +0000 Subject: [PATCH 610/862] gnu: go-github-com-robfig-cron-v3: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-robfig-cron-v3): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I6096fa9b398fd12ea1733565658b99054a7512ce --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index dfc482792a0..55fbcb1d7b9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11056,6 +11056,30 @@ exploration and data entry.") @url{https://unicode.org/reports/tr29/, Unicode Standard Annex #29}.") (license license:expat))) +(define-public go-github-com-robfig-cron-v3 + (package + (name "go-github-com-robfig-cron-v3") + (version "3.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/robfig/cron") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1agzbw2dfk2d1mpmddr85s5vh6ygm8kqrvfg87i9d2wqnlsnliqm")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/robfig/cron/v3")) + (home-page "https://godoc.org/github.com/robfig/cron") + (synopsis "Cron library for Go") + (description + "This package provides a cron library for Go. It implements a cron spec +parser and job runner.") + (license license:expat))) + (define-public go-github-com-rogpeppe-fastuuid (package (name "go-github-com-rogpeppe-fastuuid") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 19dafc036b5..757f2797655 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3403,29 +3403,6 @@ designed to clean up raw terminal output by stripping escape sequences, optionally preserving color.") (license license:expat))) -(define-public go-github-com-robfig-cron-v3 - (package - (name "go-github-com-robfig-cron-v3") - (version "3.0.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/robfig/cron") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1agzbw2dfk2d1mpmddr85s5vh6ygm8kqrvfg87i9d2wqnlsnliqm")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/robfig/cron/v3")) - (home-page "https://godoc.org/github.com/robfig/cron") - (synopsis "Cron library for Go") - (description "This package provides a cron library for Go. It implements -a cron spec parser and job runner.") - (license license:expat))) - (define-public go-github-com-ddevault-go-libvterm (let ((commit "b7d861da381071e5d3701e428528d1bfe276e78f") (revision "0")) From 3fba3e0bcfd4d8abc87ea388bfac88f5990efa6b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:52:31 +0000 Subject: [PATCH 611/862] gnu: Remove go-github-com-ddevault-go-libvterm. Not in use by any packages in Guix, project is archived upstream and not maintained: "This repository has been archived by the owner on Nov 17, 2021. It is now read-only.". * gnu/packages/golang.scm (go-github-com-ddevault-go-libvterm): Delete variable. Change-Id: I776e9ed76640f87729b9658af3daa2e769c881ed --- gnu/packages/golang.scm | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 757f2797655..b9b6220603b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3403,33 +3403,6 @@ designed to clean up raw terminal output by stripping escape sequences, optionally preserving color.") (license license:expat))) -(define-public go-github-com-ddevault-go-libvterm - (let ((commit "b7d861da381071e5d3701e428528d1bfe276e78f") - (revision "0")) - (package - (name "go-github-com-ddevault-go-libvterm") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ddevault/go-libvterm") - (commit commit))) - (sha256 - (base32 - "06vv4pgx0i6hjdjcar4ch18hp9g6q6687mbgkvs8ymmbacyhp7s6")) - (file-name (git-file-name name version)))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/ddevault/go-libvterm")) - (propagated-inputs - (list go-github-com-mattn-go-pointer)) - (home-page "https://github.com/ddevault/go-libvterm") - (synopsis "Go binding to libvterm") - (description - "This is a fork of another go-libvterm library for use with aerc.") - (license license:expat)))) - (define-public go-github-com-macronut-go-tproxy (package (name "go-github-com-macronut-go-tproxy") From 2a01c33232037b0eefde326b3909bdadb72b6271 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:55:49 +0000 Subject: [PATCH 612/862] gnu: go-github-com-macronut-go-tproxy: Move to golang-web. * gnu/packages/golang.scm (go-github-com-macronut-go-tproxy): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: Ie0faee29489ffc89812d310eb3ccc5b0af642779 --- gnu/packages/golang-web.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index c5ee1f62c16..8ae530e46c9 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4610,6 +4610,32 @@ It is inspired by SPDY but is not interoperable with it.") intends to be compatible with Avahi.") (license license:expat))) +(define-public go-github-com-macronut-go-tproxy + (package + (name "go-github-com-macronut-go-tproxy") + (version "0.0.0-20190726054950-ef7efd7f24ed") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/FutureProtocolLab/go-tproxy") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jibsg0xhsn0h1jq4g9qd4nr58w43y8majlwfri9ffk2cbfrwqdr")) + (modules '((guix build utils))) + (snippet '(delete-file-recursively "example")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/macronut/go-tproxy")) + (home-page "https://github.com/FutureProtocolLab/go-tproxy") + (synopsis "Linux Transparent Proxy library") + (description + "Golang TProxy provides an easy to use wrapper for the Linux Transparent +Proxy functionality.") + (license license:expat))) + (define-public go-github-com-mailru-easyjson (package (name "go-github-com-mailru-easyjson") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b9b6220603b..cd811889579 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3403,31 +3403,6 @@ designed to clean up raw terminal output by stripping escape sequences, optionally preserving color.") (license license:expat))) -(define-public go-github-com-macronut-go-tproxy - (package - (name "go-github-com-macronut-go-tproxy") - (version "0.0.0-20190726054950-ef7efd7f24ed") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/FutureProtocolLab/go-tproxy") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0jibsg0xhsn0h1jq4g9qd4nr58w43y8majlwfri9ffk2cbfrwqdr")) - (modules '((guix build utils))) - (snippet '(delete-file-recursively "example")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/macronut/go-tproxy")) - (home-page "https://github.com/FutureProtocolLab/go-tproxy") - (synopsis "Linux Transparent Proxy library") - (description - "Golang TProxy provides an easy to use wrapper for the Linux Transparent -Proxy functionality.") - (license license:expat))) - (define-public go-golang-org-rainycape-unidecode (let ((commit "cb7f23ec59bec0d61b19c56cd88cee3d0cc1870c") (revision "1")) From 5db147fda7b3e9196ee9d61e6149dcd925340746 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 20:59:18 +0000 Subject: [PATCH 613/862] gnu: Remove go-github-com-matrix-org-gomatrix. Not in use by any packages in Guix, project is archived upstream and not maintained: "This repository has been archived by the owner on Feb 21, 2024. It is now read-only.". * gnu/packages/golang.scm (go-github-com-matrix-org-gomatrix): Delete variable. Change-Id: I98b6de96f87d8869bb2485a49f7269435062ab38 --- gnu/packages/golang.scm | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cd811889579..e3c2959f601 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2613,27 +2613,6 @@ translation (NAT), proxies, sockets, and transport layer security (TLS).") machine friendly values.") (license license:asl2.0))) -(define-public go-github-com-matrix-org-gomatrix - (package - (name "go-github-com-matrix-org-gomatrix") - (version "0.0.0-20220926102614-ceba4d9f7530") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/matrix-org/gomatrix") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0vq29bdswvffxsmwvi20wnk73xk92dva0fdr2k3zshr4z10ypm2x")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/matrix-org/gomatrix")) - (home-page "https://github.com/matrix-org/gomatrix") - (synopsis "Golang Matrix client") - (description "This package provides a Golang Matrix client.") - (license license:asl2.0))) - (define-public go-github-com-aarzilli-golua (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") (revision "0")) From 6a6052c752fe425e2411ea529322f36422c0de5d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:01:28 +0000 Subject: [PATCH 614/862] gnu: go-github-com-docker-go-units: Update to 0.5.0. * gnu/packages/golang.scm (go-github-com-docker-go-units): Update to 0.5.0. Change-Id: I1fdec88559813d9c5a0344bdd97a6348d7909840 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e3c2959f601..aaf35b16819 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2594,7 +2594,7 @@ translation (NAT), proxies, sockets, and transport layer security (TLS).") (define-public go-github-com-docker-go-units (package (name "go-github-com-docker-go-units") - (version "0.4.0") + (version "0.5.0") (source (origin (method git-fetch) @@ -2603,7 +2603,7 @@ translation (NAT), proxies, sockets, and transport layer security (TLS).") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0k8gja8ql4pqg5rzmqvka42vjfs6rzablak87whcnqba6qxpimvz")))) + (base32 "0q92l7pyfg9rn4ljr1warnv1ri6z7svah7m3rqmvmyaw6bzdbbw8")))) (build-system go-build-system) (arguments '(#:import-path "github.com/docker/go-units")) (home-page "https://github.com/docker/go-units") From 82ec069b4f67880d1c2fec7a7814f37255d1192c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:02:43 +0000 Subject: [PATCH 615/862] gnu: go-github-com-docker-go-units: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-docker-go-units): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ife0e8e396188645b60527e94137693e29f0a4eb0 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 55fbcb1d7b9..e268c9501f1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3717,6 +3717,30 @@ GNU extensions to the POSIX recommendations for command-line options}. This is an activly maintained fork of @url{https://github.com/ogier/pflag}.") (license license:bsd-3))) +(define-public go-github-com-docker-go-units + (package + (name "go-github-com-docker-go-units") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/docker/go-units") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0q92l7pyfg9rn4ljr1warnv1ri6z7svah7m3rqmvmyaw6bzdbbw8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/docker/go-units")) + (home-page "https://github.com/docker/go-units") + (synopsis "Parse and print size and time units in human-readable format") + (description + "@code{go-units} is a library to transform human friendly measurements +into machine friendly values.") + (license license:asl2.0))) + (define-public go-github-com-docopt-docopt-go (let ((commit "ee0de3bc6815ee19d4a46c7eb90f829db0e014b1") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index aaf35b16819..643c511b0cc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2591,28 +2591,6 @@ Go language. In particular it provides tools to deal with network address translation (NAT), proxies, sockets, and transport layer security (TLS).") (license license:asl2.0))) -(define-public go-github-com-docker-go-units - (package - (name "go-github-com-docker-go-units") - (version "0.5.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/docker/go-units") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0q92l7pyfg9rn4ljr1warnv1ri6z7svah7m3rqmvmyaw6bzdbbw8")))) - (build-system go-build-system) - (arguments '(#:import-path "github.com/docker/go-units")) - (home-page "https://github.com/docker/go-units") - (synopsis "Parse and print size and time units in human-readable format") - (description - "@code{go-units} is a library to transform human friendly measurements into -machine friendly values.") - (license license:asl2.0))) - (define-public go-github-com-aarzilli-golua (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") (revision "0")) From 5547fbe7d23f91bf6d433cde4c585697c0cfa8c9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:08:16 +0000 Subject: [PATCH 616/862] gnu: go-github-com-docker-go-connections: Move to golang-web. * gnu/packages/golang.scm (go-github-com-docker-go-connections): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I30348ea1bf48d3f6929035d9a25141c6cfe86b47 --- gnu/packages/golang-web.scm | 33 +++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 33 --------------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 8ae530e46c9..02bd307acdc 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1553,6 +1553,39 @@ Data Representation (XDR) standard protocol as specified in RFC 4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.") (license license:isc))) +(define-public go-github-com-docker-go-connections + (package + (name "go-github-com-docker-go-connections") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/docker/go-connections") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0svfa9g4xvbn87l5kiww1jkijmci9g5821wjp81xz1rfp13cqrk8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/docker/go-connections" + #:test-flags + #~(list "-skip" + (string-join + ;; Unable to verify certificate 1: x509: certificate signed by + ;; unknown authority. + (list "TestConfigClientExclusiveRootPools" + "TestConfigServerExclusiveRootPools") + "|")))) + (home-page "https://github.com/docker/go-connections") + (synopsis "Networking library for Go") + (description + "This package provides a library to work with network connections in the +Go language. In particular it provides tools to deal with network address +translation (NAT), proxies, sockets, and transport layer security (TLS).") + (license license:asl2.0))) + (define-public go-github-com-dpotapov-go-spnego (package (name "go-github-com-dpotapov-go-spnego") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 643c511b0cc..23e89a63f6f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2558,39 +2558,6 @@ store, and deliver content. It contains Docker Registry 2.0 and libraries to interact with distribution components.") (license license:asl2.0)))) -(define-public go-github-com-docker-go-connections - (package - (name "go-github-com-docker-go-connections") - (version "0.5.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/docker/go-connections") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0svfa9g4xvbn87l5kiww1jkijmci9g5821wjp81xz1rfp13cqrk8")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/docker/go-connections" - #:test-flags - #~(list "-skip" - (string-join - ;; Unable to verify certificate 1: x509: certificate signed by - ;; unknown authority. - (list "TestConfigClientExclusiveRootPools" - "TestConfigServerExclusiveRootPools") - "|")))) - (home-page "https://github.com/docker/go-connections") - (synopsis "Networking library for Go") - (description - "This package provides a library to work with network connections in the -Go language. In particular it provides tools to deal with network address -translation (NAT), proxies, sockets, and transport layer security (TLS).") - (license license:asl2.0))) - (define-public go-github-com-aarzilli-golua (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") (revision "0")) From 4669b9e621a8dfa276bb2e62dbecb20c38bd08c9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:13:25 +0000 Subject: [PATCH 617/862] gnu: go-github-com-dgryski-go-metro: Update to 0.0.0-20250106013310-edb8663e5e33. * gnu/packages/golang.scm (go-github-com-dgryski-go-metro): Update to 0.0.0-20250106013310-edb8663e5e33. Change-Id: Ic8405962e5e8474ce27add2ec6b6dfa54ec11e6f --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 23e89a63f6f..5e4986ac020 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2480,7 +2480,7 @@ SysVinit, and more.") (define-public go-github-com-dgryski-go-metro (package (name "go-github-com-dgryski-go-metro") - (version "0.0.0-20211217172704-adc40b04c140") + (version "0.0.0-20250106013310-edb8663e5e33") (source (origin (method git-fetch) (uri (git-reference @@ -2489,7 +2489,7 @@ SysVinit, and more.") (file-name (git-file-name name version)) (sha256 (base32 - "16y5vc5qf7aipi8basqza8l939hlmp7wqsv4y6gsqac3sp9ziqyj")))) + "0had4wbhhghr3rbm5v4dcj73nlq49k1mpklqn9gkmzkkxfs8hf6z")))) (build-system go-build-system) (arguments (list #:import-path "github.com/dgryski/go-metro")) From cc6a75bdc9599ed6115bce4f9510ce7bd7a7347d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:15:41 +0000 Subject: [PATCH 618/862] gnu: go-github-com-dgryski-go-metro: Move to golang-crypto. * gnu/packages/golang.scm (go-github-com-dgryski-go-metro): Move from here ... * gnu/packages/golang-crypto.scm: ... to here. Change-Id: I1aa3193aa57ca3b8dd1dca49038dbc045f8bfc1a --- gnu/packages/golang-crypto.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index d9cd2001ca3..d9754f1bf39 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -741,6 +741,30 @@ It is implemented as a mechanical translation of the non-SSE4/non-AESNI hash functions from @url{https://github.com/google/farmhash,Google's FarmHash}.") (license license:expat))) +(define-public go-github-com-dgryski-go-metro + (package + (name "go-github-com-dgryski-go-metro") + (version "0.0.0-20250106013310-edb8663e5e33") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dgryski/go-metro") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0had4wbhhghr3rbm5v4dcj73nlq49k1mpklqn9gkmzkkxfs8hf6z")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/dgryski/go-metro")) + (home-page "https://github.com/dgryski/go-metro") + (synopsis "Go translation of MetroHash") + (description + "This package provides a Go translation of the +@url{https://github.com/jandrewrogers/MetroHash, reference C++ code for +MetroHash}, a high quality, high performance hash algorithm.") + (license license:expat))) + (define-public go-github-com-dvsekhvalnov-jose2go (package (name "go-github-com-dvsekhvalnov-jose2go") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5e4986ac020..9257502743c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2477,30 +2477,6 @@ run programs as a service using a variety of supervisors, including systemd, SysVinit, and more.") (license license:zlib)))) -(define-public go-github-com-dgryski-go-metro - (package - (name "go-github-com-dgryski-go-metro") - (version "0.0.0-20250106013310-edb8663e5e33") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/dgryski/go-metro") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0had4wbhhghr3rbm5v4dcj73nlq49k1mpklqn9gkmzkkxfs8hf6z")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/dgryski/go-metro")) - (home-page "https://github.com/dgryski/go-metro") - (synopsis "Go translation of MetroHash") - (description - "This package provides a Go translation of the -@url{https://github.com/jandrewrogers/MetroHash, reference C++ code for -MetroHash}, a high quality, high performance hash algorithm.") - (license license:expat))) - (define-public go-github-com-dgryski-go-mph (package (name "go-github-com-dgryski-go-mph") From 598c55929f2fe3cd061812c22b98b96df32dd01b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:20:16 +0000 Subject: [PATCH 619/862] gnu: go-github-com-dgryski-go-mph: Move to golang-crypto. * gnu/packages/golang.scm (go-github-com-dgryski-go-mph): Move from here ... * gnu/packages/golang-crypto.scm: ... to here. Change-Id: I58bb4f8d6be1e840d214a2e1487a3637bbef0edf --- gnu/packages/golang-crypto.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index d9754f1bf39..dba918108f6 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -765,6 +765,31 @@ functions from @url{https://github.com/google/farmhash,Google's FarmHash}.") MetroHash}, a high quality, high performance hash algorithm.") (license license:expat))) +(define-public go-github-com-dgryski-go-mph + (package + (name "go-github-com-dgryski-go-mph") + (version "0.0.0-20211217222804-81a8625fb7ed") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dgryski/go-mph") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10q8l4jdzqf54bnnxka2jk6qzayri3ijv51knn1n0iimfric8w9g")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/dgryski/go-mph")) + (propagated-inputs + (list go-github-com-dgryski-go-metro)) + (home-page "https://github.com/dgryski/go-mph") + (synopsis "Go minimal perfect hash function") + (description + "This package implements a hash/displace minimal perfect hash function.") + (license license:expat))) + (define-public go-github-com-dvsekhvalnov-jose2go (package (name "go-github-com-dvsekhvalnov-jose2go") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9257502743c..c86cb1d6218 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2477,30 +2477,6 @@ run programs as a service using a variety of supervisors, including systemd, SysVinit, and more.") (license license:zlib)))) -(define-public go-github-com-dgryski-go-mph - (package - (name "go-github-com-dgryski-go-mph") - (version "0.0.0-20211217222804-81a8625fb7ed") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/dgryski/go-mph") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "10q8l4jdzqf54bnnxka2jk6qzayri3ijv51knn1n0iimfric8w9g")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/dgryski/go-mph")) - (propagated-inputs - (list go-github-com-dgryski-go-metro)) - (home-page "https://github.com/dgryski/go-mph") - (synopsis "Go minimal perfect hash function") - (description - "This package implements a hash/displace minimal perfect hash function.") - (license license:expat))) - (define-public go-github-com-docker-distribution (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329") (revision "0")) From 48637ed9f55ebbb16e7205b4ef02cd8fa9b3bd0a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:26:50 +0000 Subject: [PATCH 620/862] gnu: Add go-github-com-dgryski-go-rendezvous. * gnu/packages/golang-crypto.scm (go-github-com-dgryski-go-rendezvous): New variable. Change-Id: I863e2044ab365a80763226f8b8e8ea88719fe073 --- gnu/packages/golang-crypto.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index dba918108f6..c36d2c01172 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -790,6 +790,30 @@ MetroHash}, a high quality, high performance hash algorithm.") "This package implements a hash/displace minimal perfect hash function.") (license license:expat))) +(define-public go-github-com-dgryski-go-rendezvous + (package + (name "go-github-com-dgryski-go-rendezvous") + (version "0.0.0-20200823014737-9f7001d12a5f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dgryski/go-rendezvous") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hhdbsm5k19kh1fyxs4aibza9jylils4p3555lr8xalhj2iz3zlz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/dgryski/go-rendezvous")) + (home-page "https://github.com/dgryski/go-rendezvous") + (synopsis "Hashing functions for Golang") + ;; Project provides no README. + (description + "This package provides a hashing function.") + (license license:expat))) + (define-public go-github-com-dvsekhvalnov-jose2go (package (name "go-github-com-dvsekhvalnov-jose2go") From 3793af9bf876974a8ee7aa6e12332f2e71541f85 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:38:50 +0000 Subject: [PATCH 621/862] gnu: Add go-github-com-dgryski-go-linebreak. * gnu/packages/golang-xyz.scm (go-github-com-dgryski-go-linebreak): New variable. Change-Id: I1c6aa6edaa9cd5f0804495b09f37ccface8cca36 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e268c9501f1..00bf0c36658 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3507,6 +3507,31 @@ supports concurrent serializable transactions.") on throughput and hit ratio performance.") (license (list license:asl2.0 license:expat)))) +(define-public go-github-com-dgryski-go-linebreak + (package + (name "go-github-com-dgryski-go-linebreak") + (version "0.0.0-20180812204043-d8f37254e7d3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dgryski/go-linebreak") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jv8ldb9vh5mgh66g61fh418x16s8jszrykhkbc901y1llf2mi22")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/dgryski/go-linebreak")) + (home-page "https://github.com/dgryski/go-linebreak") + (synopsis "Wraps text at a given width") + (description + "Package linebreak wraps text at a given width, it's a translation of +@url{http://xxyxyz.org/line-breaking/, linear}, an implementation of +@url{https://en.wikipedia.org/wiki/SMAWK_algorithm, SMAWK algorithm}.") + (license license:expat))) + ;; The project provides no go.mod files and contains a veracity of commands ;; and libraries which might need missing dependencies, update them on demand. (define-public go-github-com-dgryski-trifles From 38e08f9d4f129882d3ef77db95570c0e2f9a448d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:44:21 +0000 Subject: [PATCH 622/862] gnu: Add go-github-com-dgryski-dgoogauth. * gnu/packages/golang-crypto.scm (go-github-com-dgryski-dgoogauth): New variable. Change-Id: I029051004b2d573eefa5e8289c822e967b799b33 --- gnu/packages/golang-crypto.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index c36d2c01172..2f465280df8 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -715,6 +715,31 @@ signature scheme specific to Decred) signatures. See the README.md files in the relevant sub packages for more details about those aspects.") (license license:isc))) +(define-public go-github-com-dgryski-dgoogauth + (package + (name "go-github-com-dgryski-dgoogauth") + (version "0.0.0-20190221195224-5a805980a5f3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dgryski/dgoogauth") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ma09ghwwizxaby37jmd9xjp6560p8lp29qqi8g4xw1d35h9nhny")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/dgryski/dgoogauth")) + (home-page "https://github.com/dgryski/dgoogauth") + (synopsis "Google Authenticator for Golang") + (description + "This is a Go implementation of the Google Authenticator library as +specified in @url{https://www.rfc-editor.org/rfc/rfc4226, RFC 4226} and +@url{https://www.rfc-editor.org/rfc/rfc6238, RFC 6238}.") + (license license:asl2.0))) + (define-public go-github-com-dgryski-go-farm (package (name "go-github-com-dgryski-go-farm") From 86138b2f7a76e1fcff59f682b3b7602148bcf434 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:51:22 +0000 Subject: [PATCH 623/862] gnu: Add go-github-com-outcaste-io-ristretto. * gnu/packages/golang-xyz.scm (go-github-com-outcaste-io-ristretto): New variable. Change-Id: Ia4bd1416b9c4da98d214668a03fc93f91ff7bad9 --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 00bf0c36658..0d77a45f516 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10530,6 +10530,40 @@ included in this package.") "This package implments recursive copy functinoality for directory.") (license license:expat))) +(define-public go-github-com-outcaste-io-ristretto + (package + (name "go-github-com-outcaste-io-ristretto") + (version "0.2.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/outcaste-io/ristretto") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07ndjrblmj9b3ghn10h040zvzf2i3mlzvfziklcqdkhxbr1hf1rq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/outcaste-io/ristretto")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-cespare-xxhash-v2 + go-github-com-dgryski-go-farm + go-github-com-dustin-go-humanize + go-github-com-pkg-errors + go-go-uber-org-atomic + go-golang-org-x-sys)) + (home-page "https://github.com/outcaste-io/ristretto") + (synopsis "Memory-bound Go cache") + (description + "Ristretto is a fast, fixed size, in-memory cache with a dual focus on +throughput and hit ratio performance. It's a fork of +@code{dgraph-io/ristretto} project.") + (license license:asl2.0))) + (define-public go-github-com-pbnjay-memory (let ((commit "7b4eea64cf580186c0eceb10dc94ba3a098af46c") (revision "2")) From af4b9d055b2d17fd7f04fdef57252f20d8cb056a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 21:58:45 +0000 Subject: [PATCH 624/862] gnu: go-github-com-magiconair-properties: Update to 1.8.9. * gnu/packages/golang.scm (go-github-com-magiconair-properties): Update to 1.8.9. Change-Id: Id1d01bb37a9a75621bea53815915432902751f9c --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c86cb1d6218..c8f4fa299c5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2375,7 +2375,7 @@ containers.") (define-public go-github-com-magiconair-properties (package (name "go-github-com-magiconair-properties") - (version "1.8.7") + (version "1.8.9") (source (origin (method git-fetch) @@ -2385,7 +2385,7 @@ containers.") (file-name (git-file-name name version)) (sha256 (base32 - "0xy5nq7mwhrdcwjlgh4arjn6w5mjla0kni3cvl3z5vxcrnfrn3ax")))) + "05nkgdzl393505arq6hf1wxjxs2iaqkc88v5cy1s068abpl65xy0")))) (build-system go-build-system) (arguments `(#:import-path "github.com/magiconair/properties")) From b0124e8af21b2c4490801cc5cf834f5514c76a04 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 22:01:08 +0000 Subject: [PATCH 625/862] gnu: go-github-com-magiconair-properties: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-magiconair-properties): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I573da477818bd38cda435568fcc751e28ee6d35e --- gnu/packages/golang-xyz.scm | 22 ++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 0d77a45f516..5d19d8fc41a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8604,6 +8604,28 @@ Printf/Sprintf etc.") generation.") (license license:asl2.0))) +(define-public go-github-com-magiconair-properties + (package + (name "go-github-com-magiconair-properties") + (version "1.8.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/magiconair/properties") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05nkgdzl393505arq6hf1wxjxs2iaqkc88v5cy1s068abpl65xy0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/magiconair/properties")) + (home-page "https://github.com/magiconair/properties") + (synopsis "Java properties scanner for Go") + (description "Java properties scanner for Go") + (license license:bsd-2))) + (define-public go-github-com-makenowjust-heredoc (package (name "go-github-com-makenowjust-heredoc") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c8f4fa299c5..0a8d18aa677 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2372,28 +2372,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-magiconair-properties - (package - (name "go-github-com-magiconair-properties") - (version "1.8.9") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/magiconair/properties") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "05nkgdzl393505arq6hf1wxjxs2iaqkc88v5cy1s068abpl65xy0")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/magiconair/properties")) - (home-page "https://github.com/magiconair/properties") - (synopsis "Java properties scanner for Go") - (description "Java properties scanner for Go") - (license license:bsd-2))) - (define-public go-github-com-rifflock-lfshook (package (name "go-github-com-rifflock-lfshook") From 3d098128bdc9e38705ab3d27eac2d49f77626cf1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Jan 2025 22:07:21 +0000 Subject: [PATCH 626/862] gnu: go-github-com-agext-levenshtein: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-agext-levenshtein): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I010d36d254b915db60779ca53a127c74f204e079 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5d19d8fc41a..204aafb4bb3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -547,6 +547,30 @@ XDG defined locations instead of hardcoding paths. The package also includes the locations of well known user directories.") (license license:expat))) +(define-public go-github-com-agext-levenshtein + (package + (name "go-github-com-agext-levenshtein") + (version "1.2.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/agext/levenshtein") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0a26c8pp9h5w66bhd9vb6lpvmhp30mz46pnh3a8vrjx50givb2lw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/agext/levenshtein")) + (home-page "https://github.com/agext/levenshtein") + (synopsis "Calculating the Levenshtein distance between two strings in Go") + (description + "Package levenshtein implements distance and similarity metrics for +strings, based on the Levenshtein measure.") + (license license:asl2.0))) + (define-public go-github-com-agnivade-levenshtein (package (name "go-github-com-agnivade-levenshtein") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0a8d18aa677..47d86992864 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1100,29 +1100,6 @@ network traffic so that it is not identified and subsequently blocked by network filtering devices.") (license license:bsd-2)))) -(define-public go-github-com-agext-levenshtein - (package - (name "go-github-com-agext-levenshtein") - (version "1.2.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/agext/levenshtein") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0a26c8pp9h5w66bhd9vb6lpvmhp30mz46pnh3a8vrjx50givb2lw")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/agext/levenshtein")) - (home-page "https://github.com/agext/levenshtein") - (synopsis "Calculating the Levenshtein distance between two strings in Go") - (description - "Package levenshtein implements distance and similarity metrics for -strings, based on the Levenshtein measure.") - (license license:asl2.0))) - (define-public go-github-com-apparentlymart-go-textseg-v13 (package (name "go-github-com-apparentlymart-go-textseg-v13") From 2ad343014b45906a1cf069ca847727d0414da016 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 12:37:00 +0000 Subject: [PATCH 627/862] gnu: go-github-com-apparentlymart-go-textseg-v13: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-apparentlymart-go-textseg-v13, go-github-com-apparentlymart-go-textseg-autoversion): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ifc8d6bf20573632f70bdce555736e83273b62f1f --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 37 ------------------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 204aafb4bb3..6aeb4c690ec 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -989,6 +989,43 @@ commands.") "This package implements optimal parameters for data-types.") (license license:expat))) +(define-public go-github-com-apparentlymart-go-textseg-v13 + (package + (name "go-github-com-apparentlymart-go-textseg-v13") + (version "13.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-textseg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gdgi0d52rq1xsdn9icc8lghn0f2q927cifmrlfxflf7bf21vism")))) + (build-system go-build-system) + (arguments + '(#:unpack-path "github.com/apparentlymart/go-textseg/v13" + #:import-path "github.com/apparentlymart/go-textseg/v13/textseg")) + (native-inputs + (list ruby)) + (home-page "https://github.com/apparentlymart/go-textseg") + (synopsis "Go implementation of Unicode Text Segmentation") + (description + "This package provides an implementation of the Unicode Text Segmentation +specification for Go. Specifically, it currently includes only the grapheme +cluster segmentation algorithm.") + ;; Project is released under Expat terms. Some parts use Unicode and + ;; ASL2.0 licenses. + (license (list license:expat license:unicode license:asl2.0)))) + +(define-public go-github-com-apparentlymart-go-textseg-autoversion + (package + (inherit go-github-com-apparentlymart-go-textseg-v13) + (name "go-github-com-apparentlymart-go-textseg-autoversion") + (arguments + '(#:unpack-path "github.com/apparentlymart/go-textseg/autoversion" + #:import-path "github.com/apparentlymart/go-textseg/autoversion/textseg")))) + (define-public go-github-com-arbovm-levenshtein (package (name "go-github-com-arbovm-levenshtein") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 47d86992864..e8839114907 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1100,43 +1100,6 @@ network traffic so that it is not identified and subsequently blocked by network filtering devices.") (license license:bsd-2)))) -(define-public go-github-com-apparentlymart-go-textseg-v13 - (package - (name "go-github-com-apparentlymart-go-textseg-v13") - (version "13.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/apparentlymart/go-textseg") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0gdgi0d52rq1xsdn9icc8lghn0f2q927cifmrlfxflf7bf21vism")))) - (build-system go-build-system) - (arguments - '(#:unpack-path "github.com/apparentlymart/go-textseg/v13" - #:import-path "github.com/apparentlymart/go-textseg/v13/textseg")) - (native-inputs - (list ruby)) - (home-page "https://github.com/apparentlymart/go-textseg") - (synopsis "Go implementation of Unicode Text Segmentation") - (description - "This package provides an implementation of the Unicode Text Segmentation -specification for Go. Specifically, it currently includes only the grapheme -cluster segmentation algorithm.") - ;; Project is released under Expat terms. Some parts use Unicode and - ;; ASL2.0 licenses. - (license (list license:expat license:unicode license:asl2.0)))) - -(define-public go-github-com-apparentlymart-go-textseg-autoversion - (package - (inherit go-github-com-apparentlymart-go-textseg-v13) - (name "go-github-com-apparentlymart-go-textseg-autoversion") - (arguments - '(#:unpack-path "github.com/apparentlymart/go-textseg/autoversion" - #:import-path "github.com/apparentlymart/go-textseg/autoversion/textseg")))) - (define-public go-github-com-operatorfoundation-shapeshifter-transports (package (name "go-github-com-operatorfoundation-shapeshifter-transports") From ebabe2ed817603b430e99e8b5c1807001329bac8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 13:30:08 +0000 Subject: [PATCH 628/862] gnu: go-github-com-apparentlymart-go-textseg: Add all variants. * gnu/packages/golang-xyz.scm (go-github-com-apparentlymart-go-textseg-v13): Inherit from go-github-com-apparentlymart-go-textseg-v12. [arguments]: : As no go files in project's root. : Add 'remove-submodule. : Remove it. [native-inputs]: Remove ruby. (go-github-com-apparentlymart-go-textseg-v9 go-github-com-apparentlymart-go-textseg-v10 go-github-com-apparentlymart-go-textseg-v11, go-github-com-apparentlymart-go-textseg-v12, go-github-com-apparentlymart-go-textseg-v15, go-github-com-apparentlymart-go-textseg-v16): New variables. Change-Id: I4e7c12e36324829ac9a1d25fa9ab0e6a755d1163 --- gnu/packages/golang-xyz.scm | 149 ++++++++++++++++++++++++++++++++---- 1 file changed, 135 insertions(+), 14 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6aeb4c690ec..cc16a06bd58 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -989,8 +989,102 @@ commands.") "This package implements optimal parameters for data-types.") (license license:expat))) +(define-public go-github-com-apparentlymart-go-textseg-v9 + (package + (name "go-github-com-apparentlymart-go-textseg-v9") + (version "9.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-textseg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pmnl674ksbizkdilqz1j44djws9dj23pc6bpbjma8jfjq6b2zax")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/apparentlymart/go-textseg/v9" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-submodule + (lambda* (#:key import-path #:allow-other-keys #:rest args) + (when (false-if-exception + (stat (string-append "src/" import-path "/autoversion"))) + (delete-file-recursively + (string-append "src/" import-path "/autoversion")))))))) + (home-page "https://github.com/apparentlymart/go-textseg") + (synopsis "Go implementation of Unicode Text Segmentation") + (description + "This package provides an implementation of the Unicode Text Segmentation +specification for Go. Specifically, it currently includes only the grapheme +cluster segmentation algorithm.") + ;; Project is released under Expat terms. Some parts use Unicode and + ;; ASL2.0 licenses. + (license (list license:expat license:unicode license:asl2.0)))) + +(define-public go-github-com-apparentlymart-go-textseg-v10 + (package + (inherit go-github-com-apparentlymart-go-textseg-v9) + (name "go-github-com-apparentlymart-go-textseg-v10") + (version "10.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-textseg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jj3w8m2vz574s9lq0468f56kq348wm7xhvrac5yrqw1axg6hjxd")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-apparentlymart-go-textseg-v9) + ((#:import-path _) "github.com/apparentlymart/go-textseg/v10"))))) + +(define-public go-github-com-apparentlymart-go-textseg-v11 + (package + (inherit go-github-com-apparentlymart-go-textseg-v10) + (name "go-github-com-apparentlymart-go-textseg-v11") + (version "11.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-textseg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gyhj8vqpmxcd7zjq3myj6872fqf1si09dwbv03msp7hf4g976cx")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-apparentlymart-go-textseg-v10) + ((#:import-path _) "github.com/apparentlymart/go-textseg/v11"))))) + +(define-public go-github-com-apparentlymart-go-textseg-v12 + (package + (inherit go-github-com-apparentlymart-go-textseg-v11) + (name "go-github-com-apparentlymart-go-textseg-v12") + (version "12.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-textseg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1i8p4kkgx8yhxwzqmnpx8f87s0h27n7jrdhv78ydh6618512x5v9")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-apparentlymart-go-textseg-v11) + ((#:import-path _) "github.com/apparentlymart/go-textseg/v12"))))) + (define-public go-github-com-apparentlymart-go-textseg-v13 (package + (inherit go-github-com-apparentlymart-go-textseg-v12) (name "go-github-com-apparentlymart-go-textseg-v13") (version "13.0.0") (source @@ -1002,21 +1096,48 @@ commands.") (file-name (git-file-name name version)) (sha256 (base32 "0gdgi0d52rq1xsdn9icc8lghn0f2q927cifmrlfxflf7bf21vism")))) - (build-system go-build-system) (arguments - '(#:unpack-path "github.com/apparentlymart/go-textseg/v13" - #:import-path "github.com/apparentlymart/go-textseg/v13/textseg")) - (native-inputs - (list ruby)) - (home-page "https://github.com/apparentlymart/go-textseg") - (synopsis "Go implementation of Unicode Text Segmentation") - (description - "This package provides an implementation of the Unicode Text Segmentation -specification for Go. Specifically, it currently includes only the grapheme -cluster segmentation algorithm.") - ;; Project is released under Expat terms. Some parts use Unicode and - ;; ASL2.0 licenses. - (license (list license:expat license:unicode license:asl2.0)))) + (substitute-keyword-arguments + (package-arguments go-github-com-apparentlymart-go-textseg-v12) + ((#:import-path _) "github.com/apparentlymart/go-textseg/v13"))))) + +(define-public go-github-com-apparentlymart-go-textseg-v15 + (package + (inherit go-github-com-apparentlymart-go-textseg-v13) + (name "go-github-com-apparentlymart-go-textseg-v15") + (version "15.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-textseg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bb7mxkxjhsp8kfwm26n0ds1mpwxxdpy4gndvyz26bqfm6v8vsa4")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-apparentlymart-go-textseg-v13) + ((#:import-path _) "github.com/apparentlymart/go-textseg/v15"))))) + +(define-public go-github-com-apparentlymart-go-textseg-v16 + (package + (inherit go-github-com-apparentlymart-go-textseg-v15) + (name "go-github-com-apparentlymart-go-textseg-v16") + (version "16.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-textseg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j7vm09cd36wm4z986qz5am3rk242v52amcapwbdbkbgzx2kqfkm")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-apparentlymart-go-textseg-v15) + ((#:import-path _) "github.com/apparentlymart/go-textseg/v16"))))) (define-public go-github-com-apparentlymart-go-textseg-autoversion (package From 7de5bbcc91d827c93417e1d030087ef57fb25f88 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 13:53:42 +0000 Subject: [PATCH 629/862] gnu: go-github-com-apparentlymart-go-textseg-autoversion: Update to 1.3.0. * gnu/packages/golang-xyz.scm (go-github-com-apparentlymart-go-textseg-autoversion): Update to 1.3.0. Do not inherit from go-github-com-apparentlymart-go-textseg-v13. [arguments] : As no go files in project's root. [propagated-inputs]: Add go-github-com-apparentlymart-go-textseg-v9, go-github-com-apparentlymart-go-textseg-v10, go-github-com-apparentlymart-go-textseg-v11, go-github-com-apparentlymart-go-textseg-v12, go-github-com-apparentlymart-go-textseg-v13, and go-github-com-apparentlymart-go-textseg-v15. [synopsis]: Add it. [description]: Likewise. Change-Id: I4d553ccfd1880455d77231042cd5a805a0613c48 --- gnu/packages/golang-xyz.scm | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cc16a06bd58..00b86e151b2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1141,11 +1141,38 @@ cluster segmentation algorithm.") (define-public go-github-com-apparentlymart-go-textseg-autoversion (package - (inherit go-github-com-apparentlymart-go-textseg-v13) (name "go-github-com-apparentlymart-go-textseg-autoversion") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-textseg") + (commit (go-version->git-ref version #:subdir "autoversion")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j7vm09cd36wm4z986qz5am3rk242v52amcapwbdbkbgzx2kqfkm")))) + (build-system go-build-system) (arguments - '(#:unpack-path "github.com/apparentlymart/go-textseg/autoversion" - #:import-path "github.com/apparentlymart/go-textseg/autoversion/textseg")))) + (list + #:skip-build? #t + #:import-path "github.com/apparentlymart/go-textseg/autoversion" + #:unpack-path "github.com/apparentlymart/go-textseg")) + (propagated-inputs + (list go-github-com-apparentlymart-go-textseg-v9 + go-github-com-apparentlymart-go-textseg-v10 + go-github-com-apparentlymart-go-textseg-v11 + go-github-com-apparentlymart-go-textseg-v12 + go-github-com-apparentlymart-go-textseg-v13 + go-github-com-apparentlymart-go-textseg-v15)) + (home-page "https://github.com/apparentlymart/go-textseg") + (synopsis "Wrap go-textesg based on the Unicode Golang version") + (description + "This package is a wrapper around each of the the +Unicode-version-specific textseg implementations that selects an +implementation automatically based on the Unicode version of the Go standard +library that it's being built against.") + (license (list license:expat license:unicode license:asl2.0)))) (define-public go-github-com-arbovm-levenshtein (package From 474a236a64fe20949398106fb3882f295cf591cf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 14:02:04 +0000 Subject: [PATCH 630/862] gnu: go-github-com-vmihailenco-msgpack-v4: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-vmihailenco-msgpack-v4): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Id5655a227d052d960bf1c72e2f496145420a8cb1 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 00b86e151b2..b757b5e28d6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13159,6 +13159,34 @@ encoded values to create the picture in a code with no inherent errors.") weighted moving averages}.") (license license:expat))) +(define-public go-github-com-vmihailenco-msgpack-v4 + (package + (name "go-github-com-vmihailenco-msgpack-v4") + (version "4.3.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vmihailenco/msgpack") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0aiavk7b5fn050bbc0naldk2bsl60f8wil5i6a1cfp3lxxnvmvng")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/vmihailenco/msgpack/v4")) + (native-inputs + (list go-gopkg-in-check-v1)) + (propagated-inputs + (list go-github-com-vmihailenco-tagparser)) + (home-page "https://github.com/vmihailenco/msgpack") + (synopsis "MessagePack encoding for Golang") + (description + "This package provides implementation of MessagePack encoding for Go +programming language.") + (license license:bsd-2))) + (define-public go-github-com-warpfork-go-fsx (package (name "go-github-com-warpfork-go-fsx") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e8839114907..53423132f03 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3955,33 +3955,6 @@ anti-fragmentation protection.") performance-related options.") (license license:expat))) -(define-public go-github-com-vmihailenco-msgpack-v4 - (package - (name "go-github-com-vmihailenco-msgpack-v4") - (version "4.3.12") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/vmihailenco/msgpack") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0aiavk7b5fn050bbc0naldk2bsl60f8wil5i6a1cfp3lxxnvmvng")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/vmihailenco/msgpack/v4")) - (native-inputs - (list go-gopkg-in-check-v1)) - (propagated-inputs - (list go-github-com-vmihailenco-tagparser)) - (home-page "https://github.com/vmihailenco/msgpack") - (synopsis "MessagePack encoding for Golang") - (description - "This package provides implementation of MessagePack encoding for Go -programming language.") - (license license:bsd-2))) - (define-public go-github-com-vmihailenco-tagparser (package (name "go-github-com-vmihailenco-tagparser") From 2b5ba4766132c72ccfc9a99bf9014d9d87db72a3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 14:03:10 +0000 Subject: [PATCH 631/862] gnu: go-github-com-vmihailenco-msgpack-v4: Update to 4.3.13. * gnu/packages/golang-xyz.scm (go-github-com-vmihailenco-msgpack-v4): Update to 4.3.13. Change-Id: I69463c43e4af1866f3eb8f3656180ef03695e435 --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b757b5e28d6..a21e4efde4f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13162,7 +13162,7 @@ weighted moving averages}.") (define-public go-github-com-vmihailenco-msgpack-v4 (package (name "go-github-com-vmihailenco-msgpack-v4") - (version "4.3.12") + (version "4.3.13") (source (origin (method git-fetch) @@ -13171,7 +13171,7 @@ weighted moving averages}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0aiavk7b5fn050bbc0naldk2bsl60f8wil5i6a1cfp3lxxnvmvng")))) + (base32 "08jdq8wh6i1f2avl46l5ndfrvhfl4l276hz4y1xq6agwbwrvycdy")))) (build-system go-build-system) (arguments (list From 8a67b121b64c3457dfa693eee85a1d9cd65c4387 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 14:18:39 +0000 Subject: [PATCH 632/862] gnu: Add go-google-golang-org-appengine. * gnu/packages/golang-xyz.scm (go-google-golang-org-appengine): New variable. Change-Id: Ieb682f8171487bc63bff7b110f78708d4636d3e4 --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a21e4efde4f..67a87516fb8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14060,6 +14060,40 @@ that handle none of the event types.") Go.") (license license:expat))) +(define-public go-google-golang-org-appengine + (package + (name "go-google-golang-org-appengine") + (version "1.6.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/appengine") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17pbiximrd340wdx3pm1jkpsgvss80pax7hif906xglh7mj9zqx2")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - google.golang.org/appengine/v2 + (delete-file-recursively "v2"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "google.golang.org/appengine")) + (propagated-inputs + (list go-github-com-golang-protobuf + go-golang-org-x-text + go-google-golang-org-protobuf)) + (home-page "https://google.golang.org/appengine") + (synopsis "Go App Engine packages") + (description + "Package appengine provides basic functionality for Google App Engine.") + (license license:asl2.0))) + (define-public go-gopkg-in-alecthomas-kingpin-v2 (package (inherit go-github-com-alecthomas-kingpin) From 6c79dc4548ac45ce45242f0f1e5a997bd758d62f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 14:18:46 +0000 Subject: [PATCH 633/862] gnu: Add go-github-com-vmihailenco-msgpack-v5. * gnu/packages/golang-xyz.scm (go-github-com-vmihailenco-msgpack-v5): New variable. Change-Id: I80c504fe09c917188f441c6e71a1b87db6c05fd0 --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 67a87516fb8..8e854462ed1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13187,6 +13187,29 @@ weighted moving averages}.") programming language.") (license license:bsd-2))) +(define-public go-github-com-vmihailenco-msgpack-v5 + (package + (inherit go-github-com-vmihailenco-msgpack-v4) + (name "go-github-com-vmihailenco-msgpack-v5") + (version "5.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vmihailenco/msgpack") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vkyyywvip0vwjmnmnmkl9hz345k54nigj2mq8fbbjx96xpgghvz")))) + (arguments + (list + #:import-path "github.com/vmihailenco/msgpack/v5")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-vmihailenco-tagparser + go-google-golang-org-appengine)))) + (define-public go-github-com-warpfork-go-fsx (package (name "go-github-com-warpfork-go-fsx") From e7cf74a4d4aa8cb04628e46bc6af531185aaff89 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 14:30:20 +0000 Subject: [PATCH 634/862] gnu: go-github-com-zclconf-go-cty: Update to 1.16.0. * gnu/packages/golang.scm (go-github-com-zclconf-go-cty): Update to 1.16.0. [arguments] : As no go files in project's root. : Adjust to the project's root. : Remove it. [propagated-inputs]: Remove go-github-com-vmihailenco-msgpack-v4 and go-github-com-apparentlymart-go-textseg-v13; add go-github-com-apparentlymart-go-textseg-v15 and go-github-com-vmihailenco-msgpack-v5. Change-Id: I1511603cc0365d66df806305086bc28c04fec593 --- gnu/packages/golang.scm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 53423132f03..32f686fbb26 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3602,7 +3602,7 @@ deleting secrets from the system keyring.") (define-public go-github-com-zclconf-go-cty (package (name "go-github-com-zclconf-go-cty") - (version "1.10.0") + (version "1.16.0") (source (origin (method git-fetch) @@ -3611,17 +3611,18 @@ deleting secrets from the system keyring.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0f9a6vy45gcx5pg5bnfs63manaqw80h7xzvmj3b80af38304zr71")))) + (base32 "0rvvs9rplvh9gv90lsvwgw203ysz47qksw1xz3whhdvhn7ns8s8f")))) (build-system go-build-system) (arguments - '(#:unpack-path "github.com/zclconf/go-cty" - #:import-path "github.com/zclconf/go-cty/cty")) + (list + #:skip-build? #t + #:import-path "github.com/zclconf/go-cty")) (native-inputs (list go-github-com-google-go-cmp)) (propagated-inputs - (list go-golang-org-x-text - go-github-com-vmihailenco-msgpack-v4 - go-github-com-apparentlymart-go-textseg-v13)) + (list go-github-com-apparentlymart-go-textseg-v15 + go-github-com-vmihailenco-msgpack-v5 + go-golang-org-x-text)) (home-page "https://github.com/zclconf/go-cty") (synopsis "Type system for dynamic values in Go applications") (description From 24c9c00e6fcbcc973fc68d290a857014d61fc1a3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 14:32:52 +0000 Subject: [PATCH 635/862] gnu: go-github-com-zclconf-go-cty: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-zclconf-go-cty): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I16b398cfae170fdf34cf5e86a003db9b298509ef --- gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 33 --------------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8e854462ed1..f8fb2fc7cf7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13694,6 +13694,39 @@ provides Go APIs that allow you to easily embed a scripting language to your Go host programs.") (license license:expat))) +(define-public go-github-com-zclconf-go-cty + (package + (name "go-github-com-zclconf-go-cty") + (version "1.16.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zclconf/go-cty") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rvvs9rplvh9gv90lsvwgw203ysz47qksw1xz3whhdvhn7ns8s8f")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/zclconf/go-cty")) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-apparentlymart-go-textseg-v15 + go-github-com-vmihailenco-msgpack-v5 + go-golang-org-x-text)) + (home-page "https://github.com/zclconf/go-cty") + (synopsis "Type system for dynamic values in Go applications") + (description + "@code{cty} (pronounced \"see-tie\") is a dynamic type system for +applications written in Go that need to represent user-supplied values without +losing type information. The primary intended use is for implementing +configuration languages, but other uses may be possible too.") + (license license:expat))) + (define-public go-go-abhg-dev-komplete (package (name "go-go-abhg-dev-komplete") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 32f686fbb26..af515d511b8 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3599,39 +3599,6 @@ system.") deleting secrets from the system keyring.") (license license:expat))) -(define-public go-github-com-zclconf-go-cty - (package - (name "go-github-com-zclconf-go-cty") - (version "1.16.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/zclconf/go-cty") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0rvvs9rplvh9gv90lsvwgw203ysz47qksw1xz3whhdvhn7ns8s8f")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "github.com/zclconf/go-cty")) - (native-inputs - (list go-github-com-google-go-cmp)) - (propagated-inputs - (list go-github-com-apparentlymart-go-textseg-v15 - go-github-com-vmihailenco-msgpack-v5 - go-golang-org-x-text)) - (home-page "https://github.com/zclconf/go-cty") - (synopsis "Type system for dynamic values in Go applications") - (description - "@code{cty} (pronounced \"see-tie\") is a dynamic type system for -applications written in Go that need to represent user-supplied values without -losing type information. The primary intended use is for implementing -configuration languages, but other uses may be possible too.") - (license license:expat))) - (define-public go-github-com-kardianos-minwinsvc (package (name "go-github-com-kardianos-minwinsvc") From 4ffe1d1bd988348e9a06530fc2b871b319ba54f8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:01:18 +0000 Subject: [PATCH 636/862] gnu: Add go-github-com-zclconf-go-cty-debug. * gnu/packages/golang-xyz.scm (go-github-com-zclconf-go-cty-debug): New variable. Change-Id: I432d0f3b67a861d27cb8e7aeb40855e08f923b0d --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f8fb2fc7cf7..3d1dce7d915 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13727,6 +13727,34 @@ losing type information. The primary intended use is for implementing configuration languages, but other uses may be possible too.") (license license:expat))) +(define-public go-github-com-zclconf-go-cty-debug + (package + (name "go-github-com-zclconf-go-cty-debug") + (version "0.0.0-20240509010212-0d6042c53940") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zclconf/go-cty-debug") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0izkqnciir10zamr1ca32bmyir1d5hfyxh84dj2q39bw1sj3fs7j")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/zclconf/go-cty-debug")) + (propagated-inputs + (list go-github-com-google-go-cmp + go-github-com-zclconf-go-cty)) + (home-page "https://github.com/zclconf/go-cty-debug") + (synopsis "Debugging and inspection utilities for cty") + (description + "This package implements a functionality for debugging and inspection +utilities for cty Golang module.") + (license license:expat))) + (define-public go-go-abhg-dev-komplete (package (name "go-go-abhg-dev-komplete") From d1245d600aec8c719ae6c2b85a5eb39897badac1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:01:20 +0000 Subject: [PATCH 637/862] gnu: Add go-github-com-apparentlymart-go-dump. * gnu/packages/golang-xyz.scm (go-github-com-apparentlymart-go-dump): New variable. Change-Id: Icd9fa47dc754c93d9c455ef9c89242f57ffe0184 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3d1dce7d915..f4f3fd5d5ef 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -989,6 +989,31 @@ commands.") "This package implements optimal parameters for data-types.") (license license:expat))) +(define-public go-github-com-apparentlymart-go-dump + (package + (name "go-github-com-apparentlymart-go-dump") + (version "0.0.0-20190214190832-042adf3cf4a0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apparentlymart/go-dump") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1yqc50v82za54j2yy3ln7jzx983scb5gbh195wb6vmvqj18q696q")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/apparentlymart/go-dump")) + (home-page "https://github.com/apparentlymart/go-dump") + (synopsis "Utility for formatting Go values in a pretty-printed way") + (description + "This package implements a functionality for generating pretty-printed +dumps of Go values.") + (license license:mpl2.0))) + (define-public go-github-com-apparentlymart-go-textseg-v9 (package (name "go-github-com-apparentlymart-go-textseg-v9") From 7bd78867deb390014f460813e77599b2c30dc4f0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:01:21 +0000 Subject: [PATCH 638/862] gnu: go-github-com-hashicorp-hcl-v2: Fix tests. * gnu/packages/golang-xyz.scm (go-github-com-hashicorp-hcl-v2): [arguments] : Skip 3 failing test matches. [native-inputs]: Add go-github-com-apparentlymart-go-dump, go-github-com-go-test-deep, go-github-com-kr-pretty, go-github-com-kylelemons-godebug, go-github-com-sergi-go-diff, go-github-com-spf13-pflag, go-github-com-zclconf-go-cty-debug, and go-golang-org-x-crypto. Change-Id: I11e453ff3a7c947d7738474d6bbea03d86effc37 --- gnu/packages/golang-xyz.scm | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f4f3fd5d5ef..dcd0c4781e7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6404,9 +6404,24 @@ expressing configuration which is easy for both humans and machines to read.") (build-system go-build-system) (arguments (list - #:import-path "github.com/hashicorp/hcl/v2")) + #:import-path "github.com/hashicorp/hcl/v2" + #:test-flags + #~(list "-skip" + (string-join + (list "TestExpressionParseAndValue/.*unk.*" + "TestFunctionCallExprValue/valid_call_with_unknown_arg.*" + "TestFunctionCallExprValue/valid_call_with_dynamic_arg") + "|")))) (native-inputs - (list go-github-com-davecgh-go-spew)) + (list go-github-com-apparentlymart-go-dump + go-github-com-davecgh-go-spew + go-github-com-go-test-deep + go-github-com-kr-pretty + go-github-com-kylelemons-godebug + go-github-com-sergi-go-diff + go-github-com-spf13-pflag + go-github-com-zclconf-go-cty-debug + go-golang-org-x-crypto)) (inputs (list go-github-com-agext-levenshtein go-github-com-apparentlymart-go-textseg-v13 From 60fb3cc50d8f637b59343cdc241b4b67251f7b94 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:15:11 +0000 Subject: [PATCH 639/862] gnu: go-git-sr-ht-rockorager-tcell-term: Update to 0.10.0. * gnu/packages/golang.scm (go-git-sr-ht-rockorager-tcell-term): Update to 0.10.0. [propagated-inputs]: Remove go-golang-org-x-sys, go-golang-org-x-term, go-gopkg-in-check-v1, go-github-com-davecgh-go-spew, and go-github-com-stretchr-testify. [native-inputs]: Add go-github-com-stretchr-testify. Change-Id: I17678d1833026f906b78592ec47ff87a3e793231 --- gnu/packages/golang.scm | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index af515d511b8..e9d968eb8eb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3063,7 +3063,7 @@ over strings.") (define-public go-git-sr-ht-rockorager-tcell-term (package (name "go-git-sr-ht-rockorager-tcell-term") - (version "0.9.0") + (version "0.10.0") (source (origin (method git-fetch) (uri (git-reference @@ -3072,19 +3072,16 @@ over strings.") (file-name (git-file-name name version)) (sha256 (base32 - "177ladvpiiw7sb0hsjjv9p2yv5wpqpw6nqardkm8mqqlj0swa9xx")))) + "1z64yzr2l5j5r5rqi89jk4madn3ak8hw95lva5ra7gnlyhh2vs05")))) (build-system go-build-system) (arguments (list #:import-path "git.sr.ht/~rockorager/tcell-term")) + (native-inputs + (list go-github-com-stretchr-testify)) (propagated-inputs - (list go-golang-org-x-sys - go-golang-org-x-term - go-gopkg-in-check-v1 - go-github-com-mattn-go-runewidth - go-github-com-davecgh-go-spew - go-github-com-stretchr-testify + (list go-github-com-creack-pty go-github-com-gdamore-tcell-v2 - go-github-com-creack-pty)) + go-github-com-mattn-go-runewidth)) (home-page "https://git.sr.ht/~rockorager/tcell-term") (synopsis "Terminal widget for @code{tcell}") (description From 30cbe8c7e014a963657cfc690461b6729b66b95e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:16:59 +0000 Subject: [PATCH 640/862] gnu: go-git-sr-ht-rockorager-tcell-term: Move to golang-xyz. * gnu/packages/golang.scm (go-git-sr-ht-rockorager-tcell-term): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I493bc41998770bca0794f92e0bc69a6eeeea656b --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang.scm | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index dcd0c4781e7..2f97a0085f2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -343,6 +343,35 @@ annotations on struct fields. It came as a spin-off from commands.") (license license:expat))) +(define-public go-git-sr-ht-rockorager-tcell-term + (package + (name "go-git-sr-ht-rockorager-tcell-term") + (version "0.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~rockorager/tcell-term") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1z64yzr2l5j5r5rqi89jk4madn3ak8hw95lva5ra7gnlyhh2vs05")))) + (build-system go-build-system) + (arguments + (list #:import-path "git.sr.ht/~rockorager/tcell-term")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-creack-pty + go-github-com-gdamore-tcell-v2 + go-github-com-mattn-go-runewidth)) + (home-page "https://git.sr.ht/~rockorager/tcell-term") + (synopsis "Terminal widget for @code{tcell}") + (description + "This package provides a virtual terminal widget for the @code{tcell} +Go library.") + (license license:expat))) + (define-public go-git-sr-ht-rockorager-vaxis (package (name "go-git-sr-ht-rockorager-vaxis") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e9d968eb8eb..90ce745340b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3060,35 +3060,6 @@ encoding in Go.") over strings.") (license license:expat))) -(define-public go-git-sr-ht-rockorager-tcell-term - (package - (name "go-git-sr-ht-rockorager-tcell-term") - (version "0.10.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://git.sr.ht/~rockorager/tcell-term") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1z64yzr2l5j5r5rqi89jk4madn3ak8hw95lva5ra7gnlyhh2vs05")))) - (build-system go-build-system) - (arguments - (list #:import-path "git.sr.ht/~rockorager/tcell-term")) - (native-inputs - (list go-github-com-stretchr-testify)) - (propagated-inputs - (list go-github-com-creack-pty - go-github-com-gdamore-tcell-v2 - go-github-com-mattn-go-runewidth)) - (home-page "https://git.sr.ht/~rockorager/tcell-term") - (synopsis "Terminal widget for @code{tcell}") - (description - "This package provides a virtual terminal widget for the @code{tcell} -Go library.") - (license license:expat))) - (define-public go-github-com-xo-terminfo (package (name "go-github-com-xo-terminfo") From dc78cf0633d6eaa681b1217f8d7647a6d815d5cc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:18:55 +0000 Subject: [PATCH 641/862] gnu: Remove go-github-com-ayufan-golang-kardianos-service. Not in use by any packages in Guix, no updates for the last 9 years. It's a clone of . * gnu/packages/golang.scm (go-github-com-ayufan-golang-kardianos-service): Delete variable. Change-Id: Ifbfee5366891e8349407b00998a900cee9a6d46b --- gnu/packages/golang.scm | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 90ce745340b..7fbf31d5c2a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2365,36 +2365,6 @@ finding resources located relative to the executable file.") (home-page "https://github.com/kardianos/osext") (license license:bsd-3)))) -(define-public go-github-com-ayufan-golang-kardianos-service - (let ((commit "0c8eb6d8fff2e2fb884a7bfd23e183fb63c0eff3") - (revision "0")) - (package - (name "go-github-com-ayufan-golang-kardianos-service") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url - "https://github.com/ayufan/golang-kardianos-service") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0x0cn7l5gda2khsfypix7adxd5yqighzn04mxjw6hc4ayrh7his5")))) - (build-system go-build-system) - (native-inputs - (list go-github-com-kardianos-osext)) - (arguments - '(#:tests? #f ;FIXME tests fail: Service is not running. - #:import-path "github.com/ayufan/golang-kardianos-service")) - (home-page "https://github.com/ayufan/golang-kardianos-service") - (synopsis "Go interface to a variety of service supervisors") - (description "This package provides @code{service}, a Go module that can -run programs as a service using a variety of supervisors, including systemd, -SysVinit, and more.") - (license license:zlib)))) - (define-public go-github-com-docker-distribution (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329") (revision "0")) From f14b65cd868ab3788d8aa88daffb95a13a035bdb Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:25:09 +0000 Subject: [PATCH 642/862] gnu: go-github-com-btcsuite-btclog: Update to 1.0.0. * gnu/packages/golang.scm (go-github-com-btcsuite-btclog): Update to 1.0.0. Change-Id: I2a45e3e818053b4d5b0785a5a0555726c7856d27 --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7fbf31d5c2a..4a81d4640e4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2702,21 +2702,19 @@ and lookup requests. Browse requests are not supported yet.") (license license:unlicense)))) (define-public go-github-com-btcsuite-btclog - (let ((commit "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a") - (revision "0")) (package (name "go-github-com-btcsuite-btclog") - (version (git-version "0.0.3" revision commit)) + (version "1.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/btcsuite/btclog") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "02dl46wcnfpg9sqvg0ipipkpnd7lrf4fnvb9zy56jqa7mfcwc7wk")))) + "1aqpgb3bw1g5am2az4f1g1a54xii0axvxp0zymhyl8jdk6hhyyd8")))) (build-system go-build-system) (arguments '(#:import-path "github.com/btcsuite/btclog")) @@ -2725,7 +2723,7 @@ and lookup requests. Browse requests are not supported yet.") (description "Package @command{btclog} defines a logger interface and provides a default implementation of a subsystem-aware leveled logger implementing the same interface.") - (license license:isc)))) + (license license:isc))) (define-public go-github-com-mr-tron-base58 (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312") From 7aa9c96d709c3b9929687a858f824088efb2ab89 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:26:19 +0000 Subject: [PATCH 643/862] gnu: go-github-com-btcsuite-btclog: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-btcsuite-btclog): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Idabd6bbe1ecdac641a4a7eab0f391691f4834a00 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2f97a0085f2..183ec344dde 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1952,6 +1952,31 @@ don't require a full database server such as Postgres or MySQL.") indicator to any terminal application.") (license license:asl2.0))) +(define-public go-github-com-btcsuite-btclog + (package + (name "go-github-com-btcsuite-btclog") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/btcsuite/btclog") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1aqpgb3bw1g5am2az4f1g1a54xii0axvxp0zymhyl8jdk6hhyyd8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/btcsuite/btclog")) + (home-page "https://github.com/btcsuite/btclog") + (synopsis "Subsystem aware logger for Go") + (description + "Package @command{btclog} defines a logger interface and provides a +default implementation of a subsystem-aware leveled logger implementing the +same interface.") + (license license:isc))) + (define-public go-github-com-buildkite-shellwords (package (name "go-github-com-buildkite-shellwords") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4a81d4640e4..ed5d599fd4f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2701,30 +2701,6 @@ and lookup requests. Browse requests are not supported yet.") (description "Go wrapper for taglib") (license license:unlicense)))) -(define-public go-github-com-btcsuite-btclog - (package - (name "go-github-com-btcsuite-btclog") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/btcsuite/btclog") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1aqpgb3bw1g5am2az4f1g1a54xii0axvxp0zymhyl8jdk6hhyyd8")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/btcsuite/btclog")) - (home-page "https://github.com/btcsuite/btclog") - (synopsis "Subsystem aware logger for Go") - (description "Package @command{btclog} defines a logger interface and -provides a default implementation of a subsystem-aware leveled logger -implementing the same interface.") - (license license:isc))) - (define-public go-github-com-mr-tron-base58 (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312") (revision "0")) From 86c9adc597823f7827ae8117b92688039572707a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:28:55 +0000 Subject: [PATCH 644/862] gnu: Add go-github-com-btcsuite-btclog-v2. * gnu/packages/golang-xyz.scm (go-github-com-btcsuite-btclog-v2): New variable. Change-Id: Idb9b2e9767ebdca9813ab30c134aa24ce838d358 --- gnu/packages/golang-xyz.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 183ec344dde..3ce80bcfb65 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1977,6 +1977,25 @@ default implementation of a subsystem-aware leveled logger implementing the same interface.") (license license:isc))) +(define-public go-github-com-btcsuite-btclog-v2 + (package + (inherit go-github-com-btcsuite-btclog) + (name "go-github-com-btcsuite-btclog-v2") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/btcsuite/btclog") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0v9zh39d35647g6m9b74l5z1ifbnk4chbglnbmj5ndzj9alzsc38")))) + (arguments + (list + #:import-path "github.com/btcsuite/btclog/v2" + #:unpack-path "github.com/btcsuite/btclog")))) + (define-public go-github-com-buildkite-shellwords (package (name "go-github-com-buildkite-shellwords") From 8d5d6882fd2ad422eee9844dbc3d100180a5ba6c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:30:07 +0000 Subject: [PATCH 645/862] gnu: Remove go-github-com-burntsushi-locker. Not in use by any packages in Guix, no updates for the last 8 years. * gnu/packages/golang.scm (go-github-com-burntsushi-locker): Delete variable. Change-Id: I5a5dc69dedcc91d51cc1008e9a0cb783800cba79 --- gnu/packages/golang.scm | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ed5d599fd4f..3a1e528c909 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3026,40 +3026,6 @@ over strings.") "The terminfo package implements terminfo database reading for Go.") (license license:expat))) -(define-public go-github-com-burntsushi-locker - (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a") - (revision "0")) - (package - (name "go-github-com-burntsushi-locker") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/BurntSushi/locker") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/BurntSushi/locker")) - (home-page "https://github.com/BurntSushi/locker") - (synopsis "Manage named ReadWrite mutexes in Go") - (description "Golang package for conveniently using named read/write -locks. These appear to be especially useful for synchronizing access to -session based information in web applications. - -The common use case is to use the package level functions, which use a package -level set of locks (safe to use from multiple goroutines -simultaneously). However, you may also create a new separate set of locks -test. - -All locks are implemented with read-write mutexes. To use them like a regular -mutex, simply ignore the RLock/RUnlock functions.") - (license license:unlicense)))) - (define-public go-github-com-cheekybits-genny (package (name "go-github-com-cheekybits-genny") From 5fb69f5f7ec57bf6f63384f7411378f1789d394c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Jan 2025 15:31:52 +0000 Subject: [PATCH 646/862] gnu: Remove go-github-com-cheekybits-genny. Not in use by any packages in Guix, looks like abandoned, see . * gnu/packages/golang.scm (go-github-com-cheekybits-genny): Delete variable. Change-Id: I19c3ab8c3fc1381efa9c125de55aa2fc179938a8 --- gnu/packages/golang.scm | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3a1e528c909..10bb22f4fe4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3026,32 +3026,6 @@ over strings.") "The terminfo package implements terminfo database reading for Go.") (license license:expat))) -(define-public go-github-com-cheekybits-genny - (package - (name "go-github-com-cheekybits-genny") - (version "1.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/cheekybits/genny") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1pcir5ic86713aqa51581rfb67rgc3m0c72ddjfcp3yakv9vyq87")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/cheekybits/genny")) - (propagated-inputs - (list go-golang-org-x-tools)) - (native-inputs - (list go-github-com-stretchr-testify)) - (synopsis "Generics for Go") - (description "This package provides @code{genny}, a Go language -implementation of generics.") - (home-page "https://github.com/cheekybits/genny/") - (license license:expat))) - (define-public go-github-com-lunixbochs-vtclean (package (name "go-github-com-lunixbochs-vtclean") From 0ac97c7e72dc67ae9989f17b3a1536d909d96e2a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:15:48 +0000 Subject: [PATCH 647/862] gnu: go-github-com-google-go-jsonnet: Update to 0.20.0. * gnu/packages/golang.scm (go-github-com-google-go-jsonnet): Update to 0.20.0. Change-Id: Iffce50b49b180e4a629052ac98ae9054816ac57d --- gnu/packages/golang.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 10bb22f4fe4..254fa1b7bab 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3979,7 +3979,7 @@ aware of your profiles and configuration in ~/.aws/config.") (define-public go-github-com-google-go-jsonnet (package (name "go-github-com-google-go-jsonnet") - (version "0.18.0") + (version "0.20.0") (source (origin (method git-fetch) (uri (git-reference @@ -3988,10 +3988,11 @@ aware of your profiles and configuration in ~/.aws/config.") (file-name (git-file-name name version)) (sha256 (base32 - "1dghqygag123zkgh2vrnq82cdag5z0p03v3489pwhs06r5g27wm3")))) + "1qfr6yvhj33rhx1icxh99bbpngh5kwq1x7r39315y53bw216vbrz")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/google/go-jsonnet/cmd/jsonnet" + '(#:intall-source? #f + #:import-path "github.com/google/go-jsonnet/cmd/jsonnet" #:unpack-path "github.com/google/go-jsonnet")) (propagated-inputs (list go-sigs-k8s-io-yaml go-gopkg-in-yaml-v2 go-github-com-sergi-go-diff From 86e4e6426ca4e0904219fb43418b1c4324e420a4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:16:35 +0000 Subject: [PATCH 648/862] gnu: go-github-com-google-go-jsonnet: Rename variable. * gnu/packages/golang.scm (go-github-com-google-go-jsonnet): Rename variable to go-jsonnet as it's a final CLI programm and not a library used by any package in Guix. Change-Id: I88ef319530bd64e9675d8f86dbd78640fc617e89 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 254fa1b7bab..8299638bcd5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3976,9 +3976,9 @@ aware of your profiles and configuration in ~/.aws/config.") "This package provides INI file read and write functionality in Go.") (license license:asl2.0))) -(define-public go-github-com-google-go-jsonnet +(define-public go-jsonnet (package - (name "go-github-com-google-go-jsonnet") + (name "go-jsonnet") (version "0.20.0") (source (origin (method git-fetch) From 9d18601c985f90e69850b507996b854122418260 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:20:23 +0000 Subject: [PATCH 649/862] gnu: go-jsonnet: Adjust inputs. * gnu/packages/golang.scm (go-jsonnet): Move all propagated-inputs to native-inputs as it's a final CLI command. Change-Id: I95c55cb1c95e7e794ed963d9e991431625fbaee8 --- gnu/packages/golang.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8299638bcd5..1a626bfc4ab 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3994,7 +3994,7 @@ aware of your profiles and configuration in ~/.aws/config.") '(#:intall-source? #f #:import-path "github.com/google/go-jsonnet/cmd/jsonnet" #:unpack-path "github.com/google/go-jsonnet")) - (propagated-inputs (list go-sigs-k8s-io-yaml go-gopkg-in-yaml-v2 + (native-inputs (list go-sigs-k8s-io-yaml go-gopkg-in-yaml-v2 go-github-com-sergi-go-diff go-github-com-fatih-color)) (home-page "https://github.com/google/go-jsonnet") From 4ca7437d6b9302477aa8adcafa4add94aa117222 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:23:19 +0000 Subject: [PATCH 650/862] gnu: go-jsonnet: Move to golang-xyz. * gnu/packages/golang.scm (go-jsonnet): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Iea9d2781c60ca0c1c17d4bdf126f972fa47d22a3 --- gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 30 ------------------------------ 2 files changed, 33 insertions(+), 30 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3ce80bcfb65..55050a62d24 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15293,6 +15293,39 @@ correctly."))) (string-append (package-description go-zgo-at-jfmt) " This package provides a command line interface (CLI) tool.")))) +(define-public go-jsonnet + (package + (name "go-jsonnet") + (version "0.20.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/go-jsonnet") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1qfr6yvhj33rhx1icxh99bbpngh5kwq1x7r39315y53bw216vbrz")))) + (build-system go-build-system) + (arguments + (list + #:intall-source? #f + #:import-path "github.com/google/go-jsonnet/cmd/jsonnet" + #:unpack-path "github.com/google/go-jsonnet")) + (native-inputs + (list go-github-com-fatih-color + go-github-com-sergi-go-diff + go-gopkg-in-yaml-v2 + go-sigs-k8s-io-yaml)) + (home-page "https://github.com/google/go-jsonnet") + (synopsis "Go implementation of Jsonnet") + (description + "This package provides an implementation of the @url{http://jsonnet.org/, +Jsonnet} data templating language in Go. It is a +feature-complete,production-ready implementation, compatible with the original +Jsonnet C++implementation.") + (license license:asl2.0))) + (define-public go-ifacemaker (package/inherit go-github-com-vburenin-ifacemaker (name "go-ifacemaker") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1a626bfc4ab..570d8dcbf55 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3976,36 +3976,6 @@ aware of your profiles and configuration in ~/.aws/config.") "This package provides INI file read and write functionality in Go.") (license license:asl2.0))) -(define-public go-jsonnet - (package - (name "go-jsonnet") - (version "0.20.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/google/go-jsonnet") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1qfr6yvhj33rhx1icxh99bbpngh5kwq1x7r39315y53bw216vbrz")))) - (build-system go-build-system) - (arguments - '(#:intall-source? #f - #:import-path "github.com/google/go-jsonnet/cmd/jsonnet" - #:unpack-path "github.com/google/go-jsonnet")) - (native-inputs (list go-sigs-k8s-io-yaml go-gopkg-in-yaml-v2 - go-github-com-sergi-go-diff - go-github-com-fatih-color)) - (home-page "https://github.com/google/go-jsonnet") - (synopsis "Go implementation of Jsonnet") - (description - "This package provides an implementation of the @url{http://jsonnet.org/, -Jsonnet} data templating language in Go. It is a feature-complete, -production-ready implementation, compatible with the original Jsonnet C++ -implementation.") - (license license:asl2.0))) - ;; XXX: This repository has been archived by the owner on Dec 29, 2022. It is ;; now read-only. It's only used by kiln, consider to remove it when it does ;; no longer require it. From d78e30019125cb83d0a3ff1513000c06c67d558e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:31:48 +0000 Subject: [PATCH 651/862] gnu: Remove go-github-com-imdario-mergo. * gnu/packages/golang.scm (go-github-com-imdario-mergo): Delete variable. (go-dario-cat-mergo): Override go-github-com-imdario-mergo's package definition instead of inherit it. [source] : Fix permament redirection -> . [native-inputs]: Remove go-gopkg-in-yaml-v2; add go-gopkg-in-yaml-v3. [home-page]: Fix permament redirection -> . Change-Id: I612c7d028a92e877fd20900dffaba267405d99e6 --- gnu/packages/golang.scm | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 570d8dcbf55..b7e0f7d4590 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3202,25 +3202,25 @@ Porter2 stemmer}. It is written completely using finite state machines to do suffix comparison, rather than the string-based or tree-based approaches.") (license license:asl2.0)))) -(define-public go-github-com-imdario-mergo +(define-public go-dario-cat-mergo (package - (name "go-github-com-imdario-mergo") - (version "0.3.10") + (name "go-dario-cat-mergo") + (version "1.0.0") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/imdario/mergo") + (url "https://github.com/darccio/mergo") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "09h765p8yby9r8s0a3hv5kl8n2i382mda76wmvk48w1cc1w9s92p")))) + "037k2bd97vnbyhn2sczxk0j6ijmv06n1282f76i3ky73s3qmqnlf")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/imdario/mergo")) + `(#:import-path "dario.cat/mergo")) (native-inputs - (list go-gopkg-in-yaml-v2)) - (home-page "https://github.com/imdario/mergo/") + (list go-gopkg-in-yaml-v3)) + (home-page "https://github.com/darccio/mergo") (synopsis "Helper to merge structs and maps in Golang") (description "Helper to merge structs and maps in Golang. Useful for configuration default values, avoiding messy if-statements. @@ -3231,27 +3231,6 @@ recursively any exported one. It also won't merge structs inside maps (because they are not addressable using Go reflection).") (license license:bsd-3))) -(define-public go-dario-cat-mergo - (package - (inherit go-github-com-imdario-mergo) - (name "go-dario-cat-mergo") - (version "1.0.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/imdario/mergo") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "037k2bd97vnbyhn2sczxk0j6ijmv06n1282f76i3ky73s3qmqnlf")))) - (build-system go-build-system) - (arguments - `(#:unpack-path "dario.cat/mergo" - #:import-path "dario.cat/mergo")) - (native-inputs - (list go-gopkg-in-yaml-v3)))) - (define-public go-github-com-olekukonko-ts (let ((commit "78ecb04241c0121483589a30b0814836a746187d") (revision "0")) From 1c6787f9a50f54cb3803040c3236624ce2d89bdf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:41:25 +0000 Subject: [PATCH 652/862] gnu: go-dario-cat-mergo: Update to 1.0.1. * gnu/packages/golang.scm (go-dario-cat-mergo): Update to 1.0.1. Change-Id: I1e7cd5c414b8038828dd1a1cdf5f6ab9b26a1881 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b7e0f7d4590..11dbc5e5bd6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3205,7 +3205,7 @@ suffix comparison, rather than the string-based or tree-based approaches.") (define-public go-dario-cat-mergo (package (name "go-dario-cat-mergo") - (version "1.0.0") + (version "1.0.1") (source (origin (method git-fetch) (uri (git-reference @@ -3214,7 +3214,7 @@ suffix comparison, rather than the string-based or tree-based approaches.") (file-name (git-file-name name version)) (sha256 (base32 - "037k2bd97vnbyhn2sczxk0j6ijmv06n1282f76i3ky73s3qmqnlf")))) + "0v12vc9bmqq89k4y60a8ykmv85hpa7nh73sn9b7ars143pxvmhf1")))) (build-system go-build-system) (arguments `(#:import-path "dario.cat/mergo")) From 9016419e80b4b88f83089387c177d39940ce9570 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:43:01 +0000 Subject: [PATCH 653/862] gnu: go-dario-cat-mergo: Move to golang-xyz. * gnu/packages/golang.scm (go-dario-cat-mergo): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I3c82451ec5c3147e00f6598986903dda735f9e0f --- gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 29 ----------------------------- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 55050a62d24..ba26fba4ef8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -250,6 +250,37 @@ use the C library from the project called FUSE.") a human-readable byte format.") (license license:asl2.0))) +(define-public go-dario-cat-mergo + (package + (name "go-dario-cat-mergo") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/darccio/mergo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0v12vc9bmqq89k4y60a8ykmv85hpa7nh73sn9b7ars143pxvmhf1")))) + (build-system go-build-system) + (arguments + (list + #:import-path "dario.cat/mergo")) + (native-inputs + (list go-gopkg-in-yaml-v3)) + (home-page "https://github.com/darccio/mergo") + (synopsis "Helper to merge structs and maps in Golang") + (description + "Helper to merge structs and maps in Golang. Useful for configuration +default values, avoiding messy if-statements. + +Mergo merges same-type structs and maps by setting default values in +zero-value fields. Mergo won't merge unexported (private) fields. It will do +recursively any exported one. It also won't merge structs inside +maps (because they are not addressable using Go reflection).") + (license license:bsd-3))) + (define-public go-git-sr-ht-emersion-go-scfg (package (name "go-git-sr-ht-emersion-go-scfg") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 11dbc5e5bd6..5e84c533c89 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3202,35 +3202,6 @@ Porter2 stemmer}. It is written completely using finite state machines to do suffix comparison, rather than the string-based or tree-based approaches.") (license license:asl2.0)))) -(define-public go-dario-cat-mergo - (package - (name "go-dario-cat-mergo") - (version "1.0.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/darccio/mergo") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0v12vc9bmqq89k4y60a8ykmv85hpa7nh73sn9b7ars143pxvmhf1")))) - (build-system go-build-system) - (arguments - `(#:import-path "dario.cat/mergo")) - (native-inputs - (list go-gopkg-in-yaml-v3)) - (home-page "https://github.com/darccio/mergo") - (synopsis "Helper to merge structs and maps in Golang") - (description "Helper to merge structs and maps in Golang. Useful for -configuration default values, avoiding messy if-statements. - -Mergo merges same-type structs and maps by setting default values in -zero-value fields. Mergo won't merge unexported (private) fields. It will do -recursively any exported one. It also won't merge structs inside -maps (because they are not addressable using Go reflection).") - (license license:bsd-3))) - (define-public go-github-com-olekukonko-ts (let ((commit "78ecb04241c0121483589a30b0814836a746187d") (revision "0")) From d07d98b17a64d02a1f30db3be8d93bfe4bb4b263 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:45:18 +0000 Subject: [PATCH 654/862] gnu: Remove go-github-com-mtibben-androiddnsfix. Not in use by any other packages in Guix, it was a temporary solution implemented 5 years ago according to project's about field: "androiddnsfix is a hack around the issues in " * gnu/packages/golang.scm (go-github-com-mtibben-androiddnsfix, go-github-com-androiddnsfix): Delete variables. Change-Id: Ie2fda123b03b1cf99c70b39198eaabfe3e6baa8f --- gnu/packages/golang.scm | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5e84c533c89..7daa05030a1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3873,36 +3873,6 @@ aware of your profiles and configuration in ~/.aws/config.") @code{Secret Service} DBus interface.") (license license:expat))) -(define-public go-github-com-mtibben-androiddnsfix - (let ((commit "ff02804463540c36e3a148dcf4b009d003cf2a31") - (revision "0")) - (package - (name "go-github-com-mtibben-androiddnsfix") - (version (git-version "0.0.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mtibben/androiddnsfix") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1pcbjs793kd0yg3dcp79agfxm7xm3sldx2r7v66ipzpcq0j2npi2")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/mtibben/androiddnsfix" - #:phases %standard-phases)) - (synopsis "Work around lack of @file{/etc/resolv.conf} on Android") - (description - "This package allows Go applications to work around lack of -@file{/etc/resolv.conf} on Android, as described in -@url{https://github.com/golang/go/issues/8877}.") - (home-page "https://github.com/mtibben/androiddnsfix") - (license license:expat)))) - -(define-public go-github-com-androiddnsfix - (deprecated-package "go-github-com-androiddnsfix" go-github-com-mtibben-androiddnsfix)) - (define-public go-github-com-go-ini-ini (package (name "go-github-com-go-ini-ini") From 388687e7de697777a7eb18a9c1c5d13c5768142a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:51:28 +0000 Subject: [PATCH 655/862] gnu: Remove go-github-com-tevino-abool. Not in use by any packages in Guix, no updates for 3 years. * gnu/packages/golang.scm (go-github-com-tevino-abool): Delete variable. Change-Id: I92bfdd50835ec06fc8ec2eaa72b098660ef8ed79 --- gnu/packages/golang.scm | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7daa05030a1..76097fc4ef1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2229,32 +2229,6 @@ developed by the Go team. It provides IDE features to any LSP-compatible editor.") (license license:bsd-3))) -(define-public go-github-com-tevino-abool - (let ((commit - "3c25f2fe7cd0ef3eabefce1d90efd69a65d35b12") - (revision "0")) - (package - (name "go-github-com-tevino-abool") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/tevino/abool") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1wxqrclxk93q0aj15z596dx2y57x9nkhi64nbrr5cxnhxn8vwixm")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/tevino/abool")) - (home-page "https://github.com/tevino/abool") - (synopsis "Atomic boolean library for Go code") - (description "This package is atomic boolean library for Go code, -optimized for performance yet simple to use.") - (license license:expat)))) - (define-public gron (package (name "gron") From c0598cd90cb8162730b3865bdaf8eec99b8f74cf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 14:52:50 +0000 Subject: [PATCH 656/862] gnu: Remove go-github-com-whyrusleeping-progmeter. Not in use by any packages in Guix and no updates for 7 years. * gnu/packages/golang.scm (go-github-com-whyrusleeping-progmeter): Delete variable. Change-Id: I5b7f0737e23ec1efc1502f8094cb9758f2437b91 --- gnu/packages/golang.scm | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 76097fc4ef1..180270e3f13 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2856,31 +2856,6 @@ GIT_TRACE mechanism.") anchor names.") (license license:expat))) -(define-public go-github-com-whyrusleeping-progmeter - (let ((commit "f3e57218a75b913eff88d49a52c1debf9684ea04") - (revision "0")) - (package - (name "go-github-com-whyrusleeping-progmeter") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/whyrusleeping/progmeter") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0xs8rz6yhpvj9512c5v3b8dwr2kivywnyyfxzdfbr6fy1xc8zskb")))) - (build-system go-build-system) - (arguments - '(#:import-path - "github.com/whyrusleeping/progmeter")) - (home-page "https://github.com/whyrusleeping/progmeter") - (synopsis "Progress meter for Go") - (description "Progress meter for Go.") - (license license:expat)))) - (define-public go-github-com-whyrusleeping-stump (let ((commit "206f8f13aae1697a6fc1f4a55799faf955971fc5") (revision "0")) From 695ff1ae63dba54dac4097d8f16579a363df861c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 18:49:49 +0000 Subject: [PATCH 657/862] gnu: Remove go-github-com-whyrusleeping-stump. Not in use by any other packages in Guix, no updates for 9 years. * gnu/packages/golang.scm (go-github-com-whyrusleeping-stump): Delete variable. Change-Id: I5ab2d0038c06964740b1c89556acd9919dd1a23f --- gnu/packages/golang.scm | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 180270e3f13..da25fcd0d2e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2856,31 +2856,6 @@ GIT_TRACE mechanism.") anchor names.") (license license:expat))) -(define-public go-github-com-whyrusleeping-stump - (let ((commit "206f8f13aae1697a6fc1f4a55799faf955971fc5") - (revision "0")) - (package - (name "go-github-com-whyrusleeping-stump") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/whyrusleeping/stump") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1s40qdppjnk8gijk7x6kbviiqz62nz3h6gic2q9cwcmq8r5isw7n")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/whyrusleeping/stump")) - (home-page "https://github.com/whyrusleeping/stump") - (synopsis "Very basic logging package for Go") - (description "A simple log library, for when you don't really care to -have super fancy logs.") - (license license:expat)))) - (define-public go-github-com-lucasb-eyer-go-colorful (package (name "go-github-com-lucasb-eyer-go-colorful") From 6332710164e8b92321c0ee3e5a762564041279c8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 18:56:54 +0000 Subject: [PATCH 658/862] gnu: Remove go-github-com-zenhack-go-notmuch. Not in use by any other packages in Guix, no updates for 3 years. * gnu/packages/golang.scm (go-github-com-zenhack-go-notmuch): Delete variable. Change-Id: I1a28aff813415e912eff1c57136590bff5896472 --- gnu/packages/golang.scm | 46 ----------------------------------------- 1 file changed, 46 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index da25fcd0d2e..7a13673b9ab 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3902,52 +3902,6 @@ result is a conceptually simple, but highly performant, disk-backed storage syst (base32 "1lk91s00y4qy4pjh8638b5lfkgwyl282g1m27srsf7qfn58y16a2")))) -(define-public go-github-com-zenhack-go-notmuch - (package - (name "go-github-com-zenhack-go-notmuch") - (version "0.0.0-20211022191430-4d57e8ad2a8b") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/zenhack/go.notmuch") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1j2s5smjf7pp7i72dw12sm9iz961y3cy8nkm7hmrg53f6wna57h9")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/zenhack/go.notmuch" - #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'patch-notmuch-path - (lambda* (#:key inputs import-path - #:allow-other-keys) - (substitute* (find-files (string-append "src/" - import-path) "\\.go$") - (("// #cgo LDFLAGS:.*$") - (string-append "// #cgo LDFLAGS: -lnotmuch " - "-L" - #$(this-package-input "notmuch") - "/lib\n" - "// #cgo CFLAGS: " - "-I" - #$(this-package-input "notmuch") - "/include\n"))))) - (add-before 'check 'unpack-test-fixtures - (lambda* (#:key inputs import-path - #:allow-other-keys) - (invoke "tar" "xf" - #+notmuch-fixtures "-C" - (string-append "src/" import-path - "/fixtures"))))))) - (inputs (list notmuch)) - (home-page "https://github.com/zenhack/go.notmuch") - (synopsis "Go bindings to libnotmuch") - (description - "The notmuch package provides a Go language binding to the notmuch -email library.") - (license license:gpl3+))) - (define-public go-github-com-riywo-loginshell (package (name "go-github-com-riywo-loginshell") From dbcd2985263b883a65de514d980bd0f4e2b0d91a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 19:00:33 +0000 Subject: [PATCH 659/862] gnu: Remove go-gopkg-in-djherbis-times-v1. Not in use by any other packages in Guix, succeeded by go-github-com-djherbis-times. * gnu/packages/golang.scm (go-gopkg-in-djherbis-times-v1): Delete variable. Change-Id: I20b4d2010241b435a842e555a9cdf6ab26312aa0 --- gnu/packages/golang.scm | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7a13673b9ab..19e1bd4df96 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3571,30 +3571,6 @@ That is, @code{gofumpt} is happy with a subset of the formats that (native-inputs '()) (inputs '()))) -(define-public go-gopkg-in-djherbis-times-v1 - (package - (name "go-gopkg-in-djherbis-times-v1") - (version "1.5.0") - (home-page "https://gopkg.in/djherbis/times.v1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url home-page) - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1xvl3rgjif5yf62p16yk05kxrsmzhz1kkqisvw4k02svzq10qbfy")) - (modules '((guix build utils))) - (snippet '(delete-file-recursively "example")))) - (build-system go-build-system) - (arguments - '(#:import-path "gopkg.in/djherbis/times.v1")) - (synopsis "Go library for getting file times") - (description - "Provides a platform-independent way to get atime, mtime, ctime and btime for files.") - (license license:expat))) - (define-public go-github-com-valyala-bytebufferpool (package (name "go-github-com-valyala-bytebufferpool") From 97ea9da58ed5db78da74ec345f603d835cd91a57 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 19:07:23 +0000 Subject: [PATCH 660/862] gnu: gron: Move to golang-web. * gnu/packages/golang.scm (gron): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: Ib657465e9603c96e285f4658b38b5c0c37535756 --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 31 ------------------------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 02bd307acdc..ac3f885e751 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8580,6 +8580,37 @@ go-github-com-multiformats-go-multiaddr-dns."))) (description "This package provides a CLI binary executible built from go-github-com-tdewolff-minify-v2 source."))) +(define-public gron + (package + (name "gron") + (version "0.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tomnomnom/gron") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1sj34b6yv0qigy3aq7qmwf8bqxp1a8qh9p10lzkpw58s1c0iyh36")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/tomnomnom/gron")) + (native-inputs + (list go-github-com-fatih-color + go-github-com-mattn-go-colorable + go-github-com-nwidger-jsoncolor + go-github-com-pkg-errors)) + (home-page "https://github.com/tomnomnom/gron") + (synopsis "Transform JSON to make it easier to grep") + (description + "This package transforms JSON into discrete assignments to make it easier +to use line-based tools such as grep to search for what you want and see the +absolute \"path\" to it.") + (license license:expat))) + (define-public xurls (package (inherit go-mvdan-cc-xurls-v2) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 19e1bd4df96..e7791f996f4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2229,37 +2229,6 @@ developed by the Go team. It provides IDE features to any LSP-compatible editor.") (license license:bsd-3))) -(define-public gron - (package - (name "gron") - (version "0.7.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/tomnomnom/gron") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1sj34b6yv0qigy3aq7qmwf8bqxp1a8qh9p10lzkpw58s1c0iyh36")))) - (build-system go-build-system) - (arguments - (list - #:install-source? #f - #:import-path "github.com/tomnomnom/gron")) - (native-inputs - (list go-github-com-fatih-color - go-github-com-mattn-go-colorable - go-github-com-nwidger-jsoncolor - go-github-com-pkg-errors)) - (home-page "https://github.com/tomnomnom/gron") - (synopsis "Transform JSON to make it easier to grep") - (description - "This package transforms JSON into discrete assignments to make it easier -to use line-based tools such as grep to search for what you want and see the -absolute \"path\" to it.") - (license license:expat))) - (define-public go-github-com-google-cadvisor (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd") (revision "0")) From 4fd5007c05484086464a320cbb32b09bba67b0af Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 19:13:27 +0000 Subject: [PATCH 661/862] gnu: go-github-com-cli-safeexec: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-cli-safeexec): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ib58339d2e0658deec2c4f191b201d007b73f6380 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ba26fba4ef8..c8dd5015d63 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2845,6 +2845,30 @@ levels that works by wrapping the standard @code{log} library.") dependencies and is intended to be used in long running processes.") (license license:expat))) +(define-public go-github-com-cli-safeexec + (package + (name "go-github-com-cli-safeexec") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cli/safeexec") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j6hspjx9kyxn98nbisawx6wvbi1d6rpzr6p2rzhllm673wibwr3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cli/safeexec")) + (home-page "https://github.com/cli/safeexec") + (synopsis "Safe implementation of Go's exec.Command") + (description + "This package provides a Go module that provides a stabler alternative to +@code{exec.LookPath()}.") + (license license:bsd-2))) + (define-public go-github-com-client9-misspell (package (name "go-github-com-client9-misspell") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e7791f996f4..96e5a2d97f3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2479,28 +2479,6 @@ Looks for an identical word on a list of words, if none is found, look for a similar word.") (license license:expat)))) -(define-public go-github-com-cli-safeexec - (package - (name "go-github-com-cli-safeexec") - (version "1.0.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/cli/safeexec") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0j6hspjx9kyxn98nbisawx6wvbi1d6rpzr6p2rzhllm673wibwr3")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/cli/safeexec")) - (home-page "https://github.com/cli/safeexec") - (synopsis "Safe implementation of Go's exec.Command") - (description "This package provides a Go module that provides a stabler -alternative to @@code{exec.LookPath()}.") - (license license:bsd-2))) - (define-public go-github-com-stevedonovan-luar (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead") (revision "0")) From 2d92ce9a18e144175b1acc4fc2ceb4e3e30120a9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 19:30:56 +0000 Subject: [PATCH 662/862] gnu: go-github-com-mr-tron-base58: Update to 1.2.0. * gnu/packages/golang.scm (go-github-com-mr-tron-base58): Update to 1.2.0. Change-Id: I32c22775a4de14100332e5dfbddbe5b47055d36f --- gnu/packages/golang.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 96e5a2d97f3..de08c903c5a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2623,31 +2623,28 @@ and lookup requests. Browse requests are not supported yet.") (license license:unlicense)))) (define-public go-github-com-mr-tron-base58 - (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312") - (revision "0")) (package (name "go-github-com-mr-tron-base58") - (version (git-version "1.1.0" revision commit)) + (version "1.2.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/mr-tron/base58") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "12qhgnn9wf3c1ang16r4i778whk4wsrj7d90h2xgmz4fi1469rqa")))) + "0ngxfpaa26p53lciz9vf2gn21l77kz8pcm2asxbv0l87g6xwqp7h")))) (build-system go-build-system) (arguments - `(#:unpack-path "github.com/mr-tron/base58" - #:import-path "github.com/mr-tron/base58/base58")) + `(#:import-path "github.com/mr-tron/base58")) (home-page "https://github.com/mr-tron/base58") (synopsis "Fast implementation of base58 encoding on Golang") (description "Fast implementation of base58 encoding on Golang. A trivial @command{big.Int} encoding benchmark results in 6 times faster encoding and 8 times faster decoding.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-spaolacci-murmur3 (package From 2f4ea332deec7ee6bcb05bda7f60ba058ae0a908 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 19:32:41 +0000 Subject: [PATCH 663/862] gnu: go-github-com-mr-tron-base58: Move to golang-crypto. * gnu/packages/golang.scm (go-github-com-mr-tron-base58): Move from here ... * gnu/packages/golang-crypto.scm: ... to here. Change-Id: I85d07e3451db02d39df1620ce9dfd69baaa0b8eb --- gnu/packages/golang-crypto.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 2f465280df8..303024f9e4a 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1437,6 +1437,31 @@ implementations are described in \"Fast SHA-256 Implementations on Intel Architecture Processors\" by J. Guilford et al.") (license license:asl2.0))) +(define-public go-github-com-mr-tron-base58 + (package + (name "go-github-com-mr-tron-base58") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mr-tron/base58") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ngxfpaa26p53lciz9vf2gn21l77kz8pcm2asxbv0l87g6xwqp7h")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mr-tron/base58")) + (home-page "https://github.com/mr-tron/base58") + (synopsis "Fast implementation of base58 encoding on Golang") + (description + "Fast implementation of base58 encoding on Golang. A trivial +@command{big.Int} encoding benchmark results in 6 times faster encoding and 8 +times faster decoding.") + (license license:expat))) + (define-public go-github-com-multiformats-go-multihash (package (name "go-github-com-multiformats-go-multihash") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index de08c903c5a..91bb63417ec 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2622,30 +2622,6 @@ and lookup requests. Browse requests are not supported yet.") (description "Go wrapper for taglib") (license license:unlicense)))) -(define-public go-github-com-mr-tron-base58 - (package - (name "go-github-com-mr-tron-base58") - (version "1.2.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mr-tron/base58") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0ngxfpaa26p53lciz9vf2gn21l77kz8pcm2asxbv0l87g6xwqp7h")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/mr-tron/base58")) - (home-page "https://github.com/mr-tron/base58") - (synopsis "Fast implementation of base58 encoding on Golang") - (description "Fast implementation of base58 encoding on Golang. A -trivial @command{big.Int} encoding benchmark results in 6 times faster -encoding and 8 times faster decoding.") - (license license:expat))) - (define-public go-github-com-spaolacci-murmur3 (package (name "go-github-com-spaolacci-murmur3") From 9a88ba7802645a6d3637aeec08d227d5659ea70a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 19:36:31 +0000 Subject: [PATCH 664/862] gnu: go-github-com-fsnotify-fsnotify: Skip one test. * gnu/packages/golang-xyz.scm (go-github-com-fsnotify-fsnotify) [arguments] : Skip one failing test. Change-Id: I978b5987e29953c228f6bf187d547cb1beebe939 --- gnu/packages/golang-xyz.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c8dd5015d63..ffc8e9acced 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4801,7 +4801,8 @@ quoting, commenting, and escaping.") (build-system go-build-system) (arguments (list - #:import-path "github.com/fsnotify/fsnotify")) + #:import-path "github.com/fsnotify/fsnotify" + #:test-flags #~(list "-skip" "TestDiffMatch/3"))) (propagated-inputs (list go-golang-org-x-sys)) (home-page "https://github.com/fsnotify/fsnotify") From 63ae00be2a4244ad6c2e00175d72687257088a90 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 19:43:57 +0000 Subject: [PATCH 665/862] gnu: go-github-com-spaolacci-murmur3: Move to golang-crypto. * gnu/packages/golang.scm (go-github-com-spaolacci-murmur3): Move from here ... * gnu/packages/golang-crypto.scm: ... to here. Change-Id: I05fca3251cf7706f8e34295657d57e43f1213079 --- gnu/packages/golang-crypto.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 303024f9e4a..7e3588f209b 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1908,6 +1908,31 @@ adding the ability to obtain the list of host key algorithms for a known host.") (license license:asl2.0))) +(define-public go-github-com-spaolacci-murmur3 + (package + (name "go-github-com-spaolacci-murmur3") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spaolacci/murmur3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lv3zyz3jy2d76bhvvs8svygx66606iygdvwy5cwc0p5z8yghq25")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/spaolacci/murmur3")) + (home-page "https://github.com/spaolacci/murmur3") + (synopsis "Native MurmurHash3 Go implementation") + (description + "Native Go implementation of Austin Appleby's third MurmurHash +revision (aka MurmurHash3). Reference algorithm has been slightly hacked as +to support the streaming mode required by Go's standard Hash interface.") + (license license:bsd-3))) + (define-public go-github-com-twmb-murmur3 (package (name "go-github-com-twmb-murmur3") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 91bb63417ec..1ed230a19c1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2622,32 +2622,6 @@ and lookup requests. Browse requests are not supported yet.") (description "Go wrapper for taglib") (license license:unlicense)))) -(define-public go-github-com-spaolacci-murmur3 - (package - (name "go-github-com-spaolacci-murmur3") - (version "1.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/spaolacci/murmur3") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1lv3zyz3jy2d76bhvvs8svygx66606iygdvwy5cwc0p5z8yghq25")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/spaolacci/murmur3")) - (home-page "https://github.com/spaolacci/murmur3") - (synopsis "Native MurmurHash3 Go implementation") - (description "Native Go implementation of Austin Appleby's third MurmurHash -revision (aka MurmurHash3). - -Reference algorithm has been slightly hacked as to support the streaming mode -required by Go's standard Hash interface.") - (license license:bsd-3))) - (define-public go-github-com-sabhiram-go-gitignore (let ((commit "525f6e181f062064d83887ed2530e3b1ba0bc95a") (revision "1")) From e9be86b1ac630a4c1732ca3b93900509f88bf695 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 19:54:52 +0000 Subject: [PATCH 666/862] gnu: go-git-sr-ht-adnano-go-gemini: Update to 0.2.5. * gnu/packages/golang.scm (go-git-sr-ht-adnano-go-gemini): Update to 0.2.5. [propagated-inputs]: Remove go-golang-org-x-text. Change-Id: I21944aecb805547be323d1e0a007ff3073d4f047 --- gnu/packages/golang.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1ed230a19c1..b767fd7beb6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3319,7 +3319,7 @@ or capture raw audio.") (define-public go-git-sr-ht-adnano-go-gemini (package (name "go-git-sr-ht-adnano-go-gemini") - (version "0.2.3") + (version "0.2.5") (source (origin (method git-fetch) (uri (git-reference @@ -3328,12 +3328,12 @@ or capture raw audio.") (file-name (git-file-name name version)) (sha256 (base32 - "0mv4x4cfwyhh77wfb3r221bhr84x4nmjpgysnvvjgmbnnafsgfns")))) + "0xxcljhk9abjjdcl1dnxaq7qwvl13rq51bwps5nxlkib7fxgbyyl")))) (build-system go-build-system) (arguments (list #:import-path "git.sr.ht/~adnano/go-gemini")) (propagated-inputs - (list go-golang-org-x-net go-golang-org-x-text)) + (list go-golang-org-x-net)) (home-page "https://git.sr.ht/~adnano/go-gemini") (synopsis "Gemini protocol in Go") (description From 5dd90d4e84fbb3e449abbd096b3fbb6c70abe0a1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:01:02 +0000 Subject: [PATCH 667/862] gnu: go-git-sr-ht-adnano-go-gemini: Move to golang-web. * gnu/packages/golang.scm (go-git-sr-ht-adnano-go-gemini): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: Idade0e9089654e4acc456d05e01e4fc5f2aef943 --- gnu/packages/golang-web.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index ac3f885e751..45f3c44d4a8 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -115,6 +115,33 @@ API service accounts for Go.") (license license:asl2.0))) +(define-public go-git-sr-ht-adnano-go-gemini + (package + (name "go-git-sr-ht-adnano-go-gemini") + (version "0.2.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~adnano/go-gemini") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xxcljhk9abjjdcl1dnxaq7qwvl13rq51bwps5nxlkib7fxgbyyl")))) + (build-system go-build-system) + (arguments + (list + #:import-path "git.sr.ht/~adnano/go-gemini")) + (propagated-inputs + (list go-golang-org-x-net)) + (home-page "https://git.sr.ht/~adnano/go-gemini") + (synopsis "Gemini protocol in Go") + (description + "The @code{gemini} package implements the Gemini protocol in Go. It +provides an API similar to that of NET/HTTP to facilitate the development of +Gemini clients and servers.") + (license license:expat))) + (define-public go-git-sr-ht-emersion-gqlclient (package (name "go-git-sr-ht-emersion-gqlclient") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b767fd7beb6..ed01ecd70d2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3316,32 +3316,6 @@ sinks and sources.") or capture raw audio.") (license license:expat)))) -(define-public go-git-sr-ht-adnano-go-gemini - (package - (name "go-git-sr-ht-adnano-go-gemini") - (version "0.2.5") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://git.sr.ht/~adnano/go-gemini") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0xxcljhk9abjjdcl1dnxaq7qwvl13rq51bwps5nxlkib7fxgbyyl")))) - (build-system go-build-system) - (arguments - (list #:import-path "git.sr.ht/~adnano/go-gemini")) - (propagated-inputs - (list go-golang-org-x-net)) - (home-page "https://git.sr.ht/~adnano/go-gemini") - (synopsis "Gemini protocol in Go") - (description - "The @code{gemini} package implements the Gemini protocol in Go. It -provides an API similar to that of NET/HTTP to facilitate the development of -Gemini clients and servers.") - (license license:expat))) - (define-public gofumpt (package (name "gofumpt") From dda8158e7cc6385a1d14ec6756dcecfa4c278765 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:25:19 +0000 Subject: [PATCH 668/862] gnu: go-github-com-docker-distribution: Update to 2.8.3. * gnu/packages/golang.scm (go-github-com-docker-distribution): Update to 2.8.3. [source] : Delete bundeled packages from "vendor/golang.org" as they are availalbe in Guix. [arguments] : Run short tests. : Run some not expencive tests. Change-Id: I47977f10ea80295b3676ba9ad4847b99fc1a6e67 --- gnu/packages/golang.scm | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ed01ecd70d2..1e320b01d94 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2309,29 +2309,39 @@ finding resources located relative to the executable file.") (license license:bsd-3)))) (define-public go-github-com-docker-distribution - (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329") - (revision "0")) (package (name "go-github-com-docker-distribution") - (version (git-version "0.0.0" revision commit)) + (version "2.8.3") (source - ;; FIXME: This bundles many things, see - ;; . (origin (method git-fetch) (uri (git-reference (url "https://github.com/docker/distribution") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "1yg2zrikn3vkvkx5mn51p6bfjk840qdkn7ahhhvvcsc8mpigrjc6")))) + "0dbaxmkhg53anhkzngyzlxm2bd4dwv0sv75zip1rkm0874wjbxzb")) + (snippet + ;; TODO: Unbundle more. + #~(begin (use-modules (guix build utils)) + (for-each delete-file-recursively + (list "vendor/golang.org")))))) (build-system go-build-system) (native-inputs (list go-golang-org-x-sys go-github-com-sirupsen-logrus go-golang-org-x-crypto)) (arguments - '(#:import-path "github.com/docker/distribution")) + (list + #:import-path "github.com/docker/distribution" + #:test-flags #~(list "-test.short") + #:test-subdirs + #~(list "configuration" + "context" + "health" + "manifest/..." + "notifications/..." + "uuid"))) (home-page "https://github.com/docker/distribution") (synopsis "This package is a Docker toolset to pack, ship, store, and @@ -2339,7 +2349,7 @@ deliver content") (description "Docker Distribution is a Docker toolset to pack, ship, store, and deliver content. It contains Docker Registry 2.0 and libraries to interact with distribution components.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-aarzilli-golua (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") From fcc03256f1d1f08306b183dbf52303a44adb3e9f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:36:41 +0000 Subject: [PATCH 669/862] gnu: go-github-com-docker-distribution: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-docker-distribution): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I1da803bef6e02969b606a47e6b8058df1a0d04ae --- gnu/packages/golang-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 43 ------------------------------------- 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ffc8e9acced..d398dd1e0ec 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4104,6 +4104,49 @@ GNU extensions to the POSIX recommendations for command-line options}. This is an activly maintained fork of @url{https://github.com/ogier/pflag}.") (license license:bsd-3))) +(define-public go-github-com-docker-distribution + (package + (name "go-github-com-docker-distribution") + (version "2.8.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/docker/distribution") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0dbaxmkhg53anhkzngyzlxm2bd4dwv0sv75zip1rkm0874wjbxzb")) + (snippet + ;; TODO: Unbundle more. + #~(begin (use-modules (guix build utils)) + (for-each delete-file-recursively + (list "vendor/golang.org")))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/docker/distribution" + #:test-flags #~(list "-test.short") + #:test-subdirs + #~(list "configuration" + "context" + "health" + "manifest/..." + "notifications/..." + "uuid"))) + (native-inputs + (list go-github-com-sirupsen-logrus + go-golang-org-x-crypto + go-golang-org-x-sys)) + (home-page "https://github.com/docker/distribution") + (synopsis + "This package is a Docker toolset to pack, ship, store, and deliver content") + (description + "Docker Distribution is a Docker toolset to pack, ship, +store, and deliver content. It contains Docker Registry 2.0 and libraries to +interact with distribution components.") + (license license:asl2.0))) + (define-public go-github-com-docker-go-units (package (name "go-github-com-docker-go-units") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1e320b01d94..8aef5398d24 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2308,49 +2308,6 @@ finding resources located relative to the executable file.") (home-page "https://github.com/kardianos/osext") (license license:bsd-3)))) -(define-public go-github-com-docker-distribution - (package - (name "go-github-com-docker-distribution") - (version "2.8.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/docker/distribution") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0dbaxmkhg53anhkzngyzlxm2bd4dwv0sv75zip1rkm0874wjbxzb")) - (snippet - ;; TODO: Unbundle more. - #~(begin (use-modules (guix build utils)) - (for-each delete-file-recursively - (list "vendor/golang.org")))))) - (build-system go-build-system) - (native-inputs - (list go-golang-org-x-sys go-github-com-sirupsen-logrus - go-golang-org-x-crypto)) - (arguments - (list - #:import-path "github.com/docker/distribution" - #:test-flags #~(list "-test.short") - #:test-subdirs - #~(list "configuration" - "context" - "health" - "manifest/..." - "notifications/..." - "uuid"))) - (home-page - "https://github.com/docker/distribution") - (synopsis "This package is a Docker toolset to pack, ship, store, and -deliver content") - (description "Docker Distribution is a Docker toolset to pack, ship, -store, and deliver content. It contains Docker Registry 2.0 and libraries -to interact with distribution components.") - (license license:asl2.0))) - (define-public go-github-com-aarzilli-golua (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") (revision "0")) From 7c7247efb01d197cb2ecdcd97f1ddab44a2977fa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:40:23 +0000 Subject: [PATCH 670/862] gnu: go-github-com-jtolds-gls: Update to 4.20.0. * gnu/packages/golang.scm (go-github-com-jtolds-gls): Update to 4.20.0. Change-Id: Id58e905a08ee1a961e46aa36c2d20ae951aca166 --- gnu/packages/golang.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8aef5398d24..2a4c8d31852 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2145,7 +2145,7 @@ termination.") (define-public go-github-com-jtolds-gls (package (name "go-github-com-jtolds-gls") - (version "4.20") + (version "4.20.0") (source (origin (method git-fetch) (uri (git-reference From ff9538022dd8e8481aef4b7e490298547ac01e23 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:42:01 +0000 Subject: [PATCH 671/862] gnu: go-github-com-jtolds-gls: Move to golang-check. * gnu/packages/golang.scm (go-github-com-jtolds-gls): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: Ic4e483abf95146a3a39919f40e8dda86c64dd355 --- gnu/packages/golang-check.scm | 32 ++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 32 -------------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index ac20594a452..abf9a5abd2a 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1083,6 +1083,38 @@ differently.") testing of time-sensitive code.") (license license:expat))) +(define-public go-github-com-jtolds-gls + (package + (name "go-github-com-jtolds-gls") + (version "4.20.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jtolds/gls") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jtolds/gls" + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs #:allow-other-keys #:rest args) + (unless + ;; The tests fail when run with gccgo. + (false-if-exception (search-input-file inputs "/bin/gccgo")) + (apply (assoc-ref %standard-phases 'check) args))))))) + (home-page "https://github.com/jtolds/gls") + (synopsis "@code{gls} provides Goroutine local storage") + (description + "The @code{gls} package provides a way to store a retrieve values +per-goroutine.") + (license license:expat))) + (define-public go-github-com-ldez-tagliatelle (package (name "go-github-com-ldez-tagliatelle") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2a4c8d31852..87edd0f04ef 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2142,38 +2142,6 @@ termination.") "t.Fatalf(`Killf(\"BO%%s"))))))) (home-page "https://gopkg.in/tomb.v1"))) -(define-public go-github-com-jtolds-gls - (package - (name "go-github-com-jtolds-gls") - (version "4.20.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jtolds/gls") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/jtolds/gls" - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs #:allow-other-keys #:rest args) - (unless - ;; The tests fail when run with gccgo. - (false-if-exception (search-input-file inputs "/bin/gccgo")) - (apply (assoc-ref %standard-phases 'check) args))))))) - (synopsis "@code{gls} provides Goroutine local storage") - (description - "The @code{gls} package provides a way to store a retrieve values -per-goroutine.") - (home-page "https://github.com/jtolds/gls") - (license license:expat))) - (define-public gopls (package (name "gopls") From 788c37bca9fbc89b7f751abe87fb67d71f2f86b3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:44:33 +0000 Subject: [PATCH 672/862] gnu: go-github-com-kardianos-minwinsvc: Update to 1.0.2. * gnu/packages/golang.scm (go-github-com-kardianos-minwinsvc): Update to 1.0.2. Change-Id: I461d1a8abcb170266de17f69e4c0a3906493e84d --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 87edd0f04ef..baf046082dc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3157,7 +3157,7 @@ deleting secrets from the system keyring.") (define-public go-github-com-kardianos-minwinsvc (package (name "go-github-com-kardianos-minwinsvc") - (version "1.0.0") + (version "1.0.2") (source (origin (method git-fetch) @@ -3167,7 +3167,7 @@ deleting secrets from the system keyring.") (file-name (git-file-name name version)) (sha256 (base32 - "0z941cxymkjcsj3p5l3g4wm2da3smz7iyqk2wbs5y8lmxd4kfzd8")))) + "02k2vibmm65bzkdjpmllphvq88wwyz3m02lbz8bffcpxjad2453v")))) (build-system go-build-system) (arguments '(#:import-path "github.com/kardianos/minwinsvc")) From ddf0505f6036172754bf0f449f248367fb66bd43 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:46:14 +0000 Subject: [PATCH 673/862] gnu: go-github-com-kardianos-minwinsvc: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-kardianos-minwinsvc): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Iba04b2b29011afe7b53f1e00062604ae42121650 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d398dd1e0ec..d7fd1f4a3ea 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8136,6 +8136,33 @@ ansi.") customized globally.") (license license:expat))) +;; Some packages (Yggdrasil) need it to compile it's a tiny package and it's +;; easier to bundle it than to patch it out. +(define-public go-github-com-kardianos-minwinsvc + (package + (name "go-github-com-kardianos-minwinsvc") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kardianos/minwinsvc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "02k2vibmm65bzkdjpmllphvq88wwyz3m02lbz8bffcpxjad2453v")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kardianos/minwinsvc")) + (home-page "https://github.com/kardianos/minwinsvc/") + (synopsis "Minimal windows only service stub for Go") + (description + "Go programs designed to run from most *nix style operating systems can +import this package to enable running programs as services without modifying +them.") + (license license:zlib))) + (define-public go-github-com-kardianos-service (package (name "go-github-com-kardianos-service") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index baf046082dc..ee81b94ea25 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3154,32 +3154,6 @@ system.") deleting secrets from the system keyring.") (license license:expat))) -(define-public go-github-com-kardianos-minwinsvc - (package - (name "go-github-com-kardianos-minwinsvc") - (version "1.0.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kardianos/minwinsvc") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "02k2vibmm65bzkdjpmllphvq88wwyz3m02lbz8bffcpxjad2453v")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/kardianos/minwinsvc")) - (home-page "https://github.com/kardianos/minwinsvc/") - ;; some packages (Yggdrasil) need it to compile - ;; it's a tiny package and it's easier to bundle it than to patch it out - (synopsis "Minimal windows only service stub for Go") - (description "Go programs designed to run from most *nix style operating -systems can import this package to enable running programs as services without -modifying them.") - (license license:zlib))) - (define-public go-github-com-akosmarton-papipes (let ((commit "3c63b4919c769c9c2b2d07e69a98abb0eb47fe64") (revision "0")) From fc07de05d7b300787aa68a5213a39b63db906879 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:51:00 +0000 Subject: [PATCH 674/862] gnu: go-github-com-kataras-pio: Update to 0.0.13. * gnu/packages/golang.scm (go-github-com-kataras-pio): Update to 0.0.13. Change-Id: Ie771ae5faf67efad5ad2644eac5ca17a1fb21481 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ee81b94ea25..cccd58e0431 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1245,7 +1245,7 @@ networks where it would otherwise be blocked or heavily throttled.") (define-public go-github-com-kataras-pio (package (name "go-github-com-kataras-pio") - (version "0.0.10") + (version "0.0.13") (source (origin (method git-fetch) @@ -1255,7 +1255,7 @@ networks where it would otherwise be blocked or heavily throttled.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "11d2jy9xz4airicgmjcy4nb80kwv22jp140wzn2l5412jdr4jmkp")))) + (base32 "1z0fkhs6amnkvb02519pfxy2x2r5sfmvdzxfi31ipa17m98pk3bq")))) (build-system go-build-system) (arguments `(#:import-path "github.com/kataras/pio")) From 5646fb717dcfc6bca4a9db691f2fd33183059eb4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:53:35 +0000 Subject: [PATCH 675/862] gnu: go-github-com-kataras-pio: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-kataras-pio): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ibbd6329cb264458d03e3da64d6a051b360d0d8d3 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d7fd1f4a3ea..54885d2b908 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8244,6 +8244,31 @@ them.") "Go long flag: a light-weight long and short command line option parser.") (license license:bsd-3))) +(define-public go-github-com-kataras-pio + (package + (name "go-github-com-kataras-pio") + (version "0.0.13") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kataras/pio") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1z0fkhs6amnkvb02519pfxy2x2r5sfmvdzxfi31ipa17m98pk3bq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kataras/pio")) + (home-page "https://github.com/kataras/pio") + (synopsis "Pill for Input/Output") + (description + "PIO is a low-level package that provides a way to centralize different +output targets. Supports colors and text decoration to all popular +terminals.") + (license license:bsd-3))) + (define-public go-github-com-kballard-go-shellquote ;; No release, see . (let ((commit "95032a82bc518f77982ea72343cc1ade730072f0") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cccd58e0431..69b0fb15354 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1242,30 +1242,6 @@ networks where it would otherwise be blocked or heavily throttled.") (description "GoLog is a level-based logger written in Go.") (license license:bsd-3))) -(define-public go-github-com-kataras-pio - (package - (name "go-github-com-kataras-pio") - (version "0.0.13") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/kataras/pio") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1z0fkhs6amnkvb02519pfxy2x2r5sfmvdzxfi31ipa17m98pk3bq")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/kataras/pio")) - (home-page "https://github.com/kataras/pio") - (synopsis "Pill for Input/Output") - (description "PIO is a low-level package that provides a way to centralize -different output targets. Supports colors and text decoration to all popular -terminals.") - (license license:bsd-3))) - (define-public go-github-com-kortschak-utter (package (name "go-github-com-kortschak-utter") From d8ce1531c60f6c11ef9f4b15cd01fb10b85f3ffd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:51:00 +0000 Subject: [PATCH 676/862] gnu: go-github-com-kataras-golog: Update to 0.1.12. * gnu/packages/golang.scm (go-github-com-kataras-golog): Update to 0.1.12. Change-Id: Ia4641f38d811231ecbfc4b4a6069b6a227ad792e --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 69b0fb15354..43fe135b966 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1221,7 +1221,7 @@ networks where it would otherwise be blocked or heavily throttled.") (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") - (version "0.1.7") + (version "0.1.12") (source (origin (method git-fetch) @@ -1231,7 +1231,7 @@ networks where it would otherwise be blocked or heavily throttled.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1ll24g50j48wqikzf67cyaq0m0f57v1ap24nbz3cmv3yzqi6wdl9")))) + (base32 "1szibhgxmkd52gz6i77p3fwlxqyidj7l5vf59pjl5bjy8ggv0kpv")))) (build-system go-build-system) (arguments `(#:import-path "github.com/kataras/golog")) From 9b1bbc81dc9a9c69f71c420aab6547dde14c44c1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 20:55:09 +0000 Subject: [PATCH 677/862] gnu: go-github-com-kataras-golog: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-kataras-golog): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I9af9de46300f34983c5a1716ebc3421049b2a385 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 54885d2b908..5bd58289f6b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8244,6 +8244,31 @@ them.") "Go long flag: a light-weight long and short command line option parser.") (license license:bsd-3))) +(define-public go-github-com-kataras-golog + (package + (name "go-github-com-kataras-golog") + (version "0.1.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kataras/golog") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1szibhgxmkd52gz6i77p3fwlxqyidj7l5vf59pjl5bjy8ggv0kpv")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kataras/golog")) + (propagated-inputs + (list go-github-com-kataras-pio)) + (home-page "https://github.com/kataras/golog") + (synopsis "Logging foundation for Go applications") + (description + "GoLog is a level-based logger written in Go.") + (license license:bsd-3))) + (define-public go-github-com-kataras-pio (package (name "go-github-com-kataras-pio") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 43fe135b966..256d9e65c24 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1218,30 +1218,6 @@ form that bypasses network filtering, allowing the application to work on networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) -(define-public go-github-com-kataras-golog - (package - (name "go-github-com-kataras-golog") - (version "0.1.12") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/kataras/golog") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1szibhgxmkd52gz6i77p3fwlxqyidj7l5vf59pjl5bjy8ggv0kpv")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/kataras/golog")) - (propagated-inputs - (list go-github-com-kataras-pio)) - (home-page "https://github.com/kataras/golog") - (synopsis "Logging foundation for Go applications") - (description "GoLog is a level-based logger written in Go.") - (license license:bsd-3))) - (define-public go-github-com-kortschak-utter (package (name "go-github-com-kortschak-utter") From f8a3d27ae6c6bb2e5f93777bafe89b497d20b3f1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 21:01:49 +0000 Subject: [PATCH 678/862] gnu: go-github-com-kortschak-utter: Update to 1.7.0. * gnu/packages/golang.scm (go-github-com-kortschak-utter): Update to 1.7.0. Change-Id: I70b773144a50c60860cf4b6aa5801e2b0a269c82 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 256d9e65c24..dec2cc7c580 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1221,7 +1221,7 @@ networks where it would otherwise be blocked or heavily throttled.") (define-public go-github-com-kortschak-utter (package (name "go-github-com-kortschak-utter") - (version "1.5.0") + (version "1.7.0") (source (origin (method git-fetch) (uri (git-reference @@ -1230,7 +1230,7 @@ networks where it would otherwise be blocked or heavily throttled.") (file-name (git-file-name name version)) (sha256 (base32 - "13lg8gzvgjnljf1lz8qsfz3qcmbvrsxp3ip7mp2kscfz07r69dyw")))) + "1pycm9kkfwpxz10v6f3w0478qy66bzaginr94rnmnnz7kp40fa00")))) (build-system go-build-system) (arguments '(#:import-path "github.com/kortschak/utter")) From 1c387040e1e91052f8e8137049dc81b73660df95 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 21:02:48 +0000 Subject: [PATCH 679/862] gnu: go-github-com-kortschak-utter: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-kortschak-utter): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I043dd97ef246a242fbf99b0c5e63d81ded8f6cb7 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5bd58289f6b..943e845d952 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8496,6 +8496,30 @@ very eas to use.") "This packae provides a wrapper around @code{libedit} for Golang.") (license license:asl2.0))) +(define-public go-github-com-kortschak-utter + (package + (name "go-github-com-kortschak-utter") + (version "1.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kortschak/utter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pycm9kkfwpxz10v6f3w0478qy66bzaginr94rnmnnz7kp40fa00")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kortschak/utter")) + (home-page "https://github.com/kortschak/utter") + (synopsis "Deep pretty printer") + (description + "This package implements a deep pretty printer for Go data structures to +aid data snapshotting.") + (license license:isc))) + (define-public go-github-com-kpango-glg (package (name "go-github-com-kpango-glg") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index dec2cc7c580..2b39193f948 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1218,29 +1218,6 @@ form that bypasses network filtering, allowing the application to work on networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) -(define-public go-github-com-kortschak-utter - (package - (name "go-github-com-kortschak-utter") - (version "1.7.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kortschak/utter") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1pycm9kkfwpxz10v6f3w0478qy66bzaginr94rnmnnz7kp40fa00")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/kortschak/utter")) - (home-page "https://github.com/kortschak/utter") - (synopsis "Deep pretty printer") - (description - "This package implements a deep pretty printer for Go data structures to -aid data snapshotting.") - (license license:isc))) - (define-public go-github-com-leonelquinteros-gotext (package (name "go-github-com-leonelquinteros-gotext") From a74fd39667299d63a4d82b1d9daea4926a6ca1c7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 21:06:10 +0000 Subject: [PATCH 680/862] gnu: Add go-github-com-kortschak-wol. * gnu/packages/golang-web.scm (go-github-com-kortschak-wol): New variable. Change-Id: If9f2153d1fb4b42479e7bbf8b1ce2677300abcd1 --- gnu/packages/golang-web.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 45f3c44d4a8..b50c74df2dd 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4260,6 +4260,29 @@ protocol in Go language.") @acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.") (license license:expat))) +(define-public go-github-com-kortschak-wol + (package + (name "go-github-com-kortschak-wol") + (version "0.0.0-20200729010619-da482cc4850a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kortschak/wol") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16qyy1c1q5cxcnwdzl69v49pjmyxha4i88fsg0g83gwdyapzsyln")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kortschak/wol")) + (home-page "https://github.com/kortschak/wol") + (synopsis "Wake On LAN client") + (description + "Package wol provides a Wake On LAN function.") + (license license:bsd-3))) + (define-public go-github-com-labbsr0x-goh (package (name "go-github-com-labbsr0x-goh") From 87f74d369208e2fa61b8975a9007c3ae6a3eeda5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 21:14:33 +0000 Subject: [PATCH 681/862] gnu: Add go-github-com-knz-lipgloss-convert. * gnu/packages/golang-xyz.scm (go-github-com-knz-lipgloss-convert): New variable. Change-Id: Ibed997c9da2066489f91d87b5994998237d50c98 --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 943e845d952..a671a5a041e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8496,6 +8496,35 @@ very eas to use.") "This packae provides a wrapper around @code{libedit} for Golang.") (license license:asl2.0))) +(define-public go-github-com-knz-lipgloss-convert + (package + (name "go-github-com-knz-lipgloss-convert") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/knz/lipgloss-convert") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1x9p89jfafkvsz3rrk856bniwcxlj8b1bhi0ixyngh620mx4h0cq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/knz/lipgloss-convert" + #:test-flags #~(list "-skip" "TestExport/full"))) + (propagated-inputs + (list go-github-com-charmbracelet-lipgloss + go-github-com-kr-pretty + go-github-com-pmezard-go-difflib)) + (home-page "https://github.com/knz/lipgloss-convert") + (synopsis "String conversion functions for lipgloss Styles") + (description + "String conversion functions for +@url{https://github.com/charmbracelet/lipgloss, lipgloss} Styles.") + (license license:asl2.0))) + (define-public go-github-com-kortschak-utter (package (name "go-github-com-kortschak-utter") From 83669444a17e16b88514d4e20a9a1527ac4a9ce7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 21:18:58 +0000 Subject: [PATCH 682/862] gnu: go-github-com-leonelquinteros-gotext: Update to 1.7.0. * gnu/packages/golang.scm (go-github-com-leonelquinteros-gotext): Update to 1.7.0. Change-Id: I87903a3d0ee6330b174b0fce30aeb32129619588 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2b39193f948..ebaa7f18f39 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1221,7 +1221,7 @@ networks where it would otherwise be blocked or heavily throttled.") (define-public go-github-com-leonelquinteros-gotext (package (name "go-github-com-leonelquinteros-gotext") - (version "1.5.0") + (version "1.7.0") (source (origin (method git-fetch) (uri (git-reference @@ -1230,7 +1230,7 @@ networks where it would otherwise be blocked or heavily throttled.") (file-name (git-file-name name version)) (sha256 (base32 - "15zjc7s1p29izagc84andzhnxw17763rax31jqvf9r5fzvlm0ccn")))) + "0ccls9xzbbrbrplbikz18lcky5p5rmifif6w69l5rl34dv11948m")))) (build-system go-build-system) (arguments '(#:import-path "github.com/leonelquinteros/gotext")) From 35e0667e09eb6f437e2231049025415989c15cbe Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 21:21:50 +0000 Subject: [PATCH 683/862] gnu: go-github-com-leonelquinteros-gotext: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-leonelquinteros-gotext): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ia8817b7ec6edab094ef8e3cf6aebba6854277f3f --- gnu/packages/golang-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 36 -------------------------------- 2 files changed, 41 insertions(+), 36 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a671a5a041e..a7afb6502f9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8783,6 +8783,47 @@ structure. It's a stable fork of https://github.com/mndrix/ps.") specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.") (license license:expat))) +(define-public go-github-com-leonelquinteros-gotext + (package + (name "go-github-com-leonelquinteros-gotext") + (version "1.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/leonelquinteros/gotext") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ccls9xzbbrbrplbikz18lcky5p5rmifif6w69l5rl34dv11948m")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/leonelquinteros/gotext")) + (propagated-inputs + (list go-golang-org-x-text + go-golang-org-x-tools)) + (home-page "https://github.com/leonelquinteros/gotext") + (synopsis "GNU gettext utilities in Go") + (description + "This package implements GNU gettext utilities in Go. It features: + +@itemize +@item Implements GNU gettext support in native Go. +@item Complete support for PO files including: +@item Support for MO files. +@item Thread-safe: This package is safe for concurrent use across multiple +goroutines. +@item It works with UTF-8 encoding as it's the default for Go language. +@item Unit tests available. +@item Language codes are automatically simplified from the form en_UK to en if +the first isn't available. +@item Ready to use inside Go templates. +@item Objects are serializable to []byte to store them in cache. +@item Support for Go Modules. +@end itemize") + (license license:expat))) + (define-public go-github-com-lestrrat-go-envload (package (name "go-github-com-lestrrat-go-envload") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ebaa7f18f39..44739598e55 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1218,42 +1218,6 @@ form that bypasses network filtering, allowing the application to work on networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) -(define-public go-github-com-leonelquinteros-gotext - (package - (name "go-github-com-leonelquinteros-gotext") - (version "1.7.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/leonelquinteros/gotext") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0ccls9xzbbrbrplbikz18lcky5p5rmifif6w69l5rl34dv11948m")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/leonelquinteros/gotext")) - (propagated-inputs (list go-golang-org-x-tools go-golang-org-x-text)) - (home-page "https://github.com/leonelquinteros/gotext") - (synopsis "GNU gettext utilities in Go") - (description "This package implements GNU gettext utilities in Go. It features: -@itemize -@item Implements GNU gettext support in native Go. -@item Complete support for PO files including: -@item Support for MO files. -@item Thread-safe: This package is safe for concurrent use across multiple -goroutines. -@item It works with UTF-8 encoding as it's the default for Go language. -@item Unit tests available. -@item Language codes are automatically simplified from the form en_UK to en if -the first isn't available. -@item Ready to use inside Go templates. -@item Objects are serializable to []byte to store them in cache. -@item Support for Go Modules. -@end itemize") - (license license:expat))) - (define-public go-github-com-schachmat-ingo (package (name "go-github-com-schachmat-ingo") From 68e8cfc0812caffffad3843633e9f14ad9fc6f8e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 21:36:08 +0000 Subject: [PATCH 684/862] gnu: go-github-com-twpayne-go-shell: Update to 0.5.0. * gnu/packages/golang.scm (go-github-com-twpayne-go-shell): Update to 0.5.0. [native-inputs]: Add go-github-com-alecthomas-assert-v2. Change-Id: I686aaf9ce82471b044d89dcec6cc8839dc957a7f --- gnu/packages/golang.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 44739598e55..5dc6542e330 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2912,7 +2912,7 @@ temporal directories.") (define-public go-github-com-twpayne-go-shell (package (name "go-github-com-twpayne-go-shell") - (version "0.3.0") + (version "0.5.0") (source (origin (method git-fetch) (uri (git-reference @@ -2921,10 +2921,12 @@ temporal directories.") (file-name (git-file-name name version)) (sha256 (base32 - "1hv0ggy3935iddjnmpp9vl0kqjknxpnbmm9w7xr3gds7fpbxz6yp")))) + "0rnwdlhiakcigmz55fhn0wib6vi064cqxfq512mi880j9yqx4114")))) (build-system go-build-system) (arguments `(#:import-path "github.com/twpayne/go-shell")) + (native-inputs + (list go-github-com-alecthomas-assert-v2)) (home-page "https://github.com/twpayne/go-shell/") (synopsis "Shell across multiple platforms") (description From d8003c3e2b1fc264c240bdcb0f9901f55ec95a39 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 21:46:30 +0000 Subject: [PATCH 685/862] gnu: go-github-com-twpayne-go-shell: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-twpayne-go-shell): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I67aeca08535ea3a03963518288daf1613c2df392 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a7afb6502f9..7537728b278 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13191,6 +13191,30 @@ supported by the time package @end itemize") (license license:expat))) +(define-public go-github-com-twpayne-go-shell + (package + (name "go-github-com-twpayne-go-shell") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twpayne/go-shell") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rnwdlhiakcigmz55fhn0wib6vi064cqxfq512mi880j9yqx4114")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/twpayne/go-shell")) + (native-inputs + (list go-github-com-alecthomas-assert-v2)) + (home-page "https://github.com/twpayne/go-shell") + (synopsis "Shell across multiple platforms") + (description + "Package @code{shell} returns a user's shell across multiple platforms.") + (license license:expat))) + (define-public go-github-com-twpayne-go-vfs (package (name "go-github-com-twpayne-go-vfs") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5dc6542e330..9df034aec00 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2909,30 +2909,6 @@ size of the terminal.") temporal directories.") (license license:expat)))) -(define-public go-github-com-twpayne-go-shell - (package - (name "go-github-com-twpayne-go-shell") - (version "0.5.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/twpayne/go-shell") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0rnwdlhiakcigmz55fhn0wib6vi064cqxfq512mi880j9yqx4114")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/twpayne/go-shell")) - (native-inputs - (list go-github-com-alecthomas-assert-v2)) - (home-page "https://github.com/twpayne/go-shell/") - (synopsis "Shell across multiple platforms") - (description - "Package @code{shell} returns a user's shell across multiple platforms.") - (license license:expat))) - (define-public go-github-com-twpayne-go-vfsafero (package (name "go-github-com-twpayne-go-vfsafero") From 52d33f6eff8d71bb76dfd5147cd9d25b60b292bd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 22:27:38 +0000 Subject: [PATCH 686/862] gnu: Remove go-gopkg-in-mgo-v2. Not in use by any other packages in Guix. Unmaintained according to project's about, see . * gnu/packages/databases.scm (go-gopkg-in-mgo-v2): Delete variable. Change-Id: Idc1e064e20a3263fc62f478bf4fe69b7b39a4dcb --- gnu/packages/databases.scm | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 7a9033607a3..95af63e6e97 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3676,34 +3676,6 @@ etc., and an SQL engine for performing simple SQL queries.") (license (list license:lgpl2.0 license:gpl2+)))) -(define-public go-gopkg-in-mgo-v2 - (package - (name "go-gopkg-in-mgo-v2") - (version "2.0.0-20190816093944-a6b53ec6cb22") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://gopkg.in/mgo.v2") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1lgvwxsbmdrf4938qkxl56wbwgbphk2qqnmpf73qdmlv4qsg14na")))) - (build-system go-build-system) - (arguments - '(#:tests? #f ; Tests try to use a running mongodb server. - #:import-path "gopkg.in/mgo.v2")) - (propagated-inputs - (list go-gopkg.in-tomb.v2)) - (inputs - (list cyrus-sasl)) - (native-inputs - (list go-gopkg-in-check-v1)) - (home-page "https://gopkg.in/mgo.v2") - (synopsis "MongoDB driver for Go") - (description "This package provides a MongoDB driver for Go.") - (license license:bsd-2))) - (define-public python-lmdb (package (name "python-lmdb") From cfaae6e69ac0d09e982891d0b4d17722e56df968 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 23:19:20 +0000 Subject: [PATCH 687/862] gnu: go-github-com-phpdave11-gofpdi: Update to 1.0.14. * gnu/packages/golang.scm (go-github-com-phpdave11-gofpdi): Update to 1.0.14. Change-Id: I20f423e4ccbb0a3e9ca5179c76b6d326b467c37d --- gnu/packages/golang.scm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9df034aec00..31c18f53b6f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1551,7 +1551,7 @@ TrueType font files in your system's user and system font directories.") (define-public go-github-com-phpdave11-gofpdi (package (name "go-github-com-phpdave11-gofpdi") - (version "1.0.13") + (version "1.0.14") (source (origin (method git-fetch) (uri (git-reference @@ -1560,16 +1560,11 @@ TrueType font files in your system's user and system font directories.") (file-name (git-file-name name version)) (sha256 (base32 - "01r8a3k2d48fxmhyvix0ry2dc1z5xankd14yxlm496a26vfnc9nq")))) + "0zan4wmwd1rzrq57ynz4z5kf00b6xj0dnki123zai0j53xdngwhw")))) (build-system go-build-system) (arguments (list - #:import-path "github.com/phpdave11/gofpdi" - #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'fix-source - (lambda _ - (substitute* (find-files "." "writer\\.go$") - (("%s-%s") "%d-%s"))))))) + #:import-path "github.com/phpdave11/gofpdi")) (propagated-inputs (list go-github-com-pkg-errors)) (home-page "https://github.com/phpdave11/gofpdi") (synopsis "PDF document importer") From e6ef4eb582346d4976758ed7c7fd1631544a28aa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 23:20:29 +0000 Subject: [PATCH 688/862] gnu: go-github-com-phpdave11-gofpdi: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-phpdave11-gofpdi): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I80c875bac3e7ba920cc344a9c0e2a053536154e1 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7537728b278..a6afad9a9fd 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11328,6 +11328,30 @@ that help improve the encoding/decoding performance of some binary protocols.") (license license:expat))) +(define-public go-github-com-phpdave11-gofpdi + (package + (name "go-github-com-phpdave11-gofpdi") + (version "1.0.14") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/phpdave11/gofpdi") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zan4wmwd1rzrq57ynz4z5kf00b6xj0dnki123zai0j53xdngwhw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/phpdave11/gofpdi")) + (propagated-inputs (list go-github-com-pkg-errors)) + (home-page "https://github.com/phpdave11/gofpdi") + (synopsis "PDF document importer") + (description + "gofpdi allows you to import an existing PDF into a new PDF.") + (license license:expat))) + (define-public go-github-com-pierrec-cmdflag (package (name "go-github-com-pierrec-cmdflag") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 31c18f53b6f..bd37b8f4688 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1548,30 +1548,6 @@ parsing and encoding support for STUN and TURN protocols.") TrueType font files in your system's user and system font directories.") (license license:expat))) -(define-public go-github-com-phpdave11-gofpdi - (package - (name "go-github-com-phpdave11-gofpdi") - (version "1.0.14") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/phpdave11/gofpdi") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0zan4wmwd1rzrq57ynz4z5kf00b6xj0dnki123zai0j53xdngwhw")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/phpdave11/gofpdi")) - (propagated-inputs (list go-github-com-pkg-errors)) - (home-page "https://github.com/phpdave11/gofpdi") - (synopsis "PDF document importer") - (description - "gofpdi allows you to import an existing PDF into a new PDF.") - (license license:expat))) - (define-public go-github-com-signintech-gopdf (package (name "go-github-com-signintech-gopdf") From c0c985a53ba0a25db7f8f5e94f1a4cee66cd3d22 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 23:41:33 +0000 Subject: [PATCH 689/862] gnu: unparam: Enable tests. * gnu/packages/golang.scm (unparam) [arguments] : Enable most of the tests. : Add 'remove-failing-test-scripts. Change-Id: I1dd75fcd2e991bd84ac042ee1a3519612fc64511 --- gnu/packages/golang.scm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index bd37b8f4688..7af9149be77 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3163,12 +3163,18 @@ That is, @code{gofumpt} is happy with a subset of the formats that "0qrwszcmb5slbzkq3acw57b896z22zwkv6cf6ldxwlc6p179g009")))) (build-system go-build-system) (arguments - `(;; FIXME: <...>-go-1.21.5/lib/go/src/runtime/cgo/cgo.go:33:8: could not - ;; import C (no metadata for C) - ;; <...>-go-1.21.5/lib/go/src/net/cgo_linux.go:12:8: could not import C - ;; (no metadata for C) - #:tests? #f - #:import-path "mvdan.cc/unparam")) + (list + #:import-path "mvdan.cc/unparam" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'remove-failing-test-scripts + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file + (list "testdata/script/usedas.txtar" + "testdata/script/stubs.txtar" + "testdata/script/impl.txtar" + "testdata/script/paramuses.txtar")))))))) (inputs (list go-github-com-pkg-diff go-golang-org-x-tools go-github-com-rogpeppe-go-internal)) (home-page "https://mvdan.cc/unparam/") From 7c3cd33092902344e51f3be836ccece03e3a8d75 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 23:45:18 +0000 Subject: [PATCH 690/862] gnu: go-mvdan-cc-unparam: Swap inheritance. Simplify both packages by swapping inheritance where final CLI command package inherits from Go library. * gnu/packages/golang.scm (go-mvdan-cc-unparam): Override unparam. Swap inputs with propagated-inputs to cover future library use. (unparam): Inherit from go-mvdan-cc-unparam Change-Id: Id21d10bc10462b28475f9064f34141f12c5656bb --- gnu/packages/golang.scm | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7af9149be77..615b1acd5ee 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3148,9 +3148,9 @@ That is, @code{gofumpt} is happy with a subset of the formats that (native-inputs '()) (inputs '()))) -(define-public unparam +(define-public go-mvdan-cc-unparam (package - (name "unparam") + (name "go-mvdan-cc-unparam") (version "0.0.0-20240528143540-8a5130ca722f") (source (origin (method git-fetch) @@ -3164,6 +3164,7 @@ That is, @code{gofumpt} is happy with a subset of the formats that (build-system go-build-system) (arguments (list + #:skip-build? #t #:import-path "mvdan.cc/unparam" #:phases #~(modify-phases %standard-phases @@ -3175,26 +3176,21 @@ That is, @code{gofumpt} is happy with a subset of the formats that "testdata/script/stubs.txtar" "testdata/script/impl.txtar" "testdata/script/paramuses.txtar")))))))) - (inputs (list go-github-com-pkg-diff go-golang-org-x-tools + (propagated-inputs (list go-github-com-pkg-diff go-golang-org-x-tools go-github-com-rogpeppe-go-internal)) (home-page "https://mvdan.cc/unparam/") (synopsis "Find unused parameters in Go") (description "Reports unused function parameters and results in Go code.") (license license:bsd-3))) -(define-public go-mvdan-cc-unparam +(define-public unparam (package - (inherit unparam) - (name "go-mvdan-cc-unparam") + (inherit go-mvdan-cc-unparam) + (name "unparam") (arguments - `(#:import-path "github.com/mvdan/unparam" - #:tests? #f - #:install-source? #t - #:phases (modify-phases %standard-phases - (delete 'build)))) - (propagated-inputs (package-inputs unparam)) - (native-inputs '()) - (inputs '()))) + (list #:tests? #f + #:install-source? #f + #:import-path "mvdan.cc/unparam")))) (define-public go-github-com-valyala-bytebufferpool (package From 5572b70e30bdf63276988e4ade49e55053127490 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 8 Jan 2025 23:54:01 +0000 Subject: [PATCH 691/862] gnu: go-mvdan-cc-unparam: Move to golang-check. * gnu/packages/golang.scm (go-mvdan-cc-unparam, unparam): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: I4059ca18c951182d7fa186b8b9787992cfe90410 --- gnu/packages/golang-check.scm | 47 +++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 44 -------------------------------- 2 files changed, 47 insertions(+), 44 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index abf9a5abd2a..5a2a78efecb 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -2463,6 +2463,44 @@ advanced Go linter.") "This packge provides a test corpus of C code.") (license license:bsd-3))) +(define-public go-mvdan-cc-unparam + (package + (name "go-mvdan-cc-unparam") + (version "0.0.0-20240528143540-8a5130ca722f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mvdan/unparam") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qrwszcmb5slbzkq3acw57b896z22zwkv6cf6ldxwlc6p179g009")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "mvdan.cc/unparam" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'remove-failing-test-scripts + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file + (list "testdata/script/usedas.txtar" + "testdata/script/stubs.txtar" + "testdata/script/impl.txtar" + "testdata/script/paramuses.txtar")))))))) + (propagated-inputs + (list go-github-com-pkg-diff + go-github-com-rogpeppe-go-internal + go-golang-org-x-tools)) + (home-page "https://mvdan.cc/unparam/") + (synopsis "Find unused parameters in Go") + (description + "Reports unused function parameters and results in Go code.") + (license license:bsd-3))) + (define-public go-pgregory-net-rapid (package (name "go-pgregory-net-rapid") @@ -2636,6 +2674,15 @@ prints an ASCII fraphic representing the memory layout."))) " This package provides an command line interface (CLI) tool.")))) +(define-public unparam + (package + (inherit go-mvdan-cc-unparam) + (name "unparam") + (arguments + (list #:tests? #f + #:install-source? #f + #:import-path "mvdan.cc/unparam")))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 615b1acd5ee..24ecfcbc8a6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3148,50 +3148,6 @@ That is, @code{gofumpt} is happy with a subset of the formats that (native-inputs '()) (inputs '()))) -(define-public go-mvdan-cc-unparam - (package - (name "go-mvdan-cc-unparam") - (version "0.0.0-20240528143540-8a5130ca722f") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mvdan/unparam") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0qrwszcmb5slbzkq3acw57b896z22zwkv6cf6ldxwlc6p179g009")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "mvdan.cc/unparam" - #:phases - #~(modify-phases %standard-phases - (add-before 'check 'remove-failing-test-scripts - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file - (list "testdata/script/usedas.txtar" - "testdata/script/stubs.txtar" - "testdata/script/impl.txtar" - "testdata/script/paramuses.txtar")))))))) - (propagated-inputs (list go-github-com-pkg-diff go-golang-org-x-tools - go-github-com-rogpeppe-go-internal)) - (home-page "https://mvdan.cc/unparam/") - (synopsis "Find unused parameters in Go") - (description "Reports unused function parameters and results in Go code.") - (license license:bsd-3))) - -(define-public unparam - (package - (inherit go-mvdan-cc-unparam) - (name "unparam") - (arguments - (list #:tests? #f - #:install-source? #f - #:import-path "mvdan.cc/unparam")))) - (define-public go-github-com-valyala-bytebufferpool (package (name "go-github-com-valyala-bytebufferpool") From 060f5adfefe088348e2685087d87a6e2b9b6d28b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 00:01:41 +0000 Subject: [PATCH 692/862] gnu: go-github-com-valyala-tcplisten: Move to golang-web. * gnu/packages/golang.scm (go-github-com-valyala-tcplisten): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I6214029df7e62c1f3fe74253617d6d417dc23b09 --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 31 ------------------------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index b50c74df2dd..9aba8e441c7 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7468,6 +7468,37 @@ encoding library for the MessagePack, CBOR, JSON and the Binc formats.") replacement for native @code{net/http} module.") (license license:expat))) +(define-public go-github-com-valyala-tcplisten + (package + (name "go-github-com-valyala-tcplisten") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/valyala/tcplisten") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fv5hxmq1jwrjn1rdjvbmjrrkb601zcdh01qhx6d8l7ss6n05zb8")))) + (build-system go-build-system) + (arguments + ;; NOTE: (Sharlatan-20211218T165504+0000): Tests failing: + ;; + ;; tcplisten_test.go:56: cannot create listener 0 using Config + ;; &tcplisten.Config{ReusePort:false, DeferAccept:false, FastOpen:false, + ;; Backlog:32}: lookup ip6-localhost on [::1]:53: read udp + ;; [::1]:33932->[::1]:53: read: connection refused + ;; + '(#:tests? #f + #:import-path "github.com/valyala/tcplisten")) + (home-page "https://github.com/valyala/tcplisten") + (synopsis "Customizable TCP net.Listener for Go") + (description + "@code{tcplisten} provides customizable TCP net.Listener with various +performance-related options.") + (license license:expat))) + (define-public go-github-com-vektah-gqlparser-v2 (package (name "go-github-com-vektah-gqlparser-v2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 24ecfcbc8a6..967bf1a684b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3171,37 +3171,6 @@ That is, @code{gofumpt} is happy with a subset of the formats that anti-fragmentation protection.") (license license:expat))) -(define-public go-github-com-valyala-tcplisten - (package - (name "go-github-com-valyala-tcplisten") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/valyala/tcplisten") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1fv5hxmq1jwrjn1rdjvbmjrrkb601zcdh01qhx6d8l7ss6n05zb8")))) - (build-system go-build-system) - (arguments - ;; NOTE: (Sharlatan-20211218T165504+0000): Tests failing: - ;; - ;; tcplisten_test.go:56: cannot create listener 0 using Config - ;; &tcplisten.Config{ReusePort:false, DeferAccept:false, FastOpen:false, - ;; Backlog:32}: lookup ip6-localhost on [::1]:53: read udp - ;; [::1]:33932->[::1]:53: read: connection refused - ;; - '(#:tests? #f - #:import-path "github.com/valyala/tcplisten")) - (home-page "https://github.com/valyala/tcplisten") - (synopsis "Customizable TCP net.Listener for Go") - (description - "@code{tcplisten} provides customizable TCP net.Listener with various -performance-related options.") - (license license:expat))) - (define-public go-github-com-vmihailenco-tagparser (package (name "go-github-com-vmihailenco-tagparser") From 97cca4c43b8361d705f350d3778d3477bc0f3e61 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 00:06:10 +0000 Subject: [PATCH 693/862] gnu: go-github-com-ssgelm-cookiejarparser: Move to golang-web. * gnu/packages/golang.scm (go-github-com-ssgelm-cookiejarparser): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I258d3f7126c4937421181456c71dc02615707fb2 --- gnu/packages/golang-web.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 9aba8e441c7..2977a902b91 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7167,6 +7167,32 @@ provided @code{http.FileSystem}.") "Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.") (license license:expat))) +(define-public go-github-com-ssgelm-cookiejarparser + (package + (name "go-github-com-ssgelm-cookiejarparser") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ssgelm/cookiejarparser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fnm53br0cg3iwzniil0lh9w4xd6xpzfypwfpdiammfqavlqgcw4")))) + (build-system go-build-system) + (arguments + (list + #:embed-files #~(list "children" "nodes" "text") + #:import-path "github.com/ssgelm/cookiejarparser")) + (propagated-inputs (list go-golang-org-x-net)) + (home-page "https://github.com/ssgelm/cookiejarparser") + (synopsis "Parse a curl cookiejar with Go") + (description + "This package is a Go library that parses a curl (netscape) cookiejar +file into a Go http.CookieJar.") + (license license:expat))) + (define-public go-github-com-tdewolff-minify-v2 (package (name "go-github-com-tdewolff-minify-v2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 967bf1a684b..f82d07edf12 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3450,32 +3450,6 @@ result is a conceptually simple, but highly performant, disk-backed storage syst of the current user.") (license license:expat))) -(define-public go-github-com-ssgelm-cookiejarparser - (package - (name "go-github-com-ssgelm-cookiejarparser") - (version "1.0.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ssgelm/cookiejarparser") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0fnm53br0cg3iwzniil0lh9w4xd6xpzfypwfpdiammfqavlqgcw4")))) - (build-system go-build-system) - (arguments - (list - #:embed-files #~(list "children" "nodes" "text") - #:import-path "github.com/ssgelm/cookiejarparser")) - (propagated-inputs (list go-golang-org-x-net)) - (home-page "https://github.com/ssgelm/cookiejarparser") - (synopsis "Parse a curl cookiejar with Go") - (description - "This package is a Go library that parses a curl (netscape) cookiejar -file into a Go http.CookieJar.") - (license license:expat))) - (define-public go-github-com-ssor-bom (package (name "go-github-com-ssor-bom") From 379574af851641a521bb5273c89805713b1dc64d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 00:08:58 +0000 Subject: [PATCH 694/862] gnu: pixterm: Update to 1.3.2. * gnu/packages/image-viewers.scm (pixterm): Update to 1.3.2. [arguments] : No sources required as it's final CLI command. [inputs]: Remove go-golang-org-x-crypto. Change-Id: I9bbeb1868466f89a56e172e8518c89d39c1950dc --- gnu/packages/image-viewers.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 8edfea8bbaf..67742a024c9 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -527,7 +527,7 @@ It supports JPEG, PNG and GIF formats.") (define-public pixterm (package (name "pixterm") - (version "1.3.1") + (version "1.3.2") (source (origin (method git-fetch) (uri (git-reference @@ -536,14 +536,14 @@ It supports JPEG, PNG and GIF formats.") (file-name (git-file-name name version)) (sha256 (base32 - "0fm6c0mjz6zillqjirnjjf7mkrax1gyfcv6777i07ms3bnv0pcii")))) + "08x0pwnl3cyq5f29fxj379p9klzxl85p8jq2595xdz3mhb3pkgsg")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/eliukblau/pixterm/cmd/pixterm" + '(#:install-source? #f + #:import-path "github.com/eliukblau/pixterm/cmd/pixterm" #:unpack-path "github.com/eliukblau/pixterm")) (inputs (list go-github-com-disintegration-imaging go-github-com-lucasb-eyer-go-colorful - go-golang-org-x-crypto go-golang-org-x-image go-golang-org-x-term)) (home-page "https://github.com/eliukblau/pixterm") From 12b99d2854e7097e4ef51a8728da5466a9a3fd34 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 10:40:46 +0000 Subject: [PATCH 695/862] gnu: go-github-com-google-go-github: Update to 31.0.0. This is a bare minimal version required for any other inheritances, upstream introduces a new import path for each major version. * gnu/packages/golang-web.scm (go-github-com-google-go-github): Update to 31.0.0 and rename variable to go-github-com-google-go-github-v31. [source] : Delete 2 stand alone submodules. [arguments] : No go files in project's root. : Adjust to the module's new path. : Remove as redundant. : Add 'remove-examples. (go-github-com-google-go-github-v33): Inherit. [source] : Delete 2 stand alone submodules. : Adjust to the module's new path. : Remove as redundant. Change-Id: I345774192fb091630151eadcb1448bb8cf0f8303 --- gnu/packages/golang-web.scm | 51 +++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2977a902b91..61c73c218fd 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3120,10 +3120,10 @@ replacement for memcached in many cases. It provides a data loading mechanism with caching and de-duplication that works across a set of peer processes.") (license license:asl2.0))) -(define-public go-github-com-google-go-github +(define-public go-github-com-google-go-github-v31 (package - (name "go-github-com-google-go-github") - (version "26.1.3") + (name "go-github-com-google-go-github-v31") + (version "31.0.0") (source (origin (method git-fetch) @@ -3132,12 +3132,30 @@ with caching and de-duplication that works across a set of peer processes.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0x0zz1vcmllp6r6l2qin9b2llm5cxbf6n84rf99h8wrmhvzs2ipi")))) + (base32 "0bcybmr341hnp8k630pi4dcgia7561yzqc874l4c3nl4bc9rkh5j")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/google/go-github/scrape + ;; - github.com/google/go-github/update-urls + (delete-file-recursively "scrape") + (delete-file-recursively "update-urls"))))) (build-system go-build-system) (arguments - `(#:tests? #f ;application/octet-stream instead of text/plain - #:import-path "github.com/google/go-github/v26/github" - #:unpack-path "github.com/google/go-github/v26")) + (list + #:skip-build? #t + #:import-path "github.com/google/go-github/v31" + ;; repos_releases_test.go:449: Header.Get("Content-Type") returned + ;; "application/octet-stream", want "text/plain; charset=utf-8" + #:test-flags #~(list "-skip" "TestRepositoriesService_UploadReleaseAsset") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "example"))))))) (propagated-inputs (list go-github-com-google-go-querystring go-golang-org-x-crypto @@ -3152,7 +3170,7 @@ GitHub API v3.") ;; For chezmoi-1.8.10 (define-public go-github-com-google-go-github-v33 (package - (inherit go-github-com-google-go-github) + (inherit go-github-com-google-go-github-v31) (name "go-github-com-google-go-github-v33") (version "33.0.0") (source @@ -3163,14 +3181,19 @@ GitHub API v3.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1nzwgvaa9k1ky3sfynib6nhalam9dx66h5lxff334m9kk3rf5nn0")))) + (base32 "1nzwgvaa9k1ky3sfynib6nhalam9dx66h5lxff334m9kk3rf5nn0")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/google/go-github/scrape + (delete-file-recursively "scrape") + (delete-file-recursively "update-urls"))))) (arguments (substitute-keyword-arguments - (package-arguments go-github-com-google-go-github) - ((#:unpack-path _ "github.com/google/go-github/v26") - "github.com/google/go-github/v33") - ((#:import-path _ "github.com/google/go-github/v26/github") - "github.com/google/go-github/v33/github"))))) + (package-arguments go-github-com-google-go-github-v31) + ((#:import-path _) "github.com/google/go-github/v33"))))) (define-public go-github-com-google-go-querystring (package From 519d7cf948736887e1c6a46257b275c78091a57c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 11:25:39 +0000 Subject: [PATCH 696/862] gnu: go-github-com-go-git-go-git-v5: Move to golang-vcs. * gnu/packages/version-control.scm (go-github-com-go-git-go-git-v5): Move from here ... * gnu/packages/golang-vcs.scm: ... to here. Add golang-crypto and version-control modules. * gnu/packages/configuration-management.scm: Remove version-control, add golang-vcs module. Change-Id: I0125943bcb2ab719ad5667678b72ece7650f5e4b --- gnu/packages/configuration-management.scm | 2 +- gnu/packages/golang-vcs.scm | 65 ++++++++++++++++++++++- gnu/packages/version-control.scm | 61 --------------------- 3 files changed, 65 insertions(+), 63 deletions(-) diff --git a/gnu/packages/configuration-management.scm b/gnu/packages/configuration-management.scm index b654975a42e..3482e327f7f 100644 --- a/gnu/packages/configuration-management.scm +++ b/gnu/packages/configuration-management.scm @@ -25,9 +25,9 @@ #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-vcs) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) - #:use-module (gnu packages version-control) #:use-module (gnu packages textutils) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm index 967b5ea93d2..2c2dcc2d11c 100644 --- a/gnu/packages/golang-vcs.scm +++ b/gnu/packages/golang-vcs.scm @@ -26,8 +26,10 @@ #:use-module (gnu packages) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) - #:use-module (gnu packages golang-xyz)) + #:use-module (gnu packages golang-xyz) + #:use-module (gnu packages version-control)) ;;; Commentary: ;;; @@ -67,6 +69,67 @@ (description "Gcfg reads INI-style configuration files into Go structs.") (license license:bsd-3))) +(define-public go-github-com-go-git-go-git-v5 + (package + (name "go-github-com-go-git-go-git-v5") + (version "5.13.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-git/go-git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1mgzwwmq1awai9n8vkjp8xpq26hvivl53g57f1k2cgg6bkj13r2a")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ;requires network connection + #:import-path "github.com/go-git/go-git/v5" + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'setup + (lambda* (#:key inputs #:allow-other-keys) + (let* ((git #$(this-package-native-input "git-minimal")) + (git-bin (string-append git "/bin")) + (git-exe (string-append git-bin "/git"))) + (setenv "GIT_DIST_PATH=" git) + (setenv "GIT_EXEC_PATH=" git-bin) + (setenv "HOME" (getcwd)) + (invoke git-exe "config" "--global" "user.email" "gha@example.com") + (invoke git-exe "config" "--global" "user.name" "GitHub Actions"))))))) + (native-inputs + (list git-minimal/pinned + go-github-com-stretchr-testify + go-gopkg-in-check-v1)) + (propagated-inputs + (list go-dario-cat-mergo + go-github-com-armon-go-socks5 + go-github-com-elazarl-goproxy + go-github-com-emirpasic-gods + go-github-com-gliderlabs-ssh + go-github-com-go-git-gcfg + go-github-com-go-git-go-billy-v5 + go-github-com-go-git-go-git-fixtures-v4 + go-github-com-golang-groupcache + go-github-com-google-go-cmp + go-github-com-jbenet-go-context + go-github-com-kevinburke-ssh-config + go-github-com-pjbgf-sha1cd + go-github-com-protonmail-go-crypto + go-github-com-sergi-go-diff + go-github-com-skeema-knownhosts + go-github-com-xanzy-ssh-agent + go-golang-org-x-crypto + go-golang-org-x-net + go-golang-org-x-sys + go-golang-org-x-text)) + (home-page "https://github.com/go-git/") + (synopsis "Git implementation library") + (description "This package provides a Git implementation library.") + (license license:asl2.0))) + (define-public go-github-com-xanzy-go-gitlab (package (name "go-github-com-xanzy-go-gitlab") diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index c5d30ebb9ce..0990689a929 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -4179,67 +4179,6 @@ of machine readable. This helps improve code quality and helps you spot defects faster.") (license license:expat))) -(define-public go-github-com-go-git-go-git-v5 - (package - (name "go-github-com-go-git-go-git-v5") - (version "5.13.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-git/go-git") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1mgzwwmq1awai9n8vkjp8xpq26hvivl53g57f1k2cgg6bkj13r2a")))) - (build-system go-build-system) - (arguments - (list - #:tests? #f ;requires network connection - #:import-path "github.com/go-git/go-git/v5" - #:phases - #~(modify-phases %standard-phases - (add-before 'build 'setup - (lambda* (#:key inputs #:allow-other-keys) - (let* ((git #$(this-package-native-input "git-minimal")) - (git-bin (string-append git "/bin")) - (git-exe (string-append git-bin "/git"))) - (setenv "GIT_DIST_PATH=" git) - (setenv "GIT_EXEC_PATH=" git-bin) - (setenv "HOME" (getcwd)) - (invoke git-exe "config" "--global" "user.email" "gha@example.com") - (invoke git-exe "config" "--global" "user.name" "GitHub Actions"))))))) - (native-inputs - (list git-minimal/pinned - go-github-com-stretchr-testify - go-gopkg-in-check-v1)) - (propagated-inputs - (list go-dario-cat-mergo - go-github-com-armon-go-socks5 - go-github-com-elazarl-goproxy - go-github-com-emirpasic-gods - go-github-com-gliderlabs-ssh - go-github-com-go-git-gcfg - go-github-com-go-git-go-billy-v5 - go-github-com-go-git-go-git-fixtures-v4 - go-github-com-golang-groupcache - go-github-com-google-go-cmp - go-github-com-jbenet-go-context - go-github-com-kevinburke-ssh-config - go-github-com-pjbgf-sha1cd - go-github-com-protonmail-go-crypto - go-github-com-sergi-go-diff - go-github-com-skeema-knownhosts - go-github-com-xanzy-ssh-agent - go-golang-org-x-crypto - go-golang-org-x-net - go-golang-org-x-sys - go-golang-org-x-text)) - (home-page "https://github.com/go-git/") - (synopsis "Git implementation library") - (description "This package provides a Git implementation library.") - (license license:asl2.0))) - (define-public gita (let ((commit "e41b504dca90a25e9be27f296da7ce22e5782893") (revision "1")) From 297f3f279a54c9337ccd55dc04d4ba6574ef4f77 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 12:11:51 +0000 Subject: [PATCH 697/862] gnu: Add go-github-com-twpayne-go-pinentry. * gnu/packages/golang-crypto.scm (go-github-com-twpayne-go-pinentry, go-github-com-twpayne-go-pinentry-v4): New variables. Change-Id: Iec28d1a0c9215d9d31212ceaa4ccb4046bf0fab3 --- gnu/packages/golang-crypto.scm | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 7e3588f209b..4c88150ad31 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1958,6 +1958,52 @@ revision (aka MurmurHash3). Reference algorithm has been slightly hacked as to support the streaming mode required by Go's standard Hash interface.") (license license:bsd-3))) +(define-public go-github-com-twpayne-go-pinentry + (package + (name "go-github-com-twpayne-go-pinentry") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twpayne/go-pinentry") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ixvvfd7ywsgj0jk1plb4h2g5bpmw86qc89m02c184jh5ndawhip")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/twpayne/go-pinentry")) + (native-inputs + (list go-github-com-alecthomas-assert-v2 + go-github-com-golang-mock)) + (propagated-inputs + (list go-github-com-rs-zerolog)) + (home-page "https://github.com/twpayne/go-pinentry") + (synopsis "Golang client to GnuPG's pinentry") + (description + "Package pinentry provides a client to @code{GnuPG's} pinentry.") + (license license:expat))) + +(define-public go-github-com-twpayne-go-pinentry-v4 + (package + (inherit go-github-com-twpayne-go-pinentry) + (name "go-github-com-twpayne-go-pinentry-v4") + (version "4.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twpayne/go-pinentry") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1z9h2lg5xd3g6dd9avcfx0nnwdybr2yibmsw7akl6pz0cls3sf63")))) + (arguments + (list + #:import-path "github.com/twpayne/go-pinentry/v4")))) + (define-public go-github-com-xanzy-ssh-agent (package (name "go-github-com-xanzy-ssh-agent") From 027356f66c0a392861d3fa4bd15e26b09480f47c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 12:32:23 +0000 Subject: [PATCH 698/862] gnu: go-github-com-twpayne-go-vfs: Rename variable. * gnu/packages/configuration-management.scm * gnu/packages/golang-xyz.scm (go-github-com-twpayne-go-vfs): Rename variable to go-github-com-twpayne-go-vfs-v5 to reflect go.mod import path. [arguments] : Adjust as seen in go.mod for the current version. (go-github-com-twpayne-go-vfs-1.0.1) [arguments] : Adjust as seen in go.mod for the current version. * gnu/packages/configuration-management.scm (chezmoi) [native-inputs]: Remove go-github-com-twpayne-go-vfs, add go-github-com-twpayne-go-vfs-1.0.1. Change-Id: Ifa1ae0e12795248820c86db106146a45f4bbbe2d --- gnu/packages/configuration-management.scm | 2 +- gnu/packages/golang-xyz.scm | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gnu/packages/configuration-management.scm b/gnu/packages/configuration-management.scm index 3482e327f7f..36450ad70c7 100644 --- a/gnu/packages/configuration-management.scm +++ b/gnu/packages/configuration-management.scm @@ -100,7 +100,7 @@ go-github-com-spf13-viper go-github-com-stretchr-testify go-github-com-twpayne-go-shell - go-github-com-twpayne-go-vfs + go-github-com-twpayne-go-vfs-1.0.1 go-github-com-twpayne-go-vfsafero go-github-com-twpayne-go-xdg-v3 go-github-com-zalando-go-keyring diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a6afad9a9fd..b73f19ca0b2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13239,9 +13239,9 @@ supported by the time package "Package @code{shell} returns a user's shell across multiple platforms.") (license license:expat))) -(define-public go-github-com-twpayne-go-vfs +(define-public go-github-com-twpayne-go-vfs-v5 (package - (name "go-github-com-twpayne-go-vfs") + (name "go-github-com-twpayne-go-vfs-v5") (version "5.0.4") (source (origin @@ -13255,7 +13255,7 @@ supported by the time package (build-system go-build-system) (arguments (list - #:import-path "github.com/twpayne/go-vfs" + #:import-path "github.com/twpayne/go-vfs/v5" #:phases #~(modify-phases %standard-phases ;; XXX: Replace when go-build-system supports nested path. @@ -13275,7 +13275,7 @@ supported by the time package ;; XXX: For chezmoi 1.8.10, remove it when updated. (define-public go-github-com-twpayne-go-vfs-1.0.1 - (hidden-package (package (inherit go-github-com-twpayne-go-vfs) + (hidden-package (package (inherit go-github-com-twpayne-go-vfs-v5) (name "go-github-com-twpayne-go-vfs") (version "1.0.1") (source @@ -13286,7 +13286,10 @@ supported by the time package (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1if2wfdwl3h8v8kgrgywkwcjafcz7hynq8ikr52s11qf2n0w3gny"))))))) + (base32 "1if2wfdwl3h8v8kgrgywkwcjafcz7hynq8ikr52s11qf2n0w3gny")))) + (arguments + (list + #:import-path "github.com/twpayne/go-vfs"))))) (define-public go-github-com-urfave-cli (package From b102e120d57b1f790c4ee7bf9a71ffe06db2126b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 12:40:55 +0000 Subject: [PATCH 699/862] gnu: go-github-com-twpayne-go-xdg-v3: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-twpayne-go-xdg-v3): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Icfea33020fcadb4b47cdced47df203886b3260b4 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b73f19ca0b2..8773c0fa030 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13291,6 +13291,33 @@ supported by the time package (list #:import-path "github.com/twpayne/go-vfs"))))) +(define-public go-github-com-twpayne-go-xdg-v3 + (package + (name "go-github-com-twpayne-go-xdg-v3") + (version "3.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twpayne/go-xdg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j8q7yzixs6jlaad0lpa8hs6b240gm2cmy0yxgnprrbpa0y2r7ln")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/twpayne/go-xdg/v3")) + (native-inputs + (list go-github-com-stretchr-testify + go-github-com-twpayne-go-vfs-1.0.1)) + (home-page "https://github.com/twpayne/go-xdg/") + (synopsis "Functions related to freedesktop.org") + (description + "Package @code{xdg} provides functions related to +@uref{freedesktop.org}.") + (license license:expat))) + (define-public go-github-com-urfave-cli (package (name "go-github-com-urfave-cli") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f82d07edf12..462beb62825 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2905,30 +2905,6 @@ temporal directories.") @code{go-github-com-twpayne-go-vfs} and @code{go-github-com-spf13-afero}.") (license license:expat))) -(define-public go-github-com-twpayne-go-xdg-v3 - (package - (name "go-github-com-twpayne-go-xdg-v3") - (version "3.1.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/twpayne/go-xdg") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0j8q7yzixs6jlaad0lpa8hs6b240gm2cmy0yxgnprrbpa0y2r7ln")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/twpayne/go-xdg/v3")) - (native-inputs - (list go-github-com-stretchr-testify go-github-com-twpayne-go-vfs-1.0.1)) - (home-page "https://github.com/twpayne/go-xdg/") - (synopsis "Functions related to freedesktop.org") - (description "Package @code{xdg} provides functions related to -@uref{freedesktop.org}.") - (license license:expat))) - (define-public go-github-com-delthas-go-libnp (let ((commit "0e45ece1f878f202fee2c74801e287804668f677")) (package From 60f5676b2dc2afc705d28608a4c1e928e400a874 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 12:43:01 +0000 Subject: [PATCH 700/862] gnu: go-github-com-twpayne-go-xdg-v3: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-twpayne-go-xdg-v3) [propagated-inputs]: Add go-github-com-twpayne-go-vfs-1.0.1. [native-inputs]: Remove go-github-com-twpayne-go-vfs-1.0.1. Change-Id: I99e932b0ccbed59ee08065a941487e54d5cd88db --- gnu/packages/golang-xyz.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8773c0fa030..837984de68c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13309,8 +13309,9 @@ supported by the time package (list #:import-path "github.com/twpayne/go-xdg/v3")) (native-inputs - (list go-github-com-stretchr-testify - go-github-com-twpayne-go-vfs-1.0.1)) + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-twpayne-go-vfs-1.0.1)) (home-page "https://github.com/twpayne/go-xdg/") (synopsis "Functions related to freedesktop.org") (description From 5f0bb9245118ffb40755cdaac6a4464baf56b313 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 12:47:36 +0000 Subject: [PATCH 701/862] gnu: Add go-github-com-twpayne-go-xdg-v6. * gnu/packages/golang-xyz.scm (go-github-com-twpayne-go-xdg-v6): New variable. Change-Id: I6acdfc4a947ed6b72536ec10c394963ce3bae4df --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 837984de68c..826ac5ba986 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13319,6 +13319,29 @@ supported by the time package @uref{freedesktop.org}.") (license license:expat))) +(define-public go-github-com-twpayne-go-xdg-v6 + (package + (inherit go-github-com-twpayne-go-xdg-v3) + (name "go-github-com-twpayne-go-xdg-v6") + (version "6.1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twpayne/go-xdg") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ihpljay4waw3qss40bwd230wwpq3vm25qiy3y5yfhmybk8wr6jx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/twpayne/go-xdg/v6")) + (native-inputs + (list go-github-com-alecthomas-assert-v2)) + (propagated-inputs + (list go-github-com-twpayne-go-vfs-v5)))) + (define-public go-github-com-urfave-cli (package (name "go-github-com-urfave-cli") From 9afa4eb17c2ac1a37196f912b415d7d0b2c5a0ad Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 12:48:56 +0000 Subject: [PATCH 702/862] gnu: go-github-com-twpayne-go-vfs-v5: Simplify. * gnu/packages/golang-xyz.scm (go-github-com-twpayne-go-vfs-v5) [arguments] : Use default 'check. Change-Id: I7857a7d9ab6334188ca8cb40ad71af2d7790298b --- gnu/packages/golang-xyz.scm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 826ac5ba986..693104f9952 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13255,15 +13255,7 @@ supported by the time package (build-system go-build-system) (arguments (list - #:import-path "github.com/twpayne/go-vfs/v5" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Replace when go-build-system supports nested path. - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:import-path "github.com/twpayne/go-vfs/v5")) (native-inputs (list go-github-com-alecthomas-assert-v2)) (home-page "https://github.com/twpayne/go-vfs/") From bc9e3bb1153d1c4a0f64b11d3b6f32d821a9f34e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 12:52:35 +0000 Subject: [PATCH 703/862] gnu: Add go-github-com-twpayne-go-vfs-v4. * gnu/packages/golang-xyz.scm (go-github-com-twpayne-go-vfs-v4): New variable. Change-Id: Ia1e92ec37ee309c5d2e8c4bae469ed4bccf49221 --- gnu/packages/golang-xyz.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 693104f9952..65afa480728 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13265,6 +13265,24 @@ supported by the time package @code{ioutil} packages that is easy to test.") (license license:expat))) +;; XXX: For chezmoi 2.30.1, remove it when updated. +(define-public go-github-com-twpayne-go-vfs-v4 + (hidden-package (package (inherit go-github-com-twpayne-go-vfs-v5) + (name "go-github-com-twpayne-go-vfs-v4") + (version "4.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/twpayne/go-vfs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hbrm6b0ca116h8mc8nkq04nba685wmp52pz5980ivvi86ji9b1y")))) + (arguments + (list + #:import-path "github.com/twpayne/go-vfs/v4"))))) + ;; XXX: For chezmoi 1.8.10, remove it when updated. (define-public go-github-com-twpayne-go-vfs-1.0.1 (hidden-package (package (inherit go-github-com-twpayne-go-vfs-v5) From 50784186df62b3270c731a31504cf1a6cfa6efaa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 13:02:25 +0000 Subject: [PATCH 704/862] gnu: Add go-mvdan-cc-sh-v3. * gnu/packages/golang-xyz.scm (go-mvdan-cc-sh-v3): New variable. Change-Id: Idfd7faf19627ee797facb155e5a065609f07e2f3 --- gnu/packages/golang-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 65afa480728..18e541b5412 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15267,6 +15267,57 @@ kubernetes-independent packages supplementing the defined in @url{https://editorconfig.org/,https://editorconfig.org/}.") (license license:bsd-3))) +(define-public go-mvdan-cc-sh-v3 + (package + (name "go-mvdan-cc-sh-v3") + (version "3.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mvdan/sh") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ryqrhdjvj0ll88fk6dh63a5hjl0rpww3x8kmzqfnf5r83jdz3sh")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:skip-build? #t ; we need just lib here + #:import-path "mvdan.cc/sh/v3" + #:test-flags + #~(list "-skip" (string-join + ;; XXX: Check why these tests fail. + (list "TestRunnerRun/#279" + "TestRunnerRun/#281" + "TestRunnerRun/#282" + "TestRunnerRun/#289" + "TestRunnerRun/#960" + "TestRunnerRun/#989" + "TestRunnerRun/#990" + "TestRunnerRun/#991" + "TestScript/flags") + "|")))) + (native-inputs + (list go-github-com-go-quicktest-qt + go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-creack-pty + go-github-com-google-renameio-v2 + go-github-com-muesli-cancelreader + go-github-com-rogpeppe-go-internal + go-golang-org-x-sync + go-golang-org-x-sys + go-golang-org-x-term + go-mvdan-cc-editorconfig)) + (home-page "https://mvdan.cc/sh") + (synopsis "Shell formatter with bash support") + (description + "This package provides a Golang library implementing a shell parser, +formatter, and interpreter with bash support.") + (license license:bsd-3))) + (define-public go-nullprogram-com-x-optparse (package (name "go-nullprogram-com-x-optparse") From 97c3244b63d161c7b248ee6d116cd9bcf15e36b8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 13:07:50 +0000 Subject: [PATCH 705/862] gnu: Add go-github-com-google-go-github-v50. * gnu/packages/golang-web.scm (go-github-com-google-go-github-50): New variable. Change-Id: I0299e56db83d39a1bf8dd3afc9046a2b11c2e13b --- gnu/packages/golang-web.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 61c73c218fd..a38b5a59b38 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3195,6 +3195,39 @@ GitHub API v3.") (package-arguments go-github-com-google-go-github-v31) ((#:import-path _) "github.com/google/go-github/v33"))))) +(define-public go-github-com-google-go-github-v50 + (package + (inherit go-github-com-google-go-github-v31) + (name "go-github-com-google-go-github-v50") + (version "50.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/go-github") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11qzikm988zfzs6g70lbdjfhw7kdndagahg0q2bkn2ibq2c47xxp")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/google/go-github/scrape + (delete-file-recursively "scrape") + (delete-file-recursively "update-urls"))))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-google-go-github-v31) + ((#:import-path _) "github.com/google/go-github/v50"))) + (native-inputs + (list go-github-com-google-go-cmp)) + (propagated-inputs + (list go-github-com-google-go-querystring + go-github-com-protonmail-go-crypto + go-golang-org-x-oauth2)))) + (define-public go-github-com-google-go-querystring (package (name "go-github-com-google-go-querystring") From 98f1850f59a607d7c83f4193db3acfaf0ad9eba5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 13:23:14 +0000 Subject: [PATCH 706/862] gnu: go-github-com-bradfitz-gomemcache: Update to 0.0.0-20230905024940-24af94b03874. * gnu/packages/databases.scm (go-github-com-bradfitz-gomemcache): Update to 0.0.0-20230905024940-24af94b03874. [source] : Remove it as issue is resolved upstream. [arguments] : No go files in project's root. : Set to project's root. : Remove as redundant. Change-Id: I64e002e6e76900f9299839e92fde2c22d3963368 --- gnu/packages/databases.scm | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 95af63e6e97..622515112ee 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -716,7 +716,7 @@ replacement for the @code{python-memcached} library.") (define-public go-github-com-bradfitz-gomemcache (package (name "go-github-com-bradfitz-gomemcache") - (version "0.0.0-20190913173617-a41fca850d0b") + (version "0.0.0-20230905024940-24af94b03874") (source (origin (method git-fetch) @@ -725,18 +725,12 @@ replacement for the @code{python-memcached} library.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "18qpds6xr73jy80pj7l3pc1l1ndcy3va2dl8fzk17bgwg49sxwfz")) - (modules '((guix build utils))) - (snippet - '(begin - ;; Fixes the 'untyped-int -> string of one rune' issue. - ;; https://github.com/golang/go/issues/32479 - (substitute* "memcache/memcache_test.go" - (("string\\(0x7f") "string(rune(0x7f)")))))) + (base32 "0xhf5zphhilv1jiwsdf5f4b4g2jj8q3yhn2r83f52mpi9s8jp5db")))) (build-system go-build-system) (arguments - '(#:unpack-path "github.com/bradfitz/gomemcache" - #:import-path "github.com/bradfitz/gomemcache/memcache")) + (list + #:skip-build? #t + #:import-path "github.com/bradfitz/gomemcache")) (home-page "https://github.com/bradfitz/gomemcache") (synopsis "Memcache client library in Go") (description From 98f7346225ff1cc43755a00ae0e98b448c2283eb Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 13:24:15 +0000 Subject: [PATCH 707/862] gnu: go-github-com-bradfitz-gomemcache: Move to golang-xyz. * gnu/packages/databases.scm (go-github-com-bradfitz-gomemcache): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I0592af69046c5b9aa85f6a3ec0efc56ffe5f1004 --- gnu/packages/databases.scm | 24 ------------------------ gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 622515112ee..de352168e56 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -713,30 +713,6 @@ around TangentOrg’s libmemcached library, and can be used as a drop-in replacement for the @code{python-memcached} library.") (license license:bsd-3))) -(define-public go-github-com-bradfitz-gomemcache - (package - (name "go-github-com-bradfitz-gomemcache") - (version "0.0.0-20230905024940-24af94b03874") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/bradfitz/gomemcache") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0xhf5zphhilv1jiwsdf5f4b4g2jj8q3yhn2r83f52mpi9s8jp5db")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "github.com/bradfitz/gomemcache")) - (home-page "https://github.com/bradfitz/gomemcache") - (synopsis "Memcache client library in Go") - (description - "This is a memcache client library for the Go programming language.") - (license license:asl2.0))) - (define-public go-github-com-couchbase-gomemcached (package (name "go-github-com-couchbase-gomemcached") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 18e541b5412..c16467ea59e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1951,6 +1951,30 @@ project is to provide a simple, fast, and reliable database for projects that don't require a full database server such as Postgres or MySQL.") (license license:expat))) +(define-public go-github-com-bradfitz-gomemcache + (package + (name "go-github-com-bradfitz-gomemcache") + (version "0.0.0-20230905024940-24af94b03874") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bradfitz/gomemcache") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xhf5zphhilv1jiwsdf5f4b4g2jj8q3yhn2r83f52mpi9s8jp5db")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/bradfitz/gomemcache")) + (home-page "https://github.com/bradfitz/gomemcache") + (synopsis "Memcache client library in Go") + (description + "This is a memcache client library for the Go programming language.") + (license license:asl2.0))) + (define-public go-github-com-briandowns-spinner (package (name "go-github-com-briandowns-spinner") From 0edeae417873831063b9c58e0d25a8cd28dc6152 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 14:02:11 +0000 Subject: [PATCH 708/862] gnu: go-gitlab-com-yawning-utls-git: Fix tests. * gnu/packages/golang-crypto.scm (go-gitlab-com-yawning-utls-git) [arguments] : Skip 2 tests relaying on dated TLS certificates. Change-Id: I289f1a97df83f8c43e029de8457098061528c922 --- gnu/packages/golang-crypto.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 4c88150ad31..f3aa7df336d 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -2336,7 +2336,11 @@ obfuscated via the Elligator 2 mapping "TestUTLSHandshakeClientParrotGolang" ;; Fails with error: expected "key size too small ;; for PSS signature". - "TestKeyTooSmallForRSAPSS") + "TestKeyTooSmallForRSAPSS" + ;; Time bomb tests, certs are not valid after + ;; certain date. + "TestResumption/TLSv12" + "TestResumption/TLSv13") "|")))) (propagated-inputs (list go-github-com-dsnet-compress From e5bf6b3e5a9631781b6013632184e02d29e67b62 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 15:20:05 +0000 Subject: [PATCH 709/862] gnu: go-jsonnet: Fix typo. * gnu/packages/golang-xyz.scm (go-jsonnet) [arguments] : Fix field typo. Change-Id: I492cda851a0e577dcc47cd557178524d147e1649 --- gnu/packages/golang-xyz.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c16467ea59e..a1ca47de006 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15766,7 +15766,7 @@ correctly."))) (build-system go-build-system) (arguments (list - #:intall-source? #f + #:install-source? #f #:import-path "github.com/google/go-jsonnet/cmd/jsonnet" #:unpack-path "github.com/google/go-jsonnet")) (native-inputs From 07f72774295ea6459141d1050c1cc1731571a204 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 19:59:54 +0000 Subject: [PATCH 710/862] gnu: go-github-com-xo-terminfo: Update to 0.0.0-20220910002029-abceb7e1c41e. * gnu/packages/golang.scm (go-github-com-xo-terminfo): Update to 0.0.0-20220910002029-abceb7e1c41e. [native-inputs]: Add go-golang-org-x-exp. Change-Id: I92a5867d3cdb619f1c26da105eda3eb83055409a --- gnu/packages/golang.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 462beb62825..07575277b4c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2624,7 +2624,7 @@ over strings.") (define-public go-github-com-xo-terminfo (package (name "go-github-com-xo-terminfo") - (version "0.0.0-20210125001918-ca9a967f8778") + (version "0.0.0-20220910002029-abceb7e1c41e") (source (origin (method git-fetch) (uri (git-reference @@ -2633,10 +2633,12 @@ over strings.") (file-name (git-file-name name version)) (sha256 (base32 - "05gdcvcbwcrcwxznhvs1q1xh4irz2d10v2mz179pydjh30kjc0j5")))) + "0n3b37z76rz3l74mhrvviz66xa8dqwpvc2gb6cyzql5smbcs9y3a")))) (build-system go-build-system) (arguments (list #:import-path "github.com/xo/terminfo")) + (native-inputs + (list go-golang-org-x-exp)) (home-page "https://github.com/xo/terminfo") (synopsis "Read the terminfo database in Go") (description From 177da1bd7a1cb565a90eb82cf929aa3c562c5477 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:01:14 +0000 Subject: [PATCH 711/862] gnu: go-github-com-xo-terminfo: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-xo-terminfo): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I8ba7b7d24737b8067b22b786c2aca73aec84d0d4 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a1ca47de006..02bb1230778 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14024,6 +14024,30 @@ similar string with weeks or days too.") "This package provides a simple ASCII tree composing tool.") (license license:expat))) +(define-public go-github-com-xo-terminfo + (package + (name "go-github-com-xo-terminfo") + (version "0.0.0-20220910002029-abceb7e1c41e") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xo/terminfo") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0n3b37z76rz3l74mhrvviz66xa8dqwpvc2gb6cyzql5smbcs9y3a")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/xo/terminfo")) + (native-inputs + (list go-golang-org-x-exp)) + (home-page "https://github.com/xo/terminfo") + (synopsis "Read the terminfo database in Go") + (description + "The terminfo package implements terminfo database reading for Go.") + (license license:expat))) + (define-public go-github-com-xrash-smetrics (package (name "go-github-com-xrash-smetrics") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 07575277b4c..eaf868e38cc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2621,30 +2621,6 @@ encoding in Go.") over strings.") (license license:expat))) -(define-public go-github-com-xo-terminfo - (package - (name "go-github-com-xo-terminfo") - (version "0.0.0-20220910002029-abceb7e1c41e") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/xo/terminfo") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0n3b37z76rz3l74mhrvviz66xa8dqwpvc2gb6cyzql5smbcs9y3a")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/xo/terminfo")) - (native-inputs - (list go-golang-org-x-exp)) - (home-page "https://github.com/xo/terminfo") - (synopsis "Read the terminfo database in Go") - (description - "The terminfo package implements terminfo database reading for Go.") - (license license:expat))) - (define-public go-github-com-lunixbochs-vtclean (package (name "go-github-com-lunixbochs-vtclean") From b90d134190a87683ab63aadb16fb98b173205195 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:14:54 +0000 Subject: [PATCH 712/862] gnu: go-github-com-xrash-smetrics: Simplify. * gnu/packages/golang-xyz.scm (go-github-com-xrash-smetrics) [arguments] : Use default 'check. Change-Id: I1bbf3fb59f4a7e161ec701aedb50f402832d5710 --- gnu/packages/golang-xyz.scm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 02bb1230778..e3b43905c72 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14064,15 +14064,7 @@ similar string with weeks or days too.") (build-system go-build-system) (arguments (list - #:import-path "github.com/xrash/smetrics" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Replace when go-build-system supports nested path. - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" "./...")))))))) + #:import-path "github.com/xrash/smetrics")) (home-page "https://github.com/xrash/smetrics") (synopsis "String metrics library") (description From a18429fb3a12474c4179026b15d51d9470f3ab47 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:22:34 +0000 Subject: [PATCH 713/862] gnu: go-github-com-charmbracelet-x-ansi: Update to 0.6.0. * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-ansi): Update to 0.6.0. Change-Id: I449cb1f8439f2ae34a3dc8a2c2d62cd076947991 --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e3b43905c72..18cf6b311cc 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2511,7 +2511,7 @@ glamorous default themes.") (define-public go-github-com-charmbracelet-x-ansi (package (name "go-github-com-charmbracelet-x-ansi") - (version "0.5.2") + (version "0.6.0") (source (origin (method git-fetch) @@ -2521,7 +2521,7 @@ glamorous default themes.") #:subdir "ansi")))) (file-name (git-file-name name version)) (sha256 - (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4")))) + (base32 "0y76a1zqj2ccyqibh4xk47hyw8grwrf5j3qm2j0pzd2yn592dny5")))) (build-system go-build-system) (arguments (list From bbdec2ee61b558b91afe85d984fba0fc828a0dd1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:22:34 +0000 Subject: [PATCH 714/862] gnu: go-github-com-charmbracelet-x-input: Update to 0.3.0. * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-input): Update to 0.3.0. [propagated-inputs]: Remove go-github-com-charmbracelet-x-ansi-0.4.5; add go-github-com-charmbracelet-x-ansi. Change-Id: Iead85a8c4cf0ff2339db1be1fa3aa2d59fc7453e --- gnu/packages/golang-xyz.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 18cf6b311cc..faeca3e3fd8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2604,7 +2604,7 @@ package provides an API for comparing Golden files.") (define-public go-github-com-charmbracelet-x-input (package (name "go-github-com-charmbracelet-x-input") - (version "0.2.0") + (version "0.3.0") (source (origin (method git-fetch) @@ -2614,7 +2614,7 @@ package provides an API for comparing Golden files.") #:subdir "input")))) (file-name (git-file-name name version)) (sha256 - (base32 "0sby6rvi04nga2iv823slsgydqlianfl6k3fgjvjzfyxd68lqxsp")) + (base32 "0v7yrpq6ffa2qdqlrdgl7wm5jvm9wlh2iwyhd4x6hqkq90gwllyr")) (snippet #~(begin (use-modules (guix build utils)) (delete-file-recursively "ansi"))))) @@ -2624,7 +2624,7 @@ package provides an API for comparing Golden files.") #:import-path "github.com/charmbracelet/x/input" #:unpack-path "github.com/charmbracelet/x")) (propagated-inputs - (list go-github-com-charmbracelet-x-ansi-0.4.5 + (list go-github-com-charmbracelet-x-ansi go-github-com-erikgeiser-coninput go-github-com-muesli-cancelreader go-github-com-xo-terminfo From 5061bc7259bbbf13cab4b809b6c09a1810668138 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:22:49 +0000 Subject: [PATCH 715/862] gnu: Remove go-github-com-charmbracelet-x-ansi-0.4.5. * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-ansi-0.4.5): Delete variable. Change-Id: Ibf8f3d3cab771ddaebbada05a3968ccc5b8d4e11 --- gnu/packages/golang-xyz.scm | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index faeca3e3fd8..e7e48ba7257 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2538,27 +2538,6 @@ glamorous default themes.") ECMA-48} specs.") (license license:expat))) -;; XXX: This is for making the package compatible with -;; go-github-com-charmbracelet-x-input, see -;; and -;; . -;; Remove when a new tag is placed. -(define go-github-com-charmbracelet-x-ansi-0.4.5 - (package - (inherit go-github-com-charmbracelet-x-ansi) - (name "go-github-com-charmbracelet-x-ansi") - (version "0.4.5") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/charmbracelet/x") - (commit (go-version->git-ref version - #:subdir "ansi")))) - (file-name (git-file-name name version)) - (sha256 - (base32 "10ivngjp9ifm8b50pkxrwdzan6hn4s3l9fxi6wiqiwy6m2v41a0a")))))) - (define-public go-github-com-charmbracelet-x-exp-golden (package (name "go-github-com-charmbracelet-x-exp-golden") From ef7c6b40c572b58b89eb0fa37635580213e90a40 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:26:37 +0000 Subject: [PATCH 716/862] gnu: go-github-com-cespare-mph: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-cespare-mph): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Iaf690f78cb14c063b883c7b3a58a3150f9c3548c --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e7e48ba7257..1dd0a90938d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2261,6 +2261,30 @@ tools using Go.") variables into structs.") (license license:expat))) +(define-public go-github-com-cespare-mph + (package + (name "go-github-com-cespare-mph") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cespare/mph") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mvd6bkvf3i3555kqkkr3k9jd4c25scjq4xad35sxpny8f72nbg1")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cespare/mph")) + (home-page "https://github.com/cespare/mph") + (synopsis "Minimal perfect hashing in Go") + (description + "@code{mph} is a Go package that implements a minimal perfect hash table +over strings.") + (license license:expat))) + (define-public go-github-com-charlievieth-fastwalk (package (name "go-github-com-charlievieth-fastwalk") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index eaf868e38cc..37fae376fc7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2598,29 +2598,6 @@ various color spaces.") encoding in Go.") (license license:bsd-3))) -(define-public go-github-com-cespare-mph - (package - (name "go-github-com-cespare-mph") - (version "0.1.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/cespare/mph") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0mvd6bkvf3i3555kqkkr3k9jd4c25scjq4xad35sxpny8f72nbg1")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/cespare/mph")) - (home-page "https://github.com/cespare/mph") - (synopsis "Minimal perfect hashing in Go") - (description - "@code{mph} is a Go package that implements a minimal perfect hash table -over strings.") - (license license:expat))) - (define-public go-github-com-lunixbochs-vtclean (package (name "go-github-com-lunixbochs-vtclean") From 43c415daad11d32b78d876d3a41b4abda5e9901b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:30:25 +0000 Subject: [PATCH 717/862] gnu: go-github-com-lucasb-eyer-go-colorful: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-lucasb-eyer-go-colorful): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/image-viewers.scm: Add golang-xyz. Change-Id: I9bb92dc5e5b549e74f6354870a061d958ff34931 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- gnu/packages/image-viewers.scm | 1 + 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1dd0a90938d..5477ca31018 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9175,6 +9175,33 @@ Printf/Sprintf etc.") (native-inputs (list go-github-com-stretchr-testify)))) +(define-public go-github-com-lucasb-eyer-go-colorful + (package + (name "go-github-com-lucasb-eyer-go-colorful") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lucasb-eyer/go-colorful") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08c3fkf27r16izjjd4w94xd1z7w1r4mdalbl53ms2ka2j465s3qs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/lucasb-eyer/go-colorful")) + (propagated-inputs + (list go-golang-org-x-image)) + (home-page "https://github.com/lucasb-eyer/go-colorful") + (synopsis "Library for playing with colors in Go") + (description + "The colorful package provides a library for using colors in Go. +It stores colors in RGB and provides methods for converting these to various +color spaces.") + (license license:expat))) + (define-public go-github-com-lyft-protoc-gen-star-v2 (package (name "go-github-com-lyft-protoc-gen-star-v2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 37fae376fc7..27e23d06a8b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2549,31 +2549,6 @@ GIT_TRACE mechanism.") anchor names.") (license license:expat))) -(define-public go-github-com-lucasb-eyer-go-colorful - (package - (name "go-github-com-lucasb-eyer-go-colorful") - (version "1.2.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/lucasb-eyer/go-colorful") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "08c3fkf27r16izjjd4w94xd1z7w1r4mdalbl53ms2ka2j465s3qs")))) - (build-system go-build-system) - (propagated-inputs (list go-golang-org-x-image)) - (arguments - (list #:import-path "github.com/lucasb-eyer/go-colorful")) - (home-page "https://github.com/lucasb-eyer/go-colorful") - (synopsis "Library for playing with colors in Go") - (description - "The colorful package provides a library for using colors in Go. -It stores colors in RGB and provides methods for converting these to -various color spaces.") - (license license:expat))) - (define-public go-github-com-cention-sany-utf7 (package (name "go-github-com-cention-sany-utf7") diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 67742a024c9..7c5d8ec543e 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -83,6 +83,7 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages gtk) #:use-module (gnu packages graphics) #:use-module (gnu packages image) From 4d0de227e067cd60a4a7eb851adc0bc8966d0f39 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:34:40 +0000 Subject: [PATCH 718/862] gnu: go-github-com-git-lfs-go-netrc: Update to 0.0.0-20230601124202-e96144b9a966. * gnu/packages/golang.scm (go-github-com-git-lfs-go-netrc): Update to 0.0.0-20230601124202-e96144b9a966. Change-Id: I6214604e21b2d564c17dce5f8f276f559a6d111b --- gnu/packages/golang.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 27e23d06a8b..da01223e3f0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2475,31 +2475,31 @@ of building man pages.") (license license:expat))) (define-public go-github-com-git-lfs-go-netrc - (let ((commit "f0c862dd687a9d9a7e15b3cd7cb3fd3e81cdd5ef") - (revision "0")) (package (name "go-github-com-git-lfs-go-netrc") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20230601124202-e96144b9a966") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/git-lfs/go-netrc") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0xvnjyg54gm3m3qszkfp12id0jmpg3583nqvv2llza1nr18w1sqi")))) + (base32 "1rb8xk0gp7yvw10zs122p48qhj3xc9csaykbflr7wdfx5xqpbr2f")))) (build-system go-build-system) - (arguments `(#:import-path "github.com/git-lfs/go-netrc/netrc" - #:unpack-path "github.com/git-lfs/go-netrc")) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/git-lfs/go-netrc")) (home-page "https://github.com/git-lfs/go-netrc") (synopsis "Netrc file parser for Go") (description "This package is for reading and writing netrc files. This package can parse netrc files, make changes to them, and then serialize them back to netrc format, while preserving any whitespace that was present in the source file.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-rubyist-tracerx (let ((commit "787959303086f44a8c361240dfac53d3e9d53ed2") From 6ad2d96663ab699d2638378fe83af549c2a7cbde Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:41:32 +0000 Subject: [PATCH 719/862] gnu: go-github-com-git-lfs-go-netrc: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-git-lfs-go-netrc): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I958e375e5bb6eec173b3b75d189491e5bc132827 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 26 insertions(+), 27 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5477ca31018..330e59982f0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5066,6 +5066,32 @@ also favors portability, and includes support for all POSIX systems.") (modify-inputs (package-inputs go-github-com-gdamore-tcell) (prepend go-golang-org-x-term go-golang-org-x-sys)))))) +(define-public go-github-com-git-lfs-go-netrc + (package + (name "go-github-com-git-lfs-go-netrc") + (version "0.0.0-20230601124202-e96144b9a966") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/git-lfs/go-netrc") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rb8xk0gp7yvw10zs122p48qhj3xc9csaykbflr7wdfx5xqpbr2f")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/git-lfs/go-netrc")) + (home-page "https://github.com/git-lfs/go-netrc") + (synopsis "Netrc file parser for Go") + (description + "This package is for reading and writing netrc files. This package can +parse netrc files, make changes to them, and then serialize them back to netrc +format, while preserving any whitespace that was present in the source file.") + (license license:expat))) + (define-public go-github-com-gizak-termui-v3 (package (name "go-github-com-gizak-termui-v3") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index da01223e3f0..cd0f786d764 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2474,33 +2474,6 @@ and lookup requests. Browse requests are not supported yet.") of building man pages.") (license license:expat))) -(define-public go-github-com-git-lfs-go-netrc - (package - (name "go-github-com-git-lfs-go-netrc") - (version "0.0.0-20230601124202-e96144b9a966") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/git-lfs/go-netrc") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1rb8xk0gp7yvw10zs122p48qhj3xc9csaykbflr7wdfx5xqpbr2f")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "github.com/git-lfs/go-netrc")) - (home-page "https://github.com/git-lfs/go-netrc") - (synopsis "Netrc file parser for Go") - (description "This package is for reading and writing netrc files. This -package can parse netrc files, make changes to them, and then serialize them -back to netrc format, while preserving any whitespace that was present in the -source file.") - (license license:expat))) - (define-public go-github-com-rubyist-tracerx (let ((commit "787959303086f44a8c361240dfac53d3e9d53ed2") (revision "0")) From 3fb61fa812990c236a355779cb5610e2f5d776c3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 20:44:27 +0000 Subject: [PATCH 720/862] gnu: go-github-com-disintegration-imaging: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-disintegration-imaging): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Iec713c34d2b8b72e9593d98927d60c3699ad818c --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 330e59982f0..1d302f326a4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4032,6 +4032,32 @@ on throughput and hit ratio performance.") Mark} detection.") (license license:asl2.0))) +(define-public go-github-com-disintegration-imaging + (package + (name "go-github-com-disintegration-imaging") + (version "1.6.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/disintegration/imaging") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1sl201nmk601h0aii4234sycn4v2b0rjxf8yhrnik4yjzd68q9x5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/disintegration/imaging")) + (inputs + (list go-golang-org-x-image)) + (home-page "https://github.com/disintegration/imaging") + (synopsis "Simple image processing for Go") + (description + "This package provides basic image processing functions +(resize, rotate, crop, brightness/contrast adjustments, etc.).") + (license license:expat))) + (define-public go-github-com-djherbis-atime (package (name "go-github-com-djherbis-atime") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cd0f786d764..057986037b7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3272,29 +3272,6 @@ key, and builds several layers of performance-enhancing abstraction on top. The result is a conceptually simple, but highly performant, disk-backed storage system.") (license license:expat))) -(define-public go-github-com-disintegration-imaging - (package - (name "go-github-com-disintegration-imaging") - (version "1.6.2") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/disintegration/imaging") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1sl201nmk601h0aii4234sycn4v2b0rjxf8yhrnik4yjzd68q9x5")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/disintegration/imaging")) - (inputs (list go-golang-org-x-image)) - (home-page "https://github.com/disintegration/imaging") - (synopsis "Simple image processing for Go") - (description "This package provides basic image processing functions -(resize, rotate, crop, brightness/contrast adjustments, etc.).") - (license license:expat))) - (define notmuch-fixtures (origin (method url-fetch) From fc2e80506ac338181d65697ab842232cf36700ac Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 21:40:22 +0000 Subject: [PATCH 721/862] gnu: packages/image-viewers: Remove golang module. * gnu/packages/image-viewers.scm: As all Golang dependencies were shifted to corresponded submodules, remove not required "golang" module from used ones. Change-Id: I0751655edef4485e8c7393690b93ffd884e1fb75 --- gnu/packages/image-viewers.scm | 1 - 1 file changed, 1 deletion(-) diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 7c5d8ec543e..94739c4ce25 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -81,7 +81,6 @@ #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) - #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages gtk) From 5e95ca96db8207d063937806b0dbbc7cb36d379c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 21:39:57 +0000 Subject: [PATCH 722/862] gnu: Add go-github-com-containerd-platforms. * gnu/packages/golang-xyz.scm (go-github-com-containerd-platforms): New variable. Change-Id: I846e26f2414268452d1d21e0387f0c2eb970c32e --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1d302f326a4..8204c7806e7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3167,6 +3167,36 @@ way.") loggers through a context, and attaching context to the logger.") (license license:asl2.0))) +(define-public go-github-com-containerd-platforms + (package + (name "go-github-com-containerd-platforms") + (version "0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containerd/platforms") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03clc3b2fvlym5d2rvgima0p0br1m34p8gs7rn6y5rp7v7z601sx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/containerd/platforms")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-containerd-log + go-github-com-opencontainers-image-spec + go-golang-org-x-sys)) + (home-page "https://github.com/containerd/platforms") + (synopsis "Handling container platform type") + (description + "Package platforms provides a toolkit for normalizing, matching and +specifying container platforms.") + (license license:asl2.0))) + (define-public go-github-com-coocood-freecache (package (name "go-github-com-coocood-freecache") From 3a1fdddb66c28808d2c6de6f76b1562f64e08a87 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 21:45:26 +0000 Subject: [PATCH 723/862] gnu: Add go-github-com-containerd-plugin. * gnu/packages/golang-xyz.scm (go-github-com-containerd-plugin): New variable. Change-Id: Id8be82abc8d01ce57749ee2068b6be7fde10eff0 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8204c7806e7..15e1c87d7a5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3197,6 +3197,32 @@ loggers through a context, and attaching context to the logger.") specifying container platforms.") (license license:asl2.0))) +(define-public go-github-com-containerd-plugin + (package + (name "go-github-com-containerd-plugin") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containerd/plugin") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gzm8h4yaparji0llqqfxl68gv56hwlybz4rgwnr54fhr029mpzp")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/containerd/plugin")) + (propagated-inputs + (list go-github-com-opencontainers-image-spec)) + (home-page "https://github.com/containerd/plugin") + (synopsis "Registering and managing typed plugins with dependencies") + (description + "This package provides a common plugin interface across containerd +repositories.") + (license license:asl2.0))) + (define-public go-github-com-coocood-freecache (package (name "go-github-com-coocood-freecache") From 7d74323fb62fe2a5e613543d9dc408fcfb6b9489 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 21:51:37 +0000 Subject: [PATCH 724/862] gnu: Add go-modernc-org-lexer. * gnu/packages/golang-xyz.scm (go-modernc-org-lexer): New variable. Change-Id: I1925ebdfb0ad9c86507ac526b27025368facfe49 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 15e1c87d7a5..99810b517e2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15319,6 +15319,33 @@ kubernetes-independent packages supplementing the (description "Package fileutil collects some file utility functions.") (license license:bsd-3))) +(define-public go-modernc-org-lexer + (package + (name "go-modernc-org-lexer") + (version "1.0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/lexer") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00ahagg81vbm8k9an5l8gn8plr7d53955v54mv0g811hfqxacja2")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/lexer")) + (propagated-inputs + (list go-golang-org-x-exp + go-modernc-org-fileutil)) + (home-page "https://gitlab.com/cznic/lexer") + (synopsis "Run time generator of action less scanners") + (description + "Package lexer provides generating actionless scanners (lexeme +recognizers) at run time.") + (license license:bsd-3))) + (define-public go-modernc-org-memory (package (name "go-modernc-org-memory") From a89e19f4e1e57cf46eb0fb00afe734af268eba85 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 22:00:05 +0000 Subject: [PATCH 725/862] gnu: Add go-github-com-stoewer-go-strcase. * gnu/packages/golang-xyz.scm (go-github-com-stoewer-go-strcase): New variable. Change-Id: I4c148cba75a4000ee4fd3a9366bf525d26df7849 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 99810b517e2..4704566fbb3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12849,6 +12849,34 @@ all types of configuration needs and formats.") (home-page "https://github.com/stathat/go") (license license:expat)))) +(define-public go-github-com-stoewer-go-strcase + (package + (name "go-github-com-stoewer-go-strcase") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/stoewer/go-strcase") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gqswiyj71h676lmqb78rs125iq8msklymhzw0w59afywxqsaj2z")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/stoewer/go-strcase")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/stoewer/go-strcase") + (synopsis "Convert snake case, camel case and kebap case strings") + (description + "Package strcase converts between different kinds of naming formats such +as camel case (@code{CamelCase}), snake case (@code{snake_case}) or kebab +case (@code{kebab-case}). The package is designed to work only with strings +consisting of standard ASCII letters.") + (license license:expat))) + (define-public go-github-com-stretchr-objx (package (name "go-github-com-stretchr-objx") From f3bcadad62ab2b5bb4380ac42b9e0f9fb3a9721d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 22:01:31 +0000 Subject: [PATCH 726/862] gnu: go-github-com-stathat-go: Update to 1.0.0. * gnu/packages/golang-xyz.scm (go-github-com-stathat-go): Update to 1.0.0. Change-Id: I62c92bdd8176298d938d87580d7277accd271cd3 --- gnu/packages/golang-xyz.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4704566fbb3..5602391b2b7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12827,17 +12827,15 @@ all types of configuration needs and formats.") (license license:expat))) (define-public go-github-com-stathat-go - (let ((commit "74669b9f388d9d788c97399a0824adbfee78400e") - (revision "0")) (package (name "go-github-com-stathat-go") - (version (git-version "0.0.0" revision commit)) + (version "1.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/stathat/go") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw")))) @@ -12847,7 +12845,7 @@ all types of configuration needs and formats.") (synopsis "Post statistics to StatHat") (description "This is a Go package for posting to a StatHat account.") (home-page "https://github.com/stathat/go") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-stoewer-go-strcase (package From 0ed8c6d5aef0ddc72e301dc045dabe223a36f2a2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 22:05:12 +0000 Subject: [PATCH 727/862] gnu: go-github-com-stathat-go: Improve package style. * gnu/packages/golang-xyz.scm (go-github-com-stathat-go): Fix indentation, rearrange fields order. [description]: Add a link to SataHat. Change-Id: I981ed85649a8c80576d550ca0d960633932ed792 --- gnu/packages/golang-xyz.scm | 41 ++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5602391b2b7..1805f6aa958 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12827,25 +12827,28 @@ all types of configuration needs and formats.") (license license:expat))) (define-public go-github-com-stathat-go - (package - (name "go-github-com-stathat-go") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/stathat/go") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/stathat/go")) - (synopsis "Post statistics to StatHat") - (description "This is a Go package for posting to a StatHat account.") - (home-page "https://github.com/stathat/go") - (license license:expat))) + (package + (name "go-github-com-stathat-go") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/stathat/go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/stathat/go")) + (home-page "https://github.com/stathat/go") + (synopsis "Post statistics to StatHat") + (description + "This is a Go package for posting to a @url{https://www.stathat.com/, +StatHat} account.") + (license license:expat))) (define-public go-github-com-stoewer-go-strcase (package From a0e06194c6f13a4c917aec7fa827394d1a70fdea Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 22:08:13 +0000 Subject: [PATCH 728/862] gnu: go-github-com-stathat-go: Move to golang-web. * gnu/packages/golang-xyz.scm (go-github-com-stathat-go): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: Ibddb2d1146f2bc00edca434092da8237e3a77efd --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang-xyz.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index a38b5a59b38..b9ffbdc9c07 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7249,6 +7249,30 @@ provided @code{http.FileSystem}.") file into a Go http.CookieJar.") (license license:expat))) +(define-public go-github-com-stathat-go + (package + (name "go-github-com-stathat-go") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/stathat/go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/stathat/go")) + (home-page "https://github.com/stathat/go") + (synopsis "Post statistics to StatHat") + (description + "This is a Go package for posting to a @url{https://www.stathat.com/, +StatHat} account.") + (license license:expat))) + (define-public go-github-com-tdewolff-minify-v2 (package (name "go-github-com-tdewolff-minify-v2") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1805f6aa958..632497fe072 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12826,30 +12826,6 @@ GNU extensions} to the POSIX recommendations for command-line options.") all types of configuration needs and formats.") (license license:expat))) -(define-public go-github-com-stathat-go - (package - (name "go-github-com-stathat-go") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/stathat/go") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/stathat/go")) - (home-page "https://github.com/stathat/go") - (synopsis "Post statistics to StatHat") - (description - "This is a Go package for posting to a @url{https://www.stathat.com/, -StatHat} account.") - (license license:expat))) - (define-public go-github-com-stoewer-go-strcase (package (name "go-github-com-stoewer-go-strcase") From 46e69fc5530941ef8d9fe8f7e1c3f98a6cee0a3c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 22:12:49 +0000 Subject: [PATCH 729/862] gnu: go-github-com-rcrowley-go-metrics: Update to 0.0.0-20201227073835-cf1acfcdf475. * gnu/packages/golang-xyz.scm (go-github-com-rcrowley-go-metrics): Update to 0.0.0-20201227073835-cf1acfcdf475. Change-Id: I79f15d5a32ec274a544fe8bdd2e4bba3d11335b5 --- gnu/packages/golang-xyz.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 632497fe072..7f71d728afb 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11831,20 +11831,18 @@ policy.") (license (list license:asl2.0 license:expat)))) (define-public go-github-com-rcrowley-go-metrics - (let ((commit "cac0b30c2563378d434b5af411844adff8e32960") - (revision "2")) (package (name "go-github-com-rcrowley-go-metrics") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20201227073835-cf1acfcdf475") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/rcrowley/go-metrics") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04")))) + (base32 "0s7zab04slz07c7l4h2cqz62qnqah69r6p157vvbd7725a7wzkr0")))) (build-system go-build-system) (arguments ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le @@ -11858,7 +11856,7 @@ policy.") (description "This package provides a Go implementation of Coda Hale's Metrics library.") (home-page "https://github.com/rcrowley/go-metrics") - (license license:bsd-2)))) + (license license:bsd-2))) (define-public go-github-com-remeh-sizedwaitgroup (package From ca5c09e7f2892cf8b3c31872e763a53f8084f6fe Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 22:14:12 +0000 Subject: [PATCH 730/862] gnu: go-github-com-rcrowley-go-metrics: Move to golang-web. * gnu/packages/golang-xyz.scm (go-github-com-rcrowley-go-metrics): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: Iec57b6a74bfdd998463b2529a949c9fd045feae9 --- gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++ gnu/packages/golang-xyz.scm | 28 ---------------------------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index b9ffbdc9c07..e94bdce1f00 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6911,6 +6911,35 @@ on @@url{https://github.com/quic-go/quic-go,quic-go}. It currently implements of the specification.") (license license:expat))) +(define-public go-github-com-rcrowley-go-metrics + (package + (name "go-github-com-rcrowley-go-metrics") + (version "0.0.0-20201227073835-cf1acfcdf475") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rcrowley/go-metrics") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s7zab04slz07c7l4h2cqz62qnqah69r6p157vvbd7725a7wzkr0")))) + (build-system go-build-system) + (arguments + ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le + ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249 + `(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-system) + (%current-system)))) + #:import-path "github.com/rcrowley/go-metrics")) + (propagated-inputs + (list go-github-com-stathat-go)) + (home-page "https://github.com/rcrowley/go-metrics") + (synopsis "Go port of Coda Hale's Metrics library") + (description + "This package provides a Go implementation of Coda Hale's Metrics +library.") + (license license:bsd-2))) + (define-public go-github-com-rs-cors (package (name "go-github-com-rs-cors") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7f71d728afb..c2ca350a124 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11830,34 +11830,6 @@ watches memory utilization and forces Go GC in accordance with a user-defined policy.") (license (list license:asl2.0 license:expat)))) -(define-public go-github-com-rcrowley-go-metrics - (package - (name "go-github-com-rcrowley-go-metrics") - (version "0.0.0-20201227073835-cf1acfcdf475") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rcrowley/go-metrics") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0s7zab04slz07c7l4h2cqz62qnqah69r6p157vvbd7725a7wzkr0")))) - (build-system go-build-system) - (arguments - ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le - ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249 - `(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-system) - (%current-system)))) - #:import-path "github.com/rcrowley/go-metrics")) - (propagated-inputs - (list go-github-com-stathat-go)) - (synopsis "Go port of Coda Hale's Metrics library") - (description "This package provides a Go implementation of Coda Hale's -Metrics library.") - (home-page "https://github.com/rcrowley/go-metrics") - (license license:bsd-2))) - (define-public go-github-com-remeh-sizedwaitgroup (package (name "go-github-com-remeh-sizedwaitgroup") From d4ba1e30e26bfb671dfb7081c7cd5bdb2d31c3d5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 22:56:19 +0000 Subject: [PATCH 731/862] gnu: go-github-com-gomodule-redigo: Update to 1.9.2. * gnu/packages/databases.scm (go-github-com-gomodule-redigo): Update to 1.9.2. [arguments] : No go files in project's root. : Set to project's root. : Remove as redundant. : Skip all tests requiring redis CLI and running redis service. : Add 'remove-examples. [native-inputs]: Remove redis. Change-Id: Ia87d118ddebc712d7c91d83c3bb707271c86ec16 --- gnu/packages/databases.scm | 46 +++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index de352168e56..82e51c2c0b4 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3003,7 +3003,7 @@ one-to-one, while still providing an idiomatic interface.") (define-public go-github-com-gomodule-redigo (package (name "go-github-com-gomodule-redigo") - (version "1.8.8") + (version "1.9.2") (source (origin (method git-fetch) @@ -3012,14 +3012,48 @@ one-to-one, while still providing an idiomatic interface.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0wplaaxg7f6c6c08gdp33l48hygn8gq1rhlnjzr1c9qcggsm07k1")))) + (base32 "03z02zmkl8cj73c6xrvlpj144d9ysikc25ay64dhpbzwkn16h5yv")))) (build-system go-build-system) (arguments - '(#:unpack-path "github.com/gomodule/redigo" - #:import-path "github.com/gomodule/redigo/redis")) + (list + #:skip-build? #t + #:import-path "github.com/gomodule/redigo" + #:test-flags + #~(list "-skip" + (string-join + ;; Run just unit tests which do not require Redis reducing + ;; closure size. + (list "TestDoCommands" + "TestPipelineCommands" + "TestBlankCommand" + "TestRecvBeforeSend" + "TestError" + "TestDialContext_CanceledContext" + "TestDialClientName" + "TestExecError" + "Test.*Pool.*" + "TestPushed" + "TestPubSubReceiveContext" + "TestSlowLog" + "TestLatency" + "TestLatencyHistories" + "TestScript" + "Example.*" + "TestConnMux" + "TestConnMuxClose") + "|")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file + (list "redis/zpop_example_test.go" + "redis/scan_test.go" + "redis/pubsub_example_test.go" + "redis/reply_test.go")))))))) (native-inputs - (list go-github-com-stretchr-testify - redis)) + (list go-github-com-stretchr-testify)) (home-page "https://github.com/gomodule/redigo") (synopsis "Go client for Redis") (description From c79fb232a9071e8495a7524b69e8fc530fdf1558 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 23:00:25 +0000 Subject: [PATCH 732/862] gnu: go-github-com-gomodule-redigo: Move to golang-xyz. * gnu/packages/databases.scm (go-github-com-gomodule-redigo): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I747da14647b1b32756b9f6a4dd0f840e908fcede --- gnu/packages/databases.scm | 60 ------------------------------------- gnu/packages/golang-xyz.scm | 60 +++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 60 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 82e51c2c0b4..5ac1489d13b 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3000,66 +3000,6 @@ one-to-one, while still providing an idiomatic interface.") "Package rdb implements parsing and encoding of the Redis RDB file format.") (license license:expat))) -(define-public go-github-com-gomodule-redigo - (package - (name "go-github-com-gomodule-redigo") - (version "1.9.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gomodule/redigo") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "03z02zmkl8cj73c6xrvlpj144d9ysikc25ay64dhpbzwkn16h5yv")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "github.com/gomodule/redigo" - #:test-flags - #~(list "-skip" - (string-join - ;; Run just unit tests which do not require Redis reducing - ;; closure size. - (list "TestDoCommands" - "TestPipelineCommands" - "TestBlankCommand" - "TestRecvBeforeSend" - "TestError" - "TestDialContext_CanceledContext" - "TestDialClientName" - "TestExecError" - "Test.*Pool.*" - "TestPushed" - "TestPubSubReceiveContext" - "TestSlowLog" - "TestLatency" - "TestLatencyHistories" - "TestScript" - "Example.*" - "TestConnMux" - "TestConnMuxClose") - "|")) - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'remove-examples - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each delete-file - (list "redis/zpop_example_test.go" - "redis/scan_test.go" - "redis/pubsub_example_test.go" - "redis/reply_test.go")))))))) - (native-inputs - (list go-github-com-stretchr-testify)) - (home-page "https://github.com/gomodule/redigo") - (synopsis "Go client for Redis") - (description - "Redigo is a Go client for the Redis database.") - (license license:asl2.0))) - (define-public kyotocabinet (package (name "kyotocabinet") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c2ca350a124..32e629dc55b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5997,6 +5997,66 @@ All the functionality of the built-in package still exists and is unchanged. This package contains a series of small enhancements and additions.") (license license:bsd-3))) +(define-public go-github-com-gomodule-redigo + (package + (name "go-github-com-gomodule-redigo") + (version "1.9.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gomodule/redigo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03z02zmkl8cj73c6xrvlpj144d9ysikc25ay64dhpbzwkn16h5yv")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/gomodule/redigo" + #:test-flags + #~(list "-skip" + (string-join + ;; Run just unit tests which do not require Redis reducing + ;; closure size. + (list "TestDoCommands" + "TestPipelineCommands" + "TestBlankCommand" + "TestRecvBeforeSend" + "TestError" + "TestDialContext_CanceledContext" + "TestDialClientName" + "TestExecError" + "Test.*Pool.*" + "TestPushed" + "TestPubSubReceiveContext" + "TestSlowLog" + "TestLatency" + "TestLatencyHistories" + "TestScript" + "Example.*" + "TestConnMux" + "TestConnMuxClose") + "|")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file + (list "redis/zpop_example_test.go" + "redis/scan_test.go" + "redis/pubsub_example_test.go" + "redis/reply_test.go")))))))) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/gomodule/redigo") + (synopsis "Go client for Redis") + (description + "Redigo is a Go client for the Redis database.") + (license license:asl2.0))) + (define-public go-github-com-google-gnostic-models (package (name "go-github-com-google-gnostic-models") From 298c3355a09390f6cdf374f4576853c6c6a49d2c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 23:02:05 +0000 Subject: [PATCH 733/862] gnu: go-github-com-gregjones-httpcache: Update to 0.0.0-20190611155906-901d90724c79. * gnu/packages/golang-web.scm (go-github-com-gregjones-httpcache): Update to 0.0.0-20190611155906-901d90724c79. [propagated-inputs]: Add go-github-com-peterbourgon-diskv, go-github-com-syndtr-goleveldb, go-github-com-bradfitz-gomemcache, and go-github-com-gomodule-redigo. Change-Id: Iddf2a0f13a3f880d0a3c4456ff87cf3c883b5328 --- gnu/packages/golang-web.scm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e94bdce1f00..bfaed9ac81b 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3531,23 +3531,26 @@ protocol.") (license license:bsd-2))) (define-public go-github-com-gregjones-httpcache - (let ((commit "901d90724c7919163f472a9812253fb26761123d") - (revision "0")) (package (name "go-github-com-gregjones-httpcache") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20190611155906-901d90724c79") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/gregjones/httpcache") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 "05r0xq51vfb55di11m7iv19341d73f7in33vq1ihcqs1nffdwiq0")))) (build-system go-build-system) (arguments '(#:import-path "github.com/gregjones/httpcache")) + (propagated-inputs + (list go-github-com-peterbourgon-diskv + go-github-com-syndtr-goleveldb + go-github-com-bradfitz-gomemcache + go-github-com-gomodule-redigo)) (home-page "https://github.com/gregjones/httpcache") (synopsis "Transport for @code{http.Client} that will cache responses") (description @@ -3556,7 +3559,7 @@ implementation that works as a mostly @url{https://tools.ietf.org/html/rfc7234, compliant cache for HTTP responses. It is only suitable for use as a \"private\" cache (i.e. for a web-browser or an API-client and not for a shared proxy).") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-hashicorp-go-cleanhttp (package From 7739658c8955d54d87a3e53ecf86e63fbc04b44a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 23:02:22 +0000 Subject: [PATCH 734/862] gnu: go-github-com-gregjones-httpcache: Fix indentation. * gnu/packages/golang-web.scm (go-github-com-gregjones-httpcache): Fix indentation. Change-Id: Id8f69140baba71b95ae5dca118ffcc230452b54d --- gnu/packages/golang-web.scm | 58 ++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index bfaed9ac81b..e245c9e3df8 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3531,35 +3531,35 @@ protocol.") (license license:bsd-2))) (define-public go-github-com-gregjones-httpcache - (package - (name "go-github-com-gregjones-httpcache") - (version "0.0.0-20190611155906-901d90724c79") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gregjones/httpcache") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "05r0xq51vfb55di11m7iv19341d73f7in33vq1ihcqs1nffdwiq0")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/gregjones/httpcache")) - (propagated-inputs - (list go-github-com-peterbourgon-diskv - go-github-com-syndtr-goleveldb - go-github-com-bradfitz-gomemcache - go-github-com-gomodule-redigo)) - (home-page "https://github.com/gregjones/httpcache") - (synopsis "Transport for @code{http.Client} that will cache responses") - (description - "Package @code{httpcache} provides a @code{http.RoundTripper} -implementation that works as a mostly @url{https://tools.ietf.org/html/rfc7234, RFC 7234} -compliant cache for HTTP responses. It is only suitable for use as a -\"private\" cache (i.e. for a web-browser or an API-client and not for a -shared proxy).") - (license license:expat))) + (package + (name "go-github-com-gregjones-httpcache") + (version "0.0.0-20190611155906-901d90724c79") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gregjones/httpcache") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05r0xq51vfb55di11m7iv19341d73f7in33vq1ihcqs1nffdwiq0")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/gregjones/httpcache")) + (propagated-inputs + (list go-github-com-peterbourgon-diskv + go-github-com-syndtr-goleveldb + go-github-com-bradfitz-gomemcache + go-github-com-gomodule-redigo)) + (home-page "https://github.com/gregjones/httpcache") + (synopsis "Transport for @code{http.Client} that will cache responses") + (description + "Package @code{httpcache} provides a @code{http.RoundTripper} +implementation that works as a mostly +@url{https://tools.ietf.org/html/rfc7234, RFC 7234} compliant cache for HTTP +responses. It is only suitable for use as a \"private\" cache (i.e. for a +web-browser or an API-client and not for a shared proxy).") + (license license:expat))) (define-public go-github-com-hashicorp-go-cleanhttp (package From 18205e27e902262fc728e4761173f21667b8e7f5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 23:48:07 +0000 Subject: [PATCH 735/862] gnu: Add go-github-com-bradenhilton-cityhash. * gnu/packages/golang-crypto.scm (go-github-com-bradenhilton-cityhash): New variable. Change-Id: I42bb34f4a5dc4a92c2eceead1f2daa910ac387be --- gnu/packages/golang-crypto.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index f3aa7df336d..e7fb61c78af 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -325,6 +325,31 @@ Go 1.20 @code{crypto/ecdh} standard package.") cryptographic standards that are not included in the Go standard library.") (license license:asl2.0)))) +(define-public go-github-com-bradenhilton-cityhash + (package + (name "go-github-com-bradenhilton-cityhash") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bradenhilton/cityhash") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rfmbis47m42w05inqmph7jk6kza79miq9ifqlsdiax38b684yky")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bradenhilton/cityhash")) + (home-page "https://github.com/bradenhilton/cityhash") + (synopsis "Google CityHash version 1 in Golang") + (description + "This package provides a Go implementation of Google City Hash, +originated from https://github.com/zhenjl/cityhash and +https://github.com/zentures/cityhash projects.") + (license license:expat))) + (define-public go-github-com-btcsuite-btcd-btcec (let ((commit "67e573d211ace594f1366b4ce9d39726c4b19bd0") (revision "0")) From de3e0b49253dbe77c8e5cc2471fb04685e697000 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 23:48:06 +0000 Subject: [PATCH 736/862] gnu: Add go-github-com-bradenhilton-mozillainstallhash. * gnu/packages/golang-web.scm (go-github-com-bradenhilton-mozillainstallhash): New variable. Change-Id: I25db6a11708a9c19617762ea04375bb25262c2c3 --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e245c9e3df8..9055cc929e7 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -971,6 +971,34 @@ capable of querying the current time from a remote NTP server as specified in "This package provides SCSS compiler support for Go applications.") (license license:expat))) +(define-public go-github-com-bradenhilton-mozillainstallhash + (package + (name "go-github-com-bradenhilton-mozillainstallhash") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bradenhilton/mozillainstallhash") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j54ssnvk2vy77g23zrhi9acwblnamj63i7wmmdnb89fjg0xc9km")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/bradenhilton/mozillainstallhash")) + (propagated-inputs + (list go-github-com-bradenhilton-cityhash + go-golang-org-x-text)) + (home-page "https://github.com/bradenhilton/mozillainstallhash") + (synopsis "Generates the hash used in installs of Mozilla software") + (description + "This package provides a functionality to get the hash used to +differentiate between installs of Mozilla software in @code{installs.ini} and +@code{profiles.ini}.") + (license license:expat))) + (define-public go-github-com-caddyserver-certmagic (package (name "go-github-com-caddyserver-certmagic") From af6873c36126b0da2c67209803d00c08c296baed Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 23:50:25 +0000 Subject: [PATCH 737/862] gnu: go-github-com-peterbourgon-diskv: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-peterbourgon-diskv): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I7d8250304f903f28906c7f8098ac6c89347d7d23 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 32e629dc55b..6565116fab8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11525,6 +11525,34 @@ programs that use traditional command lines.") (list go-github-com-stretchr-testify)) (propagated-inputs '()))) +(define-public go-github-com-peterbourgon-diskv + (package + (name "go-github-com-peterbourgon-diskv") + (version "3.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/peterbourgon/diskv") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pdy8f7bkm65gx4vknwcvfa619hknflqxkdlvmf427k2mzm91gmh")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/peterbourgon/diskv")) + (propagated-inputs (list go-github-com-google-btree)) + (home-page "https://github.com/peterbourgon/diskv") + (synopsis "Disk-backed key-value store") + (description + "Diskv (disk-vee) is a simple, persistent key-value store written in the +Go language. It starts with a simple API for storing arbitrary data on a +filesystem by key, and builds several layers of performance-enhancing +abstraction on top. The end result is a conceptually simple, but highly +performant, disk-backed storage system.") + (license license:expat))) + (define-public go-github-com-philhofer-fwd (package (name "go-github-com-philhofer-fwd") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 057986037b7..6c4ad2c6072 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3246,32 +3246,6 @@ aware of your profiles and configuration in ~/.aws/config.") using shell-style rules for quoting and commenting.") (license license:asl2.0))) -(define-public go-github-com-peterbourgon-diskv - (package - (name "go-github-com-peterbourgon-diskv") - (version "3.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/peterbourgon/diskv") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0pdy8f7bkm65gx4vknwcvfa619hknflqxkdlvmf427k2mzm91gmh")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/peterbourgon/diskv")) - (propagated-inputs (list go-github-com-google-btree)) - (home-page "https://github.com/peterbourgon/diskv") - (synopsis "Disk-backed key-value store") - (description - "Diskv (disk-vee) is a simple, persistent key-value store written in the Go -language. It starts with a simple API for storing arbitrary data on a filesystem by -key, and builds several layers of performance-enhancing abstraction on top. The end -result is a conceptually simple, but highly performant, disk-backed storage system.") - (license license:expat))) - (define notmuch-fixtures (origin (method url-fetch) From bc5a4aa143bba04f153547f1364689320222a7ab Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 23:54:38 +0000 Subject: [PATCH 738/862] gnu: go-github-com-valyala-bytebufferpool: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-valyala-bytebufferpool): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I625b7fcf28f625142106feb4510daad10362cc31 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6565116fab8..eb5207da6a1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13637,6 +13637,30 @@ distributable command line applications in an expressive way.") go-github-com-xrash-smetrics go-gopkg-in-yaml-v3)))) +(define-public go-github-com-valyala-bytebufferpool + (package + (name "go-github-com-valyala-bytebufferpool") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/valyala/bytebufferpool") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01lqzjddq6kz9v41nkky7wbgk7f1cw036sa7ldz10d82g5klzl93")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/valyala/bytebufferpool")) + (home-page "https://github.com/valyala/bytebufferpool") + (synopsis "Anti-memory-waste byte buffer pool for Golang") + (description + "@code{bytebufferpool} implements a pool of byte buffers with +anti-fragmentation protection.") + (license license:expat))) + (define-public go-github-com-vburenin-ifacemaker (package (name "go-github-com-vburenin-ifacemaker") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6c4ad2c6072..5b575a9c6b4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3027,29 +3027,6 @@ That is, @code{gofumpt} is happy with a subset of the formats that (native-inputs '()) (inputs '()))) -(define-public go-github-com-valyala-bytebufferpool - (package - (name "go-github-com-valyala-bytebufferpool") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/valyala/bytebufferpool") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "01lqzjddq6kz9v41nkky7wbgk7f1cw036sa7ldz10d82g5klzl93")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/valyala/bytebufferpool")) - (home-page "https://github.com/valyala/bytebufferpool") - (synopsis "Anti-memory-waste byte buffer pool for Golang") - (description - "@code{bytebufferpool} implements a pool of byte buffers with -anti-fragmentation protection.") - (license license:expat))) - (define-public go-github-com-vmihailenco-tagparser (package (name "go-github-com-vmihailenco-tagparser") From bb5be6b0fbee315dcbe3fae85d2d952f996a84fa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 23:57:51 +0000 Subject: [PATCH 739/862] gnu: aws-vault: Move to password-utils. * gnu/packages/golang.scm (aws-vault): Move from here ... * gnu/packages/password-utils.scm: ... to here. Change-Id: I530c13fb88c48e3e0f660da6a1aed053a5435ed4 --- gnu/packages/golang.scm | 77 -------------------------------- gnu/packages/password-utils.scm | 78 +++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 77 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5b575a9c6b4..c02115a32fd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3072,83 +3072,6 @@ parser.") (home-page "https://github.com/mtibben/percent") (license license:expat))) -(define-public aws-vault - (package - (name "aws-vault") - (version "7.2.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/99designs/aws-vault") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1dqg6d2k8r80ww70afghf823z0pijha1i0a0c0c6918yb322zkj2")))) - (build-system go-build-system) - (arguments - (list - #:install-source? #f - #:import-path "github.com/99designs/aws-vault" - #:phases - #~(modify-phases %standard-phases - (add-before 'build 'patch-version - (lambda _ - (substitute* "src/github.com/99designs/aws-vault/main.go" - (("var Version = \"dev\"") - (string-append "var Version = \"v" #$version "\""))))) - (add-after 'build 'contrib - (lambda* (#:key import-path #:allow-other-keys) - (let* ((zsh-site-dir - (string-append #$output "/share/zsh/site-functions")) - (bash-completion-dir - (string-append #$output "/share/bash-completion/completions")) - (fish-completion-dir - (string-append #$output "/share/fish/completions"))) - (for-each mkdir-p (list bash-completion-dir - fish-completion-dir - zsh-site-dir)) - (with-directory-excursion - (string-append "src/" import-path "/contrib/completions") - (copy-file "zsh/aws-vault.zsh" - (string-append zsh-site-dir "/_aws-vault")) - (copy-file "bash/aws-vault.bash" - (string-append bash-completion-dir "/aws-vault")) - (copy-file "fish/aws-vault.fish" - (string-append fish-completion-dir "/aws-vault.fish")))))) - ;; aws-vault: error: add: mkdir /homeless-shelter: permission - ;; denied. - (add-before 'check 'set-home - (lambda _ - (setenv "HOME" "/tmp")))))) - (native-inputs - (list go-github-com-99designs-keyring - go-github-com-alecthomas-kingpin-v2 - go-github-com-aws-aws-sdk-go-v2 - go-github-com-aws-aws-sdk-go-v2-config - go-github-com-aws-aws-sdk-go-v2-credentials - go-github-com-aws-aws-sdk-go-v2-service-iam - go-github-com-aws-aws-sdk-go-v2-service-sso - go-github-com-aws-aws-sdk-go-v2-service-ssooidc - go-github-com-aws-aws-sdk-go-v2-service-sts - go-github-com-google-go-cmp - go-github-com-mattn-go-isatty - go-github-com-mattn-go-tty - go-github-com-skratchdot-open-golang - go-golang-org-x-term - go-gopkg-in-ini-v1)) - (home-page "https://github.com/99designs/aws-vault") - (synopsis "Vault for securely storing and accessing AWS credentials") - (description - "AWS Vault is a tool to securely store and access @acronym{Amazon Web -Services,AWS} credentials. - -AWS Vault stores IAM credentials in your operating system's secure keystore and -then generates temporary credentials from those to expose to your shell and -applications. It's designed to be complementary to the AWS CLI tools, and is -aware of your profiles and configuration in ~/.aws/config.") - (license license:expat))) - (define-public go-github-com-gsterjov-go-libsecret (package (name "go-github-com-gsterjov-go-libsecret") diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 0f7a1517c5f..0a3711bbb9f 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -96,6 +96,7 @@ #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-xyz) + #:use-module (gnu packages golang-web) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) #:use-module (gnu packages kerberos) @@ -128,6 +129,83 @@ #:use-module (gnu packages xorg) #:use-module (gnu packages xml)) +(define-public aws-vault + (package + (name "aws-vault") + (version "7.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/99designs/aws-vault") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dqg6d2k8r80ww70afghf823z0pijha1i0a0c0c6918yb322zkj2")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/99designs/aws-vault" + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'patch-version + (lambda _ + (substitute* "src/github.com/99designs/aws-vault/main.go" + (("var Version = \"dev\"") + (string-append "var Version = \"v" #$version "\""))))) + (add-after 'build 'contrib + (lambda* (#:key import-path #:allow-other-keys) + (let* ((zsh-site-dir + (string-append #$output "/share/zsh/site-functions")) + (bash-completion-dir + (string-append #$output "/share/bash-completion/completions")) + (fish-completion-dir + (string-append #$output "/share/fish/completions"))) + (for-each mkdir-p (list bash-completion-dir + fish-completion-dir + zsh-site-dir)) + (with-directory-excursion + (string-append "src/" import-path "/contrib/completions") + (copy-file "zsh/aws-vault.zsh" + (string-append zsh-site-dir "/_aws-vault")) + (copy-file "bash/aws-vault.bash" + (string-append bash-completion-dir "/aws-vault")) + (copy-file "fish/aws-vault.fish" + (string-append fish-completion-dir "/aws-vault.fish")))))) + ;; aws-vault: error: add: mkdir /homeless-shelter: permission + ;; denied. + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" "/tmp")))))) + (native-inputs + (list go-github-com-99designs-keyring + go-github-com-alecthomas-kingpin-v2 + go-github-com-aws-aws-sdk-go-v2 + go-github-com-aws-aws-sdk-go-v2-config + go-github-com-aws-aws-sdk-go-v2-credentials + go-github-com-aws-aws-sdk-go-v2-service-iam + go-github-com-aws-aws-sdk-go-v2-service-sso + go-github-com-aws-aws-sdk-go-v2-service-ssooidc + go-github-com-aws-aws-sdk-go-v2-service-sts + go-github-com-google-go-cmp + go-github-com-mattn-go-isatty + go-github-com-mattn-go-tty + go-github-com-skratchdot-open-golang + go-golang-org-x-term + go-gopkg-in-ini-v1)) + (home-page "https://github.com/99designs/aws-vault") + (synopsis "Vault for securely storing and accessing AWS credentials") + (description + "AWS Vault is a tool to securely store and access @acronym{Amazon Web +Services,AWS} credentials. + +AWS Vault stores IAM credentials in your operating system's secure keystore and +then generates temporary credentials from those to expose to your shell and +applications. It's designed to be complementary to the AWS CLI tools, and is +aware of your profiles and configuration in ~/.aws/config.") + (license license:expat))) + (define-public pwgen (package (name "pwgen") From 4bf8855a50d610fb26fefc21b222602d27dab0b2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 00:06:13 +0000 Subject: [PATCH 740/862] gnu: go-github-com-rifflock-lfshook: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-rifflock-lfshook): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I93c8e864da864672664a3efaf5409c677da93d49 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index eb5207da6a1..8d361bee8fb 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11945,6 +11945,33 @@ routines querying a database but without sending too much queries in order to not overload the given database.") (license license:expat))) +(define-public go-github-com-rifflock-lfshook + (package + (name "go-github-com-rifflock-lfshook") + (version "2.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rifflock/lfshook") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wxqjcjfg8c0klmdgmbw3ckagby3wg9rkga9ihd4fsf05x5scxrc")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/rifflock/lfshook")) + (propagated-inputs + (list go-github-com-sirupsen-logrus)) + (home-page "https://github.com/rifflock/lfshook") + (synopsis "Local File System hook for Logrus logger") + (description + "This package provides a hook for Logrus to write directly to a file on +the file system. The log levels are dynamic at instantiation of the hook, so +it is capable of logging at some or all levels.") + (license license:expat))) + (define-public go-github-com-rivo-tview (package (name "go-github-com-rivo-tview") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c02115a32fd..c2fadd1e25e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2087,31 +2087,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-rifflock-lfshook - (package - (name "go-github-com-rifflock-lfshook") - (version "2.4") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rifflock/lfshook") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0wxqjcjfg8c0klmdgmbw3ckagby3wg9rkga9ihd4fsf05x5scxrc")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/rifflock/lfshook")) - (propagated-inputs - (list go-github-com-sirupsen-logrus)) - (home-page "https://github.com/rifflock/lfshook") - (synopsis "Local File System hook for Logrus logger") - (description "This package provides a hook for Logrus to write directly to -a file on the file system. The log levels are dynamic at instantiation of the -hook, so it is capable of logging at some or all levels.") - (license license:expat))) - (define-public go-github-com-kardianos-osext (let ((commit "ae77be60afb1dcacde03767a8c37337fad28ac14") (revision "1")) From eebacdfc8aa36cae963c503a73f30c4cf2d96689 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 00:17:29 +0000 Subject: [PATCH 741/862] gnu: go-github-com-wraparound-wrap: Improve style. * gnu/packages/golang.scm (go-github-com-wraparound-wrap): Re-indent and move all propagated inputs to native. [arguments] : It's a final CLI command. : Set to the source of command. : Provide it. : Use default 'build. [propagated-inputs]: Remove go-github-com-spf13-cobra, go-github-com-signintech-gopdf, and go-github-com-flopp-go-findfont. [native-inputs]: Add go-github-com-spf13-cobra, go-github-com-signintech-gopdf, and go-github-com-flopp-go-findfont. [description]: Apply fill column. Change-Id: I80d470a77e49ff5004a9eb1417123e09efde024f --- gnu/packages/golang.scm | 47 ++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c2fadd1e25e..f6debea9ddc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1581,29 +1581,25 @@ TrueType font files in your system's user and system font directories.") (package (name "go-github-com-wraparound-wrap") (version "0.3.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/Wraparound/wrap") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0scf7v83p40r9k7k5v41rwiy9yyanfv3jm6jxs9bspxpywgjrk77")) - (patches (search-patches - "go-github-com-wraparound-wrap-free-fonts.patch")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Wraparound/wrap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0scf7v83p40r9k7k5v41rwiy9yyanfv3jm6jxs9bspxpywgjrk77")) + (patches (search-patches + "go-github-com-wraparound-wrap-free-fonts.patch")))) (build-system go-build-system) (arguments (list - #:import-path "github.com/Wraparound/wrap/" - #:tests? #f ; no tests + #:install-source? #f + #:import-path "github.com/Wraparound/wrap/cmd/wrap" + #:unpack-path "github.com/Wraparound/wrap" #:phases #~(modify-phases %standard-phases - (replace 'build - (lambda* (#:key import-path #:allow-other-keys) - (invoke "go" "install" "-v" "-x" - "-ldflags=-s -w" - (string-append import-path "cmd/wrap")))) (add-after 'install 'wrap-fonts (lambda* (#:key inputs outputs #:allow-other-keys) (for-each @@ -1615,15 +1611,18 @@ TrueType font files in your system's user and system font directories.") (map cdr inputs)))))) (find-files (string-append (assoc-ref outputs "out") "/bin")))))))) - (propagated-inputs (list go-github-com-spf13-cobra - go-github-com-signintech-gopdf - go-github-com-flopp-go-findfont)) - (inputs (list font-liberation font-gnu-freefont)) + (native-inputs + (list go-github-com-spf13-cobra + go-github-com-signintech-gopdf + go-github-com-flopp-go-findfont)) + (inputs + (list font-liberation + font-gnu-freefont)) (home-page "https://github.com/Wraparound/wrap") (synopsis "Format Fountain screenplays") (description - "Wrap is a command line tool that is able to convert Fountain files into a -correctly formatted screen- or stageplay as an HTML or a PDF. It supports + "Wrap is a command line tool that is able to convert Fountain files into +a correctly formatted screen- or stageplay as an HTML or a PDF. It supports standard Fountain, but also has some custom syntax extensions such as translated keywords and acts.") (license license:gpl3))) From a00e5c64108d6b87d8aecc2975940955076ce1a7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 00:30:59 +0000 Subject: [PATCH 742/862] gnu: go-github-com-motemen-go-colorine: Update to 0.0.0-20180816141035-45d19169413a. * gnu/packages/golang.scm (go-github-com-motemen-go-colorine): Update to 0.0.0-20180816141035-45d19169413a. Change-Id: I28d0a046cba60fbc37580cedd8b52cae76a598d3 --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f6debea9ddc..ed0ce96b366 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1842,17 +1842,15 @@ your Go binary to be later served from an http.FileSystem.") (license license:bsd-3))) (define-public go-github-com-motemen-go-colorine - (let ((commit "45d19169413a019e4e2be69629dde5c7d92f8706") - (revision "0")) (package (name "go-github-com-motemen-go-colorine") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20180816141035-45d19169413a") (home-page "https://github.com/motemen/go-colorine") (source (origin (method git-fetch) (uri (git-reference (url home-page) - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 "1mdy6q0926s1frj027nlzlvm2qssmkpjis7ic3l2smajkzh07118")))) @@ -1860,11 +1858,11 @@ your Go binary to be later served from an http.FileSystem.") (arguments '(#:import-path "github.com/motemen/go-colorine")) (propagated-inputs - `(("github.com/daviddengcn/go-colortext" ,go-github-com-daviddengcn-go-colortext))) + (list go-github-com-daviddengcn-go-colortext)) (synopsis "Simple colorized console logger for golang") (description "This package provides simple colorized console logger for golang.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-daviddengcn-go-colortext (package From ff64c36d4fda09af2fe5650e8b4819417c18141d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 00:33:55 +0000 Subject: [PATCH 743/862] gnu: go-github-com-motemen-go-colorine: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-motemen-go-colorine): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I8003ab7f12ce07a7e7ff4d87f3956979e3522510 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8d361bee8fb..581361508fd 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10350,6 +10350,31 @@ standard @code{copy} will copy the pointers where @code{deepcopy} copies the values pointed to. Unexported field values are not copied.") (license license:expat))) +(define-public go-github-com-motemen-go-colorine + (package + (name "go-github-com-motemen-go-colorine") + (version "0.0.0-20180816141035-45d19169413a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/motemen/go-colorine") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1mdy6q0926s1frj027nlzlvm2qssmkpjis7ic3l2smajkzh07118")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/motemen/go-colorine")) + (propagated-inputs + (list go-github-com-daviddengcn-go-colortext)) + (home-page "https://github.com/motemen/go-colorine") + (synopsis "Simple colorized console logger for golang") + (description + "This package provides simple colorized console logger for golang.") + (license license:expat))) + (define-public go-github-com-mreiferson-go-options (package (name "go-github-com-mreiferson-go-options") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ed0ce96b366..c4f8ebfbcf9 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1841,29 +1841,6 @@ your Go binary to be later served from an http.FileSystem.") (description "This package provides additions to Go's stdlib @code{fmt}.") (license license:bsd-3))) -(define-public go-github-com-motemen-go-colorine - (package - (name "go-github-com-motemen-go-colorine") - (version "0.0.0-20180816141035-45d19169413a") - (home-page "https://github.com/motemen/go-colorine") - (source (origin - (method git-fetch) - (uri (git-reference - (url home-page) - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1mdy6q0926s1frj027nlzlvm2qssmkpjis7ic3l2smajkzh07118")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/motemen/go-colorine")) - (propagated-inputs - (list go-github-com-daviddengcn-go-colortext)) - (synopsis "Simple colorized console logger for golang") - (description - "This package provides simple colorized console logger for golang.") - (license license:expat))) - (define-public go-github-com-daviddengcn-go-colortext (package (name "go-github-com-daviddengcn-go-colortext") From f97a1678f1c7d69a6ee8fd46d567c1c3878b9744 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 13:06:37 +0000 Subject: [PATCH 744/862] gnu: go-github-com-daviddengcn-go-colortext: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-daviddengcn-go-colortext): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Idfb83db0d5ce5b750c057feaa2f97b6245872c32 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/golang.scm | 27 --------------------------- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 581361508fd..96ae9cd0b65 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3633,6 +3633,34 @@ gist (https://gist.github.com/kballard/272720).") (description "This package provides functionality to generate Go code.") (license license:expat))) +(define-public go-github-com-daviddengcn-go-colortext + (package + (name "go-github-com-daviddengcn-go-colortext") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/daviddengcn/go-colortext") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j5ldwg3a768d3nniiglghr9axj4p87k7f7asqxa1a688xvcms48")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/daviddengcn/go-colortext")) + (native-inputs + (list go-github-com-golangplus-testing)) + (home-page "https://github.com/daviddengcn/go-colortext") + (synopsis "Change the color of console text and background") + (description + "This is a package to change the color of the text and background in the +console, working both under Windows and other systems. Under Windows, the +console APIs are used. Otherwise, ANSI texts are output.") + ;; dual-licensed + (license (list license:bsd-3 license:expat)))) + (define-public go-github-com-dbaggerman-cuba (package (name "go-github-com-dbaggerman-cuba") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c4f8ebfbcf9..32d81ba86f7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1841,33 +1841,6 @@ your Go binary to be later served from an http.FileSystem.") (description "This package provides additions to Go's stdlib @code{fmt}.") (license license:bsd-3))) -(define-public go-github-com-daviddengcn-go-colortext - (package - (name "go-github-com-daviddengcn-go-colortext") - (version "1.0.0") - (home-page "https://github.com/daviddengcn/go-colortext") - (source (origin - (method git-fetch) - (uri (git-reference - (url home-page) - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0j5ldwg3a768d3nniiglghr9axj4p87k7f7asqxa1a688xvcms48")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/daviddengcn/go-colortext")) - (native-inputs - (list go-github-com-golangplus-testing)) - (synopsis "Change the color of console text and background") - (description - "This is a package to change the color of the text and background in the -console, working both under Windows and other systems. - -Under Windows, the console APIs are used. Otherwise, ANSI texts are output.") - ;; dual-licensed - (license (list license:bsd-3 license:expat)))) - (define-public go-github-com-nathan-osman-go-sunrise (let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73") (revision "0")) From b0d22106287b17a113879e9f87c1c4c6a635a6ee Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 14:27:31 +0000 Subject: [PATCH 745/862] gnu: go-github-com-nathan-osman-go-sunrise: Update to 1.1.0. * gnu/packages/golang.scm (go-github-com-nathan-osman-go-sunrise): Update to 1.1.0. Change-Id: I7db71627b34ba39f4f93cf42070cae7987def4e0 --- gnu/packages/golang.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 32d81ba86f7..2b3f15a79bb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1842,17 +1842,15 @@ your Go binary to be later served from an http.FileSystem.") (license license:bsd-3))) (define-public go-github-com-nathan-osman-go-sunrise - (let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73") - (revision "0")) (package (name "go-github-com-nathan-osman-go-sunrise") - (version (git-version "1.1.0" revision commit)) + (version "1.1.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/nathan-osman/go-sunrise") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -1865,7 +1863,7 @@ your Go binary to be later served from an http.FileSystem.") (description "This package provides a Go library for calculating sunrise and sunset times from geographical coordinates and a date.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-hebcal-gematriya (let ((commit "fe3043f73e415eb82727701d10f2fb40f87675e9") From 3042e572beb5e05559f7a9b93a0956ae393dcbd3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 14:28:18 +0000 Subject: [PATCH 746/862] gnu: go-github-com-nathan-osman-go-sunrise: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-nathan-osman-go-sunrise): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I615e1213635ffc173fdebdf3af0db792ade3c71d --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 96ae9cd0b65..bdb2ad79c03 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10800,6 +10800,30 @@ multibase} (self identifying base encodings) in Go.") varints.") (license license:expat))) +(define-public go-github-com-nathan-osman-go-sunrise + (package + (name "go-github-com-nathan-osman-go-sunrise") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nathan-osman/go-sunrise") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "017zwzx05r5spxcs07dp6bnh7waknzsd819k7aqd8kr819v3x9in")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/nathan-osman/go-sunrise")) + (home-page "https://github.com/nathan-osman/go-sunrise") + (synopsis "Calculate sunrise and sunset times in Go") + (description + "This package provides a Go library for calculating sunrise and +sunset times from geographical coordinates and a date.") + (license license:expat))) + (define-public go-github-com-nats-io-nats-go (package (name "go-github-com-nats-io-nats-go") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2b3f15a79bb..3e586758aaf 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1841,30 +1841,6 @@ your Go binary to be later served from an http.FileSystem.") (description "This package provides additions to Go's stdlib @code{fmt}.") (license license:bsd-3))) -(define-public go-github-com-nathan-osman-go-sunrise - (package - (name "go-github-com-nathan-osman-go-sunrise") - (version "1.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/nathan-osman/go-sunrise") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "017zwzx05r5spxcs07dp6bnh7waknzsd819k7aqd8kr819v3x9in")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/nathan-osman/go-sunrise")) - (home-page "https://github.com/nathan-osman/go-sunrise") - (synopsis "Calculate sunrise and sunset times in Go") - (description - "This package provides a Go library for calculating sunrise and -sunset times from geographical coordinates and a date.") - (license license:expat))) - (define-public go-github-com-hebcal-gematriya (let ((commit "fe3043f73e415eb82727701d10f2fb40f87675e9") (revision "0")) From b1001b9822adc9d784872c5a8bcc6d721c6dc2ac Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:21:41 +0000 Subject: [PATCH 747/862] gnu: go-github-com-hebcal-gematriya: Update to 1.0.1. * gnu/packages/golang.scm (go-github-com-hebcal-gematriya): Update to 1.0.1. Change-Id: Ia95c0b6f9dd798573faa30181522eca56fd4f1fe --- gnu/packages/golang.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3e586758aaf..f2c9506073b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1842,17 +1842,15 @@ your Go binary to be later served from an http.FileSystem.") (license license:bsd-3))) (define-public go-github-com-hebcal-gematriya - (let ((commit "fe3043f73e415eb82727701d10f2fb40f87675e9") - (revision "0")) (package (name "go-github-com-hebcal-gematriya") - (version (git-version "1.0.1" revision commit)) + (version "1.0.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hebcal/gematriya") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -1865,7 +1863,7 @@ your Go binary to be later served from an http.FileSystem.") (description "This package provides a Go library for printing numbers as Hebrew letters.") - (license license:bsd-2)))) + (license license:bsd-2))) (define-public go-gopkg.in-tomb.v2 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c") From 8ccbb7952acb4bb9c27bd08f6db5bb0f6a891815 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:22:30 +0000 Subject: [PATCH 748/862] gnu: go-github-com-hebcal-gematriya: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-hebcal-gematriya): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ib286d2b41173e4daac1219bfa8f4d839af329010 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index bdb2ad79c03..5fbd4722333 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6830,6 +6830,30 @@ expressing configuration which is easy for both humans and machines to read.") (home-page "https://github.com/hashicorp/hcl") (license license:mpl2.0))) +(define-public go-github-com-hebcal-gematriya + (package + (name "go-github-com-hebcal-gematriya") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hebcal/gematriya") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xmnb2i80dy380yv8c4pd04bbyqgbc7c40p8hz1vqj2lhbm6jabf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hebcal/gematriya")) + (home-page "https://github.com/hebcal/gematriya") + (synopsis "Print numbers as Hebrew letters in Go") + (description + "This package provides a Go library for printing numbers as Hebrew +letters.") + (license license:bsd-2))) + (define-public go-github-com-hebcal-greg (package (name "go-github-com-hebcal-greg") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f2c9506073b..549e1211f5e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1841,30 +1841,6 @@ your Go binary to be later served from an http.FileSystem.") (description "This package provides additions to Go's stdlib @code{fmt}.") (license license:bsd-3))) -(define-public go-github-com-hebcal-gematriya - (package - (name "go-github-com-hebcal-gematriya") - (version "1.0.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/hebcal/gematriya") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0xmnb2i80dy380yv8c4pd04bbyqgbc7c40p8hz1vqj2lhbm6jabf")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/hebcal/gematriya")) - (home-page "https://github.com/hebcal/gematriya") - (synopsis "Print numbers as Hebrew letters in Go") - (description - "This package provides a Go library for printing numbers as -Hebrew letters.") - (license license:bsd-2))) - (define-public go-gopkg.in-tomb.v2 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c") (revision "0")) From f796362003f6d1a257fea0a676b9a13a18c7262a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:32:51 +0000 Subject: [PATCH 749/862] gnu: go-github-com-kardianos-osext: Update to 0.0.0-20190222173326-2bc1f35cddc0. * gnu/packages/golang.scm (go-github-com-kardianos-osext): Update to 0.0.0-20190222173326-2bc1f35cddc0. Change-Id: I555303312ef8b11f792bbc7bd13a73e24fefea27 --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 549e1211f5e..2dd17e1c11b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1983,20 +1983,18 @@ containers.") (license license:asl2.0)))) (define-public go-github-com-kardianos-osext - (let ((commit "ae77be60afb1dcacde03767a8c37337fad28ac14") - (revision "1")) (package (name "go-github-com-kardianos-osext") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20190222173326-2bc1f35cddc0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/kardianos/osext") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 - "056dkgxrqjj5r18bnc3knlpgdz5p3yvp12y4y978hnsfhwaqvbjz")))) + "1pvrbrvmrf4mx0fxbfaphbzgqgwn8v6lkfk2vyrs0znxrs1xyc5r")))) (build-system go-build-system) (arguments `(#:import-path "github.com/kardianos/osext" @@ -2008,7 +2006,7 @@ containers.") file that is running. This can be used for upgrading the current executable or finding resources located relative to the executable file.") (home-page "https://github.com/kardianos/osext") - (license license:bsd-3)))) + (license license:bsd-3))) (define-public go-github-com-aarzilli-golua (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") From d7f4315446db275bc0352c7a474f272fed09eecf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:33:15 +0000 Subject: [PATCH 750/862] gnu: go-github-com-kardianos-osext: Enable tests. * gnu/packages/golang.scm (go-github-com-kardianos-osext) [arguments] : Enable as issue was resolved upstream. Change-Id: I958cfda1e393104f5f9c1c6dbebfdd5bd2e31e62 --- gnu/packages/golang.scm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2dd17e1c11b..057d82934c6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1997,10 +1997,7 @@ containers.") "1pvrbrvmrf4mx0fxbfaphbzgqgwn8v6lkfk2vyrs0znxrs1xyc5r")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/kardianos/osext" - ;; The tests are flaky: - ;; - #:tests? #f)) + `(#:import-path "github.com/kardianos/osext")) (synopsis "Find the running executable") (description "Osext provides a method for finding the current executable file that is running. This can be used for upgrading the current executable or From 11bc232176268d4733ae29d0a0f8afa19e8ab782 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:35:31 +0000 Subject: [PATCH 751/862] gnu: go-github-com-kardianos: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-kardianos): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I60104783d67bcb00c2b16069611a72113ec163d3 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5fbd4722333..e0a069b643b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8410,6 +8410,31 @@ import this package to enable running programs as services without modifying them.") (license license:zlib))) +(define-public go-github-com-kardianos-osext + (package + (name "go-github-com-kardianos-osext") + (version "0.0.0-20190222173326-2bc1f35cddc0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kardianos/osext") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pvrbrvmrf4mx0fxbfaphbzgqgwn8v6lkfk2vyrs0znxrs1xyc5r")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kardianos/osext")) + (home-page "https://github.com/kardianos/osext") + (synopsis "Find the running executable") + (description + "Osext provides a method for finding the current executable file that is +running. This can be used for upgrading the current executable or finding +resources located relative to the executable file.") + (license license:bsd-3))) + (define-public go-github-com-kardianos-service (package (name "go-github-com-kardianos-service") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 057d82934c6..2015261ca31 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1982,29 +1982,6 @@ information about the resource usage and performance characteristics of running containers.") (license license:asl2.0)))) -(define-public go-github-com-kardianos-osext - (package - (name "go-github-com-kardianos-osext") - (version "0.0.0-20190222173326-2bc1f35cddc0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kardianos/osext") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1pvrbrvmrf4mx0fxbfaphbzgqgwn8v6lkfk2vyrs0znxrs1xyc5r")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/kardianos/osext")) - (synopsis "Find the running executable") - (description "Osext provides a method for finding the current executable -file that is running. This can be used for upgrading the current executable or -finding resources located relative to the executable file.") - (home-page "https://github.com/kardianos/osext") - (license license:bsd-3))) - (define-public go-github-com-aarzilli-golua (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") (revision "0")) From ab117c09a57a5874a0535d2cfef9b38294af9c0c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:44:30 +0000 Subject: [PATCH 752/862] gnu: Add go-github-com-nakagami-firebirdsql. * gnu/packages/golang-xyz.scm (go-github-com-nakagami-firebirdsql): New variable. Change-Id: I4d30dcb0db7fb8ec23bc7e1ce7b1499e0ae8c815 --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e0a069b643b..415462633c4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10849,6 +10849,40 @@ multibase} (self identifying base encodings) in Go.") varints.") (license license:expat))) +(define-public go-github-com-nakagami-firebirdsql + (package + (name "go-github-com-nakagami-firebirdsql") + (version "0.9.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nakagami/firebirdsql") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "043wc8pigv0cpnzljry1vfdnwlmbfy14b5yhbkyhnndk81c4pl7s")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; tests require running database service + #:import-path "github.com/nakagami/firebirdsql")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-kardianos-osext + go-github-com-shopspring-decimal + go-gitlab-com-nyarla-go-crypt + go-golang-org-x-crypto + go-golang-org-x-text + go-modernc-org-mathutil)) + (home-page "https://github.com/nakagami/firebirdsql") + (synopsis "Firebird RDBMS sql driver for Golang") + (description + "Package firebird provides database/sql driver for +@url{https://firebirdsql.org/, Firebird} RDBMS.") + (license license:expat))) + (define-public go-github-com-nathan-osman-go-sunrise (package (name "go-github-com-nathan-osman-go-sunrise") From 40f61f474cf609244e8baa43536f241ae6c45255 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:44:30 +0000 Subject: [PATCH 753/862] gnu: Add go-gitlab-com-nyarla-go-crypt. * gnu/packages/golang-crypto.scm (go-gitlab-com-nyarla-go-crypt): New variable. Change-Id: Ie28070f92468dbf8307f917159872844bbb375b3 --- gnu/packages/golang-crypto.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index e7fb61c78af..8489dad95c1 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -2197,6 +2197,30 @@ vectorized version of BLAKE3 implementation in Golang.") Congruential Generator} (PCG) algorithm.") (license license:cc0))) +(define-public go-gitlab-com-nyarla-go-crypt + (package + (name "go-gitlab-com-nyarla-go-crypt") + (version "0.0.0-20160106005555-d9a5dc2b789b") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/nyarla/go-crypt.git") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0249hbwvhy0xywi9b5k8964km27pvfkr3jvliy3azri6vnyvkkx1")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gitlab.com/nyarla/go-crypt")) + (home-page "https://gitlab.com/nyarla/go-crypt") + (synopsis "Implementation of @code{crypt(3)} in Golang") + (description + "Package crypt is a implementation of crypt(3) by golang, originated from +https://code.google.com/p/go-crypt.") + (license license:bsd-3))) + (define-public go-gitlab-com-yawning-bsaes-git (package (name "go-gitlab-com-yawning-bsaes-git") From 3763bf85ddaa8fbac35c45ce0186b685e06e9166 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:54:00 +0000 Subject: [PATCH 754/862] gnu: go-github-com-ssor-bom: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-ssor-bom): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ib334f3c5ee445489e8e4827b6e3e2c6795b6ffcf --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 415462633c4..cf8d3787047 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13071,6 +13071,30 @@ GNU extensions} to the POSIX recommendations for command-line options.") all types of configuration needs and formats.") (license license:expat))) +(define-public go-github-com-ssor-bom + (package + (name "go-github-com-ssor-bom") + (version "0.0.0-20170718123548-6386211fdfcf") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ssor/bom") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09g5496ifwqxqclh2iw58plcwcz0sczlnxwqxzwmnl4shdl371ld")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ssor/bom")) + (home-page "https://github.com/ssor/bom") + (synopsis "Cleaning BOMs in Go") + (description + "The bom package provides small tools for cleaning BOMs from a byte array +or reader.") + (license license:expat))) + (define-public go-github-com-stoewer-go-strcase (package (name "go-github-com-stoewer-go-strcase") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2015261ca31..e64ef22b0a1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3022,29 +3022,6 @@ using shell-style rules for quoting and commenting.") of the current user.") (license license:expat))) -(define-public go-github-com-ssor-bom - (package - (name "go-github-com-ssor-bom") - (version "0.0.0-20170718123548-6386211fdfcf") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ssor/bom") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "09g5496ifwqxqclh2iw58plcwcz0sczlnxwqxzwmnl4shdl371ld")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/ssor/bom")) - (home-page "https://github.com/ssor/bom") - (synopsis "Cleaning BOMs in Go") - (description - "The bom package provides small tools for cleaning BOMs from a byte -array or reader.") - (license license:expat))) - ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar From 51b691d54789474b1970909dfdc45d90d331b58c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 20:58:38 +0000 Subject: [PATCH 755/862] gnu: go-github-com-riywo-loginshell: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-riywo-loginshell): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I95441eb694ded0befd9b1d344e74298ed311cd57 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cf8d3787047..7844e429b18 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12184,6 +12184,32 @@ exploration and data entry.") @url{https://unicode.org/reports/tr29/, Unicode Standard Annex #29}.") (license license:expat))) +(define-public go-github-com-riywo-loginshell + (package + (name "go-github-com-riywo-loginshell") + (version "0.0.0-20200815045211-7d26008be1ab") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/riywo/loginshell") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "138yvis6lipw9x02jyiz7472bxi20206bcfikcar54i3xsww9q4i")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/riywo/loginshell" + ;; Tests try to get the current user's login shell; the build + ;; user doesn't have one. + #:tests? #f)) + (home-page "https://github.com/riywo/loginshell") + (synopsis "Get the user's login shell in Go") + (description + "The loginshell package provides a Go library to get the login shell of +the current user.") + (license license:expat))) + (define-public go-github-com-robfig-cron-v3 (package (name "go-github-com-robfig-cron-v3") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e64ef22b0a1..8e1b0c26a4b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2996,32 +2996,6 @@ using shell-style rules for quoting and commenting.") (base32 "1lk91s00y4qy4pjh8638b5lfkgwyl282g1m27srsf7qfn58y16a2")))) -(define-public go-github-com-riywo-loginshell - (package - (name "go-github-com-riywo-loginshell") - (version "0.0.0-20200815045211-7d26008be1ab") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/riywo/loginshell") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "138yvis6lipw9x02jyiz7472bxi20206bcfikcar54i3xsww9q4i")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/riywo/loginshell" - ;; Tests try to get the current user's login shell; the build - ;; user doesn't have one. - #:tests? #f)) - (home-page "https://github.com/riywo/loginshell") - (synopsis "Get the user's login shell in Go") - (description - "The loginshell package provides a Go library to get the login shell -of the current user.") - (license license:expat))) - ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar From a47a53d2edad842e233568a261c699602a00a6b2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:03:31 +0000 Subject: [PATCH 756/862] gnu: go-github-com-google-shlex: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-google-shlex): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I182b7965e68ba4a205e5c93efd6936949c064164 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7844e429b18..6c71288ceb5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6143,6 +6143,31 @@ It also contains some convenience functions for colors, SSH to and from termios translations, readCh, reading passwords, etc.") (license license:bsd-3))) +;; XXX: This repository has been archived by the owner on Dec 29, 2022. It is +;; now read-only. It's only used by kiln, consider to remove it when it does +;; no longer require it. +(define-public go-github-com-google-shlex + (package + (name "go-github-com-google-shlex") + (version "0.0.0-20191202100458-e7afc7fbc510") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/shlex") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14z8hqyik910wk2qwnzgz8mjsmiamxa0pj55ahbv0jx6j3dgvzfm")))) + (build-system go-build-system) + (arguments (list #:import-path "github.com/google/shlex")) + (home-page "https://github.com/google/shlex") + (synopsis "Simple lexer for Go") + (description + "@code{shlex} implements a simple lexer which splits input into tokens +using shell-style rules for quoting and commenting.") + (license license:asl2.0))) + (define-public go-github-com-google-subcommands (package (name "go-github-com-google-subcommands") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8e1b0c26a4b..9f403abd460 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2963,31 +2963,6 @@ parser.") "This package provides INI file read and write functionality in Go.") (license license:asl2.0))) -;; XXX: This repository has been archived by the owner on Dec 29, 2022. It is -;; now read-only. It's only used by kiln, consider to remove it when it does -;; no longer require it. -(define-public go-github-com-google-shlex - (package - (name "go-github-com-google-shlex") - (version "0.0.0-20191202100458-e7afc7fbc510") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/google/shlex") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "14z8hqyik910wk2qwnzgz8mjsmiamxa0pj55ahbv0jx6j3dgvzfm")))) - (build-system go-build-system) - (arguments (list #:import-path "github.com/google/shlex")) - (home-page "https://github.com/google/shlex") - (synopsis "Simple lexer for Go") - (description - "@code{shlex} implements a simple lexer which splits input into tokens -using shell-style rules for quoting and commenting.") - (license license:asl2.0))) - (define notmuch-fixtures (origin (method url-fetch) From fd845557a7db596601da69979bec9d9640b8d50f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:04:36 +0000 Subject: [PATCH 757/862] gnu: Remove notmuch-fixtures. * gnu/packages/golang.scm (notmuch-fixtures): Delete variable. Change-Id: If71e281e1acf07aa2175dca8bdbf9dffd92a855a --- gnu/packages/golang.scm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9f403abd460..26ae65d1793 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2963,14 +2963,6 @@ parser.") "This package provides INI file read and write functionality in Go.") (license license:asl2.0))) -(define notmuch-fixtures - (origin - (method url-fetch) - (uri "http://notmuchmail.org/releases/test-databases/database-v1.tar.xz") - (sha256 - (base32 - "1lk91s00y4qy4pjh8638b5lfkgwyl282g1m27srsf7qfn58y16a2")))) - ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar From 69c716a3937fb25862eb42c4a90cefe6328514f0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:10:47 +0000 Subject: [PATCH 758/862] gnu: go-github-com-vmihailenco-tagparser: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-vmihailenco-tagparser): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I3d8fed5ebb6c450267e4ae18df63d67933c8448d --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6c71288ceb5..9962caa0972 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14216,6 +14216,29 @@ programming language.") (list go-github-com-vmihailenco-tagparser go-google-golang-org-appengine)))) +(define-public go-github-com-vmihailenco-tagparser + (package + (name "go-github-com-vmihailenco-tagparser") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vmihailenco/tagparser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "13arliaz3b4bja9jj7cr5ax4zvxaxm484fwrn0q6d6jjm1l35m1k")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/vmihailenco/tagparser")) + (home-page "https://github.com/vmihailenco/tagparser") + (synopsis "Tag parser for Golang") + (description + "This package is a simple Golang implementation of tag parser.") + (license license:bsd-2))) + (define-public go-github-com-warpfork-go-fsx (package (name "go-github-com-warpfork-go-fsx") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 26ae65d1793..976b3f3c743 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2869,28 +2869,6 @@ That is, @code{gofumpt} is happy with a subset of the formats that (native-inputs '()) (inputs '()))) -(define-public go-github-com-vmihailenco-tagparser - (package - (name "go-github-com-vmihailenco-tagparser") - (version "2.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/vmihailenco/tagparser") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "13arliaz3b4bja9jj7cr5ax4zvxaxm484fwrn0q6d6jjm1l35m1k")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/vmihailenco/tagparser")) - (home-page "https://github.com/vmihailenco/tagparser") - (synopsis "Tag parser for Golang") - (description "This package is a simple Golang implementation of tag -parser.") - (license license:bsd-2))) - (define-public go-github-com-mtibben-percent (package (name "go-github-com-mtibben-percent") From 79fcf255bdf5b73e293a403a94f2411eff09c484 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:12:23 +0000 Subject: [PATCH 759/862] gnu: Remove go-github-com-alcortesm-tgz. Not in use by any packages in Guix, no updates for 9 years. * gnu/packages/golang.scm (go-github-com-alcortesm-tgz): Delete variable. Change-Id: I4a0e7dca27f435699a64a1e6f9598b920529d9db --- gnu/packages/golang.scm | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 976b3f3c743..ba00f9c593f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2589,42 +2589,6 @@ suffix comparison, rather than the string-based or tree-based approaches.") size of the terminal.") (license license:expat)))) -(define-public go-github-com-alcortesm-tgz - (let ((commit "9c5fe88206d7765837fed3732a42ef88fc51f1a1") - (revision "1")) - (package - (name "go-github-com-alcortesm-tgz") - (version (git-version "0.0.1" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/alcortesm/tgz") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "04dcwnz2c2i4wbq2vx3g2wrdgqpncr2r1h6p1k08rdwk4bq1h8c5")) - (modules '((guix build utils))) - (snippet - '(begin - (substitute* "tgz_test.go" - ;; Fix format error - (("t.Fatalf\\(\"%s: unexpected error extracting: %s\", err\\)") - "t.Fatalf(\"%s: unexpected error extracting: %s\", com, err)")) - #t)))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/alcortesm/tgz" - #:phases - (modify-phases %standard-phases - ;; Files are test fixtures, not generated. - (delete 'reset-gzip-timestamps)))) - (home-page "https://github.com/alcortesm/tgz/") - (synopsis "Go library to extract tgz files to temporal directories") - (description "This package provides a Go library to extract tgz files to -temporal directories.") - (license license:expat)))) - (define-public go-github-com-twpayne-go-vfsafero (package (name "go-github-com-twpayne-go-vfsafero") From 8f94d7052db04ea342166073d9f92a562ea84c2e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:16:51 +0000 Subject: [PATCH 760/862] gnu: go-github-com-olekukonko-ts: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-olekukonko-ts): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ibb66ec8c55070c839ae5e544f4ce01f8d3d6e8c5 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9962caa0972..08cd006bfd0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11302,6 +11302,31 @@ millisecond) @end itemize") (license license:expat))) +(define-public go-github-com-olekukonko-ts + (package + (name "go-github-com-olekukonko-ts") + (version "0.0.0-20171002115256-78ecb04241c0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/olekukonko/ts") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0k88n5rvs5k5zalbfa7c71jkjb8dhpk83s425z728qn6aq49c978")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; inappropriate ioctl for device. + #:import-path "github.com/olekukonko/ts")) + (home-page "https://github.com/olekukonko/ts/") + (synopsis "Simple Go application to get the size of the terminal") + (description + "This package provides a simple Go application to get the size of the +terminal.") + (license license:expat))) + (define-public go-github-com-op-go-logging (package (name "go-github-com-op-go-logging") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ba00f9c593f..1e129c39a58 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2564,31 +2564,6 @@ Porter2 stemmer}. It is written completely using finite state machines to do suffix comparison, rather than the string-based or tree-based approaches.") (license license:asl2.0)))) -(define-public go-github-com-olekukonko-ts - (let ((commit "78ecb04241c0121483589a30b0814836a746187d") - (revision "0")) - (package - (name "go-github-com-olekukonko-ts") - (version (git-version "0.0.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/olekukonko/ts") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0k88n5rvs5k5zalbfa7c71jkjb8dhpk83s425z728qn6aq49c978")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/olekukonko/ts" - #:tests? #f)) ; inappropriate ioctl for device. - (home-page "https://github.com/olekukonko/ts/") - (synopsis "Simple Go application to get the size of the terminal") - (description "This package provides a simple Go application to get the -size of the terminal.") - (license license:expat)))) - (define-public go-github-com-twpayne-go-vfsafero (package (name "go-github-com-twpayne-go-vfsafero") From 223242f8d779ed12a2bc8afeeaf09c07eed55e92 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:58:52 +0000 Subject: [PATCH 761/862] gnu: Add go-github-com-reiver-go-porterstemmer. * gnu/packages/golang-xyz.scm (go-github-com-reiver-go-porterstemmer): New variable. Change-Id: Icdd61b5f7de34102d64b6bae75cbc097743ac675 --- gnu/packages/golang-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 08cd006bfd0..bed90299c63 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12128,6 +12128,45 @@ watches memory utilization and forces Go GC in accordance with a user-defined policy.") (license (list license:asl2.0 license:expat)))) +(define-public go-github-com-reiver-go-porterstemmer + ;; The latest commit contain test fixtures. + (let ((commit "ab0f922907ea0321367a5776bd7a6c35d505d53b") + (revision "0")) + (package + (name "go-github-com-reiver-go-porterstemmer") + (version (git-version "1.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/reiver/go-porterstemmer") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10inyn0hdwdp619fk9lamq7cffalq4b201s3m75dfsqrb46az1ph")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/reiver/go-porterstemmer" + ;; Could not download test file (from web) from URL: + ;; [http://tartarus.org/martin/PorterStemmer/voc.txt] + #:test-flags #~(list "-skip" "TestHasSuffix|TestStemString") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "porterstemmer_has_suffix_test.go" + ;; (*testing.common).Errorf format %d has arg + ;; datum.Expected of wrong type bool + (("%d") "%t")))))))) + (home-page "https://github.com/reiver/go-porterstemmer") + (synopsis "Clean room implementation of the Porter Stemming algorithm") + (description + "This package provides a native Go clean room implementation of the +Porter Stemming Algorithm.") + (license license:expat)))) + (define-public go-github-com-remeh-sizedwaitgroup (package (name "go-github-com-remeh-sizedwaitgroup") From 560d8d591411abf4e0c26225d4ac70b6ed13be66 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:58:53 +0000 Subject: [PATCH 762/862] gnu: Add go-github-com-kljensen-snowball. * gnu/packages/golang-xyz.scm (go-github-com-kljensen-snowball): New variable. Change-Id: I4fe3cf6aa912237e1a0d7186f67021136119b628 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index bed90299c63..dc9f92ce55f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8755,6 +8755,31 @@ very eas to use.") (list #:import-path "github.com/klauspost/cpuid/v2")))) +(define-public go-github-com-kljensen-snowball + (package + (name "go-github-com-kljensen-snowball") + (version "0.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kljensen/snowball") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ldc8hw13jwffhfac3w19033rxg8042jpwnw16l5mnwc0rg8b23l")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/kljensen/snowball")) + (home-page "https://github.com/kljensen/snowball") + (synopsis "Go implementation of the Snowball stemmers") + (description + "This package provides a implementation of the +@url{http://snowball.tartarus.org/, Snowball stemmer} for natural language +processing.") + (license license:expat))) + (define-public go-github-com-knz-go-libedit (package (name "go-github-com-knz-go-libedit") From b4749859969c0456086d6d484279db7fd63b0859 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:58:53 +0000 Subject: [PATCH 763/862] gnu: Add go-github-com-dchest-stemmer. * gnu/packages/golang-xyz.scm (go-github-com-dchest-stemmer): New variable. Change-Id: I2359d5f2196017ac4487e7d17a6419ea515e0aac --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index dc9f92ce55f..93b4fc384d0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3689,6 +3689,30 @@ console APIs are used. Otherwise, ANSI texts are output.") more complicated parallel cases.") (license license:expat))) +(define-public go-github-com-dchest-stemmer + (package + (name "go-github-com-dchest-stemmer") + (version "0.0.0-20161207102402-66719a20c4b5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dchest/stemmer") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1r2rz8ynmcrkwjk8sq10n6jgxmkfqf2wqy8nvgriyww41pfq5fgn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/dchest/stemmer")) + (home-page "https://github.com/dchest/stemmer") + (synopsis "Stemmer package for Golang") + (description + "Stemmer package provides an interface for stemmers and includes English, +German and Dutch stemmers as sub-packages.") + (license license:bsd-2))) + (define-public go-github-com-deckarep-golang-set (package (name "go-github-com-deckarep-golang-set") From 3d76bb9dbae14bf0ab857a76a9064a1a61261d5f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:58:53 +0000 Subject: [PATCH 764/862] gnu: Add go-github-com-agonopol-go-stem. * gnu/packages/golang-xyz.scm (go-github-com-agonopol-go-stem): New variable. Change-Id: I53ed5d6b56b7042b2d9d18f84144628a172f68a3 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 93b4fc384d0..a3bd448bbf6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -659,6 +659,30 @@ strings, based on the Levenshtein measure.") Distance}.") (license license:expat))) +(define-public go-github-com-agonopol-go-stem + (package + (name "go-github-com-agonopol-go-stem") + (version "0.0.0-20150630113328-985885018250") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/agonopol/go-stem") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "128qv5s2g13akbsclyi6kyvx52gx20wz81yxkd3qnlfh0f5fqjd0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/agonopol/go-stem")) + (home-page "https://github.com/agonopol/go-stem") + (synopsis "Word Stemming in Golang") + (description + "This package provides a implementation of the porter stemming algorithm: +http://tartarus.org/~martin/PorterStemmer/index.html.") + (license license:expat))) + (define-public go-github-com-alecthomas-chroma (package (name "go-github-com-alecthomas-chroma") From 5b467f5889893759d2daaae845ac31e3bff0f98f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 21:58:54 +0000 Subject: [PATCH 765/862] gnu: go-github-com-surgebase-porter2: Update to 0.0.0-20150829210152-56e4718818e8. * gnu/packages/golang.scm (go-github-com-surgebase-porter2): Update to 0.0.0-20150829210152-56e4718818e8. [arguments] : Add 'fix-build. [propagated-inputs]: Add go-github-com-surge-glog. [native-inputs]: Remove go-github-com-surge-glog; add go-github-com-agonopol-go-stem, go-github-com-dchest-stemmer, go-github-com-kljensen-snowball, and go-github-com-reiver-go-porterstemmer. Change-Id: I7068bf5bcb456802d9e6bca9575242417dcbfc65 --- gnu/packages/golang.scm | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1e129c39a58..a578536b433 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2536,33 +2536,45 @@ characters with their ASCII approximations.") (license license:asl2.0)))) (define-public go-github-com-surgebase-porter2 - (let ((commit "56e4718818e8dc4ea5ba6348402fc7661863732a") - (revision "1")) (package (name "go-github-com-surgebase-porter2") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20150829210152-56e4718818e8") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/surgebase/porter2") - (commit commit))) - (file-name (string-append "go-github-com-surgebase-porter2-" - version "-checkout")) + (url "https://github.com/surgebase/porter2") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) (sha256 (base32 "1ivcf83jlj9s7q5y9dfbpyl0br35cz8fcp0dm8sxxvqh54py06v2")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/surgebase/porter2")) + (list + #:import-path "github.com/surgebase/porter2" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "cmd/suffixfsm/suffixfsm.go" + ;; fmt.Println arg list ends with redundant newline + (("fmt.Println") "fmt.Printf")))))))) (native-inputs - (list go-github-com-stretchr-testify go-github-com-surge-glog)) + (list go-github-com-agonopol-go-stem + go-github-com-dchest-stemmer + go-github-com-kljensen-snowball + go-github-com-reiver-go-porterstemmer + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-surge-glog)) (home-page "https://github.com/surgebase/porter2") (synopsis "Go library implementing english Porter2 stemmer") (description "Porter2 implements the @url{http://snowball.tartarus.org/algorithms/english/stemmer.html, english Porter2 stemmer}. It is written completely using finite state machines to do suffix comparison, rather than the string-based or tree-based approaches.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-twpayne-go-vfsafero (package From be17092eba6a524e6299422c5fe7a982681d1498 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 22:01:35 +0000 Subject: [PATCH 766/862] gnu: go-github-com-surgebase-porter2: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-surgebase-porter2): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ie29eaf684035994c55bf956d2acefeb3b1f7fbf7 --- gnu/packages/golang-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 41 ------------------------------------ 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a3bd448bbf6..d6b6ff89f5c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13376,6 +13376,48 @@ slices, JSON and other data.") "Go library for loading environment variables from files") (license license:expat))) +(define-public go-github-com-surgebase-porter2 + (package + (name "go-github-com-surgebase-porter2") + (version "0.0.0-20150829210152-56e4718818e8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/surgebase/porter2") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ivcf83jlj9s7q5y9dfbpyl0br35cz8fcp0dm8sxxvqh54py06v2")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/surgebase/porter2" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "cmd/suffixfsm/suffixfsm.go" + ;; fmt.Println arg list ends with redundant newline + (("fmt.Println") "fmt.Printf")))))))) + (native-inputs + (list go-github-com-agonopol-go-stem + go-github-com-dchest-stemmer + go-github-com-kljensen-snowball + go-github-com-reiver-go-porterstemmer + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-surge-glog)) + (home-page "https://github.com/surgebase/porter2") + (synopsis "Go library implementing english Porter2 stemmer") + (description + "Porter2 implements the +@url{http://snowball.tartarus.org/algorithms/english/stemmer.html, english +Porter2 stemmer}. It is written completely using finite state machines to do +suffix comparison, rather than the string-based or tree-based approaches.") + (license license:asl2.0))) + (define-public go-github-com-syndtr-goleveldb (package (name "go-github-com-syndtr-goleveldb") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a578536b433..218cefa2ef1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2535,47 +2535,6 @@ characters with their ASCII approximations.") (description "Leveled execution logs for Go.") (license license:asl2.0)))) -(define-public go-github-com-surgebase-porter2 - (package - (name "go-github-com-surgebase-porter2") - (version "0.0.0-20150829210152-56e4718818e8") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/surgebase/porter2") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1ivcf83jlj9s7q5y9dfbpyl0br35cz8fcp0dm8sxxvqh54py06v2")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/surgebase/porter2" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'fix-build - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* "cmd/suffixfsm/suffixfsm.go" - ;; fmt.Println arg list ends with redundant newline - (("fmt.Println") "fmt.Printf")))))))) - (native-inputs - (list go-github-com-agonopol-go-stem - go-github-com-dchest-stemmer - go-github-com-kljensen-snowball - go-github-com-reiver-go-porterstemmer - go-github-com-stretchr-testify)) - (propagated-inputs - (list go-github-com-surge-glog)) - (home-page "https://github.com/surgebase/porter2") - (synopsis "Go library implementing english Porter2 stemmer") - (description "Porter2 implements the -@url{http://snowball.tartarus.org/algorithms/english/stemmer.html, english -Porter2 stemmer}. It is written completely using finite state machines to do -suffix comparison, rather than the string-based or tree-based approaches.") - (license license:asl2.0))) - (define-public go-github-com-twpayne-go-vfsafero (package (name "go-github-com-twpayne-go-vfsafero") From 82ffd10e3e84b4a4601b342ddc81ba9dbc72377d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 10 Jan 2025 22:17:19 +0000 Subject: [PATCH 767/862] gnu: Add go-porter2. * gnu/packages/golang-xyz.scm (go-porter2): New variable. Change-Id: Ie0dd95b5efaee5716245da7e6c46577c8620f9ad --- gnu/packages/golang-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d6b6ff89f5c..4e961583fa5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -16579,6 +16579,46 @@ go-github-com-tklauser-numcpus source."))) "This package provides a CLI build from the go-github-com-orisano-pixelmatch source."))) +(define-public go-porter2 + (package + (inherit go-github-com-surgebase-porter2) + (name "go-porter2") + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-surgebase-porter2) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:unpack-path _) "github.com/surgebase/porter2") + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (replace 'build + (lambda arguments + (for-each + (lambda (cmd) + (apply (assoc-ref %standard-phases 'build) + `(,@arguments #:import-path ,cmd))) + (list "github.com/surgebase/porter2/cmd/compare" + "github.com/surgebase/porter2/cmd/suffixfsm" + "github.com/surgebase/porter2/cmd/switchvsmap")))) + (replace 'install + (lambda arguments + (for-each + (lambda (cmd) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,cmd))) + (list "github.com/surgebase/porter2/cmd/compare" + "github.com/surgebase/porter2/cmd/suffixfsm" + "github.com/surgebase/porter2/cmd/switchvsmap")))))))) + (description + (string-append (package-description go-github-com-mattn-go-sixel) + " This package provides an command line interface (CLI) +tools: +@itemize +@item @code{compare} +@item @code{suffixfsm} is a finite state machine generator for the porter2 +@item @code{switchvsmap} +@end itemize")))) + (define-public go-sentences (package (inherit go-github-com-neurosnap-sentences) From 391ea5418832940fe7fba10cefc8fbc331b1c869 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:09:49 +0000 Subject: [PATCH 768/862] gnu: gofumpt: Update to 0.7.0. * gnu/packages/golang.scm (gofumpt): Update to 0.7.0. [source] : Remove it and re-implement the logic in the 'set-fallback-version phase, #:build-flags and #:test-flags. [arguments] : Use go-1.22. : Provide version. : Skip one test. : Add 'set-fallback-version. [propagated-inputs]: Remove go-github-com-pkg-diff, go-github-com-kr-text, go-github-com-kr-pretty, and go-github-com-frankban-quicktest. [native-inputs]: Remove go-gopkg-in-errgo-v2; add go-github-com-go-quicktest-qt. Change-Id: Ibddb05925040fe1293dedb246617ed366fc4014d --- gnu/packages/golang.scm | 78 +++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 45 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 218cefa2ef1..013e6cf3b1b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2701,7 +2701,7 @@ or capture raw audio.") (define-public gofumpt (package (name "gofumpt") - (version "0.4.0") + (version "0.7.0") (source (origin (method git-fetch) (uri (git-reference @@ -2710,53 +2710,41 @@ or capture raw audio.") (file-name (git-file-name name version)) (sha256 (base32 - "13ahi8q1a9h4dj6a7xp95c79d5svz5p37b6z91aswbq043qd417k")) - (modules '((guix build utils))) - (snippet `(let ((fixed-version (string-append ,version - " (GNU Guix)"))) - ;; Gofumpt formats Go files, and therefore modifies - ;; them. To help the developers diagnose issues, it - ;; replaces any occurrence of a `//gofumpt:diagnose` - ;; comment with some debugging information which - ;; includes the module version. In the event gofumpt - ;; was built without module support, it falls back - ;; to a string "(devel)". Since our build system - ;; does not yet support modules, we'll inject our - ;; version string instead, since this is more - ;; helpful. - (substitute* "internal/version/version.go" - (("^const fallbackVersion.+") - (format #f "const fallbackVersion = \"~a\"~%" - fixed-version))) - ;; These tests rely on `//gofumpt:diagnose` comments - ;; being replaced with fixed information injected - ;; from the test scripts, but this requires a binary - ;; compiled as a Go module. Since we can't do this - ;; yet, modify the test scripts with the version - ;; string we're injecting. - (delete-file "testdata/script/diagnose.txtar") - (substitute* (find-files "testdata/script/" - "\\.txtar$") - (("v0.0.0-20220727155840-8dda8068d9f3") - fixed-version) - (("(devel)") - fixed-version) - (("v0.3.2-0.20220627183521-8dda8068d9f3") - fixed-version)))))) + "0sz58av4jg0q26y1s4pznnvrzp1gi8brz9zw8aa46pzdmjw394wq")))) (build-system go-build-system) (arguments - `(#:import-path "mvdan.cc/gofumpt")) - (native-inputs (list go-gopkg-in-errgo-v2)) - (propagated-inputs (list go-github-com-pkg-diff - go-github-com-kr-text - go-github-com-kr-pretty - go-golang-org-x-tools - go-golang-org-x-sys - go-golang-org-x-sync - go-golang-org-x-mod + (list + #:go go-1.22 + #:build-flags + ;; Gofumpt formats Go files, and therefore modifies them. To help the + ;; developers diagnose issues, it replaces any occurrence of a + ;; `//gofumpt:diagnose` comment with some debugging information which + ;; includes the module version. + #~(list (format #f "-ldflags=-X ~s" + (string-append "main.version=" #$version " (GNU Guix)"))) + #:import-path "mvdan.cc/gofumpt" + #:test-flags #~(list "-skip" "TestScript/diagnose") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-fallback-version + ;; In the event gofumpt was built without module support, it falls + ;; back to a string "(devel)". Since our build system does not yet + ;; support modules, we'll inject our version string instead, since + ;; this is more helpful. + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "internal/version/version.go" + (("^const fallbackVersion.+") + (format #f "const fallbackVersion = ~s~%" + (string-append #$version " (GNU Guix)")))))))))) + (native-inputs + (list go-github-com-go-quicktest-qt)) + (propagated-inputs (list go-github-com-google-go-cmp go-github-com-rogpeppe-go-internal - go-github-com-google-go-cmp - go-github-com-frankban-quicktest)) + go-golang-org-x-mod + go-golang-org-x-sync + go-golang-org-x-sys + go-golang-org-x-tools)) (home-page "https://mvdan.cc/gofumpt/") (synopsis "Formats Go files with a stricter ruleset than gofmt") (description From 1128e5262b8d33cd8b59cc2482f8995252a3401c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:40:30 +0000 Subject: [PATCH 769/862] gnu: Remove go-gopkg-in-errgo-v2. No in use by any packages in Guix, no updates for 6 years. * gnu/packages/golang-check.scm (go-gopkg-in-errgo-v2): Delete variable. Change-Id: I21ff459c1a67e252e7b18343d50697f4d95246fd --- gnu/packages/golang-check.scm | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 5a2a78efecb..89304e1e849 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -2115,34 +2115,6 @@ accurate testing of your code.") (with-directory-excursion (string-append "src/" import-path) (invoke "go" "test" "-v" "./...")))))))))) -(define-public go-gopkg-in-errgo-v2 - (package - (name "go-gopkg-in-errgo-v2") - (version "2.1.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-errgo/errgo") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "065mbihiy7q67wnql0bzl9y1kkvck5ivra68254zbih52jxwrgr2")))) - (build-system go-build-system) - (arguments - (list - #:skip-build? #t - #:import-path "gopkg.in/errgo.v2")) - (native-inputs - (list go-gopkg-in-check-v1)) - (home-page "https://godoc.org/gopkg.in/errgo.v2") - (synopsis "Functions that use the fmt package to format error messages") - (description - "This package is the same as @code{gopkg.in/errgo.v2/errors} except that -it adds convenience functions that use the fmt package to format error -messages.") - (license license:bsd-3))) - (define-public go-gopkg-in-go-playground-assert-v1 (package (name "go-gopkg-in-go-playground-assert-v1") From 132c403ceb159cfe1f79406652fa7d6d7b165b98 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:21:05 +0000 Subject: [PATCH 770/862] gnu: go-mvdan-cc-gofumpt: Swap inheritance with gofumpt. This change would help to use the library package by other Guix modules which is not easy when it's inherited from the command. * gnu/packages/golang.scm (go-mvdan-cc-gofumpt) [arguments] : Now it's a library, keep binary in dedicated package. (gofumpt): Inherit. [arguments] : Tested in library. : It's final binary, no source required. : We need to build it now. [propagated-inputs]: Move all to native-inputs as it's final binary. [native-inputs]: Inherit from go-mvdan-cc-gofumpt. Change-Id: I05329e6d2a6f22d93c4a5a1baa71f5cf078b469e --- gnu/packages/golang.scm | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 013e6cf3b1b..a082a56473d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2698,9 +2698,9 @@ sinks and sources.") or capture raw audio.") (license license:expat)))) -(define-public gofumpt +(define-public go-mvdan-cc-gofumpt (package - (name "gofumpt") + (name "go-mvdan-cc-gofumpt") (version "0.7.0") (source (origin (method git-fetch) @@ -2723,6 +2723,7 @@ or capture raw audio.") #~(list (format #f "-ldflags=-X ~s" (string-append "main.version=" #$version " (GNU Guix)"))) #:import-path "mvdan.cc/gofumpt" + #:skip-build? #t #:test-flags #~(list "-skip" "TestScript/diagnose") #:phases #~(modify-phases %standard-phases @@ -2753,18 +2754,18 @@ That is, @code{gofumpt} is happy with a subset of the formats that @code{gofmt} is happy with.") (license license:bsd-3))) -(define-public go-mvdan-cc-gofumpt +(define-public gofumpt (package - (inherit gofumpt) - (name "go-mvdan-cc-gofumpt") + (inherit go-mvdan-cc-gofumpt) + (name "gofumpt") (arguments - `(#:import-path "mvdan.cc/gofumpt" - #:tests? #f - #:install-source? #t - #:phases (modify-phases %standard-phases - (delete 'build)))) - (propagated-inputs (package-inputs gofumpt)) - (native-inputs '()) + (substitute-keyword-arguments + (package-arguments go-mvdan-cc-gofumpt) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:skip-build? _ #t) #f))) + (native-inputs (package-propagated-inputs go-mvdan-cc-gofumpt)) + (propagated-inputs '()) (inputs '()))) (define-public go-github-com-mtibben-percent From 8862b6878b5c5154ce3aecb91450c7a959f8f505 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:35:39 +0000 Subject: [PATCH 771/862] gnu: go-mvdan-cc-gofumpt: Move to golang-xyz. * gnu/packages/golang.scm (go-mvdan-cc-gofumpt): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I8be3ad98190babe01838b66c96da27d6a826cfb9 --- gnu/packages/golang-xyz.scm | 71 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 70 ------------------------------------ 2 files changed, 71 insertions(+), 70 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4e961583fa5..bbdca486ad8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -16023,6 +16023,63 @@ recognizers) at run time.") defined in @url{https://editorconfig.org/,https://editorconfig.org/}.") (license license:bsd-3))) +(define-public go-mvdan-cc-gofumpt + (package + (name "go-mvdan-cc-gofumpt") + (version "0.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mvdan/gofumpt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sz58av4jg0q26y1s4pznnvrzp1gi8brz9zw8aa46pzdmjw394wq")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:build-flags + ;; Gofumpt formats Go files, and therefore modifies them. To help the + ;; developers diagnose issues, it replaces any occurrence of a + ;; `//gofumpt:diagnose` comment with some debugging information which + ;; includes the module version. + #~(list (format #f "-ldflags=-X ~s" + (string-append "main.version=" #$version " (GNU Guix)"))) + #:import-path "mvdan.cc/gofumpt" + #:skip-build? #t + #:test-flags #~(list "-skip" "TestScript/diagnose") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-fallback-version + ;; In the event gofumpt was built without module support, it falls + ;; back to a string "(devel)". Since our build system does not yet + ;; support modules, we'll inject our version string instead, since + ;; this is more helpful. + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "internal/version/version.go" + (("^const fallbackVersion.+") + (format #f "const fallbackVersion = ~s~%" + (string-append #$version " (GNU Guix)")))))))))) + (native-inputs + (list go-github-com-go-quicktest-qt)) + (propagated-inputs + (list go-github-com-google-go-cmp + go-github-com-rogpeppe-go-internal + go-golang-org-x-mod + go-golang-org-x-sync + go-golang-org-x-sys + go-golang-org-x-tools)) + (home-page "https://mvdan.cc/gofumpt/") + (synopsis "Formats Go files with a stricter ruleset than gofmt") + (description + "Enforce a stricter format than @code{gofmt}, while being backwards +compatible. That is, @code{gofumpt} is happy with a subset of the formats +that @code{gofmt} is happy with.") + (license license:bsd-3))) + (define-public go-mvdan-cc-sh-v3 (package (name "go-mvdan-cc-sh-v3") @@ -16716,6 +16773,20 @@ tool.")))) " This package provides an command line interface (CLI) tool.")))) +(define-public gofumpt + (package + (inherit go-mvdan-cc-gofumpt) + (name "gofumpt") + (arguments + (substitute-keyword-arguments + (package-arguments go-mvdan-cc-gofumpt) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:skip-build? _ #t) #f))) + (native-inputs (package-propagated-inputs go-mvdan-cc-gofumpt)) + (propagated-inputs '()) + (inputs '()))) + (define-public misspell (package (inherit go-github-com-client9-misspell) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a082a56473d..8f89e92f132 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2698,76 +2698,6 @@ sinks and sources.") or capture raw audio.") (license license:expat)))) -(define-public go-mvdan-cc-gofumpt - (package - (name "go-mvdan-cc-gofumpt") - (version "0.7.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mvdan/gofumpt") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0sz58av4jg0q26y1s4pznnvrzp1gi8brz9zw8aa46pzdmjw394wq")))) - (build-system go-build-system) - (arguments - (list - #:go go-1.22 - #:build-flags - ;; Gofumpt formats Go files, and therefore modifies them. To help the - ;; developers diagnose issues, it replaces any occurrence of a - ;; `//gofumpt:diagnose` comment with some debugging information which - ;; includes the module version. - #~(list (format #f "-ldflags=-X ~s" - (string-append "main.version=" #$version " (GNU Guix)"))) - #:import-path "mvdan.cc/gofumpt" - #:skip-build? #t - #:test-flags #~(list "-skip" "TestScript/diagnose") - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'set-fallback-version - ;; In the event gofumpt was built without module support, it falls - ;; back to a string "(devel)". Since our build system does not yet - ;; support modules, we'll inject our version string instead, since - ;; this is more helpful. - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* "internal/version/version.go" - (("^const fallbackVersion.+") - (format #f "const fallbackVersion = ~s~%" - (string-append #$version " (GNU Guix)")))))))))) - (native-inputs - (list go-github-com-go-quicktest-qt)) - (propagated-inputs (list go-github-com-google-go-cmp - go-github-com-rogpeppe-go-internal - go-golang-org-x-mod - go-golang-org-x-sync - go-golang-org-x-sys - go-golang-org-x-tools)) - (home-page "https://mvdan.cc/gofumpt/") - (synopsis "Formats Go files with a stricter ruleset than gofmt") - (description - "Enforce a stricter format than @code{gofmt}, while being backwards compatible. -That is, @code{gofumpt} is happy with a subset of the formats that -@code{gofmt} is happy with.") - (license license:bsd-3))) - -(define-public gofumpt - (package - (inherit go-mvdan-cc-gofumpt) - (name "gofumpt") - (arguments - (substitute-keyword-arguments - (package-arguments go-mvdan-cc-gofumpt) - ((#:tests? _ #t) #f) - ((#:install-source? _ #t) #f) - ((#:skip-build? _ #t) #f))) - (native-inputs (package-propagated-inputs go-mvdan-cc-gofumpt)) - (propagated-inputs '()) - (inputs '()))) - (define-public go-github-com-mtibben-percent (package (name "go-github-com-mtibben-percent") From d033deb53914cb52d06e59d91f58f5c83a55aa11 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:38:03 +0000 Subject: [PATCH 772/862] gnu: go-github-com-mtibben-percent: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-mtibben-percent): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I72694bfd424e16b32a5390a64b3e7c16a8b17ee4 --- gnu/packages/golang-xyz.scm | 22 ++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index bbdca486ad8..0dd99d1a55d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10654,6 +10654,28 @@ Authentication Modules, PAM} application API.") ((#:import-path _ "github.com/msteinert/pam") "github.com/msteinert/pam/v2"))))) +(define-public go-github-com-mtibben-percent + (package + (name "go-github-com-mtibben-percent") + (version "0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mtibben/percent") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1iqivw8pigj259rj5yifibbvic70f9hb7k24a4sa967s4fj6agb6")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/mtibben/percent")) + (home-page "https://github.com/mtibben/percent") + (synopsis "Package percent escapes strings using percent-encoding") + (description + "Package percent escapes strings using percent-encoding.") + (license license:expat))) + (define-public go-github-com-muesli-ansi (package (name "go-github-com-muesli-ansi") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8f89e92f132..57e4f6ab20a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2698,29 +2698,6 @@ sinks and sources.") or capture raw audio.") (license license:expat)))) -(define-public go-github-com-mtibben-percent - (package - (name "go-github-com-mtibben-percent") - (version "0.2.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/mtibben/percent") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1iqivw8pigj259rj5yifibbvic70f9hb7k24a4sa967s4fj6agb6")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/mtibben/percent" - #:phases %standard-phases)) - (synopsis "Package percent escapes strings using percent-encoding") - (description - "Package percent escapes strings using percent-encoding.") - (home-page "https://github.com/mtibben/percent") - (license license:expat))) - (define-public go-github-com-gsterjov-go-libsecret (package (name "go-github-com-gsterjov-go-libsecret") From e78ad292977692fd6b121faac706c530d2f9a6dc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:49:27 +0000 Subject: [PATCH 773/862] gnu: go-github-com-michiwend-golang-pretty: Update to 0.0.0-20141116172505-8ac61812ea3f. * gnu/packages/golang.scm (go-github-com-michiwend-golang-pretty): Update to 0.0.0-20141116172505-8ac61812ea3f. [propagated-inputs]: Add go-github-com-kr-text. [native-inputs]: Remove go-github-com-kr-text. Change-Id: Ice10be459ce271cf94df6171cc60b9082717418f --- gnu/packages/golang.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 57e4f6ab20a..d4696cac756 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2162,24 +2162,22 @@ be performed.") (license license:expat)))) (define-public go-github-com-michiwend-golang-pretty - (let ((commit "8ac61812ea3fa540f3f141a444fcb0dd713cdca4") - (revision "0")) (package (name "go-github-com-michiwend-golang-pretty") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20141116172505-8ac61812ea3f") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/michiwend/golang-pretty") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4")))) (build-system go-build-system) - (native-inputs + (propagated-inputs (list go-github-com-kr-text)) (arguments `(#:tests? #f ; Upstream tests seem to be broken. @@ -2193,7 +2191,7 @@ in the terminal. It provides a function, @code{Formatter}, that can be used with any function that accepts a format string. It also provides convenience wrappers for functions in packages @code{fmt} and @code{log}.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-michiwend-gomusicbrainz (let ((commit "0cdeb13f9b24d2c714feb7e3c63d595cf7121d7d") From 3f1a4f4d85c94b4909f6fc07b6880a20a19dbb10 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:53:00 +0000 Subject: [PATCH 774/862] gnu: go-github-com-michiwend-golang-pretty: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-michiwend-golang-pretty): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I851eb0caa396f84240579008b7b6c15cf906432c --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 32 -------------------------------- 2 files changed, 30 insertions(+), 32 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 0dd99d1a55d..f3eb6544c12 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10132,6 +10132,36 @@ language, namely support for record length-delimited message streaming.") colored strings.") (license license:expat))) +(define-public go-github-com-michiwend-golang-pretty + (package + (name "go-github-com-michiwend-golang-pretty") + (version "0.0.0-20141116172505-8ac61812ea3f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/michiwend/golang-pretty") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4")))) + (build-system go-build-system) + (arguments + `(#:tests? #f ; Upstream tests seem to be broken. + #:import-path "github.com/michiwend/golang-pretty")) + (propagated-inputs + (list go-github-com-kr-text)) + (home-page "https://github.com/michiwend/golang-pretty") + (synopsis "Pretty printing for Go values") + (description + "Package @code{pretty} provides pretty-printing for Go values. This is +useful during debugging, to avoid wrapping long output lines in the terminal. + +It provides a function, @code{Formatter}, that can be used with any function +that accepts a format string. It also provides convenience wrappers for +functions in packages @code{fmt} and @code{log}.") + (license license:expat))) + (define-public go-github-com-miolini-datacounter (package (name "go-github-com-miolini-datacounter") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d4696cac756..9f1319d453f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2161,38 +2161,6 @@ methods can be called and usual operations such as indexing or arithmetic can be performed.") (license license:expat)))) -(define-public go-github-com-michiwend-golang-pretty - (package - (name "go-github-com-michiwend-golang-pretty") - (version "0.0.0-20141116172505-8ac61812ea3f") - (source - (origin - (method git-fetch) - (uri (git-reference - (url - "https://github.com/michiwend/golang-pretty") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0rjfms0csjqi91xnddzx3rcrcaikc7xc027617px3kdwdap80ir4")))) - (build-system go-build-system) - (propagated-inputs - (list go-github-com-kr-text)) - (arguments - `(#:tests? #f ; Upstream tests seem to be broken. - #:import-path "github.com/michiwend/golang-pretty")) - (home-page "https://github.com/michiwend/golang-pretty") - (synopsis "Pretty printing for Go values") - (description "Package @code{pretty} provides pretty-printing for Go -values. This is useful during debugging, to avoid wrapping long output lines -in the terminal. - -It provides a function, @code{Formatter}, that can be used with any function -that accepts a format string. It also provides convenience wrappers for -functions in packages @code{fmt} and @code{log}.") - (license license:expat))) - (define-public go-github-com-michiwend-gomusicbrainz (let ((commit "0cdeb13f9b24d2c714feb7e3c63d595cf7121d7d") (revision "0")) From 78fd44eaa147e8f983c7ca0f6db540e4ff75008b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:55:47 +0000 Subject: [PATCH 775/862] gnu: go-github-com-michiwend-gomusicbrainz: Update to 0.0.0-20181012083520-6c07e13dd396. * gnu/packages/golang.scm (go-github-com-michiwend-gomusicbrainz): Update to 0.0.0-20181012083520-6c07e13dd396. [propagated-inputs]: Add go-github-com-michiwend-golang-pretty. [native-inputs]: Remove go-github-com-michiwend-golang-pretty and go-github-com-kr-text. Change-Id: I19f642a9226d864a84668012aebfba211b39b3de --- gnu/packages/golang.scm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9f1319d453f..98b45428b60 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2162,32 +2162,30 @@ be performed.") (license license:expat)))) (define-public go-github-com-michiwend-gomusicbrainz - (let ((commit "0cdeb13f9b24d2c714feb7e3c63d595cf7121d7d") - (revision "0")) (package (name "go-github-com-michiwend-gomusicbrainz") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20181012083520-6c07e13dd396") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/michiwend/gomusicbrainz") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 - "1li9daw0kghb80rdmxbh7g72qhxcvx3rvhwq5gs0jrr9hb8pjvcn")))) + "1c13hyv34l5hm7hrwrm62s2414ivx6dbbyhb7rw90bni78q441b1")))) (build-system go-build-system) - (native-inputs - (list go-github-com-michiwend-golang-pretty go-github-com-kr-text)) + (propagated-inputs + (list go-github-com-michiwend-golang-pretty)) (arguments `(#:import-path "github.com/michiwend/gomusicbrainz")) (home-page "https://github.com/michiwend/gomusicbrainz") (synopsis "MusicBrainz WS2 client library for Golang") (description "Currently GoMusicBrainz provides methods to perform search and lookup requests. Browse requests are not supported yet.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-wtolson-go-taglib (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777") From 68a1d7b9ec5c01966711c2e907ef14dd45987017 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 12:56:48 +0000 Subject: [PATCH 776/862] gnu: go-github-com-michiwend-gomusicbrainz: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-michiwend-gomusicbrainz): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I6d56c558651e788773034cb88b38d5350db0f2c2 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 26 -------------------------- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f3eb6544c12..16d69d959f3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -10162,6 +10162,31 @@ that accepts a format string. It also provides convenience wrappers for functions in packages @code{fmt} and @code{log}.") (license license:expat))) +(define-public go-github-com-michiwend-gomusicbrainz + (package + (name "go-github-com-michiwend-gomusicbrainz") + (version "0.0.0-20181012083520-6c07e13dd396") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/michiwend/gomusicbrainz") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1c13hyv34l5hm7hrwrm62s2414ivx6dbbyhb7rw90bni78q441b1")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/michiwend/gomusicbrainz")) + (propagated-inputs + (list go-github-com-michiwend-golang-pretty)) + (home-page "https://github.com/michiwend/gomusicbrainz") + (synopsis "MusicBrainz WS2 client library for Golang") + (description + "Currently GoMusicBrainz provides methods to perform search and lookup +requests. Browse requests are not supported yet.") + (license license:expat))) + (define-public go-github-com-miolini-datacounter (package (name "go-github-com-miolini-datacounter") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 98b45428b60..13d3dc7384d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2161,32 +2161,6 @@ methods can be called and usual operations such as indexing or arithmetic can be performed.") (license license:expat)))) -(define-public go-github-com-michiwend-gomusicbrainz - (package - (name "go-github-com-michiwend-gomusicbrainz") - (version "0.0.0-20181012083520-6c07e13dd396") - (source - (origin - (method git-fetch) - (uri (git-reference - (url - "https://github.com/michiwend/gomusicbrainz") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1c13hyv34l5hm7hrwrm62s2414ivx6dbbyhb7rw90bni78q441b1")))) - (build-system go-build-system) - (propagated-inputs - (list go-github-com-michiwend-golang-pretty)) - (arguments - `(#:import-path "github.com/michiwend/gomusicbrainz")) - (home-page "https://github.com/michiwend/gomusicbrainz") - (synopsis "MusicBrainz WS2 client library for Golang") - (description "Currently GoMusicBrainz provides methods to perform search -and lookup requests. Browse requests are not supported yet.") - (license license:expat))) - (define-public go-github-com-wtolson-go-taglib (let ((commit "6e68349ff94ecea412de7e748cb5eaa26f472777") (revision "0")) From 71c11df778fc7305a367923a1d0e5ee196961df8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:10:04 +0000 Subject: [PATCH 777/862] gnu: go-github-com-rubyist-tracerx: Update to 0.0.0-20170927163412-787959303086. * gnu/packages/golang.scm (go-github-com-rubyist-tracerx): Update to 0.0.0-20170927163412-787959303086. Change-Id: Ia038f1150447970281d7cdf601a304c87a071c93 --- gnu/packages/golang.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 13d3dc7384d..5a82656e16b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2255,16 +2255,14 @@ of building man pages.") (license license:expat))) (define-public go-github-com-rubyist-tracerx - (let ((commit "787959303086f44a8c361240dfac53d3e9d53ed2") - (revision "0")) (package (name "go-github-com-rubyist-tracerx") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20170927163412-787959303086") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/rubyist/tracerx") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -2277,7 +2275,7 @@ of building man pages.") (description "This package is a simple tracing application that logs messages depending on environment variables. It is very much inspired by git's GIT_TRACE mechanism.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-shurcool-sanitized-anchor-name (package From 325085f7787cc65fe2052a5bea6977fcb505e327 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:15:51 +0000 Subject: [PATCH 778/862] gnu: go-github-com-rubyist-tracerx: Move to golang-check. * gnu/packages/golang.scm (go-github-com-rubyist-tracerx): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: Ie3791edb545221c42468293b1ac7e9a818c32662 --- gnu/packages/golang-check.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 89304e1e849..2eb6bc46b46 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1510,6 +1510,31 @@ original value once the test has been run.") current goroutine's ID.") (license license:asl2.0)))) +(define-public go-github-com-rubyist-tracerx + (package + (name "go-github-com-rubyist-tracerx") + (version "0.0.0-20170927163412-787959303086") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rubyist/tracerx") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xj5213r00zjhb7d2l6wlwv62g6mss50jwjpf7g8fk8djv3l29zz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/rubyist/tracerx")) + (home-page "https://github.com/rubyist/tracerx/") + (synopsis "Output tracing information in your Go app") + (description + "This package is a simple tracing application that logs messages +depending on environment variables. It is very much inspired by git's +GIT_TRACE mechanism.") + (license license:expat))) + (define-public go-github-com-sasha-s-go-deadlock (package (name "go-github-com-sasha-s-go-deadlock") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5a82656e16b..5b13710c2eb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2254,29 +2254,6 @@ be performed.") of building man pages.") (license license:expat))) -(define-public go-github-com-rubyist-tracerx - (package - (name "go-github-com-rubyist-tracerx") - (version "0.0.0-20170927163412-787959303086") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rubyist/tracerx") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1xj5213r00zjhb7d2l6wlwv62g6mss50jwjpf7g8fk8djv3l29zz")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/rubyist/tracerx")) - (home-page "https://github.com/rubyist/tracerx/") - (synopsis "Output tracing information in your Go app") - (description "This package is a simple tracing application that logs -messages depending on environment variables. It is very much inspired by git's -GIT_TRACE mechanism.") - (license license:expat))) - (define-public go-github-com-shurcool-sanitized-anchor-name (package (name "go-github-com-shurcool-sanitized-anchor-name") From 0972cb12f628df3264730366515eab741e004433 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:28:46 +0000 Subject: [PATCH 779/862] gnu: go-github-com-shurcool-sanitized-anchor-name: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-shurcool-sanitized-anchor-name): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ieabd617d33e2185de2ded7b58f26fede569017ac --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 16d69d959f3..c8f86bb31b4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12958,6 +12958,31 @@ sensors).") ;; environment. (string-append "src/" import-path "/host/host_test.go"))))))))) +(define-public go-github-com-shurcool-sanitized-anchor-name + (package + (name "go-github-com-shurcool-sanitized-anchor-name") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shurcooL/sanitized_anchor_name") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gv9p2nr46z80dnfjsklc6zxbgk96349sdsxjz05f3z6wb6m5l8f")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/shurcooL/sanitized_anchor_name")) + (home-page "https://github.com/shurcooL/sanitized_anchor_name") + (synopsis "Create sanitized anchor names") + (description + "This package provides a Go program for creating sanitized anchor +names.") + (license license:expat))) + (define-public go-github-com-sirupsen-logrus (package (name "go-github-com-sirupsen-logrus") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5b13710c2eb..cf6f8051514 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2254,29 +2254,6 @@ be performed.") of building man pages.") (license license:expat))) -(define-public go-github-com-shurcool-sanitized-anchor-name - (package - (name "go-github-com-shurcool-sanitized-anchor-name") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/shurcooL/sanitized_anchor_name") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1gv9p2nr46z80dnfjsklc6zxbgk96349sdsxjz05f3z6wb6m5l8f")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/shurcooL/sanitized_anchor_name")) - (home-page "https://github.com/shurcooL/sanitized_anchor_name") - (synopsis "Create sanitized anchor names") - (description "This package provides a Go program for creating sanitized -anchor names.") - (license license:expat))) - (define-public go-github-com-cention-sany-utf7 (package (name "go-github-com-cention-sany-utf7") From 597adcc192af13ef5b9d469f9ef70b0e53cc77da Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:30:54 +0000 Subject: [PATCH 780/862] gnu: go-github-com-lunixbochs-vtclean: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-lunixbochs-vtclean): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I3babc373bf702e022bf126d7867f3a2719cb481e --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c8f86bb31b4..f9ff24c5b6e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9545,6 +9545,31 @@ It stores colors in RGB and provides methods for converting these to various color spaces.") (license license:expat))) +(define-public go-github-com-lunixbochs-vtclean + (package + (name "go-github-com-lunixbochs-vtclean") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lunixbochs/vtclean") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jqn33l1kzy4dk66zbvxz7rlgkgg34s9mhc8z0lrz0i88466zhd8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/lunixbochs/vtclean")) + (home-page "https://github.com/lunixbochs/vtclean") + (synopsis "Filter out terminal escape sequences") + (description + "The @code{vtclean} provides the @command{vtclean} command and a library +designed to clean up raw terminal output by stripping escape sequences, +optionally preserving color.") + (license license:expat))) + (define-public go-github-com-lyft-protoc-gen-star-v2 (package (name "go-github-com-lyft-protoc-gen-star-v2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cf6f8051514..86882142486 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2278,29 +2278,6 @@ of building man pages.") encoding in Go.") (license license:bsd-3))) -(define-public go-github-com-lunixbochs-vtclean - (package - (name "go-github-com-lunixbochs-vtclean") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/lunixbochs/vtclean") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0jqn33l1kzy4dk66zbvxz7rlgkgg34s9mhc8z0lrz0i88466zhd8")))) - (build-system go-build-system) - (arguments (list #:import-path "github.com/lunixbochs/vtclean")) - (home-page "https://github.com/lunixbochs/vtclean") - (synopsis "Filter out terminal escape sequences") - (description - "The @code{vtclean} provides the @command{vtclean} command and a library -designed to clean up raw terminal output by stripping escape sequences, -optionally preserving color.") - (license license:expat))) - (define-public go-golang-org-rainycape-unidecode (let ((commit "cb7f23ec59bec0d61b19c56cd88cee3d0cc1870c") (revision "1")) From 719fa62297485e4d133b3d227ceb4a8b556345f9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:34:15 +0000 Subject: [PATCH 781/862] gnu: go-github-com-golang-freetype: Update to 0.0.0-20170609003504-e2365dfdc4a0. * gnu/packages/golang.scm (go-github-com-golang-freetype): Update to 0.0.0-20170609003504-e2365dfdc4a0. Change-Id: I3bfcc112e1f894c7e0ca9c457ead749e2c7f2fa3 --- gnu/packages/golang.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 86882142486..d899be6b3ae 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2304,18 +2304,15 @@ characters with their ASCII approximations.") (license license:asl2.0)))) (define-public go-github-com-golang-freetype - (let ((commit "e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4") - (revision "1")) (package (name "go-github-com-golang-freetype") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20170609003504-e2365dfdc4a0") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/golang/freetype") - (commit commit))) - (file-name (string-append "go-github-com-golang-freetype-" - version "-checkout")) + (url "https://github.com/golang/freetype") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) (sha256 (base32 "194w3djc6fv1rgcjqds085b9fq074panc5vw582bcb8dbfzsrqxc")))) @@ -2328,7 +2325,7 @@ characters with their ASCII approximations.") (synopsis "Freetype font rasterizer in the Go programming language") (description "The Freetype font rasterizer in the Go programming language.") (license (list license:freetype - license:gpl2+))))) + license:gpl2+)))) (define-public go-github-com-fogleman-gg (package From 1f77ca8624b4567c8242998d9468299cd1d8ff1e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:38:28 +0000 Subject: [PATCH 782/862] gnu: go-github-com-golang-freetype: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-golang-freetype): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I5e455f90937905ba5ec2078dccd7037da78ed372 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f9ff24c5b6e..58a11e854c5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -6013,6 +6013,31 @@ execution.") "The chardet package ports character set detection from ICU to Go.") (license license:expat))) +(define-public go-github-com-golang-freetype + (package + (name "go-github-com-golang-freetype") + (version "0.0.0-20170609003504-e2365dfdc4a0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/freetype") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "194w3djc6fv1rgcjqds085b9fq074panc5vw582bcb8dbfzsrqxc")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/golang/freetype")) + (propagated-inputs + (list go-golang-org-x-image)) + (home-page "https://github.com/golang/freetype") + (synopsis "Freetype font rasterizer in the Go programming language") + (description + "The Freetype font rasterizer in the Go programming language.") + (license (list license:freetype + license:gpl2+)))) + (define-public go-github-com-golangplus-bytes (package (name "go-github-com-golangplus-bytes") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d899be6b3ae..4b201d5c9d2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2303,30 +2303,6 @@ encoding in Go.") characters with their ASCII approximations.") (license license:asl2.0)))) -(define-public go-github-com-golang-freetype - (package - (name "go-github-com-golang-freetype") - (version "0.0.0-20170609003504-e2365dfdc4a0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/golang/freetype") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "194w3djc6fv1rgcjqds085b9fq074panc5vw582bcb8dbfzsrqxc")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/golang/freetype")) - (propagated-inputs - (list go-golang-org-x-image)) - (home-page "https://github.com/golang/freetype") - (synopsis "Freetype font rasterizer in the Go programming language") - (description "The Freetype font rasterizer in the Go programming language.") - (license (list license:freetype - license:gpl2+)))) - (define-public go-github-com-fogleman-gg (package (name "go-github-com-fogleman-gg") From b3887f71bba1922a121fe9f814024a108128a406 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:41:18 +0000 Subject: [PATCH 783/862] gnu: go-github-com-gedex-inflector: Update to 0.0.0-20170307190818-16278e9db813. * gnu/packages/golang.scm (go-github-com-gedex-inflector): Update to 0.0.0-20170307190818-16278e9db813. Change-Id: Ie169c7a1b89fe4967156687f3e5f8806a412b0fc --- gnu/packages/golang.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4b201d5c9d2..29d5afe6390 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2328,18 +2328,15 @@ characters with their ASCII approximations.") (license license:expat))) (define-public go-github-com-gedex-inflector - (let ((commit "16278e9db8130ac7ec405dc174cfb94344f16325") - (revision "1")) (package (name "go-github-com-gedex-inflector") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20170307190818-16278e9db813") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/gedex/inflector") - (commit commit))) - (file-name (string-append "go-github-com-gedex-inflector-" - version "-checkout")) + (url "https://github.com/gedex/inflector") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) (sha256 (base32 "05hjqw1m71vww4914d9h6nqa9jw3lgjzwsy7qaffl02s2lh1amks")))) @@ -2349,7 +2346,7 @@ characters with their ASCII approximations.") (home-page "https://github.com/gedex/inflector") (synopsis "Go library that pluralizes and singularizes English nouns") (description "Go library that pluralizes and singularizes English nouns.") - (license license:bsd-2)))) + (license license:bsd-2))) (define-public go-github-com-surge-glog (let ((commit "2578deb2b95c665e6b1ebabf304ce2085c9e1985") From 04dc2c0ae014f9aa26724bc9174f76bd5b2abe8f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:42:16 +0000 Subject: [PATCH 784/862] gnu: go-github-com-gedex-inflector: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-gedex-inflector): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I16eb15cc6f3b53997cf387df0991979dc941580d --- gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++ gnu/packages/golang.scm | 21 --------------------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 58a11e854c5..2ab5fc1750c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5224,6 +5224,29 @@ also favors portability, and includes support for all POSIX systems.") (modify-inputs (package-inputs go-github-com-gdamore-tcell) (prepend go-golang-org-x-term go-golang-org-x-sys)))))) +(define-public go-github-com-gedex-inflector + (package + (name "go-github-com-gedex-inflector") + (version "0.0.0-20170307190818-16278e9db813") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gedex/inflector") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05hjqw1m71vww4914d9h6nqa9jw3lgjzwsy7qaffl02s2lh1amks")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gedex/inflector")) + (home-page "https://github.com/gedex/inflector") + (synopsis "Go library that pluralizes and singularizes English nouns") + (description + "Go library that pluralizes and singularizes English nouns.") + (license license:bsd-2))) + (define-public go-github-com-git-lfs-go-netrc (package (name "go-github-com-git-lfs-go-netrc") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 29d5afe6390..598f277bfdd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2327,27 +2327,6 @@ characters with their ASCII approximations.") (description "@code{gg} is a library for rendering 2D graphics in pure Go.") (license license:expat))) -(define-public go-github-com-gedex-inflector - (package - (name "go-github-com-gedex-inflector") - (version "0.0.0-20170307190818-16278e9db813") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/gedex/inflector") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "05hjqw1m71vww4914d9h6nqa9jw3lgjzwsy7qaffl02s2lh1amks")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/gedex/inflector")) - (home-page "https://github.com/gedex/inflector") - (synopsis "Go library that pluralizes and singularizes English nouns") - (description "Go library that pluralizes and singularizes English nouns.") - (license license:bsd-2))) - (define-public go-github-com-surge-glog (let ((commit "2578deb2b95c665e6b1ebabf304ce2085c9e1985") (revision "1")) From a242505baa4e8e236270ac99c0b39c66622697d3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:45:50 +0000 Subject: [PATCH 785/862] gnu: go-github-com-go-ini-ini: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-go-ini-ini): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I0c7defa973b0301de3064d53b6c6b502fca9ef95 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2ab5fc1750c..01380e99e0e 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5448,6 +5448,30 @@ operations.") (list #:import-path "github.com/go-git/go-git-fixtures/v5")))) +(define-public go-github-com-go-ini-ini + (package + (name "go-github-com-go-ini-ini") + (version "1.67.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-ini/ini") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vpzkjmrwp7bqqsijp61293kk2vn6lcck56j8m5y6ks6cf21lpap")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/go-ini/ini")) + (propagated-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://gopkg.in/ini.v1") + (synopsis "INI file read and write functionality in Go") + (description + "This package provides INI file read and write functionality in Go.") + (license license:asl2.0))) + (define-public go-github-com-go-kit-log (package (name "go-github-com-go-kit-log") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 598f277bfdd..7a4aab64c36 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2540,29 +2540,6 @@ or capture raw audio.") @code{Secret Service} DBus interface.") (license license:expat))) -(define-public go-github-com-go-ini-ini - (package - (name "go-github-com-go-ini-ini") - (version "1.67.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-ini/ini") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1vpzkjmrwp7bqqsijp61293kk2vn6lcck56j8m5y6ks6cf21lpap")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/go-ini/ini")) - (propagated-inputs (list go-github-com-stretchr-testify)) - (home-page "https://gopkg.in/ini.v1") - (synopsis "INI file read and write functionality in Go") - (description - "This package provides INI file read and write functionality in Go.") - (license license:asl2.0))) - ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar From fc831d6bec6f7dcca8f921c4cf7c7be9378f5d69 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:46:10 +0000 Subject: [PATCH 786/862] gnu: go-github-com-go-ini-ini: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-go-ini-ini) [propagated-inputs]: Remove go-github-com-stretchr-testify. [native-inputs]: Add go-github-com-stretchr-testify. Change-Id: Ifef01ad461ae940bec9950380f742feb009ce0f8 --- gnu/packages/golang-xyz.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 01380e99e0e..bd7fb5722ec 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5464,7 +5464,7 @@ operations.") (build-system go-build-system) (arguments (list #:import-path "github.com/go-ini/ini")) - (propagated-inputs + (native-inputs (list go-github-com-stretchr-testify)) (home-page "https://gopkg.in/ini.v1") (synopsis "INI file read and write functionality in Go") From 2a6587cf5f466a9129ccce14b16fbfcdf2b65381 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 13:55:43 +0000 Subject: [PATCH 787/862] gnu: gopls: Move to golang-xyz. * gnu/packages/golang.scm (gopls): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ic1d121f112848f63786a6fa93498ba9ccc937354 --- gnu/packages/golang-xyz.scm | 55 +++++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 55 ------------------------------------- 2 files changed, 55 insertions(+), 55 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index bd7fb5722ec..9a038611003 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -16986,6 +16986,61 @@ tool.")))) (propagated-inputs '()) (inputs '()))) +(define-public gopls + (package + (name "gopls") + ;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which + ;; needs to be discussed if it may be included in Guix. + (version "0.17.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/tools") + (commit (go-version->git-ref version #:subdir "gopls")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1qksn79nc94fig5bia0l8h7fzm1zbn9rvya25hwf0f18v8a0id9l")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:install-source? #f + #:import-path "golang.org/x/tools/gopls" + #:unpack-path "golang.org/x/tools" + ;; XXX: No tests in project's root, limit to some of subdris, try to + ;; enable more. + #:test-subdirs + #~(list "internal/protocol/..." + "internal/util/..." + "internal/vulncheck/...") + #:phases + #~(modify-phases %standard-phases + (add-before 'unpack 'override-tools + (lambda _ + ;; XXX: Write a procedure deleting all but current module source + ;; to cover case with monorepo. + (delete-file-recursively "src/golang.org/x/tools")))))) + (native-inputs + (list go-github-com-google-go-cmp + go-github-com-jba-templatecheck + go-golang-org-x-mod + go-golang-org-x-sync + go-golang-org-x-telemetry + go-golang-org-x-text + go-golang-org-x-vuln + go-gopkg-in-yaml-v3 + go-honnef-co-go-tools + go-mvdan-cc-gofumpt + go-mvdan-cc-xurls-v2)) + (home-page "https://golang.org/x/tools/gopls") + (synopsis "Official language server for the Go language") + (description + "Pronounced ``Go please'', this is the official Go language server +developed by the Go team. It provides IDE features to any LSP-compatible +editor.") + (license license:bsd-3))) + (define-public misspell (package (inherit go-github-com-client9-misspell) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7a4aab64c36..b29146f6f6e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1901,61 +1901,6 @@ termination.") "t.Fatalf(`Killf(\"BO%%s"))))))) (home-page "https://gopkg.in/tomb.v1"))) -(define-public gopls - (package - (name "gopls") - ;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which - ;; needs to be discussed if it may be included in Guix. - (version "0.17.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://go.googlesource.com/tools") - (commit (go-version->git-ref version #:subdir "gopls")))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1qksn79nc94fig5bia0l8h7fzm1zbn9rvya25hwf0f18v8a0id9l")))) - (build-system go-build-system) - (arguments - (list - #:go go-1.23 - #:install-source? #f - #:import-path "golang.org/x/tools/gopls" - #:unpack-path "golang.org/x/tools" - ;; XXX: No tests in project's root, limit to some of subdris, try to - ;; enable more. - #:test-subdirs - #~(list "internal/protocol/..." - "internal/util/..." - "internal/vulncheck/...") - #:phases - #~(modify-phases %standard-phases - (add-before 'unpack 'override-tools - (lambda _ - ;; XXX: Write a procedure deleting all but current module source - ;; to cover case with monorepo. - (delete-file-recursively "src/golang.org/x/tools")))))) - (native-inputs - (list go-github-com-google-go-cmp - go-github-com-jba-templatecheck - go-golang-org-x-mod - go-golang-org-x-sync - go-golang-org-x-telemetry - go-golang-org-x-text - go-golang-org-x-vuln - go-gopkg-in-yaml-v3 - go-honnef-co-go-tools - go-mvdan-cc-gofumpt - go-mvdan-cc-xurls-v2)) - (home-page "https://golang.org/x/tools/gopls") - (synopsis "Official language server for the Go language") - (description - "Pronounced ``Go please'', this is the official Go language server -developed by the Go team. It provides IDE features to any LSP-compatible -editor.") - (license license:bsd-3))) - (define-public go-github-com-google-cadvisor (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd") (revision "0")) From ca1312816b7eaac0afd3d7c51a91db6364ed9a2e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 14:37:15 +0000 Subject: [PATCH 788/862] gnu: Add go-github-com-klauspost-reedsolomon. * gnu/packages/golang-xyz.scm (go-github-com-klauspost-reedsolomon): New variable. Change-Id: I85674269cfe5fc6e4a9729ae8a6858daee31aedd --- gnu/packages/golang-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9a038611003..2cf575ad1bf 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8875,6 +8875,49 @@ very eas to use.") (list #:import-path "github.com/klauspost/cpuid/v2")))) +(define-public go-github-com-klauspost-reedsolomon + (package + (name "go-github-com-klauspost-reedsolomon") + (version "1.12.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/klauspost/reedsolomon") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04j6arqk9pisn3yjr9k90nmfs51fh5i7firl7lzs3x98d84qq5lv")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/klauspost/reedsolomon" + #:test-flags #~(list "-short") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples-and-benchmarks + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "benchmark") + (delete-file-recursively "examples")))) + (add-before 'build 'go-generate + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "generate" "-v" "-n" "_gen"))))))) + (propagated-inputs (list go-github-com-klauspost-cpuid-v2)) + (home-page "https://github.com/klauspost/reedsolomon") + (synopsis "Reed-Solomon algorithm implementation in Golang") + (description + "Package reedsolomon enables +@url{https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction, +Erasure Coding}. It's a Go port of the +@url{https://github.com/Backblaze/JavaReedSolomon, JavaReedSolomon}. + +For encoding high shard counts (>256) a Leopard implementation is used. For +most platforms this performs close to the original Leopard implementation in +terms of speed.") + (license license:expat))) + (define-public go-github-com-kljensen-snowball (package (name "go-github-com-kljensen-snowball") From 22b4bd772ab9beb6c3c9088b01d724a2104b6a4f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 14:44:43 +0000 Subject: [PATCH 789/862] gnu: Add go-github-com-klauspost-asmfmt. * gnu/packages/golang-xyz.scm (go-github-com-klauspost-asmfmt, go-asmfmt): New variables. Change-Id: Ib6d7b3f0e844e8f3a5e1b29d458faa115b9d670a --- gnu/packages/golang-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2cf575ad1bf..cff3afcc7d0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8830,6 +8830,30 @@ Goroutine-safe connections) manipulate processes in a safe way.") (license license:expat))) +(define-public go-github-com-klauspost-asmfmt + (package + (name "go-github-com-klauspost-asmfmt") + (version "1.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/klauspost/asmfmt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01qas9x9qb0s1aiq0235p8hvvqqn76ff0cs4cg71paxcy6l1a4k3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/klauspost/asmfmt")) + (home-page "https://github.com/klauspost/asmfmt") + (synopsis "Go Assembler Formatter") + (description + "This package implements functionality to format Assembler code the same +way that @code{gofmt} formats Go code.") + (license license:expat))) + (define-public go-github-com-klauspost-cpuid (package (name "go-github-com-klauspost-cpuid") @@ -16710,6 +16734,17 @@ library.") #:import-path "github.com/yuin/gopher-lua/cmd/glua" #:unpack-path "github.com/yuin/gopher-lua")))) +(define-public go-asmfmt + (package + (inherit go-github-com-klauspost-asmfmt) + (name "go-asmfmp") + (arguments + (list + #:tests? #f + #:install-source? #f + #:import-path "github.com/klauspost/asmfmt/cmd/asmfmt" + #:unpack-path "github.com/klauspost/asmfmt")))) + (define-public go-chroma (package (inherit go-github-com-alecthomas-chroma-v2) From 04ca445dd289975c0b5f49ca9cae578027783cdf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 14:49:53 +0000 Subject: [PATCH 790/862] gnu: Add go-github-com-templexxx-cpu. * gnu/packages/golang-xyz.scm (go-github-com-templexxx-cpu): New variable. Change-Id: I19b13fefdce5d00f8f5f86d09dd41b3f789669cb --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cff3afcc7d0..65a1e8029db 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13864,6 +13864,30 @@ Included modules are: @end itemize") (license license:expat))) +(define-public go-github-com-templexxx-cpu + (package + (name "go-github-com-templexxx-cpu") + (version "0.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/templexxx/cpu") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bfygzjz2n8fbc9n9k7hfdnaz5mw6g4n4n1q3a0hyv33j9bvl5hh")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/templexxx/cpu")) + (home-page "https://github.com/templexxx/cpu") + (synopsis "@code{internal/cpu} in Go (add AVX512)") + (description + "Package cpu implements processor feature detection used by the Go +standard library.") + (license license:bsd-3))) + (define-public go-github-com-thejerf-suture (package (name "go-github-com-thejerf-suture") From 9f3da826e1ee6a43252f0f6ffa7f16567d5403f2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 14:57:36 +0000 Subject: [PATCH 791/862] gnu: Add go-github-com-templexxx-xorsimd. * gnu/packages/golang-xyz.scm (go-github-com-templexxx-xorsimd): New variable. Change-Id: I7c160724d98ae38f7a776a7f85a10128eae00024 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 65a1e8029db..009df8da03c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13888,6 +13888,30 @@ Included modules are: standard library.") (license license:bsd-3))) +(define-public go-github-com-templexxx-xorsimd + (package + (name "go-github-com-templexxx-xorsimd") + (version "0.4.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/templexxx/xorsimd") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01227dcf5mjc2v9f3shvqvbx3vxz89la7imjnjfmas61fcjwdlj5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/templexxx/xorsimd")) + (propagated-inputs (list go-github-com-templexxx-cpu)) + (home-page "https://github.com/templexxx/xorsimd") + (synopsis "XOR in pure Golang") + (description + "This package provides XOR bitwise code engine.") + (license license:expat))) + (define-public go-github-com-thejerf-suture (package (name "go-github-com-thejerf-suture") From cc8ff5be2e487c50092731682b79cfeaeb0afb7f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 15:03:27 +0000 Subject: [PATCH 792/862] gnu: Add go-github-com-xtgo-uuid. * gnu/packages/golang-xyz.scm (go-github-com-xtgo-uuid): New variable. Change-Id: I4b18996fe59ca752ac4e471d4ada63ce98b66745 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 009df8da03c..615bd48e45d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15077,6 +15077,30 @@ popular Levenshtein distance (aka Edit Distance or Wagner-Fischer), as well as the Jaro distance, the Jaro-Winkler distance, and more.") (license license:expat))) +(define-public go-github-com-xtgo-uuid + (package + (name "go-github-com-xtgo-uuid") + (version "0.0.0-20140804021211-a0b114877d4c") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xtgo/uuid") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10pmay90is5x8cv5ckcajw3s7g2rpk4ix6kl4qhq8qx05x2ivlrw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xtgo/uuid")) + (home-page "https://github.com/xtgo/uuid") + (synopsis "Go UUID parsing and generation") + (description + "Package uuid can be used to generate and parse universally unique +identifiers, a standardized format in the form of a 128 bit number.") + (license license:bsd-3))) + (define-public go-github-com-xuanwo-go-locale (package (name "go-github-com-xuanwo-go-locale") From 0af5e34f2eb831eadda38986a46cab97287edf91 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 15:20:24 +0000 Subject: [PATCH 793/862] gnu: go-filippo-io-edwards25519: Update to 1.1.0. * gnu/packages/golang-crypto.scm (go-filippo-io-edwards25519): Update to 1.1.0. Change-Id: I3f43676941a2bc3d277085362fdeafca54afe7e8 --- gnu/packages/golang-crypto.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 8489dad95c1..0326382c255 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -161,7 +161,7 @@ composability.") (define-public go-filippo-io-edwards25519 (package (name "go-filippo-io-edwards25519") - (version "1.0.0") + (version "1.1.0") (source (origin (method git-fetch) @@ -170,7 +170,7 @@ composability.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "01m8hpaj0cwp250f7b0din09cf8j6j5y631grx67qfhvfrmwr1zr")))) + (base32 "1b2c4iv13mfa0dydr8wawpnnrxgwl7mxzhryfrkjxrgwad8gas5k")))) (build-system go-build-system) (arguments '(#:import-path "filippo.io/edwards25519")) From 7009476627368d1a9a24b8443ddc21fbfbc6b726 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 15:23:11 +0000 Subject: [PATCH 794/862] gnu: go-github-com-99designs-keyring: Simplify. * gnu/packages/golang-crypto.scm (go-github-com-99designs-keyring) [arguments] : Move skip tests logic here. : Remove 'disable-failing-tests. Change-Id: I69dc7a85963632c430bfc0f54caacaa371675bcd --- gnu/packages/golang-crypto.scm | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 0326382c255..b5340bc7a79 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -198,25 +198,15 @@ primitives.") (arguments (list #:import-path "github.com/99designs/keyring" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? unpack-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" unpack-path) - (substitute* (find-files "." "\\_test.go$") - ;; Disable test requring running DBus. - (("TestLibSecretKeysWhenEmpty") - "OffTestLibSecretKeysWhenEmpty") - (("TestLibSecretKeysWhenNotEmpty") - "OffTestLibSecretKeysWhenNotEmpty") - (("TestLibSecretGetWhenEmpty") - "OffTestLibSecretGetWhenEmpty") - (("TestLibSecretGetWhenNotEmpty") - "OffTestLibSecretGetWhenNotEmpty") - (("TestLibSecretRemoveWhenEmpty") - "OffTestLibSecretRemoveWhenEmpty") - (("TestLibSecretRemoveWhenNotEmpty") - "OffTestLibSecretRemoveWhenNotEmpty")))))))) + #:test-flags + #~(list "-skip" (string-join + (list "TestLibSecretKeysWhenEmpty" + "TestLibSecretKeysWhenNotEmpty" + "TestLibSecretGetWhenEmpty" + "TestLibSecretGetWhenNotEmpty" + "TestLibSecretRemoveWhenEmpty" + "TestLibSecretRemoveWhenNotEmpty") + "|")))) (native-inputs (list gnupg go-github-com-stretchr-testify password-store)) (propagated-inputs From 6a00dab4c2f15b1c33b11efd59701d9a9c920c01 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 15:55:14 +0000 Subject: [PATCH 795/862] gnu: Add go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-ptutil. * gnu/packages/golang-web.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-ptutil): New variable. Change-Id: Id2605f51bec0bd1d0deb0a753d879f8c6d1c37ba --- gnu/packages/golang-web.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 9055cc929e7..41cea646555 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8094,6 +8094,39 @@ multiplexing. The original intention of this library is to power the connection management for @url{https://github.com/xtaci/kcp-go,kcp-go}.") (license license:expat))) +(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-ptutil + (package + (name + "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-ptutil") + (version "0.0.0-20240710081135-6c4d8ed41027") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append + "https://gitlab.torproject.org/tpo/anti-censorship" + "/pluggable-transports/ptutil.git")) + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1h7ssgsny6abhpycgks1kvqzvd20s081n39j5yxjjr7zn495ysdc")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path + "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/ptutil")) + (propagated-inputs + (list go-github-com-prometheus-client-golang + go-github-com-prometheus-client-model + go-google-golang-org-protobuf)) + (home-page + "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/ptutil") + (synopsis "Collection of utilities for Pluggable Transports") + (description + "This package provides a collection of utilities for Pluggable Transports.") + (license license:bsd-3))) + (define-public go-go-opentelemetry-io-otel (package (name "go-go-opentelemetry-io-otel") From 101fcb47cf4b084eda6825b2bac7ba3eaa626353 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 15:58:08 +0000 Subject: [PATCH 796/862] gnu: go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib: Update to 1.6.0. * gnu/packages/golang.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib): Update to 1.6.0. Change-Id: I49951a2d2b6fd2abac41469045ab4f930d705fc6 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b29146f6f6e..8319009a6c6 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1630,7 +1630,7 @@ translated keywords and acts.") (define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib (package (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib") - (version "1.5.0") + (version "1.6.0") (source (origin (method git-fetch) @@ -1640,7 +1640,7 @@ translated keywords and acts.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1kmdpxrbnxnpsi7dkgk85z005vjyj74b3wxxqrf68wg3svy69620")))) + (base32 "0jw9vlvlx7rrl366kwz47414aciw3r37lwg6h4jq8cj5hb4bqnd9")))) (build-system go-build-system) (arguments `(#:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib")) From e1a95fe3419259b3abe7d84c7e57c1b4348c3f95 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 16:04:01 +0000 Subject: [PATCH 797/862] gnu: go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib: Move to golang-web. * gnu/packages/golang.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I0c705ff30c527c426774b15ddbdee0dc0a17df9a --- gnu/packages/golang-web.scm | 23 +++++++++++++++++++++++ gnu/packages/golang.scm | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 41cea646555..2f1c1fab149 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8094,6 +8094,29 @@ multiplexing. The original intention of this library is to power the connection management for @url{https://github.com/xtaci/kcp-go,kcp-go}.") (license license:expat))) +(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib + (package + (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib") + (version "1.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jw9vlvlx7rrl366kwz47414aciw3r37lwg6h4jq8cj5hb4bqnd9")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib")) + (home-page "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib") + (synopsis "Go pluggable transports library") + (description "GoPtLib is a library for writing Tor pluggable transports in +Go.") + (license license:cc0))) + (define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-ptutil (package (name diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8319009a6c6..794791d204c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1627,29 +1627,6 @@ standard Fountain, but also has some custom syntax extensions such as translated keywords and acts.") (license license:gpl3))) -(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib - (package - (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib") - (version "1.6.0") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0jw9vlvlx7rrl366kwz47414aciw3r37lwg6h4jq8cj5hb4bqnd9")))) - (build-system go-build-system) - (arguments - `(#:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib")) - (home-page "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib") - (synopsis "Go pluggable transports library") - (description "GoPtLib is a library for writing Tor pluggable transports in -Go.") - (license license:cc0))) - (define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird (package (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird") From 4feda720a163783ba8a2cef41c04f18fa7f87559 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 16:37:10 +0000 Subject: [PATCH 798/862] gnu: Add go-gitlab-torproject-org-tpo-anti-censorship-geoip. * gnu/packages/golang-web.scm (go-gitlab-torproject-org-tpo-anti-censorship-geoip): New variable. Change-Id: I627b9548e6d115da3eeec035a644f5b524af05d6 --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2f1c1fab149..20d58bc8427 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8094,6 +8094,34 @@ multiplexing. The original intention of this library is to power the connection management for @url{https://github.com/xtaci/kcp-go,kcp-go}.") (license license:expat))) +(define-public go-gitlab-torproject-org-tpo-anti-censorship-geoip + (package + (name "go-gitlab-torproject-org-tpo-anti-censorship-geoip") + (version "0.0.0-20210928150955-7ce4b3d98d01") + (source + (origin + (method git-fetch) + (uri (git-reference + (url + "https://gitlab.torproject.org/tpo/anti-censorship/geoip.git") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0i7dc717w1g7hk7488vscqxj0a10af6fz9jczxxsfyxagynfzqcq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gitlab.torproject.org/tpo/anti-censorship/geoip")) + (propagated-inputs + (list go-github-com-smartystreets-goconvey)) + (home-page "https://gitlab.torproject.org/tpo/anti-censorship/geoip") + (synopsis "GeoIP go library that uses the tor geoipdb") + (description + "This code is for loading database data that maps IP addresses to +countries for collecting and presenting statistics on snowflake use that might +alert us to censorship events.") + (license license:bsd-3))) + (define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib (package (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib") From 3245ebe88c09b5f0aed5267a4b1ca3102dbe9790 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 16:44:56 +0000 Subject: [PATCH 799/862] gnu: Add go-github-com-txthinking-runnergroup. * gnu/packages/golang-web.scm (go-github-com-txthinking-runnergroup): New variable. Change-Id: I305b21fcaba0cebdef5771370de43fe2b24c13a2 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 615bd48e45d..fca6af6600f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14332,6 +14332,31 @@ supported by the time package (propagated-inputs (list go-github-com-twpayne-go-vfs-v5)))) +(define-public go-github-com-txthinking-runnergroup + (package + (name "go-github-com-txthinking-runnergroup") + (version "0.0.0-20241229123329-7b873ad00768") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/txthinking/runnergroup") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0l0accx6c880smkcma0qca3c67kx8p1bc4q2zq54iv8yjy1b2h4w")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/txthinking/runnergroup")) + (home-page "https://github.com/txthinking/runnergroup") + (synopsis "Golang standard @code{sync.WaitGroup} alternative") + (description + "This package implements a similar functionality like standard +@code{sync.WaitGroup}}, the difference is if one task stops, all will be +stopped.") + (license license:expat))) + (define-public go-github-com-urfave-cli (package (name "go-github-com-urfave-cli") From e0893fffcec8d64e40682cb0ec2962a20d6d1cf7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 16:51:57 +0000 Subject: [PATCH 800/862] gnu: Add go-github-com-patrickmn-go-cache. * gnu/packages/golang-xyz.scm (go-github-com-patrickmn-go-cache): New variable. Change-Id: I3c5fa4e1cf60670ecaeb75e98ea16370f03655a9 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index fca6af6600f..c9f35429d02 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -11924,6 +11924,33 @@ throughput and hit ratio performance. It's a fork of @code{dgraph-io/ristretto} project.") (license license:asl2.0))) +(define-public go-github-com-patrickmn-go-cache + (package + (name "go-github-com-patrickmn-go-cache") + (version "2.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/patrickmn/go-cache") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10020inkzrm931r4bixf8wqr9n39wcrb78vfyxmbvjavvw4zybgs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/patrickmn/go-cache")) + (home-page "https://github.com/patrickmn/go-cache") + (synopsis "In-memory key:value store/cache Golang library") + (description + "go-cache is an in-memory key:value store/cache similar to Memcached that +is suitable for applications running on a single machine. Its major advantage +is that, being essentially a thread-safe @code{map[string]interface{}} with +expiration times, it doesn't need to serialize or transmit its contents over +the network.") + (license license:expat))) + (define-public go-github-com-pbnjay-memory (let ((commit "7b4eea64cf580186c0eceb10dc94ba3a098af46c") (revision "2")) From 9b601ba37f8fa073ba07737239db79849d06d33a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 19:10:01 +0000 Subject: [PATCH 801/862] gnu: Add go-github-com-txthinking-socks5. * gnu/packages/golang-web.scm (go-github-com-txthinking-socks5): New variable. Change-Id: I5fea89984f73f366d9fe8f73827e40ffbfe0fe2e --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 20d58bc8427..2b745a7bde1 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7530,6 +7530,34 @@ can run applications in other languages and still keep cross compilation.") sockets.") (license license:expat)))) +(define-public go-github-com-txthinking-socks5 + (package + (name "go-github-com-txthinking-socks5") + (version "0.0.0-20230325130024-4230056ae301") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/txthinking/socks5") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zbwczxwmx8ngs6s0bnb0v73jvx96m9ll753zfgcns8fvvgdi2lb")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/txthinking/socks5")) + (propagated-inputs + (list go-github-com-miekg-dns + go-github-com-patrickmn-go-cache + go-github-com-txthinking-runnergroup)) + (home-page "https://github.com/txthinking/socks5") + (synopsis "SOCKSv5 protocol Golang library") + (description + "This package provides a SOCKS protocol version 5 library with full +TCP/UDP and IPv4/IPv6 support.") + (license license:expat))) + (define-public go-github-com-ucarion-urlpath (package (name "go-github-com-ucarion-urlpath") From a985e20c47b7abdb01c48d4b3d47f4bb78635d82 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 19:42:23 +0000 Subject: [PATCH 802/862] gnu: Add go-github-com-realclientip-realclientip-go. * gnu/packages/golang-web.scm (go-github-com-realclientip-realclientip-go): New variable. Change-Id: I523b5a6435567e02e2f7123a560cb9c414681263 --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2b745a7bde1..e9c29c769a1 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6971,6 +6971,30 @@ of the specification.") library.") (license license:bsd-2))) +(define-public go-github-com-realclientip-realclientip-go + (package + (name "go-github-com-realclientip-realclientip-go") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/realclientip/realclientip-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1mg3nrb4b1q38q9j1diz4pl2nqpa3ay45gi81i6ma3bvss8v7ri3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/realclientip/realclientip-go")) + (home-page "https://github.com/realclientip/realclientip-go") + (synopsis "Go reference implementation of \"real\" client IP algorithms") + (description + "Package realclientip provides strategies for obtaining the \"real\" +client IP from HTTP requests.") + (license license:bsd-0))) + (define-public go-github-com-rs-cors (package (name "go-github-com-rs-cors") From 8d2b508f6f7d0ba1318bbb23ca8fc446d5dfbc69 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 22:04:05 +0000 Subject: [PATCH 803/862] gnu: go-github-com-aws-aws-sdk-go-v2: Update to 1.32.0. * gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go-v2): Update to 1.32.0. [source] : Delete service/sqs submodule. Change-Id: I094233d1a84b63f221ccf191e1f9be4a66bd2f2e --- gnu/packages/golang-web.scm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e9c29c769a1..387771e87b4 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -515,7 +515,7 @@ functions.") (define-public go-github-com-aws-aws-sdk-go-v2 (package (name "go-github-com-aws-aws-sdk-go-v2") - (version "1.30.5") + (version "1.32.0") (source (origin (method git-fetch) @@ -524,13 +524,21 @@ functions.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1mxm3j8xwlzjqhdw515kwzzhnfr325s08ry73chjbdw6qb940lb1")))) + (base32 "1iflf2ski7vm2z78wdmbrqpchc3qr50macnf965wmdyfinvx58wn")) + ;; XXX: It contains a lot of sub packages defined with go.mod, consider + ;; to pack them separately. + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/aws/aws-sdk-go-v2/service/sqs + (for-each delete-file-recursively + (list "service/sqs")))))) (build-system go-build-system) (arguments (list #:import-path "github.com/aws/aws-sdk-go-v2" - ;; XXX: It contains a lot of sub packages defined with go.mod, consider - ;; to pack them separately. #:test-subdirs #~(list "."))) (propagated-inputs (list go-github-com-jmespath-go-jmespath From 6cf76f90d96be5478bda12954313ba976a591879 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 19:51:42 +0000 Subject: [PATCH 804/862] gnu: Add go-github-com-aws-aws-sdk-go-v2-service-sqs. * gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go-v2-service-sqs): New variable. Change-Id: I3ede5899d448349fd1936df7a7554cb3df415629 --- gnu/packages/golang-web.scm | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 387771e87b4..5710ee1836e 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -657,6 +657,58 @@ credentials sources.") parameter types for AWS Secrets Manager.") (license license:asl2.0))) +(define-public go-github-com-aws-aws-sdk-go-v2-service-sqs + (package + (name "go-github-com-aws-aws-sdk-go-v2-service-sqs") + (version "1.37.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/aws-sdk-go-v2") + (commit (go-version->git-ref version + #:subdir "service/sqs")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "158mgp8czzkhjdwli2wciwqihs56jp879ahjdjyy8c6fn0g3xdvb")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-26))) + (snippet + #~(begin + ;; XXX: 'delete-all-but' is copied from the turbovnc package. + ;; Consider to implement it as re-usable procedure in + ;; guix/build/utils or guix/build-system/go. + (define (delete-all-but directory . preserve) + (define (directory? x) + (and=> (stat x #f) + (compose (cut eq? 'directory <>) stat:type))) + (with-directory-excursion directory + (let* ((pred + (negate (cut member <> (append '("." "..") preserve)))) + (items (scandir "." pred))) + (for-each (lambda (item) + (if (directory? item) + (delete-file-recursively item) + (delete-file item))) + items)))) + (delete-all-but "service" "sqs") + (delete-all-but "." "service"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/aws/aws-sdk-go-v2/service/sqs" + #:unpack-path "github.com/aws/aws-sdk-go-v2")) + (propagated-inputs + (list go-github-com-aws-smithy-go + go-github-com-aws-aws-sdk-go-v2)) + (home-page "https://github.com/aws/aws-sdk-go-v2") + (synopsis "AWS Golang SDK for Simple Queue Service") + (description + "Package sqs provides the API client, operations, and parameter types for +Amazon Simple Queue Service.") + (license license:asl2.0))) + (define-public go-github-com-aws-aws-sdk-go-v2-service-sso (package (inherit go-github-com-aws-aws-sdk-go-v2) From ddffdc4f6be976b072f615e7e061ca77d64cd83e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 21:00:23 +0000 Subject: [PATCH 805/862] gnu: Add go-github-com-tjfoc-gmsm. * gnu/packages/golang-crypto.scm (go-github-com-tjfoc-gmsm): New variable. Change-Id: I6c4ef3997743aafc103acca7a00c98724e1b3b0b --- gnu/packages/golang-crypto.scm | 58 ++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index b5340bc7a79..2404c9e5801 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1948,6 +1948,64 @@ revision (aka MurmurHash3). Reference algorithm has been slightly hacked as to support the streaming mode required by Go's standard Hash interface.") (license license:bsd-3))) +(define-public go-github-com-tjfoc-gmsm + (package + (name "go-github-com-tjfoc-gmsm") + (version "1.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tjfoc/gmsm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18x1g555a3i86rkjrlxa6h6j3j87vhx480dqnv9hdij6cy3zph7i")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/tjfoc/gmsm" + #:test-subdirs + #~(list ;; "gmtls/..." ; requires go-google-golang-org-grpc + "pkcs12/..." + "sm2/..." + "sm3/..." + "sm4/..." + "x509/...") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key import-path #:allow-other-keys) + ;; Tests need to write to that files. + (with-directory-excursion (string-append "src/" import-path) + (make-file-writable "sm3/ifile")))) + (add-after 'check 'post-check + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + ;; Remove modified testdata just in case. + (delete-file-recursively "sm3/ifile"))))))) + (propagated-inputs + (list go-github-com-golang-protobuf + go-golang-org-x-crypto + go-golang-org-x-net + #;go-google-golang-org-grpc)) ; not packed yet + (home-page "https://github.com/tjfoc/gmsm") + ;; Project's README is in Chinese Mandarin, translated with + ;; auto translator and corrected manually. + (synopsis "ShangMi (SM) cipher suites for Golang") + (description + "This package provides @url{https://en.wikipedia.org/wiki/SM4_(cipher), +ShāngMì 4} cipher suites implementation (GM SM2/3/4). + +Main functions: +@itemize +@item @code{SM2} national secret elliptic curve algorithm library +@item @code{SM3} national secret hash algorithm library +@item @code{SM4} national secret block cipher algorithm library +@end itemize") + (license license:asl2.0))) + (define-public go-github-com-twmb-murmur3 (package (name "go-github-com-twmb-murmur3") From 6f8a5b29de8d58318314e17ed500ab3dd73a646a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 21:00:23 +0000 Subject: [PATCH 806/862] gnu: Add go-github-com-xtaci-kcp-go-v5. * gnu/packages/golang-web.scm (go-github-com-xtaci-kcp-go-v5): New variable. Change-Id: I7db3d6fee648e30da52a210cb2ce045fdf344d6d --- gnu/packages/golang-web.scm | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 5710ee1836e..545b2697ab2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8155,6 +8155,58 @@ Server, in addition to most other SQL databases with a publicly available Go driver.") (license license:expat))) +(define-public go-github-com-xtaci-kcp-go-v5 + (package + (name "go-github-com-xtaci-kcp-go-v5") + (version "5.6.18") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xtaci/kcp-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17jqgl2zdra9rz8ap3zlrk7ljnm316gd4dy4cimlk2641n8r5bjx")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xtaci/kcp-go/v5")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-klauspost-reedsolomon + go-github-com-pkg-errors + go-github-com-templexxx-xorsimd + go-github-com-tjfoc-gmsm + go-github-com-xtaci-lossyconn + go-golang-org-x-crypto + go-golang-org-x-net)) + (home-page "https://github.com/xtaci/kcp-go") + (synopsis "Crypto-Secure Reliable-UDP Library with FEC") + (description + "This package provides smooth, resilient, ordered, error-checked and +anonymous delivery of streams over UDP packets. +Features: +@itemize +@item designed for latency-sensitive scenarios +@item cache-friendly and memory-optimized design +@item handles >5K concurrent connections on a single commodity server +@item compatible with @code{net.Conn} and @code{net.Listener}, serving as a +drop-in replacement for @code{net.TCPConn} +@item @acronym{Forward Error Correction, FEC} support with +@url{https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction, +Reed-Solomon Codes} +@item packet-level encryption support with @code{3DES}, @code{AES}, +@code{Blowfish}, @code{Cast5}, @code{PBKDF2}, @code{SM4}, @code{Salsa20}, +@code{TEA}, @code{Twofish}, and @code{XTEA} +@item only a fixed number of goroutines are created for the entire server +application +@item compatible with @url{https://github.com/skywind3000, skywind3000}'s C +version with various improvements +@end itemize") + (license license:expat))) + (define-public go-github-com-xtaci-lossyconn (package (name "go-github-com-xtaci-lossyconn") From 8f03067db7b89745800212ac1cf4ab74e24e2fe6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 21:00:21 +0000 Subject: [PATCH 807/862] gnu: Add go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2. * gnu/packages/golang-web.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2): New variable. Change-Id: I9f3ecfa9fddebd32bfb662e7f51d9cb1dca9d05b --- gnu/packages/golang-web.scm | 76 +++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 545b2697ab2..68a66f03627 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8342,6 +8342,82 @@ Go.") "This package provides a collection of utilities for Pluggable Transports.") (license license:bsd-3))) +(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2 + (package + (name + "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2") + (version "2.10.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append + "https://gitlab.torproject.org/tpo/anti-censorship" + "/pluggable-transports/snowflake")) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14ypgzj6c6vjw9s85wf2vdfa9l06iandx7gz90i3w6r65q2cp6vj")))) + (build-system go-build-system) + (arguments + (list + ;; Project provides a Go library and also CLI builds. + #:skip-build? #t + #:import-path + "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2" + ;; panic: empty transcript [recovered] + #:test-flags #~(list "-skip" "TestQueuePacketConnWriteToKCP"))) + (native-inputs + (list go-github-com-golang-mock + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-aws-aws-sdk-go-v2 + go-github-com-aws-aws-sdk-go-v2-config + go-github-com-aws-aws-sdk-go-v2-credentials + go-github-com-aws-aws-sdk-go-v2-service-sqs + go-github-com-golang-mock + go-github-com-gorilla-websocket + go-github-com-miekg-dns + go-github-com-pion-ice-v2 + go-github-com-pion-sdp-v3 + go-github-com-pion-stun-v3 + go-github-com-pion-transport-v2 + go-github-com-pion-webrtc-v3 + go-github-com-prometheus-client-golang + go-github-com-realclientip-realclientip-go + go-github-com-refraction-networking-utls + go-github-com-smartystreets-goconvey + go-github-com-stretchr-testify + go-github-com-txthinking-socks5 + go-github-com-xtaci-kcp-go-v5 + go-github-com-xtaci-smux + go-gitlab-torproject-org-tpo-anti-censorship-geoip + go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib + go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-ptutil + go-golang-org-x-crypto + go-golang-org-x-net + go-golang-org-x-sys)) + (home-page + "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake") + (synopsis "Pluggable Transport using WebRTC, inspired by Flashproxy") + (description + "Pluggable Transport using @code{WebRTC}, inspired by Flashproxy and +adheres to the pluggable transports v2.1 Go AP. +This package provides: +@itemize +@item @code{broker} contains code for the Snowflake broker +@item @code{doc} contains Snowflake documentation and manpages +@item @code{client} contains the Tor pluggable transport client and client +library code +@item @code{common} contains generic libraries used by multiple pieces of +Snowflake +@item @code{proxy} contains code for the Go standalone Snowflake proxy +@item @code{probetest} contains code for a NAT probetesting service +@item @code{server} contains the Tor pluggable transport server and server +library code +@end itemize") + (license license:bsd-3))) + (define-public go-go-opentelemetry-io-otel (package (name "go-go-opentelemetry-io-otel") From 8054e80da28d99b6b0711a641d82973e1a570dc7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 22:08:31 +0000 Subject: [PATCH 808/862] gnu: go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel: Update to 0.0.0-20240711104640-e64b1b3562f3. * gnu/packages/golang.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel): Update to 0.0.0-20240711104640-e64b1b3562f3. [propagated-inputs]: Add go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib. Change-Id: Ib562ecabe5779af3050928fea3152da34f97ce45 --- gnu/packages/golang.scm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 794791d204c..709801a0a33 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1676,30 +1676,29 @@ incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol.") (license (list license:bsd-2 license:bsd-3)))) (define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel - (let ((commit "e64b1b3562f3ab50d06141ecd513a21ec74fe8c6") - (revision "0")) (package (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20240711104640-e64b1b3562f3") (source (origin (method git-fetch) (uri (git-reference (url "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 "0nvd0qp1mdy7w32arnkhghxm5k2g6gy33cxlarxc6vdm4yh6v5nv")))) (build-system go-build-system) (arguments - `(#:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel" - #:test-subdirs '("."))) + `(#:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel")) + (propagated-inputs + (list go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib)) (home-page "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel") (synopsis "Go WebTunnel Pluggable Transport") (description "WebTunnel is a Go Pluggable Transport that attempts to imitate web browsing activities based on HTTP Upgrade (HTTPT).") - (license license:bsd-2)))) + (license license:bsd-2))) (define-public go-github-com-apparentlymart-go-openvpn-mgmt (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") From 27ed8dc7fee9f18bec624849e22170f53807d2f4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 22:10:08 +0000 Subject: [PATCH 809/862] gnu: go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel: Move to golang-web. * gnu/packages/golang.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel): Move from here ... * gnu/packages/golang-web.scm: ... to here. Change-Id: I20584072a46eb9d1d818c0c82794a717dc6d79ab --- gnu/packages/golang-web.scm | 26 ++++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 68a66f03627..d69d81601fb 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8418,6 +8418,32 @@ library code @end itemize") (license license:bsd-3))) +(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel + (package + (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel") + (version "0.0.0-20240711104640-e64b1b3562f3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nvd0qp1mdy7w32arnkhghxm5k2g6gy33cxlarxc6vdm4yh6v5nv")))) + (build-system go-build-system) + (arguments + (list + #:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel")) + (propagated-inputs + (list go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib)) + (home-page "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel") + (synopsis "Go WebTunnel Pluggable Transport") + (description + "WebTunnel is a Go Pluggable Transport that attempts to imitate web +browsing activities based on HTTP Upgrade (HTTPT).") + (license license:bsd-2))) + (define-public go-go-opentelemetry-io-otel (package (name "go-go-opentelemetry-io-otel") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 709801a0a33..ea86052bd38 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1675,31 +1675,6 @@ translated keywords and acts.") incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol.") (license (list license:bsd-2 license:bsd-3)))) -(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel - (package - (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel") - (version "0.0.0-20240711104640-e64b1b3562f3") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0nvd0qp1mdy7w32arnkhghxm5k2g6gy33cxlarxc6vdm4yh6v5nv")))) - (build-system go-build-system) - (arguments - `(#:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel")) - (propagated-inputs - (list go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib)) - (home-page "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel") - (synopsis "Go WebTunnel Pluggable Transport") - (description "WebTunnel is a Go Pluggable Transport that attempts to imitate -web browsing activities based on HTTP Upgrade (HTTPT).") - (license license:bsd-2))) - (define-public go-github-com-apparentlymart-go-openvpn-mgmt (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") (revision "0")) From 1f8122036b63c00ab6541571ce2fa3c3522c19ee Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 22:04:05 +0000 Subject: [PATCH 810/862] gnu: go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird: Update to 0.5.0. * gnu/packages/golang.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird): Update to 0.5.0. [arguments] : Remove 'substitutions. [propagated-inputs]: Remove go-golang-org-x-text; add go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2. Change-Id: I1cfe5a97a3a4749b13ee1eabc703ce351246ac6f --- gnu/packages/golang.scm | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ea86052bd38..5a3fca001f3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1630,7 +1630,7 @@ translated keywords and acts.") (define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird (package (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird") - (version "0.3.0") + (version "0.5.0") (source (origin (method git-fetch) (uri (git-reference @@ -1639,36 +1639,22 @@ translated keywords and acts.") (file-name (git-file-name name version)) (sha256 (base32 - "1bmljd81vc8b4kzmpgmx1n1vvjn5y1s2w01hjxwplmnchv9dndkl")))) + "1qk7npkj0a3a28rp38whl1jwjr0z0hdcsq5bgm8bl1fk9g6cqbnp")))) (build-system go-build-system) (arguments - `(#:unpack-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird" - #:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/cmd/lyrebird" - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'substitutions - (lambda _ - (with-directory-excursion - "src/gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird" - (for-each - (lambda (file) - (substitute* file - (("edwards25519-extra.git") "edwards25519-extra"))) - (list "common/ntor/ntor_test.go" - "internal/x25519ell2/x25519ell2.go")) - (substitute* "internal/x25519ell2/x25519ell2.go" - (("gitlab.com/yawning/obfs4.git") - "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird")))))))) + (list + #:unpack-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird" + #:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/cmd/lyrebird")) (propagated-inputs (list go-filippo-io-edwards25519 go-github-com-dchest-siphash go-github-com-refraction-networking-utls go-gitlab-com-yawning-edwards25519-extra go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib + go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2 go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel go-golang-org-x-crypto - go-golang-org-x-net - go-golang-org-x-text)) + go-golang-org-x-net)) (home-page "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird") (synopsis "Look-like nothing obfuscation protocol") (description "This is a look-like nothing obfuscation protocol that From b80dcf5a0784d2b7de87aa0f0235e7e036daa942 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 23:13:43 +0000 Subject: [PATCH 811/862] gnu: Deprecate go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird. * gnu/packages/golang.scm (go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird): Deprecate variable. (lyrebird): New variable. * gnu/packages/tor-browsers.scm (torbrowser) [inputs]: Remove go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird, add lyrebird. (mullvadbrowser): Adjust "modify-inputs" accordingly. Change-Id: I8aa67148a08baafcd0dfe3a0ceac43c5939139e9 --- gnu/packages/golang.scm | 12 ++++++++++-- gnu/packages/tor-browsers.scm | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5a3fca001f3..87f259f2714 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1627,9 +1627,9 @@ standard Fountain, but also has some custom syntax extensions such as translated keywords and acts.") (license license:gpl3))) -(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird +(define-public lyrebird (package - (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird") + (name "lyrebird") (version "0.5.0") (source (origin (method git-fetch) @@ -1643,6 +1643,7 @@ translated keywords and acts.") (build-system go-build-system) (arguments (list + #:install-source? #f #:unpack-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird" #:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/cmd/lyrebird")) (propagated-inputs @@ -1661,6 +1662,13 @@ translated keywords and acts.") incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol.") (license (list license:bsd-2 license:bsd-3)))) +(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird + ;; This is a final command, no need for a full name of the go.mod module path + ;; style. The same is suggested in project's README and Makefile. + (deprecated-package + "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird" + lyrebird)) + (define-public go-github-com-apparentlymart-go-openvpn-mgmt (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") (revision "0")) diff --git a/gnu/packages/tor-browsers.scm b/gnu/packages/tor-browsers.scm index 6d74a75f4b5..13a1b41f72d 100644 --- a/gnu/packages/tor-browsers.scm +++ b/gnu/packages/tor-browsers.scm @@ -216,7 +216,7 @@ Browser.") "16zyixbddwaiw1bzsai5crdg58kmacshsr0rp37m85qk0a8vryg3")))) (build-system mozilla-build-system) (inputs - (list go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird + (list lyrebird firefox-locales tor-client alsa-lib @@ -956,7 +956,7 @@ Mullvad Browser.") (delete 'autoconfig-tor))))) (inputs (modify-inputs (package-inputs torbrowser) - (delete go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird))) + (delete lyrebird))) (propagated-inputs (modify-inputs (package-propagated-inputs torbrowser) (append ublock-origin/icecat))) From 1602f95f03c790c6e7cf4211f42577b2f36ed674 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 12 Jan 2025 00:01:32 +0000 Subject: [PATCH 812/862] gnu: Add go-github-com-valyala-fasttemplate. * gnu/packages/golang-xyz.scm (go-github-com-valyala-fasttemplate): New variable. Change-Id: I7b7a4314c0ae68f03bb6a25c6b71e4e95bbd7639 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c9f35429d02..04d6cb90128 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14468,6 +14468,34 @@ distributable command line applications in an expressive way.") anti-fragmentation protection.") (license license:expat))) +(define-public go-github-com-valyala-fasttemplate + (package + (name "go-github-com-valyala-fasttemplate") + (version "1.2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/valyala/fasttemplate") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12hywkz2mfvxzfpgabc53bm4jkxxmcssrr0k4wxzzrnv0v7mj6bj")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "vendor"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/valyala/fasttemplate")) + (propagated-inputs + (list go-github-com-valyala-bytebufferpool)) + (home-page "https://github.com/valyala/fasttemplate") + (synopsis "Template engine for Golang") + (description + "Package fasttemplate implements simple and fast template library.") + (license license:expat))) + (define-public go-github-com-vburenin-ifacemaker (package (name "go-github-com-vburenin-ifacemaker") From d084156233414010227d9f39c8172420cee3992a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 12 Jan 2025 00:08:32 +0000 Subject: [PATCH 813/862] gnu: Add go-github-com-labstack-gommon. * gnu/packages/golang-xyz.scm (go-github-com-labstack-gommon): New variable. Change-Id: Ieb84db29cd2aa7417286406b0c1c7397c3e4d573 --- gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 04d6cb90128..cd4b061c9f1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -9212,6 +9212,40 @@ structure. It can also produce a much more verbose, one-item-per-line representation suitable for computing diffs.") (license license:asl2.0))) +(define-public go-github-com-labstack-gommon + (package + (name "go-github-com-labstack-gommon") + (version "0.4.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/labstack/gommon") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05mafzmx050hc3js3i0h05ga81kk3hhhlv395xwzv9n38h27xpnz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/labstack/gommon")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-mattn-go-colorable + go-github-com-mattn-go-isatty + go-github-com-valyala-fasttemplate)) + (home-page "https://github.com/labstack/gommon") + (synopsis "Common libraries for Go") + (description + "This package provides functionlaity for common tasks: +@itemize +@item @code{Bytes} - format/parse bytes +@item @code{Color} - style terminal text +@item @code{Log} - simple logging +@end itemize") + (license license:expat))) + (define-public go-github-com-lann-builder (package (name "go-github-com-lann-builder") From f8b6d1672f76005b9702624b2b2bc490a7225f42 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 12 Jan 2025 00:19:18 +0000 Subject: [PATCH 814/862] gnu: Add go-github-com-labstack-echo-v4. * gnu/packages/golang-web.scm (go-github-com-labstack-echo-v4): New variable. Change-Id: I7e7b93d00ac37254c914ed6da262f590dc08d51c --- gnu/packages/golang-web.scm | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index d69d81601fb..bcc0cc0a843 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -4459,6 +4459,53 @@ protocol in Go language.") webhooks in Golang.") (license license:expat))) +(define-public go-github-com-labstack-echo-v4 + (package + (name "go-github-com-labstack-echo-v4") + (version "4.13.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/labstack/echo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1i4w36f1k17bykc24dzr2ng5zpsyysfg5bzfvlbrphxxzhsngxdy")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/labstack/echo/v4")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-labstack-gommon + go-github-com-valyala-fasttemplate + go-golang-org-x-crypto + go-golang-org-x-net + go-golang-org-x-time)) + (home-page "https://echo.labstack.com/") + (synopsis "High performance, minimalist Go web framework") + (description + "Package echo implements a high performance, minimalist Go web framework. +Features: +@itemize +@item optimized HTTP router which smartly prioritize routes +@item build robust and scalable RESTful APIs +@item group APIs +@item extensible middleware framework +@item define middleware at root, group or route level +@item data binding for JSON, XML and form payload +@item handy functions to send variety of HTTP responses +@item centralized HTTP error handling +@item template rendering with any template engine +@item define your format for the logger +@item highly customizable +@item automatic TLS via Let’s Encrypt +@item HTTP/2 support +@end itemize") + (license license:expat))) + (define-public go-github-com-levigross-grequests (package (name "go-github-com-levigross-grequests") From c710002f1ca8ee31404b204c5619d2589c391ce9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 12 Jan 2025 00:36:52 +0000 Subject: [PATCH 815/862] gnu: Add go-0xacab-org-leap-obfsvpn. * gnu/packages/golang-web.scm (go-0xacab-org-leap-obfsvpn): New variable. Change-Id: I5335db751f755b283919f7c153c0d30a5c7b546b --- gnu/packages/golang-web.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index bcc0cc0a843..e82cc9cf15d 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -89,6 +89,52 @@ ;;; Libraries: ;;; +(define-public go-0xacab-org-leap-obfsvpn + (package + (name "go-0xacab-org-leap-obfsvpn") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://0xacab.org/leap/obfsvpn.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1iq3m2j6m9n1h9rkysaj97nnqx65fn7vz9jskl4qa4rwh002pv3d")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; It's the same project. + (substitute* (find-files "." "\\.go$") + (("git.torproject.org/pluggable-transports/goptlib.git") + (string-append "gitlab.torproject.org/tpo/anti-censorship" + "/pluggable-transports/goptlib"))))))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "0xacab.org/leap/obfsvpn")) + (native-inputs + (list go-github-com-spf13-pflag + go-github-com-spf13-viper)) + (propagated-inputs + (list go-github-com-labstack-echo-v4 + go-github-com-quic-go-quic-go + go-github-com-sirupsen-logrus + go-github-com-xtaci-kcp-go-v5 + go-gitlab-com-yawning-obfs4-git + go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib)) + (home-page "https://0xacab.org/leap/obfsvpn") + (synopsis "OBFS4 client and server proxies") + (description + "The @@code{obfsvpn} module contains a Go package that provides server +and client components to use variants of the obfs4 obfuscation protocol. It +is intended to be used as a drop-in Pluggable Transport for @code{OpenVPN} +connections +(although it can be used for other, more generic purposes).") + (license license:bsd-2))) + (define-public go-cloud-google-com-go-compute-metadata (package (name "go-cloud-google-com-go-compute-metadata") From 00b06100448870dd008368b5a88ca4e0180d5dd7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 12 Jan 2025 11:24:05 +0000 Subject: [PATCH 816/862] gnu: go-github-com-quic-go-quic-go: Adjust tests. Tests fail in CI as seen in . * gnu/packages/golang-web.scm (go-github-com-quic-go-quic-go) [phases] {check}: Adjust gingo options as tests fail in CI but passed when tested locally on 16 threads machine. Remove randomization, add logic to set "--proc" option. Change-Id: I25be422622cbab20f2eeb7c8200e20ab9491cf44 --- gnu/packages/golang-web.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e82cc9cf15d..e64aa9f27d2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -7035,11 +7035,16 @@ the Go standard library}.") (lambda* (#:key tests? import-path #:allow-other-keys) (when tests? (with-directory-excursion (string-append "src/" import-path) - (invoke "ginkgo" "-r" "-v" + (setenv "TIMESCALE_FACTOR" "10") + (invoke "ginkgo" "-r" "-v" "--no-color" (string-append - "--procs=" (number->string (parallel-job-count))) - "--randomize-all" - "--randomize-suites" + "--procs=" (number->string + ;; All tests passed on 16 threads + ;; mathine, but fail on + ;; ci.guix.gnu.org. + (if (> (parallel-job-count) 17) + 16 + (parallel-job-count)))) "--skip-package=integrationtests")))))))) (native-inputs (list go-ginkgo From 3998babb63cfe4227dec54ba9527dddd5be81eea Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 12 Jan 2025 17:04:36 +0000 Subject: [PATCH 817/862] gnu: Add go-github-com-babolivier-go-doh-client. * gnu/packages/golang-web.scm (go-github-com-babolivier-go-doh-client): New variable. Change-Id: I332d6e7cc5b9b1502c24d95ad2a06164181e324d --- gnu/packages/golang-web.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e64aa9f27d2..5e08bc39412 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -989,6 +989,41 @@ the OTEL Go SDK.") Manager,NTLM}/Negotiate authentication over HTTP.") (license license:expat))) +(define-public go-github-com-babolivier-go-doh-client + (package + (name "go-github-com-babolivier-go-doh-client") + (version "0.0.0-20201028162107-a76cff4cb8b6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/babolivier/go-doh-client") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ca72jz5d5wf5hkcjiwrjvh4fp9p0nqhgwyx9p3vq9sdrx524d21")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/babolivier/go-doh-client")) + (home-page "https://github.com/babolivier/go-doh-client") + (synopsis "DNS over HTTPS client implementation written in Golang") + (description + "Package doh implements client operations for @code{DoH} (DNS over HTTPS) +lookups. It implements looking up the following records: +@itemize +@item A +@item AAAA +@item CNAME +@item MX +@item NS +@item TXT +@item SRV +@item SOA +@item PTR +@end itemize") + (license license:gpl3))) + (define-public go-github-com-beevik-ntp (package (name "go-github-com-beevik-ntp") From 1b23d09bf69463110df914b9b2cb38d5e5813d68 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 21 Jan 2025 23:58:49 +0000 Subject: [PATCH 818/862] gnu: go: Disable time bomb tests for all versions. * gnu/packages/golang.scm (go-1.21): Move 'skip-crypto-tls-tests phase from here ... (go-1.16, go-1.17): ... to here. This will fix the build of all inherited Golang versions. Change-Id: Iecf166dcd622800c54aa9357ff1aba6787ac49d1 --- gnu/packages/golang.scm | 54 +++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 87f259f2714..a6641ba7ebb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -288,6 +288,23 @@ in the style of communicating sequential processes (@dfn{CSP}).") (strip-keyword-arguments '(#:tests? #:system) (package-arguments go-1.4)) ((#:phases phases) `(modify-phases ,phases + ;; Time bomb in TLS tests: "Most of the test certificates + ;; (e.g. testRSACertificate, testRSACertificateIssuer, + ;; testRSA2048CertificateIssuer) have a not after of Jan 1 + ;; 00:00:00 2025 GMT." + ;; https://github.com/golang/go/issues/71077 + ;; https://github.com/golang/go/issues/71103 + ;; https://github.com/golang/go/issues/71104 + (add-after 'unpack 'skip-crypto-tls-tests + (lambda _ + (substitute* (list "src/crypto/tls/handshake_client_test.go" + "src/crypto/tls/handshake_server_test.go") + (("TestVerifyConnection.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestResumptionKeepsOCSPAndSCT.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestCrossVersionResume.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n"))))) (add-after 'unpack 'remove-unused-sourcecode-generators (lambda _ ;; Prevent perl from inclusion in closure through unused files @@ -518,6 +535,25 @@ in the style of communicating sequential processes (@dfn{CSP}).") (setenv "GOROOT_FINAL" (string-append output "/lib/go")) (setenv "GOGC" "400") (setenv "GOCACHE" "/tmp/go-cache")))) + + ;; Time bomb in TLS tests: "Most of the test certificates + ;; (e.g. testRSACertificate, testRSACertificateIssuer, + ;; testRSA2048CertificateIssuer) have a not after of Jan 1 + ;; 00:00:00 2025 GMT." + ;; https://github.com/golang/go/issues/71077 + ;; https://github.com/golang/go/issues/71103 + ;; https://github.com/golang/go/issues/71104 + (add-after 'unpack 'skip-crypto-tls-tests + (lambda _ + (substitute* (list "src/crypto/tls/handshake_client_test.go" + "src/crypto/tls/handshake_server_test.go") + (("TestVerifyConnection.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestResumptionKeepsOCSPAndSCT.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestCrossVersionResume.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n"))))) + (add-after 'unpack 'patch-source (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((net-base (assoc-ref inputs "net-base")) @@ -841,24 +877,6 @@ in the style of communicating sequential processes (@dfn{CSP}).") #~(modify-phases #$phases (delete 'skip-TestGoPathShlibGccgo-tests) (delete 'patch-source) - ;; Time bomb in TLS tests: "Most of the test certificates - ;; (e.g. testRSACertificate, testRSACertificateIssuer, - ;; testRSA2048CertificateIssuer) have a not after of Jan 1 - ;; 00:00:00 2025 GMT." - ;; https://github.com/golang/go/issues/71077 - ;; https://github.com/golang/go/issues/71103 - ;; https://github.com/golang/go/issues/71104 - (add-after 'unpack 'skip-crypto-tls-tests - (lambda _ - (substitute* (list "src/crypto/tls/handshake_client_test.go" - "src/crypto/tls/handshake_server_test.go") - (("TestVerifyConnection.*" all) - (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) - (("TestResumptionKeepsOCSPAndSCT.*" all) - (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) - (("TestCrossVersionResume.*" all) - (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n"))))) - (add-after 'unpack 'patch-os-tests (lambda _ (substitute* "src/os/os_test.go" From 1a950bf54b517c0077a72bdf25ac57e797e8c05c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 00:35:17 +0000 Subject: [PATCH 819/862] gnu: go-1.22: Update to 1.22.11. * gnu/packages/golang.scm (go-1.22): Update to 1.22.11. Change-Id: I7899175194d89e1eb32787439ddd113c6d0ac6db --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a6641ba7ebb..9bec23911d4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -992,7 +992,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (package (inherit go-1.21) (name "go") - (version "1.22.10") + (version "1.22.11") (source (origin (method git-fetch) @@ -1001,7 +1001,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (commit (string-append "go" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0piy2mc3v3cadn3ls1ylcm713vjl957j0m0bj4vqggqihy7rp54g")))) + (base32 "1gdiyifsp65wlnfqfmnbv6n1rh23jbr13l79xwla3gavm67scx02")))) (arguments (substitute-keyword-arguments (package-arguments go-1.21) ((#:phases phases) From 2a9758e1c99422eef40a2ee2c35f6d3873cfa3fc Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 00:35:18 +0000 Subject: [PATCH 820/862] gnu: go-1.23: Update to 1.23.5. * gnu/packages/golang.scm (go-1.23): Update to 1.23.5. Change-Id: Icebfdec646e0ede42d3321d4246b1b21f3d18250 --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9bec23911d4..a125cca69c2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1028,7 +1028,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (package (inherit go-1.22) (name "go") - (version "1.23.4") + (version "1.23.5") (source (origin (method git-fetch) @@ -1037,7 +1037,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (commit (string-append "go" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0aiaphmns23i0bxbaxzkh4h6nz60sxm1vs381819vfg5n2gna6dd")))))) + (base32 "0iffjgsmh4ilc1r30zbidqvxz2dd8k0sml5rzzk1k4wkab0cjw0i")))))) ;; ;; Default Golang version used in guix/build-system/go.scm to build packages. From 5666d8121231883a3cc601eb4889d3edf10dd6ca Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 20:35:10 +0000 Subject: [PATCH 821/862] gnu: Add go-github-com-alecthomas-kong-hcl. * gnu/packages/golang-xyz.scm (go-github-com-alecthomas-kong-hcl): New variable. Change-Id: Iea741ab1740eb0c956621ac6ed095a47014d3112 --- gnu/packages/golang-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cd4b061c9f1..a597fe4e3ad 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -27,7 +27,7 @@ ;;; Copyright © 2021 Ricardo Wurmus ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Stefan Reichör -;;; Copyright © 2021, 2023, 2024 Sharlatan Hellseher +;;; Copyright © 2021, 2023-2025 Sharlatan Hellseher ;;; Copyright © 2022 (unmatched-parenthesis ;;; Copyright © 2022 Dhruvin Gandhi ;;; Copyright © 2022 Dominic Martinez @@ -860,6 +860,44 @@ be stripped.") with as little developer effort as possible.") (license license:expat))) +(define-public go-github-com-alecthomas-kong-hcl + (package + (name "go-github-com-alecthomas-kong-hcl") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/alecthomas/kong-hcl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0q383705kavn23ay4vzr662x9lsl2xc1mv5irhcy0cazjjc7jzp2")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/alecthomas/kong-hcl/v2 + (delete-file-recursively "v2"))))) + (build-system go-build-system) + (arguments + (list + #:test-flags #~(list "-skip" "TestHCL/FromResolver") + #:import-path "github.com/alecthomas/kong-hcl")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-alecthomas-kong + go-github-com-hashicorp-hcl + go-github-com-pkg-errors)) + (home-page "https://github.com/alecthomas/kong-hcl") + (synopsis "Kong configuration loader for HCL") + (description + "This package implements functionality to map HCL or JSON fragment into +Golang structs.") + (license license:expat))) + (define-public go-github-com-alecthomas-participle-v2 (package (name "go-github-com-alecthomas-participle-v2") From 0c8e83ab1a0ad2c331935da2d4fce36c93e3804a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 20:35:12 +0000 Subject: [PATCH 822/862] gnu: go-github-com-alecthomas-chroma: Update to 0.10.0. * gnu/packages/golang-xyz.scm (go-github-com-alecthomas-chroma): Update to 0.10.0. [native-inputs]: Add go-github-com-alecthomas-kong, go-github-com-alecthomas-kong-hcl, go-github-com-gorilla-csrf, go-github-com-gorilla-handlers, go-github-com-gorilla-mux, go-github-com-mattn-go-colorable, and go-github-com-mattn-go-isatty. Change-Id: I48b68706fb32b64a594957a696c0f32b824c1590 --- gnu/packages/golang-xyz.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index a597fe4e3ad..e3631de30b2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -704,7 +704,14 @@ http://tartarus.org/~martin/PorterStemmer/index.html.") (arguments `(#:import-path "github.com/alecthomas/chroma")) (native-inputs - (list go-github-com-dlclark-regexp2 + (list go-github-com-alecthomas-kong + go-github-com-alecthomas-kong-hcl + go-github-com-dlclark-regexp2 + go-github-com-gorilla-csrf + go-github-com-gorilla-handlers + go-github-com-gorilla-mux + go-github-com-mattn-go-colorable + go-github-com-mattn-go-isatty go-github-com-stretchr-testify)) (home-page "https://github.com/alecthomas/chroma/") (synopsis "General purpose syntax highlighter in pure Go") From acbff09fe5c4e61c0eab61da05dcfbbac86b92d7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 20:45:58 +0000 Subject: [PATCH 823/862] gnu: Add go-github-com-biogo-hts. This change merges all extracted subdirs under the same variable as it's distributed in single module according to project's go.mod. * gnu/packages/bioinformatics.scm (go-github-com-biogo-hts-bam, go-github-com-biogo-hts-bgzf, go-github-com-biogo-hts-cram, go-github-com-biogo-hts-csi, go-github-com-biogo-hts-fai, go-github-com-biogo-hts-sam, go-github-com-biogo-hts-tabix): Delete variables. (go-github-com-biogo-hts): New variable. [arguments] : No go files in project's root. : Set as seen in go.mod. : Skip 2 tests requiring network access. (go-github-com-biogo-biogo) [propagated-inputs]: Remove go-github-com-biogo-hts-bam, add go-github-com-biogo-hts. Change-Id: I2cace7a0c732e7590b3b34865323bc38b41b0d86 --- gnu/packages/bioinformatics.scm | 101 +++++--------------------------- 1 file changed, 16 insertions(+), 85 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index c98f6022bf3..170651d9917 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -24401,9 +24401,9 @@ useful for bioinformatic analysis.") go-github-com-kr-pretty)) (synopsis "Step store for biogo"))) -(define-public go-github-com-biogo-hts-bam +(define-public go-github-com-biogo-hts (package - (name "go-github-com-biogo-hts-bam") + (name "go-github-com-biogo-hts") (version "1.4.4") (source (origin (method git-fetch) @@ -24416,91 +24416,22 @@ useful for bioinformatic analysis.") "1vkcqxyajghx5p5j7g2i376nbsxh8q2smk0smlv8mi34yr7hlw5b")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/biogo/hts/bam" - #:unpack-path "github.com/biogo/hts")) - (propagated-inputs + (list + #:skip-build? #t + #:import-path "github.com/biogo/hts" + ;; Tests try to get samples from . + #:test-flags #~(list "-skip" "TestHasEOF|TestRead"))) + (native-inputs (list go-gopkg-in-check-v1)) - (home-page "https://github.com/biogo/hts") - (synopsis "HTS BAM module for biogo") - (description "This package provides tools for handling BAM files.") - (license license:bsd-3))) - -(define-public go-github-com-biogo-hts-sam - (package - (inherit go-github-com-biogo-hts-bam) - (name "go-github-com-biogo-hts-sam") - (arguments - '(#:import-path "github.com/biogo/hts/sam" - #:unpack-path "github.com/biogo/hts")) (propagated-inputs - (list go-gopkg-in-check-v1)) - (synopsis "HTS SAM module for biogo") - (description "This package provides tools for handling SAM files."))) - -(define-public go-github-com-biogo-hts-tabix - (package - (inherit go-github-com-biogo-hts-bam) - (name "go-github-com-biogo-hts-tabix") - (arguments - '(#:import-path "github.com/biogo/hts/tabix" - #:unpack-path "github.com/biogo/hts")) - (propagated-inputs - (list go-gopkg-in-check-v1)) - (synopsis "HTS Tabix module for biogo") - (description "This package provides tools for handling Tabix files."))) - -(define-public go-github-com-biogo-hts-bgzf - (package - (inherit go-github-com-biogo-hts-bam) - (name "go-github-com-biogo-hts-bgzf") - (arguments - '(#:import-path "github.com/biogo/hts/bgzf" - #:unpack-path "github.com/biogo/hts")) - (propagated-inputs - (list go-gopkg-in-check-v1)) - (synopsis "HTS bgzf module for biogo") - (description "This package provides tools for handling bgzf files."))) - -(define-public go-github-com-biogo-hts-cram - (package - (inherit go-github-com-biogo-hts-bam) - (name "go-github-com-biogo-hts-cram") - (arguments - '(#:import-path "github.com/biogo/hts/cram" - #:unpack-path "github.com/biogo/hts" - #:tests? #false)) ;require network access - (propagated-inputs - (list go-gopkg-in-check-v1 - go-github-com-ulikunitz-xz + (list go-github-com-ulikunitz-xz go-github-com-kortschak-utter)) - (synopsis "HTS CRAM module for biogo") - (description "This package provides tools for handling CRAM files."))) - -(define-public go-github-com-biogo-hts-csi - (package - (inherit go-github-com-biogo-hts-bam) - (name "go-github-com-biogo-hts-csi") - (arguments - '(#:import-path "github.com/biogo/hts/csi" - #:unpack-path "github.com/biogo/hts")) - (propagated-inputs - (list go-gopkg-in-check-v1)) - (synopsis "Coordinate sorted indexing for biogo") - (description "This package implements CSIv1 and CSIv2 coordinate sorted -indexing."))) - -(define-public go-github-com-biogo-hts-fai - (package - (inherit go-github-com-biogo-hts-bam) - (name "go-github-com-biogo-hts-fai") - (arguments - '(#:import-path "github.com/biogo/hts/fai" - #:unpack-path "github.com/biogo/hts")) - (propagated-inputs - (list go-gopkg-in-check-v1)) - (synopsis "Fasta sequence file index handling for biogo") - (description "This package implements FAI fasta sequence file index -handling."))) + (home-page "https://github.com/biogo/hts") + (synopsis "HTS module for biogo") + (description + "This package provides tools for handling BAM, SAM, Tabix, bgzf, CRAM, +CSIv1, CSIv2 and FAI files.") + (license license:bsd-3))) (define-public go-github-com-biogo-biogo (package @@ -24524,7 +24455,7 @@ handling."))) go-github-com-biogo-store-kdtree go-github-com-biogo-store-llrb go-github-com-biogo-store-step - go-github-com-biogo-hts-bam + go-github-com-biogo-hts go-github-com-biogo-graph)) (home-page "https://github.com/biogo/biogo") (synopsis "Bioinformatics library for Go") From 1b83198655db556316ce29933504a8e5476bb3e6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 21:00:59 +0000 Subject: [PATCH 824/862] gnu: Add go-github-com-biogo-store. This change merges all extracted subdirs under the same variable as it's distributed in single module according to project's go.mod. * gnu/packages/bioinformatics.scm (go-github-com-biogo-store-kdtree, go-github-com-biogo-store-llrb, go-github-com-biogo-store-step): Delete variables. (go-github-com-biogo-store): New variable. [arguments] : No go files in project's root. : Set as seen in go.mod. (go-github-com-biogo-biogo) [propagated-inputs]: Remove go-github-com-biogo-store-kdtree, go-github-com-biogo-store-llrb, and go-github-com-biogo-store-step. Add go-github-com-biogo-store. Change-Id: I1db4efea31fc7f1f5e96b21e874a523cf631f370 --- gnu/packages/bioinformatics.scm | 50 ++++----------------------------- 1 file changed, 6 insertions(+), 44 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 170651d9917..f778d71fd27 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -24338,9 +24338,9 @@ for nanopore cDNA, native RNA, and PacBio sequencing reads.") functions.") (license license:bsd-3))) -(define-public go-github-com-biogo-store-interval +(define-public go-github-com-biogo-store (package - (name "go-github-com-biogo-store-interval") + (name "go-github-com-biogo-store") (version "0.0.0-20201120204734-aad293a2328f") (source (origin (method git-fetch) @@ -24353,8 +24353,9 @@ functions.") "0skizrp1j6vgbl0g1kmh73picagqlvwckaqs0gkl6rai5lckxj8a")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/biogo/store/interval" - #:unpack-path "github.com/biogo/store")) + (list + #:skip-build? #t + #:import-path "github.com/biogo/store")) (propagated-inputs (list go-gopkg-in-check-v1 go-github-com-kr-pretty)) @@ -24365,42 +24366,6 @@ functions.") useful for bioinformatic analysis.") (license license:bsd-3))) -(define-public go-github-com-biogo-store-kdtree - (package - (inherit go-github-com-biogo-store-interval) - (name "go-github-com-biogo-store-kdtree") - (arguments - '(#:import-path "github.com/biogo/store/kdtree" - #:unpack-path "github.com/biogo/store")) - (propagated-inputs - (list go-gopkg-in-check-v1 - go-github-com-kr-pretty)) - (synopsis "kdtree store type for biogo"))) - -(define-public go-github-com-biogo-store-llrb - (package - (inherit go-github-com-biogo-store-interval) - (name "go-github-com-biogo-store-llrb") - (arguments - '(#:import-path "github.com/biogo/store/llrb" - #:unpack-path "github.com/biogo/store")) - (propagated-inputs - (list go-gopkg-in-check-v1 - go-github-com-kr-pretty)) - (synopsis "LLRB store for biogo"))) - -(define-public go-github-com-biogo-store-step - (package - (inherit go-github-com-biogo-store-interval) - (name "go-github-com-biogo-store-step") - (arguments - '(#:import-path "github.com/biogo/store/step" - #:unpack-path "github.com/biogo/store")) - (propagated-inputs - (list go-gopkg-in-check-v1 - go-github-com-kr-pretty)) - (synopsis "Step store for biogo"))) - (define-public go-github-com-biogo-hts (package (name "go-github-com-biogo-hts") @@ -24451,10 +24416,7 @@ CSIv1, CSIv2 and FAI files.") '(#:import-path "github.com/biogo/biogo")) (propagated-inputs (list go-gopkg-in-check-v1 - go-github-com-biogo-store-interval - go-github-com-biogo-store-kdtree - go-github-com-biogo-store-llrb - go-github-com-biogo-store-step + go-github-com-biogo-store go-github-com-biogo-hts go-github-com-biogo-graph)) (home-page "https://github.com/biogo/biogo") From ce13a0d19ab15963cf675e9d01801b12f95e1fb3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 21:23:22 +0000 Subject: [PATCH 825/862] gnu: Add go-gopkg-in-go-jose-go-jose-v2. * gnu/packages/golang-web.scm (go-gopkg-in-go-jose-go-jose-v2): New variable. Change-Id: I939a96358bf992608869362040c60cef7ecc657a --- gnu/packages/golang-web.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 5e08bc39412..00ef877d4c8 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8954,6 +8954,28 @@ metrics SDK.") (description "This package is a Go Implementation of WireGuard.") (license license:expat))) +(define-public go-gopkg-in-go-jose-go-jose-v2 + (package + (inherit go-github-com-go-jose-go-jose-v3) + (name "go-gopkg-in-go-jose-go-jose-v2") + (version "2.6.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-jose/go-jose") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0frg4g9gyqdgf7h0xai9771a47ndb0zqbw0rp5yk0dswsq1vk4kq")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-go-jose-go-jose-v3) + ((#:import-path _) "gopkg.in/go-jose/go-jose.v2"))) + (propagated-inputs + (list go-golang-org-x-crypto + go-gopkg-in-alecthomas-kingpin-v2)))) + ;; This to satisfy alternative import path. (define-public go-gopkg-in-jcmturner-rpc-v1 (package From 99f8d7f290f59b2cca912911147f043373b3f61b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 21:23:23 +0000 Subject: [PATCH 826/862] gnu: go-github-com-coreos-go-oidc: Update to 2.3.0. * gnu/packages/golang-web.scm (go-github-com-coreos-go-oidc): Update to 2.3.0. [propagated-inputs]: Remove go-gopkg-in-square-go-jose-v2; add go-gopkg-in-go-jose-go-jose-v2. [native-inputs]: Add go-golang-org-x-net. Change-Id: I6d08c792503d7b3ae376025419dcfef585525a73 --- gnu/packages/golang-web.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 00ef877d4c8..773126231b2 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1558,7 +1558,7 @@ Any}.") (define-public go-github-com-coreos-go-oidc (package (name "go-github-com-coreos-go-oidc") - (version "2.2.1") + (version "2.3.0") (source (origin (method git-fetch) @@ -1567,14 +1567,16 @@ Any}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "11m6slbpi33ynffml7812piq4anhjlf1qszjlsf26f5y7x3qh8n5")))) + (base32 "180wnxiim622v17xcnrjrg9g07mg4xizmlxxyrl9p42is0abi9c8")))) (build-system go-build-system) (arguments (list #:import-path "github.com/coreos/go-oidc")) + (native-inputs + (list go-golang-org-x-net)) (propagated-inputs (list go-github-com-pquerna-cachecontrol go-golang-org-x-oauth2 - go-gopkg-in-square-go-jose-v2)) + go-gopkg-in-go-jose-go-jose-v2)) (home-page "https://github.com/coreos/go-oidc") (synopsis "OpenID Connect support for Go") (description From 944ce009eba16fd47ea00af5f239adfaa0d86351 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 21:23:21 +0000 Subject: [PATCH 827/862] gnu: Remove go-gopkg-in-square-go-jose-v2. * gnu/packages/golang-web.scm (go-gopkg-in-square-go-jose-v2): Delete variable. Change-Id: I840a831342108dcdc3af60d13fcf7d50f27c7ba4 --- gnu/packages/golang-web.scm | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 773126231b2..4ac18ed0196 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -8999,42 +8999,6 @@ metrics SDK.") ((#:tests? _ #t) #f) ((#:import-path _) "gopkg.in/jcmturner/rpc.v2"))))) -;; XXX: This repository has been archived by the owner on Feb 27, 2023. It is -;; now read-only and it is DEPRECATED. -(define-public go-gopkg-in-square-go-jose-v2 - (package - (name "go-gopkg-in-square-go-jose-v2") - (version "2.6.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/square/go-jose") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1b1nhqxfmhzwrfk7pkvp2w3z3d0pf5ir00vizmy2d4xdbnldn70r")))) - (build-system go-build-system) - (arguments - (list - ;; XXX: We strongly encourage users of square/go-jose to migrate to v3 - ;; of go-jose/go-jose. No support, security fixes or updates will be - ;; delivered to the v1/v2 branches in the Square repository. - #:tests? #f - #:import-path "gopkg.in/square/go-jose.v2")) - (propagated-inputs - (list go-golang-org-x-crypto)) - (native-inputs - (list go-github-com-google-go-cmp - go-github-com-stretchr-testify)) - (home-page "https://gopkg.in/square/go-jose.v2") - (synopsis "Implementation of JOSE standards (JWE, JWS, JWT) in Go") - (description - "This package aims to provide an implementation of the Javascript Object -Signing and Encryption set of standards. This includes support for JSON Web -Encryption, JSON Web Signature, and JSON Web Token standards.") - (license license:asl2.0))) - (define-public go-k8s-io-kube-openapi (package (name "go-k8s-io-kube-openapi") From 789c1cf9fce5d0511664d74d51de9c34679aa640 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 21:44:14 +0000 Subject: [PATCH 828/862] gnu: go-github-com-couchbase-gomemcached: Update to 0.3.2. * gnu/packages/databases.scm (go-github-com-couchbase-gomemcached): Update to 0.3.2. [arguments] : Skip one tests. : Limit to project root, some submodule requires BSL licensed dependencies. [propagated-inputs]: Add go-github-com-pkg-errors. Change-Id: I661df8055f678f9f05add9785ab827ae11bd1b9e --- gnu/packages/databases.scm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 5ac1489d13b..28cf2a7561e 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -716,7 +716,7 @@ replacement for the @code{python-memcached} library.") (define-public go-github-com-couchbase-gomemcached (package (name "go-github-com-couchbase-gomemcached") - (version "0.1.4") + (version "0.3.2") (source (origin (method git-fetch) @@ -725,11 +725,17 @@ replacement for the @code{python-memcached} library.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "10w74gc05x5naspls39sv2r92krrg31mk266w3lyqqwc0s3fxysl")))) + (base32 "132zjbr7d586gb1wqlnhg3vgyshq629z1wsskrpbmyypjfkq620c")))) (build-system go-build-system) - (arguments '(#:import-path "github.com/couchbase/gomemcached")) + (arguments + (list + #:import-path "github.com/couchbase/gomemcached" + #:test-flags #~(list "-skip" "TestEncodingResponse") + #:test-subdirs #~(list "."))) (native-inputs (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-pkg-errors)) (home-page "https://github.com/couchbase/gomemcached") (synopsis "Memcached binary protocol toolkit for go") (description From 4919b8aefb00909a4d56b04137800421b91a14a6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 21:47:38 +0000 Subject: [PATCH 829/862] gnu: go-github-com-couchbase-gomemcached: Move to golang-xyz. * gnu/packages/databases.scm (go-github-com-couchbase-gomemcached): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I62b77bffa9f6e673ebcedc58599c7e2a0e827f4c --- gnu/packages/databases.scm | 29 ----------------------------- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 28cf2a7561e..be6571ed2d3 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -713,35 +713,6 @@ around TangentOrg’s libmemcached library, and can be used as a drop-in replacement for the @code{python-memcached} library.") (license license:bsd-3))) -(define-public go-github-com-couchbase-gomemcached - (package - (name "go-github-com-couchbase-gomemcached") - (version "0.3.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/couchbase/gomemcached") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "132zjbr7d586gb1wqlnhg3vgyshq629z1wsskrpbmyypjfkq620c")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/couchbase/gomemcached" - #:test-flags #~(list "-skip" "TestEncodingResponse") - #:test-subdirs #~(list "."))) - (native-inputs - (list go-github-com-stretchr-testify)) - (propagated-inputs - (list go-github-com-pkg-errors)) - (home-page "https://github.com/couchbase/gomemcached") - (synopsis "Memcached binary protocol toolkit for go") - (description - "This package provides memcache client and server functionality.") - (license license:expat))) - (define-public litecli (package (name "litecli") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e3631de30b2..f75730dceb2 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3425,6 +3425,35 @@ submodules: @end itemize") (license license:asl2.0))) +(define-public go-github-com-couchbase-gomemcached + (package + (name "go-github-com-couchbase-gomemcached") + (version "0.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/couchbase/gomemcached") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "132zjbr7d586gb1wqlnhg3vgyshq629z1wsskrpbmyypjfkq620c")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/couchbase/gomemcached" + #:test-flags #~(list "-skip" "TestEncodingResponse") + #:test-subdirs #~(list "."))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-pkg-errors)) + (home-page "https://github.com/couchbase/gomemcached") + (synopsis "Memcached binary protocol toolkit for go") + (description + "This package provides memcache client and server functionality.") + (license license:expat))) + (define-public go-github-com-creack-pty (package (name "go-github-com-creack-pty") From 6d623531870f8ee75c46c0239dcb6f869ef3bff7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 21:52:52 +0000 Subject: [PATCH 830/862] gnu: go-github-com-d4l3k-messagediff: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-d4l3k-messagediff): [propagated-inputs]: Add go-golang-org-x-net. Change-Id: I795ec6178c18c1e32a659c3ca80029a43e1da75e --- gnu/packages/golang-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f75730dceb2..3bc52b1b15d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3632,6 +3632,8 @@ more tangible.") (arguments (list #:import-path "github.com/d4l3k/messagediff")) + (propagated-inputs + (list go-golang-org-x-net)) (home-page "https://github.com/d4l3k/messagediff") (synopsis "Diff arbitrary Go structs") (description From ae32c2a201736ca4b967d1c502596f392d19b51f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 22 Jan 2025 22:02:04 +0000 Subject: [PATCH 831/862] gnu: go-github-com-google-cadvisor: Fix build. * gnu/packages/golang.scm (go-github-com-google-cadvisor) [arguments] : Limit to project's root. Change-Id: I4c1e21bba2fdb35f345d1fb8d4d69b7f2a3ea6c0 --- gnu/packages/golang.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a125cca69c2..e865c1cff5d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1882,7 +1882,8 @@ termination.") "1w8p345z5j0gk3yiq5ah0znd5lfh348p2s624k5r10drz04p3f55")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/google/cadvisor")) + '(#:import-path "github.com/google/cadvisor" + #:test-subdirs '("."))) (home-page "https://github.com/google/cadvisor") (synopsis "Analyze resource usage of running containers") (description "The package provides @code{cadvisor}, which provides From 72ac2b3c02c006c13281f544059bc90ed8964013 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 07:42:05 +0000 Subject: [PATCH 832/862] gnu: go-github-com-mikefarah-yq-v4: Enable all tests. * gnu/packages/web.scm (go-github-com-mikefarah-yq-v4) [arguments] : To treat it as a library. : Remove 'remove-binary, add 'fix-access-to-doc. Change-Id: Ie51ed0b6a0aad03ed15ae27b2a7516ac542de3cf --- gnu/packages/web.scm | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index c915f0e733f..30d8ece70da 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -5528,14 +5528,17 @@ you'd expect.") "0s7c8r6y5jv6wda2v3k47hawfdr9j3rwk717l6byvh5qsbbml0vd")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/mikefarah/yq/v4" - #:test-subdirs #~(list ".") ; XXX: try to enable all tests - #:phases - #~(modify-phases %standard-phases - (add-after 'install 'remove-binary - (lambda _ - (delete-file-recursively - (string-append #$output "/bin"))))))) + (list + #:skip-build? #t + #:import-path "github.com/mikefarah/yq/v4" + #:phases + #~(modify-phases %standard-phases + ;; Tests need this. + (add-after 'unpack 'fix-access-to-doc + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each make-file-writable + (find-files "./pkg/yqlib/doc" "\\.md")))))))) (propagated-inputs (list go-github-com-a8m-envsubst go-github-com-alecthomas-participle-v2 From 4f54185a55745ebd077bb20ef993ad35e687d5c4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 07:54:09 +0000 Subject: [PATCH 833/862] gnu: yq: Simplify. * gnu/packages/web.scm (yq) [arguments]: Inherit from go-github-com-mikefarah-yq-v4. : Adjust it to produce correct binary. : Build it this time. : Everything is tested in library package. : Remove 'rename-binary. Change-Id: Ib917d17e160bd379f95c2439c32905191a1aeab6 --- gnu/packages/web.scm | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 30d8ece70da..bed4765895c 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -5573,15 +5573,12 @@ JSON, XML, properties, CSV and TSV.") (inherit go-github-com-mikefarah-yq-v4) (name "yq") (arguments - (list #:install-source? #f - #:import-path "github.com/mikefarah/yq/v4" - #:test-subdirs #~(list ".") ; XXX: try to enable all tests - #:phases - #~(modify-phases %standard-phases - (add-after 'install 'rename-binary - (lambda _ - (rename-file (string-append #$output "/bin/v4") - (string-append #$output "/bin/yq"))))))) + (substitute-keyword-arguments + (package-arguments go-github-com-mikefarah-yq-v4) + ((#:install-source? _ #t) #f) + ((#:skip-build? _ #t) #f) + ((#:tests? _ #t) #f) + ((#:import-path _) "github.com/mikefarah/yq"))) (propagated-inputs '()) (inputs (package-propagated-inputs go-github-com-mikefarah-yq-v4)))) From 9fbffbf28b9e03b5f5623f9cbfc4aed90824b362 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 09:50:34 +0000 Subject: [PATCH 834/862] gnu: go-github-com-pierrec-lz4: Fix build. * gnu/packages/golang-compression.scm (go-github-com-pierrec-lz4): [source] : Delete "cmd". [native-inputs]: Add go-github-com-frankban-quicktest. Change-Id: I7fda9700bb3c3b3b367be51b64e32f0b690c17ff --- gnu/packages/golang-compression.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index bc62277285b..2628036c313 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -347,11 +347,19 @@ Supported archive formats: (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0vfn01gd3hcpbj6gb4ig3pw6bv0g4j5780awr0fv4kf9id8gjvyy")))) + (base32 "0vfn01gd3hcpbj6gb4ig3pw6bv0g4j5780awr0fv4kf9id8gjvyy")) + (snippet + ;; XXX: fiano uses this package as library only, cmd requires very + ;; additional not packed and dated inputs. Overwrite with + ;; go-github-com-pierrec-lz4-v4 when fiano is updated. + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "cmd"))))) (build-system go-build-system) (arguments (list #:import-path "github.com/pierrec/lz4")) + (native-inputs + (list go-github-com-frankban-quicktest)) (home-page "https://github.com/pierrec/lz4") (synopsis "LZ4 compression in pure Go") (description From f0527feeda9566699e785dd19560b63861d4ecac Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 12:05:34 +0000 Subject: [PATCH 835/862] gnu: Remove go-github-com-quic-go-qtls-go1-20. Has no users in Guix, failed to build, not maintained upstream: "This repository has been archived by the owner on Jan 31, 2024. It is now read-only." * gnu/packages/golang-crypto.scm (go-github-com-quic-go-qtls-go1-20): Delete variable. Change-Id: Ib946c435711d8289b2ecd9a2594b830781dcdc4a --- gnu/packages/golang-crypto.scm | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 2404c9e5801..75c56684d4c 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1716,34 +1716,6 @@ completely backwards compatible with @code{golang.org/x/crypto}, the official package.") (license license:bsd-3))) -(define-public go-github-com-quic-go-qtls-go1-20 - (package - (name "go-github-com-quic-go-qtls-go1-20") - (version "0.4.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/quic-go/qtls-go1-20") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "069rknxpg7d0dmxc4akq2mw7wm5bi0420nshykf2iclvmbcg9ajh")))) - (build-system go-build-system) - (arguments - (list - ;; XXX: panic: qtls.ClientSessionState doesn't match, with Golang 1.20+. - #:go go-1.20 - #:import-path "github.com/quic-go/qtls-go1-20")) - (propagated-inputs - (list go-golang-org-x-crypto - go-golang-org-x-sys)) - (home-page "https://github.com/quic-go/qtls-go1-20") - (synopsis "TLS 1.3 for QUIC") - (description "Go standard library TLS 1.3 implementation, modified for -QUIC. For Go 1.20.") - (license license:expat))) - (define-public go-github-com-refraction-networking-utls (package (name "go-github-com-refraction-networking-utls") From 677f665137c02023a8ff16b9fe14a67d0f78cb12 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 12:09:08 +0000 Subject: [PATCH 836/862] gnu: go-gopkg-in-inconshreveable-log15-v1: Skip one test. * gnu/packages/golang-xyz.scm (go-gopkg-in-inconshreveable-log15-v1) [arguments] : Skip one test. Change-Id: I7f6758d74143f53b263de5d1ff0c9d0e40536b8c --- gnu/packages/golang-xyz.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3bc52b1b15d..c6aa99f65ad 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15954,6 +15954,7 @@ Go.") (build-system go-build-system) (arguments (list + #:test-flags #~(list "-skip" "TestFailoverHandler") #:import-path "gopkg.in/inconshreveable/log15.v1")) (native-inputs (list go-github-com-stretchr-testify)) From aa277b880ceee5fd1813d51238befe364b53adf9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 12:11:06 +0000 Subject: [PATCH 837/862] gnu: go-hclogvet: Fix build. * gnu/packages/golang-xyz.scm (go-hclogvet) [propagated-inputs]: Do not overwrite and just inherit all. Change-Id: I7ada9851d22bff9df7e9e39961a5e694c67de102 --- gnu/packages/golang-xyz.scm | 2 -- 1 file changed, 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c6aa99f65ad..df26f1509d6 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -17062,8 +17062,6 @@ linter that verifies correct usage of Fx.")))) #:import-path "github.com/hashicorp/go-hclog/hclogvet" #:unpack-path "github.com/hashicorp/go-hclog" #:install-source? #f)) - (propagated-inputs - (list go-golang-org-x-tools)) (description "@code{hclogvet} is a @code{go vet} tool for checking that the Trace/Debug/Info/Warn/Error methods on @code{hclog.Logger} are used From acfdad79f1a9b5f2cf6d5191ec1d6a5b01ddbca5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 12:18:25 +0000 Subject: [PATCH 838/862] gnu: go-zgo-at-zstd: Update to 0.0.0-20241125224656-49fafbb06ca9. * gnu/packages/golang-xyz.scm (go-zgo-at-zstd): Update to 0.0.0-20241125224656-49fafbb06ca9. [arguments] : Skip 2 tests. : Use default 'check. Change-Id: I4a78dc3d37477cc36e98d5900502db01515d9a26 --- gnu/packages/golang-xyz.scm | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index df26f1509d6..5de7cb5e3a9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -16951,7 +16951,7 @@ helpful utility functions, and makes testing fairly easy.") (define-public go-zgo-at-zstd (package (name "go-zgo-at-zstd") - (version "0.0.0-20240922235538-9a93b98b4725") + (version "0.0.0-20241125224656-49fafbb06ca9") (source (origin (method git-fetch) @@ -16960,21 +16960,12 @@ helpful utility functions, and makes testing fairly easy.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "06nqiv1pkqnnqa3v6rlf0qfxgfd63vi4vv36acq54dxswxhcasaz")))) + (base32 "1hwvv685vv003j4ry6b791fmz5fz0ff57pq64s9s57zqxaxn8jrv")))) (build-system go-build-system) (arguments (list #:import-path "zgo.at/zstd" - #:phases - #~(modify-phases %standard-phases - ;; XXX: Replace when go-build-system supports nested path. - (replace 'check - (lambda* (#:key import-path tests? #:allow-other-keys) - (when tests? - (with-directory-excursion (string-append "src/" import-path) - (invoke "go" "test" "-v" - "-skip" "TestExists" - "./...")))))))) + #:test-flags #~(list "-skip" "TestExists/4|TestDiffMatch/3"))) (home-page "https://github.com/arp242/zstd") (synopsis "Extensions to Go's standard library") (description From 6e73a0d1c38446183f2e3b46645ef406bb6892f6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 12:40:19 +0000 Subject: [PATCH 839/862] gnu: Remove go-k8s-io-klog. go-k8s-io-klog failed to build and has no users in Guix, overwrite it with v2 variant. * gnu/packages/golang-xyz.scm (go-k8s-io-klog): Overwrite variable with go-k8s-io-klog-v2 variant. Change-Id: I7779ec426ab66b37d2240e38917728346a1aa08f --- gnu/packages/golang-xyz.scm | 53 +++++++++---------------------------- 1 file changed, 13 insertions(+), 40 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5de7cb5e3a9..23af389b25f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -16271,47 +16271,8 @@ go files. This mechanism was first used in Kubernetes code-generator and is split out here for ease of reuse and maintainability.") (license license:asl2.0))) -(define-public go-k8s-io-klog - (package - (name "go-k8s-io-klog") - (version "1.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kubernetes/klog") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1cgannfmldcrcksb2wqdn2b5qabqyxl9r25w9y4qbljw24hhnlvn")))) - (build-system go-build-system) - (arguments - (list - #:import-path "k8s.io/klog" - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key tests? import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (substitute* (find-files "." "\\_test.go$") - ;; Disable test requiring write access to creat test files. - (("TestRollover") "OffTestRollover")))))))) - (propagated-inputs - (list go-github-com-go-logr-logr)) - (home-page "https://github.com/kubernetes/klog") - (synopsis "Leveled execution logs for Go") - (description - "Package klog implements logging analogous to the Google-internal C++ -INFO/ERROR/V setup. It provides functions @code{Info}, @code{Warning}, -@code{Error}, @code{Fatal}, plus formatting variants such as @code{Infof}. It -also provides V-style logging controlled by the @code{-v} and -@code{-vmodule=file=2} flags. It's a is a permanent fork of -@code{https://github.com/golang/glog}.") - (license license:asl2.0))) - (define-public go-k8s-io-klog-v2 (package - (inherit go-k8s-io-klog) (name "go-k8s-io-klog-v2") (version "2.130.1") (source @@ -16341,7 +16302,19 @@ also provides V-style logging controlled by the @code{-v} and (add-after 'unpack 'remove-examples (lambda* (#:key tests? import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) - (delete-file-recursively "examples"))))))))) + (delete-file-recursively "examples"))))))) + (propagated-inputs + (list go-github-com-go-logr-logr)) + (home-page "https://github.com/kubernetes/klog") + (synopsis "Leveled execution logs for Go") + (description + "Package klog implements logging analogous to the Google-internal C++ +INFO/ERROR/V setup. It provides functions @code{Info}, @code{Warning}, +@code{Error}, @code{Fatal}, plus formatting variants such as @code{Infof}. It +also provides V-style logging controlled by the @code{-v} and +@code{-vmodule=file=2} flags. It's a is a permanent fork of +@code{https://github.com/golang/glog}.") + (license license:asl2.0))) (define-public go-k8s-io-utils (package From 7b287dd8adddb1e5792a8c1d8b79d74d0d8474e5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 12:58:43 +0000 Subject: [PATCH 840/862] gnu: go-github-com-cention-sany-utf7: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-cention-sany-utf7): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Icc752dc109f6a0b2e43e8b5846ee9f288d174402 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 23af389b25f..1ff5f56f8d3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2330,6 +2330,30 @@ tools using Go.") variables into structs.") (license license:expat))) +(define-public go-github-com-cention-sany-utf7 + (package + (name "go-github-com-cention-sany-utf7") + (version "0.0.0-20170124080048-26cad61bd60a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cention-sany/utf7") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jy15ryfcln1iwchrksqyrnyfy41gisymm4f9sr1d73ja029bznm")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/cention-sany/utf7")) + (propagated-inputs (list go-golang-org-x-text)) + (home-page "https://github.com/cention-sany/utf7") + (synopsis "UTF-7 for Go") + (description + "The utf7 package provides support for the obsolete UTF-7 text +encoding in Go.") + (license license:bsd-3))) + (define-public go-github-com-cespare-mph (package (name "go-github-com-cespare-mph") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e865c1cff5d..9af0ba32818 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2163,30 +2163,6 @@ be performed.") of building man pages.") (license license:expat))) -(define-public go-github-com-cention-sany-utf7 - (package - (name "go-github-com-cention-sany-utf7") - (version "0.0.0-20170124080048-26cad61bd60a") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/cention-sany/utf7") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1jy15ryfcln1iwchrksqyrnyfy41gisymm4f9sr1d73ja029bznm")))) - (build-system go-build-system) - (arguments - (list #:import-path "github.com/cention-sany/utf7")) - (propagated-inputs (list go-golang-org-x-text)) - (home-page "https://github.com/cention-sany/utf7") - (synopsis "UTF-7 for Go") - (description - "The utf7 package provides support for the obsolete UTF-7 text -encoding in Go.") - (license license:bsd-3))) - (define-public go-golang-org-rainycape-unidecode (let ((commit "cb7f23ec59bec0d61b19c56cd88cee3d0cc1870c") (revision "1")) From 60e1d11154cfa1e10509a8d66ec2191f42025586 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 13:06:01 +0000 Subject: [PATCH 841/862] gnu: go-github-com-golangplus-fmt: Move to golang-check. * gnu/packages/golang.scm (go-github-com-golangplus-fmt): Move from here ... * gnu/packages/golang-check.scm: ... to here. Change-Id: If236c036b3922d82d88fd745bf81c94f9d4d2bc5 --- gnu/packages/golang-check.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 21 --------------------- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 2eb6bc46b46..d0371aa9159 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -666,6 +666,30 @@ programming language}. It integrates well with Go's built-in @code{testing} package, but can be used in other contexts too.") (license license:asl2.0))) +(define-public go-github-com-golangplus-fmt + (package + (name "go-github-com-golangplus-fmt") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golangplus/fmt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07d5kxz0f8ss3v46y0c8jg02sagi0wlaaijhjzzp0r462jyzqii7")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; failing with new Golang compiler. + #:import-path "github.com/golangplus/fmt")) + (home-page "https://github.com/golangplus/fmt") + (synopsis "Additions to Go's standard @code{fmt} package") + (description + "This package provides additions to Go's stdlib @code{fmt}.") + (license license:bsd-3))) + (define-public go-github-com-golangplus-testing (package (name "go-github-com-golangplus-testing") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9af0ba32818..ec788fc062b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1783,27 +1783,6 @@ running with its management port enabled.") your Go binary to be later served from an http.FileSystem.") (license license:asl2.0))) -(define-public go-github-com-golangplus-fmt - (package - (name "go-github-com-golangplus-fmt") - (version "1.0.0") - (home-page "https://github.com/golangplus/fmt") - (source (origin - (method git-fetch) - (uri (git-reference - (url home-page) - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "07d5kxz0f8ss3v46y0c8jg02sagi0wlaaijhjzzp0r462jyzqii7")))) - (build-system go-build-system) - (arguments - '(#:tests? #f ; failing with new Golang compiler. - #:import-path "github.com/golangplus/fmt")) - (synopsis "Additions to Go's standard @code{fmt} package") - (description "This package provides additions to Go's stdlib @code{fmt}.") - (license license:bsd-3))) - (define-public go-gopkg.in-tomb.v2 (let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c") (revision "0")) From 98ddcf5758f2563cb86308209a05a093fbd614af Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 17:20:30 +0000 Subject: [PATCH 842/862] gnu: go-github-com-spf13-cobra: Adjust inputs. * gnu/packages/golang-xyz.scm (go-github-com-spf13-cobra) [propagated-inputs]: Add go-github-com-go-md2man. [native-inputs]: Remove go-github-com-go-md2man. Change-Id: I4f019b309c244729f8eff4810a870f140dc78735 --- gnu/packages/golang-xyz.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1ff5f56f8d3..b6e0d3bbcbe 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13562,10 +13562,10 @@ Use waterutil with it to work with TUN/TAP packets/frames.") #:test-flags #~(list "-skip" "TestGenManSeeAlso") #:import-path "github.com/spf13/cobra")) (native-inputs - (list go-github-com-go-md2man - go-gopkg-in-yaml-v3)) + (list go-gopkg-in-yaml-v3)) (propagated-inputs - (list go-github-com-spf13-pflag)) + (list go-github-com-go-md2man + go-github-com-spf13-pflag)) (home-page "https://github.com/spf13/cobra") (synopsis "Go library for creating CLI applications") (description From 2f9f937784f349e6474a1382e38070a99098ff02 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 17:20:28 +0000 Subject: [PATCH 843/862] gnu: Add go-github-com-smacker-go-tree-sitter. * gnu/packages/golang-xyz.scm (go-github-com-smacker-go-tree-sitter): New variable. Change-Id: I34cdf9e1680ba478ee4cebe198c0db7fd9fa36b2 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index b6e0d3bbcbe..13b3a33c3cd 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13392,6 +13392,31 @@ that object type. Optionally, you can specify an application to use. On GNU/Linux, this is a proxy for the @command{xdg-open} command.") (license license:expat))) +(define-public go-github-com-smacker-go-tree-sitter + (package + (name "go-github-com-smacker-go-tree-sitter") + (version "0.0.0-20240827094217-dd81d9e9be82") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/smacker/go-tree-sitter") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15c7w5dv7zvhvgrf71fp5l74mjkiniqgz2cbv024pmkcwsvv48yj")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/smacker/go-tree-sitter")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/smacker/go-tree-sitter") + (synopsis "Golang bindings for tree-sitter") + (description + "This package provides a bindings for +@url{https://github.com/tree-sitter/tree-sitter, tree-sitter} in Golang.") + (license license:expat))) + (define-public go-github-com-songgao-water (package (name "go-github-com-songgao-water") From 7130b9d425546e32b0c640c0f27625a5d89bca14 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 17:20:29 +0000 Subject: [PATCH 844/862] gnu: Add go-github-com-jdkato-go-tree-sitter-julia. * gnu/packages/golang-xyz.scm (go-github-com-jdkato-go-tree-sitter-julia): New variable. Change-Id: Id6a7a86393e21f642c36c7526e5abda3b5fa8e01 --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 13b3a33c3cd..61cc919002f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -8188,6 +8188,36 @@ and stop units of work, which may receive @code{Close} signals from many clients as work arounds until issues are addressed in the official distribution.") (license license:bsd-3))) +(define-public go-github-com-jdkato-go-tree-sitter-julia + (package + (name "go-github-com-jdkato-go-tree-sitter-julia") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jdkato/go-tree-sitter-julia") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17xr33vvrqsl0v1xzb3ya99anhg5zf04kp6wfk1m3iqi904ff0am")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/jdkato/go-tree-sitter-julia")) + (propagated-inputs + (list go-github-com-smacker-go-tree-sitter)) + (home-page "https://github.com/jdkato/go-tree-sitter-julia") + (synopsis "Julia grammar for tree sitter") + (description + "This package provides a Julia grammar for +@url{https://github.com/tree-sitter/tree-sitter, tree-sitter} bindings in +Golang.") + ;; It's a component of Vale, written by the same author and does not + ;; provide license. + (license license:unlicense))) + (define-public go-github-com-jdkato-twine (package (name "go-github-com-jdkato-twine") From 0e4bd4d97ec45fa52a543ad6f50b2114677cd313 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 17:20:29 +0000 Subject: [PATCH 845/862] gnu: Add go-github-com-clbanning-mxj-v2. * gnu/packages/golang-xyz.scm (go-github-com-clbanning-mxj-v2): New variable. Change-Id: Ib1332703a10683ddffe2515c31abddded0a28d5e --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 61cc919002f..5fc38079bee 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2965,6 +2965,35 @@ levels that works by wrapping the standard @code{log} library.") dependencies and is intended to be used in long running processes.") (license license:expat))) +(define-public go-github-com-clbanning-mxj-v2 + (package + (name "go-github-com-clbanning-mxj-v2") + (version "2.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/clbanning/mxj") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kdh9cdq0x9jk5vzn2k489w7k88rdwf1b87yzhr7jbkchh2nh608")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; XXX: find out why + #:import-path "github.com/clbanning/mxj/v2" + #:test-subdirs #~(list "."))) + (native-inputs + (list go-github-com-google-go-cmp)) + (home-page "https://github.com/clbanning/mxj") + (synopsis "Decode / encode XML in Golang") + (description + "This package implements a functionality to marshal/unmarshal XML to/from +@code{map[string]interface{}} values (and JSON); extract/modify values from +maps by key or key-path, including wildcards.") + (license license:expat))) + (define-public go-github-com-cli-safeexec (package (name "go-github-com-cli-safeexec") From 6d7bce39d5ae5e7179eea13c69a75a6ad1da0fd7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 17:20:27 +0000 Subject: [PATCH 846/862] gnu: Add go-github-com-tomwright-dasel-v2. * gnu/packages/golang-xyz.scm (go-github-com-tomwright-dasel-v2): New variable. Change-Id: I92e2cc4d4e04663d425cc0719c6f9faf84bfe905 --- gnu/packages/golang-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5fc38079bee..73244a8de95 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14440,6 +14440,41 @@ supported by the time package @end itemize") (license license:expat))) +(define-public go-github-com-tomwright-dasel-v2 + (package + (name "go-github-com-tomwright-dasel-v2") + (version "2.8.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/TomWright/dasel") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1qh32gq0x0lc4j4w326skxw4nblf2v71ychd8dk6h3ra5d22bbmy")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:embed-files #~(list ".*\\.xml") + #:import-path "github.com/tomwright/dasel/v2")) + (propagated-inputs + (list go-github-com-alecthomas-chroma-v2 + go-github-com-clbanning-mxj-v2 + go-github-com-pelletier-go-toml-v2 + go-github-com-spf13-cobra + go-golang-org-x-net + go-golang-org-x-text + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/tomwright/dasel") + (synopsis "Tool to work with JSON, TOML, YAML, XML and CSV files") + (description + "Dasel (short for data-selector) allows you to query and modify data +structures using selector strings. It's similar to @code{jq}/@code{yq}, but +supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies.") + (license license:expat))) + (define-public go-github-com-twpayne-go-shell (package (name "go-github-com-twpayne-go-shell") From 1977f576887985f3974bca573f20a58a54d1a6b5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 23 Jan 2025 17:20:50 +0000 Subject: [PATCH 847/862] gnu: vale: Update to 3.9.4. * gnu/packages/textutils.scm: Add (gnu packages golang). (vale): Update to 3.9.4. [source] : Remove it. [arguments] : Use go-1.23. : Skip just 3 tests. : Test the whole code base by starting from import-path. [native-inputs]: Remove go-github-com-karrick-godirwalk and go-github-com-mholt-archiver-v3; add go-github-com-jdkato-go-tree-sitter-julia, go-github-com-pelletier-go-toml-v2, go-github-com-smacker-go-tree-sitter, go-github-com-stretchr-testify, and go-github-com-tomwright-dasel-v2. Change-Id: Ic13b52caa92f6ba2fcd2f34f74b5a599773c5254 --- gnu/packages/textutils.scm | 44 ++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index f60a6412304..229e69a2b31 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -69,6 +69,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) + #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-compression) @@ -1495,9 +1496,7 @@ of a Unix terminal to HTML code.") (define-public vale (package (name "vale") - ;; Newer versions requires which is - ;; quite a large project to pack. - (version "3.4.2") + (version "3.9.4") (source (origin (method git-fetch) @@ -1505,17 +1504,12 @@ of a Unix terminal to HTML code.") (url "https://github.com/errata-ai/vale") (commit (string-append "v" version)))) (sha256 - (base32 "15f8ggh7hpfmfpszl9qkdfz19kds6gg6x5dgcqy0v6jrcsdbgpgp")) - (file-name (git-file-name name version)) - (modules '((guix build utils))) - (snippet - #~(begin - ;; Module name has been changed upstream. - (substitute* (find-files "." "\\.go$") - (("github.com/antonmedv/expr") "github.com/expr-lang/expr")))))) + (base32 "009gyrn2mi7bg10v6mqrr6c6ii5l2vbhs7mvh7g4xxgqhaqzpbhp")) + (file-name (git-file-name name version)))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:embed-files #~(list ".*\\.gob") #:import-path "github.com/errata-ai/vale/cmd/vale" @@ -1525,24 +1519,20 @@ of a Unix terminal to HTML code.") ;; dial tcp: lookup raw.githubusercontent.com on [::1]:53: read udp ;; [::1]:52621->[::1]:53: read: connection refused. #:test-flags - #~(list "-skip" - (string-join - (list "TestLibrary" - "TestLocalComplete" - "TestLocalDir" - "TestLocalOnlyStyles" - "TestLocalZip" - "TestNoPkgFound" - "TestV3Pkg") - "|")) + #~(list "-skip" (string-join + (list "TestLibrary" + "TestNoPkgFound" + "TestSymlinkFixture") + "|")) + #:test-subdirs + #~(list "../../...") ; test whole libary, starting from import-path #:phases #~(modify-phases %standard-phases (add-before 'check 'pre-check (lambda _ (setenv "HOME" "/tmp")))))) (native-inputs - (list go-github-com-masterminds-sprig-v3 - go-github-com-adrg-strutil + (list go-github-com-adrg-strutil go-github-com-adrg-xdg go-github-com-bmatcuk-doublestar-v4 go-github-com-d5-tengo-v2 @@ -1550,16 +1540,20 @@ of a Unix terminal to HTML code.") go-github-com-errata-ai-regexp2 go-github-com-expr-lang-expr go-github-com-gobwas-glob + go-github-com-jdkato-go-tree-sitter-julia go-github-com-jdkato-twine - go-github-com-karrick-godirwalk - go-github-com-mholt-archiver-v3 + go-github-com-masterminds-sprig-v3 go-github-com-mitchellh-mapstructure go-github-com-niklasfasching-go-org go-github-com-olekukonko-tablewriter go-github-com-otiai10-copy + go-github-com-pelletier-go-toml-v2 go-github-com-pterm-pterm go-github-com-remeh-sizedwaitgroup + go-github-com-smacker-go-tree-sitter go-github-com-spf13-pflag + go-github-com-stretchr-testify + go-github-com-tomwright-dasel-v2 go-github-com-yuin-goldmark go-golang-org-x-exp go-golang-org-x-net From 4106e5fd9a55fc0f6c188db5b629110780bb02d8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 08:28:48 +0000 Subject: [PATCH 848/862] gnu: go-github-com-pelletier-go-toml-v2: Update to 2.2.3. * gnu/packages/golang-xyz.scm (go-github-com-pelletier-go-toml-v2): Update to 2.2.3. Change-Id: Idb5d5f0fe7333b4816698a915ca30b9205fdadcb --- gnu/packages/golang-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 73244a8de95..4a00f785292 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12252,7 +12252,7 @@ programs that use traditional command lines.") (package (inherit go-github-com-pelletier-go-toml) (name "go-github-com-pelletier-go-toml-v2") - (version "2.2.2") + (version "2.2.3") (source (origin (method git-fetch) @@ -12261,7 +12261,7 @@ programs that use traditional command lines.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0gimgz33yxmvj0nmy56yy7zq4ay8j55ir8pfzmgwga7npgpzspk7")))) + (base32 "0hqxj34d49snvc2m6lxfjxks3z9sic9xbb6w49ajrqbzy953spzs")))) (build-system go-build-system) (arguments (list #:import-path "github.com/pelletier/go-toml/v2")) From a0792c40b272dbc280f42bc2ce17a74b6b9727a8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 08:28:16 +0000 Subject: [PATCH 849/862] gnu: Add go-github-com-xaionaro-go-unsafetools. * gnu/packages/golang-xyz.scm (go-github-com-xaionaro-go-unsafetools): New variable. Change-Id: I5ab272d183dad9098686db4f2bd234e3c1e44e39 --- gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4a00f785292..0fa1b5767a7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15283,6 +15283,32 @@ edges and self-loops are not permitted. @end itemize") (license license:asl2.0))) +(define-public go-github-com-xaionaro-go-unsafetools + (package + (name "go-github-com-xaionaro-go-unsafetools") + (version "0.0.0-20241024014258-a46e1ce3763e") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xaionaro-go/unsafetools") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "153qlgq5sjg3gsw5v6an0mck8v5pmxf5mnys41ykp97yqp53mgcp")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xaionaro-go/unsafetools")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/xaionaro-go/unsafetools") + (synopsis "Access to private/unexported fields of a structure") + (description + "This package provides function @code{FieldByName} to access to any field +(including private/unexported) of a structure.") + (license license:cc0))) + (define-public go-github-com-xdg-go-stringprep (package (name "go-github-com-xdg-go-stringprep") From 282775fb67fed9ec225ac51e247e536d724c2d6c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 08:28:17 +0000 Subject: [PATCH 850/862] gnu: Add go-github-com-fatih-structtag. * gnu/packages/golang-xyz.scm (go-github-com-fatih-structtag): New variable. Change-Id: I83942f580d5fcc94e2b098dc68a8c5d0f2bdcc23 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 0fa1b5767a7..2806fc91c7d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5114,6 +5114,30 @@ defined output to the standard output.") with Go structs.") (license license:expat))) +(define-public go-github-com-fatih-structtag + (package + (name "go-github-com-fatih-structtag") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/fatih/structtag") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09a9pycvkf384v5f47ff4q33bjbzpx6kbkn23za1gcwc96466sk3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/fatih/structtag")) + (home-page "https://github.com/fatih/structtag") + (synopsis "Parse and modify Go struct field tags") + (description + "This package provides an easy way of parsing and manipulating struct tag fields. +Please vendor the library as it might change in future versions.") + (license license:bsd-3))) + ;; XXX: This repository has been archived by the owner on Nov 9, 2017. It is ;; now read-only. (define-public go-github-com-flynn-archive-go-shlex From cfd8425b8526981ba7f2fa8ccc2401d725352f9a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 08:28:17 +0000 Subject: [PATCH 851/862] gnu: Add go-github-com-fatih-camelcase. * gnu/packages/golang-xyz.scm (go-github-com-fatih-camelcase): New variable. Change-Id: Ib1d79b40869ffdfa1eadd02b20c751565eb4d7da --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 2806fc91c7d..4980db6e695 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5064,6 +5064,30 @@ in a consistent state and never represent an in-progress write.") Alphanum Algorithm} developed by Dave Koelle in Go.") (license license:bsd-3))) +(define-public go-github-com-fatih-camelcase + (package + (name "go-github-com-fatih-camelcase") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/fatih/camelcase") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0z7rw6f5j97dkzqya257dqlxf3cm8zl508081gmnr4bsjhkwpz2l")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/fatih/camelcase")) + (home-page "https://github.com/fatih/camelcase") + (synopsis "Split a camelcase word into a slice of words in Go") + (description + "Package camelcase is a micro package to split the words of a camelcase type +string into a slice of words.") + (license license:expat))) + (define-public go-github-com-fatih-color (package (name "go-github-com-fatih-color") From f4043c08fd8a2b29778937762728e2ffcdf970ed Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 08:29:03 +0000 Subject: [PATCH 852/862] gnu: Add go-github-com-xaionaro-go-bytesextra. * gnu/packages/golang-xyz.scm (go-github-com-xaionaro-go-bytesextra): New variable. Change-Id: Ic14dcee9fd2bca052e120abf9acf86b80c910005 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4980db6e695..9e0b3919566 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15357,6 +15357,31 @@ edges and self-loops are not permitted. (including private/unexported) of a structure.") (license license:cc0))) +(define-public go-github-com-xaionaro-go-bytesextra + (package + (name "go-github-com-xaionaro-go-bytesextra") + (version "0.0.0-20220103144954-846e454ddea9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xaionaro-go/bytesextra") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zggis1mdrfnashngg5hc6a6r6glcxzgj87ali7qdi02bnrl8s9i")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xaionaro-go/bytesextra")) + (native-inputs (list go-github-com-stretchr-testify)) + (home-page "https://github.com/xaionaro-go/bytesextra") + (synopsis "Golang library for bytes I/O") + (description + "This packae provides @code{io.ReadWriteSeeker} implementation for +@code{[]byte}.") + (license license:cc0))) + (define-public go-github-com-xdg-go-stringprep (package (name "go-github-com-xdg-go-stringprep") From 93f3bf0a16d72dbb51027c5519079e8c400c83a4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 08:29:09 +0000 Subject: [PATCH 853/862] gnu: Add go-github-com-xaionaro-gosrc. * gnu/packages/golang-xyz.scm (go-github-com-xaionaro-gosrc): New variable. Change-Id: Ie7726ed53c7c4d98aa58e2afbe600073b8a9c4b1 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9e0b3919566..cb17c107562 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15382,6 +15382,38 @@ edges and self-loops are not permitted. @code{[]byte}.") (license license:cc0))) +(define-public go-github-com-xaionaro-gosrc + (let ((commit "3fdf8476a735bd7ddd90579862e2e548787b17b6") + (revision "0")) + (package + (name "go-github-com-xaionaro-gosrc") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xaionaro-go/gosrc") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j0y0r0nj39537x7yk9yfc3k6dqbw14b65ykjnbmsxkhpjjpxf3v")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/xaionaro-go/gosrc")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-xaionaro-go-unsafetools + go-github-com-fatih-structtag)) + (home-page "https://github.com/xaionaro-go/gosrc") + (synopsis "Parse Go packages to handy structures") + (description + "This package just simplifies working with @code{go/*} packages to parse +a source code. Initially the package was written to simplify code +generation.") + (license license:cc0)))) + (define-public go-github-com-xdg-go-stringprep (package (name "go-github-com-xdg-go-stringprep") From 4e7960bfbe4b9a9fa7d4a6273cf3197f72a0a3fa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 08:28:48 +0000 Subject: [PATCH 854/862] gnu: fiano: Build more commands. * gnu/packages/admin.scm (fiano): Build more commands and enable more tests. [arguments] : Remove as redundunt. [phases] {build}: Include "fittool". {check}: Include "pkg/intel" and "pkg/amd". {install}: Include "fittool". [inputs]: Add go-github-com-fatih-camelcase, go-github-com-stretchr-testify, go-github-com-tjfoc-gmsm, go-github-com-klauspost-compress, go-github-com-jedib0t-go-pretty-v6< go-github-com-xaionaro-go-bytesextra, and go-github-com-xaionaro-gosrc. Change-Id: I510e00f8f73e29b652020596b5eeae1591966c38 --- gnu/packages/admin.scm | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 5b0473dafd9..5f3092f9c80 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -150,6 +150,7 @@ #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-compression) + #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages groff) @@ -5512,7 +5513,6 @@ disk utilization, priority, username, state, and exit code.") (list #:install-source? #f #:import-path "github.com/linuxboot/fiano" - #:unpack-path "github.com/linuxboot/fiano" #:phases #~(modify-phases %standard-phases ;; XXX: Replace this part when it's implemented in go-build-system. @@ -5524,10 +5524,7 @@ disk utilization, priority, username, state, and exit code.") (string-append import-path "/cmds/" cmd))) (list "cbfs" "create-ffs" - ;; TODO: Not packed yet in guix, long jorney: - ;; - github.com/tjfoc/gmsm - ;; - ;; "fittool" + "fittool" "fmap" "fspinfo" "glzma" @@ -5542,20 +5539,14 @@ disk utilization, priority, username, state, and exit code.") (invoke "go" "test" "-v" (string-append import-path dir "/..."))) (list "/pkg/bytes" - ;; TODO: Not packed yet in Guix, long jorney: - ;; - github.com/jedib0t - ;; - ;; "/pkg/amd" + "/pkg/amd" "/pkg/cbfs" "/pkg/compression" "/pkg/fmap" "/pkg/fsp" "/pkg/guid" "/pkg/guid2english" - ;; TODO: Not packed yet in Guix, long jorney: - ;; - github.com/tjfoc/gmsm - ;; - ;; "/pkg/intel" + "/pkg/intel" "/pkg/knownguids" "/pkg/log" "/pkg/uefi" @@ -5582,7 +5573,7 @@ disk utilization, priority, username, state, and exit code.") (install-file cmd bindir)) (list "cbfs" "create-ffs" - ;; "fittool" + "fittool" "fmap" "fspinfo" "glzma" @@ -5591,11 +5582,18 @@ disk utilization, priority, username, state, and exit code.") "utk")))))))) (inputs (list go-github-com-dustin-go-humanize + go-github-com-fatih-camelcase go-github-com-hashicorp-go-multierror + go-github-com-jedib0t-go-pretty-v6 go-github-com-jessevdk-go-flags + go-github-com-klauspost-compress go-github-com-pierrec-lz4 go-github-com-spf13-pflag + go-github-com-stretchr-testify + go-github-com-tjfoc-gmsm go-github-com-ulikunitz-xz + go-github-com-xaionaro-go-bytesextra + go-github-com-xaionaro-gosrc go-golang-org-x-text)) (home-page "https://github.com/linuxboot/fiano") (synopsis "UEFI image editor") From ade6e5c49ba0ea6c7b05ae7c81654e10961610c8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 12:30:12 +0000 Subject: [PATCH 855/862] gnu: go-github-com-pelletier-go-toml-v2: Remove benchmarks. It's an attempt to fix build in CI as seen in ; however the check phase passed successfully on 16 threads machine even with benchmarks enabled. * gnu/packages/golang-xyz.scm (go-github-com-pelletier-go-toml-v2) [arguments] : Skip one test related to benchmarks, run short test just once. : Add 'remove-benchmarks. Change-Id: Id2aac003ba5c9705173eea132185d2fb51e701f7 --- gnu/packages/golang-xyz.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cb17c107562..4cd014e627d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12312,7 +12312,18 @@ programs that use traditional command lines.") (base32 "0hqxj34d49snvc2m6lxfjxks3z9sic9xbb6w49ajrqbzy953spzs")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/pelletier/go-toml/v2")) + (list + #:import-path "github.com/pelletier/go-toml/v2" + #:test-flags + #~(list "-short" + "-count" "1" + "-skip" "FuzzUnmarshal") ; for benchmark + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-benchmarks + (lambda* (#:key import-path #:allow-other-keys) + (delete-file-recursively + (string-append "src/" import-path "/benchmark"))))))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs '()))) From 193aac9a4d8f3f48b93c9e9f4abd11ff2ed38162 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 12:30:10 +0000 Subject: [PATCH 856/862] gnu: Add go-toml. * gnu/packages/golang-xyz.scm (go-toml): New variable. Change-Id: I7b766fa7b5e7ff33d3bbe84be4a65ec75e2d6303 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4cd014e627d..d6456a814c1 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -17529,6 +17529,38 @@ tools.")))) "\nThis package provides an command line interface (CLI) tool.")))) +(define-public go-toml + (package + (inherit go-github-com-pelletier-go-toml-v2) + (name "go-toml") + (arguments + (list + #:tests? #f ; tested in the library + #:install-source? #f + #:unpack-path "github.com/pelletier/go-toml" + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda arguments + (for-each + (lambda (cmd) + (apply (assoc-ref %standard-phases 'build) + `(,@arguments #:import-path ,cmd))) + (list "github.com/pelletier/go-toml/cmd/tomljson" + "github.com/pelletier/go-toml/cmd/tomll")))) + (replace 'install + (lambda arguments + (for-each + (lambda (cmd) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,cmd))) + (list "github.com/pelletier/go-toml/cmd/tomljson" + "github.com/pelletier/go-toml/cmd/tomll"))))))) + (description + (string-append (package-description go-github-com-pelletier-go-toml-v2) + "\nThis package provides command line interface (CLI) +tools.")))) + (define-public go-tomlv (package (inherit go-github-com-burntsushi-toml) From 1724e8635d09f987a96a643974ba9d9bd597639e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 12:37:31 +0000 Subject: [PATCH 857/862] gnu: go-github-com-schachmat-ingo: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-schachmat-ingo): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: I36ef07e80b18b7ca6020ecc749061fc9ac7afdc8 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d6456a814c1..fee2f772259 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13194,6 +13194,30 @@ specified in DCE 1.1).") "Golang utilities to make your life easier with zero allocations.") (license license:asl2.0))) +(define-public go-github-com-schachmat-ingo + (package + (name "go-github-com-schachmat-ingo") + (version "0.0.0-20170403011506-a4bdc0729a3f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/schachmat/ingo") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gw0kddy7jh3467imsqni86cf9yq7k6vpfc0ywkbwj0zsjsdgd49")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/schachmat/ingo")) + (home-page "https://github.com/schachmat/ingo") + (synopsis "Go library to persist flags in a INI-like configuration file") + (description + "Ingo is a Go library helping you to persist flags in a INI-like +configuration file.") + (license license:isc))) + (define-public go-github-com-schollz-progressbar-v3 (package (name "go-github-com-schollz-progressbar-v3") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ec788fc062b..4e7a0f3c1d3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1236,28 +1236,6 @@ form that bypasses network filtering, allowing the application to work on networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) -(define-public go-github-com-schachmat-ingo - (package - (name "go-github-com-schachmat-ingo") - (version "0.0.0-20170403011506-a4bdc0729a3f") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/schachmat/ingo") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1gw0kddy7jh3467imsqni86cf9yq7k6vpfc0ywkbwj0zsjsdgd49")))) - (build-system go-build-system) - (arguments '(#:import-path "github.com/schachmat/ingo")) - (home-page "https://github.com/schachmat/ingo") - (synopsis "Go library to persist flags in a INI-like configuration file") - (description - "Ingo is a Go library helping you to persist flags in a INI-like -configuration file.") - (license license:isc))) - (define-public go-github-com-mufti1-interconv (let ((commit "d7c72925c6568d60d361757bb9f2d252dcca745c") (revision "0")) From 82362e5c70adaaf748974790555885dd2b2165b7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 13:08:26 +0000 Subject: [PATCH 858/862] gnu: go-github-com-sabhiram-go-gitignore: Update to 0.0.0-20210923224102-525f6e181f06. * gnu/packages/golang.scm (go-github-com-sabhiram-go-gitignore): Update to 0.0.0-20210923224102-525f6e181f06. Change-Id: I65c5101eb854df5c2b5214adfda7fb5fe20bc3e1 --- gnu/packages/golang.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4e7a0f3c1d3..a5c4637d02f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2068,17 +2068,15 @@ be performed.") (license license:unlicense)))) (define-public go-github-com-sabhiram-go-gitignore - (let ((commit "525f6e181f062064d83887ed2530e3b1ba0bc95a") - (revision "1")) (package (name "go-github-com-sabhiram-go-gitignore") - (version (git-version "1.0.2" revision commit)) + (version "0.0.0-20210923224102-525f6e181f06") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/sabhiram/go-gitignore") - (commit commit))) + (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 @@ -2092,7 +2090,7 @@ be performed.") (home-page "https://github.com/sabhiram/go-gitignore") (synopsis "Gitignore parser for Go") (description "A @command{.gitignore} parser for Go.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-go-md2man (package From f9ea212e912e5263cc188df1dec764881adf5437 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 13:10:47 +0000 Subject: [PATCH 859/862] gnu: go-github-com-sabhiram-go-gitignore: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-sabhiram-go-gitignore): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ie137f390626b89b980833091f641700fa4d6f504 --- gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++ gnu/packages/golang.scm | 25 ------------------------- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index fee2f772259..1ce22e8d826 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13088,6 +13088,30 @@ logging.") "This package implements column-formatted output for Golang.") (license license:expat))) +(define-public go-github-com-sabhiram-go-gitignore + (package + (name "go-github-com-sabhiram-go-gitignore") + (version "0.0.0-20210923224102-525f6e181f06") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sabhiram/go-gitignore") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "197giv3snczvbihzvkja5pq53yw5fc516rnjm71hni8gawb8jmh3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/sabhiram/go-gitignore")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/sabhiram/go-gitignore") + (synopsis "Gitignore parser for Go") + (description "A @command{.gitignore} parser for Go.") + (license license:expat))) + (define-public go-github-com-sahilm-fuzzy (package (name "go-github-com-sahilm-fuzzy") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a5c4637d02f..799dca5c912 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2067,31 +2067,6 @@ be performed.") (description "Go wrapper for taglib") (license license:unlicense)))) -(define-public go-github-com-sabhiram-go-gitignore - (package - (name "go-github-com-sabhiram-go-gitignore") - (version "0.0.0-20210923224102-525f6e181f06") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/sabhiram/go-gitignore") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "197giv3snczvbihzvkja5pq53yw5fc516rnjm71hni8gawb8jmh3")))) - (build-system go-build-system) - (arguments - '(#:import-path - "github.com/sabhiram/go-gitignore")) - (native-inputs - (list go-github-com-stretchr-testify)) - (home-page "https://github.com/sabhiram/go-gitignore") - (synopsis "Gitignore parser for Go") - (description "A @command{.gitignore} parser for Go.") - (license license:expat))) - (define-public go-github-com-go-md2man (package (name "go-github-com-go-md2man") From c409e8af135597c0fb538ee78b4d034f29e87a67 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 13:13:33 +0000 Subject: [PATCH 860/862] gnu: go-github-com-surge-glog: Update to 0.0.0-20141108051140-2578deb2b95c. * gnu/packages/golang.scm (go-github-com-surge-glog): Update to 0.0.0-20141108051140-2578deb2b95c. Change-Id: I2817ab87608a339c8593a29633f69f4481f7a7bc --- gnu/packages/golang.scm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 799dca5c912..4e813feb122 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2143,18 +2143,15 @@ characters with their ASCII approximations.") (license license:expat))) (define-public go-github-com-surge-glog - (let ((commit "2578deb2b95c665e6b1ebabf304ce2085c9e1985") - (revision "1")) (package (name "go-github-com-surge-glog") - (version (git-version "0.0.0" revision commit)) + (version "0.0.0-20141108051140-2578deb2b95c") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/surge/glog") - (commit commit))) - (file-name (string-append "go-github-com-surge-glog-" - version "-checkout")) + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) (sha256 (base32 "1bxcwxvsvr2hfpjz9hrrn0wrgykwmrbyk567102k3vafw9xdcwk4")))) @@ -2164,7 +2161,7 @@ characters with their ASCII approximations.") (home-page "https://github.com/surge/glog") (synopsis "Leveled execution logs for Go") (description "Leveled execution logs for Go.") - (license license:asl2.0)))) + (license license:asl2.0))) (define-public go-github-com-twpayne-go-vfsafero (package From 13dd37fd9c438df5d52de2064f011e7b984c6578 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 13:14:58 +0000 Subject: [PATCH 861/862] gnu: go-github-com-surge-glog: Move to golang-xyz. * gnu/packages/golang.scm (go-github-com-surge-glog): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ib9dbb497618ac5c0655faf31bb0b7ea440b57a13 --- gnu/packages/golang-xyz.scm | 22 ++++++++++++++++++++++ gnu/packages/golang.scm | 21 --------------------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 1ce22e8d826..7c92b3459e5 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -13994,6 +13994,28 @@ slices, JSON and other data.") "Go library for loading environment variables from files") (license license:expat))) +(define-public go-github-com-surge-glog + (package + (name "go-github-com-surge-glog") + (version "0.0.0-20141108051140-2578deb2b95c") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/surge/glog") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bxcwxvsvr2hfpjz9hrrn0wrgykwmrbyk567102k3vafw9xdcwk4")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/surge/glog")) + (home-page "https://github.com/surge/glog") + (synopsis "Leveled execution logs for Go") + (description + "Leveled execution logs for Go.") + (license license:asl2.0))) + (define-public go-github-com-surgebase-porter2 (package (name "go-github-com-surgebase-porter2") diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4e813feb122..6a8a2883140 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2142,27 +2142,6 @@ characters with their ASCII approximations.") (description "@code{gg} is a library for rendering 2D graphics in pure Go.") (license license:expat))) -(define-public go-github-com-surge-glog - (package - (name "go-github-com-surge-glog") - (version "0.0.0-20141108051140-2578deb2b95c") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/surge/glog") - (commit (go-version->git-ref version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1bxcwxvsvr2hfpjz9hrrn0wrgykwmrbyk567102k3vafw9xdcwk4")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/surge/glog")) - (home-page "https://github.com/surge/glog") - (synopsis "Leveled execution logs for Go") - (description "Leveled execution logs for Go.") - (license license:asl2.0))) - (define-public go-github-com-twpayne-go-vfsafero (package (name "go-github-com-twpayne-go-vfsafero") From 9e2de68cf8aa5ac590ae3fca4fe90ac1b91bfa8a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 14:20:33 +0000 Subject: [PATCH 862/862] gnu: go-github-com-pelletier-go-toml-v2: Single thread tests. Tests still hang providing no errors and causing the build to fail, see . * gnu/packages/golang-xyz.scm (go-github-com-pelletier-go-toml-v2) [arguments] : Run tests in single thread. Change-Id: Ic14b8467d8b696453240bd92f6f4bfc4daa55dd8 --- gnu/packages/golang-xyz.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7c92b3459e5..60321ace58b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12314,6 +12314,7 @@ programs that use traditional command lines.") (arguments (list #:import-path "github.com/pelletier/go-toml/v2" + #:parallel-tests? #f #:test-flags #~(list "-short" "-count" "1"