diff options
46 files changed, 3393 insertions, 1059 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index dd48ceb415..1fc24daae8 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1534,6 +1534,7 @@ 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-jbenet-go-context-fix-import-error.patch \ %D%/packages/patches/go-github-com-skip2-go-qrcode-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/astronomy.scm b/gnu/packages/astronomy.scm index 745120b85c..5f5c8b8885 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -10014,7 +10014,6 @@ currently).") (build-system go-build-system) (arguments (list - #:go go-1.24 #:install-source? #f #:import-path "codeberg.org/astronexus/uranimator")) (native-inputs diff --git a/gnu/packages/authentication.scm b/gnu/packages/authentication.scm index 3a1b981207..11da1bc758 100644 --- a/gnu/packages/authentication.scm +++ b/gnu/packages/authentication.scm @@ -23,6 +23,7 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages documentation) #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) @@ -126,7 +127,7 @@ PSKC (RFC6030) to manage secret key data.") (define-public oauth2l (package (name "oauth2l") - (version "1.3.2") + (version "1.3.3") (source (origin (method git-fetch) @@ -135,13 +136,14 @@ PSKC (RFC6030) to manage secret key data.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1gm5pbgmz3p0zk5s4gvslp8ixhak3d35pfm7wrw5yk2rcdffr5li")) + (base32 "0qpgbbyjvvdw944d7ppa9ccmcp0gyyc9ik0bhq8agsia40biagwc")) (snippet #~(begin (use-modules (guix build utils)) (delete-file-recursively "vendor"))))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/google/oauth2l" #:test-flags diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index c59c7fa5db..c9d745c0d6 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -101,6 +101,7 @@ #:use-module (gnu packages gawk) #:use-module (gnu packages gcc) #:use-module (gnu packages gd) + #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-compression) @@ -25294,6 +25295,7 @@ functions.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "github.com/biogo/store")) (propagated-inputs diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index b6c767e3bf..004ddef446 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -415,7 +415,7 @@ source code editors and IDEs.") (native-inputs (list go-github-com-docopt-docopt-go go-github-com-go-ini-ini - go-github-com-olekukonko-tablewriter + go-github-com-olekukonko-tablewriter-0.0.5 go-github-com-stretchr-testify go-md2man)) (home-page "https://github.com/mrtazz/checkmake") @@ -1216,7 +1216,7 @@ similar to unit tests.") (define-public gotestsum (package (name "gotestsum") - (version "1.12.0") + (version "1.12.2") (source (origin (method git-fetch) @@ -1225,7 +1225,7 @@ similar to unit tests.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0fx92jh6ay4rk1ljbgp9b2m4fafqwy0a19q7lhdabgb1j8dvgxvs")))) + (base32 "02q251j5kf2874vnvmbfc0ncnwssq459s8mf9f50cymqkpqbx0lp")))) (build-system go-build-system) (arguments (list @@ -1235,6 +1235,9 @@ similar to unit tests.") (string-join (list "TestE2E_IgnoresWarnings" "TestE2E_MaxFails_EndTestRun" + "TestE2E_RerunFails/first_run_has_errors,_abort_rerun" + "TestE2E_RerunFails/reruns_continues_to_fail" + "TestE2E_RerunFails/reruns_until_success" "TestScanTestOutput_TestTimeoutPanicRace/panic-race-2") "|")) ;; Run just unit test, integration tests from "testjson" require: run @@ -3563,7 +3566,7 @@ allowing you to declaratively define \"match\" rules.") ;; Upstream is informed to provide man/info for the project, see ;; <https://github.com/toml-lang/toml-test/issues/163>. (name "toml-test") - (version "1.5.0") + (version "1.6.0") (source (origin (method git-fetch) @@ -3572,7 +3575,7 @@ allowing you to declaratively define \"match\" rules.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "188xcsxgn20pjnddfn3mvx7wak030xdgkhxkhjiijfap37gbv6df")))) + (base32 "1b6lfamh673a4x509cacr6qr1xvf82562cpqn9ygrgnd81469qcc")))) (build-system go-build-system) (arguments (list diff --git a/gnu/packages/ci.scm b/gnu/packages/ci.scm index 557b15c0ff..48c5fc959e 100644 --- a/gnu/packages/ci.scm +++ b/gnu/packages/ci.scm @@ -314,7 +314,6 @@ reinventing them.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:install-source? #f #:import-path "gitea.com/gitea/act_runner" #:embed-files #~(list ".*\\.json" ".*\\.js" ".*\\.sh") diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index ed72c2eb02..3c0cbc2896 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -406,7 +406,6 @@ Layer-4 sockets.") (arguments `(#:unpack-path "github.com/containernetworking/plugins" #:tests? #f ; XXX: see stat /var/run below - #:go ,go-1.24 #:phases (modify-phases %standard-phases (replace 'build (lambda _ diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm index d130d76350..c0fb956741 100644 --- a/gnu/packages/crates-tls.scm +++ b/gnu/packages/crates-tls.scm @@ -465,7 +465,7 @@ version of AWS-LC.") (add-after 'unpack 'set-home-directory (lambda _ (setenv "HOME" "/tmp")))))) - (native-inputs (list cmake-minimal go perl)) + (native-inputs (list cmake-minimal go-1.23 perl)) (home-page "https://github.com/aws/aws-lc-rs") (synopsis "AWS-LC is a general-purpose cryptographic library (FIPS version)") diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 249010399d..f18cec74db 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -115,6 +115,7 @@ #: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-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-xyz) @@ -147,6 +148,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) #:use-module (gnu packages pretty-print) + #:use-module (gnu packages prometheus) #:use-module (gnu packages protobuf) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -481,6 +483,113 @@ database later.") license:mpl1.1 ; examples/interfaces/0{6,8}*.cpp license:public-domain)))) ; including files without explicit licence +(define-public go-github-com-cockroachdb-pebble + ;; TODO: As inherited package can't be placed in separate module, keeping + ;; this Golang source library here. + (package + (name "go-github-com-cockroachdb-pebble") + (version "1.1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/pebble") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15px3m8fid7fwh0xfyia75aak6a5sx5q3r01n79fr6mnyiaix18a")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:build-flags #~(list "-tags" "external_libzstd") + #:test-flags #~(list "-tags" "external_libzstd" + ;; Skip tests requiring git in PATH. + "-skip" "TestLint") + ;; XXX: Maybe run more tests if possible. + #:test-subdirs #~(list "internal/...") + #:import-path "github.com/cockroachdb/pebble")) + (native-inputs + (list go-github-com-stretchr-testify + go-golang-org-x-perf + pkg-config)) + (inputs + (list (list zstd "lib"))) + (propagated-inputs + (list go-github-com-cespare-xxhash-v2 + go-github-com-cockroachdb-datadriven + go-github-com-cockroachdb-errors + go-github-com-cockroachdb-fifo + go-github-com-cockroachdb-redact + go-github-com-cockroachdb-tokenbucket + go-github-com-datadog-zstd + go-github-com-ghemawat-stream + go-github-com-golang-snappy + go-github-com-guptarohit-asciigraph + go-github-com-hdrhistogram-hdrhistogram-go + go-github-com-klauspost-compress + go-github-com-kr-pretty + go-github-com-pkg-errors + go-github-com-pmezard-go-difflib + go-github-com-prometheus-client-golang + go-github-com-prometheus-client-model + go-github-com-spf13-cobra + go-golang-org-x-exp + go-golang-org-x-perf + go-golang-org-x-sync + go-golang-org-x-sys)) + (home-page "https://github.com/cockroachdb/pebble") + (synopsis "RocksDB/LevelDB inspired key-value database in Golang") + (description + "Pebble is a LevelDB/RocksDB inspired key-value store focused on +performance and internal usage by CockroachDB. Pebble inherits the RocksDB +file formats and a few extensions such as range deletion tombstones, +table-level bloom filters, and updates to the MANIFEST format.") + (license license:bsd-3))) + +(define-public go-github-com-cockroachdb-pebble-v2 + (package + (inherit go-github-com-cockroachdb-pebble) + (name "go-github-com-cockroachdb-pebble-v2") + (version "2.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/pebble") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jglnsabg7y0y5agazvvmsa0r0ddn0j3c204cdpv7qsvi90pnr0d")))) + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-cockroachdb-pebble) + ((#:tests? _ #t) #f) ; TODO: Find out why some tests fails to build + ((#:import-path _) "github.com/cockroachdb/pebble/v2"))) + (propagated-inputs + (modify-inputs (package-propagated-inputs go-github-com-cockroachdb-pebble) + (append go-github-com-cockroachdb-crlib + go-github-com-cockroachdb-swiss))))) + +(define-public pebble + (package/inherit go-github-com-cockroachdb-pebble + (name "pebble") + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-cockroachdb-pebble) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:import-path _) "github.com/cockroachdb/pebble/cmd/pebble") + ((#:unpack-path _ "") "github.com/cockroachdb/pebble"))) + (native-inputs + (append (package-propagated-inputs go-github-com-cockroachdb-pebble) + (package-native-inputs go-github-com-cockroachdb-pebble))) + (propagated-inputs '()) + (description + (string-append (package-description + go-github-com-cockroachdb-pebble) + "\nThis package provides command line interface (CLI).")))) + (define-public dicedb (package (name "dicedb") @@ -498,7 +607,6 @@ database later.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:install-source? #f #:import-path "github.com/dicedb/dice" #:build-flags @@ -6023,7 +6131,7 @@ relational databases are in general.") go-github-com-lib-pq go-github-com-mattn-go-runewidth go-github-com-mattn-go-sqlite3 - go-github-com-olekukonko-tablewriter + go-github-com-olekukonko-tablewriter-0.0.5 go-github-com-pkg-errors go-github-com-sourcegraph-jsonrpc2 go-golang-org-x-crypto diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index a452c849fc..a1767a3ea5 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -1469,7 +1469,7 @@ on your file system and offers to remove it. @command{rmlint} can find: (define-public lf (package (name "lf") - (version "33") + (version "35") (source (origin (method git-fetch) @@ -1478,7 +1478,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 "1jmqf27ysi35n3hqahlzs5hym7i4w1mplklrvv0lc0baddzx7av8")))) + (base32 "19hk78j1cdnpjg5gjilm797vzzlppfard1qas9vxjhx289n8i76i")))) (build-system go-build-system) (arguments (list diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 3d6ec79b69..3b61044109 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -47,6 +47,7 @@ #: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) @@ -113,6 +114,7 @@ (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/xalanq/cf-tool" #:phases @@ -127,7 +129,7 @@ go-github-com-fatih-color go-github-com-k0kubun-go-ansi go-github-com-mitchellh-go-homedir - go-github-com-olekukonko-tablewriter + go-github-com-olekukonko-tablewriter-0.0.5 go-github-com-puerkitobio-goquery go-github-com-sergi-go-diff go-github-com-shirou-gopsutil @@ -1126,6 +1128,7 @@ machine, and more.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/exercism/cli/exercism" #:unpack-path "github.com/exercism/cli" diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index e32f813878..86ab5354f6 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -17694,6 +17694,34 @@ of its name.") names, e.g., @samp{#0000ff} is displayed in white with a blue background.") (license license:gpl3+))) +(define-public emacs-colorful-mode + (package + (name "emacs-colorful-mode") + (version "1.2.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DevelopmentCool2449/colorful-mode") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cm5bpw2x15h6pf5vxcp2f7jf1rkpnq7qq8idlv9n9p5nnxwik1d")))) + (build-system emacs-build-system) + ;; No automated tests. The test directory contains sample files for + ;; visual inspection. + (arguments (list #:tests? #f)) + (propagated-inputs (list emacs-compat)) + (home-page "https://github.com/DevelopmentCool2449/colorful-mode") + (synopsis "Highlight color strings in buffers") + (description + "@code{colorful-mode} is a minor mode to highlight any color +format, such as hex codes or HTML color names, in buffers in real time. It is +inspired by @code{rainbow-mode} but uses overlays instead of text properties +to support a different feature set. It also supports conversion of color +strings between formats.") + (license license:gpl3+))) + (define-public emacs-indent-bars (package (name "emacs-indent-bars") @@ -37599,6 +37627,65 @@ between \"frame-width\" and \"frame-height\", between \"public\", \"variableN\".") (license license:gpl2+))) +(define-public emacs-recomplete + (let ((commit "0e4a2bad35886e31742117eee3d610e13586ac5e") + (revision "0")) + (package + (name "emacs-recomplete") + (version (git-version "0.2" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/ideasman42/emacs-recomplete") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dasj12k9664s77cxnkbrszy2vkfwd6iz6mrj9xzsq7mjgg5gk58")))) + (build-system emacs-build-system) + (arguments (list #:test-command #~(list "make" "test"))) + (home-page "https://codeberg.org/ideasman42/emacs-recomplete") + (synopsis "Immediate completion, without prompting") + (description + "@code{recomplete} is a completion library for quickly completing or +correcting words in cases where the first candidate is the likely choice. +Unlike most completion, it immediately performs the completion action, calling +again to cycle over options. Completion candidates are displayed in the echo +area.") + (license license:gpl3+)))) + +(define-public emacs-cycle-at-point + (package + (name "emacs-cycle-at-point") + (version "0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/ideasman42/emacs-cycle-at-point") + (commit "83d94733fd8ed64f2ba40f4e1df7ecbfe8260e51"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17h93idzdg5y30q46y5njsvixwlq3isnynym6b6gp3sy50xqgjgs")))) + (build-system emacs-build-system) + (arguments + (list + ;; `make test' assumes recomplete repository is in a sibling directory. + #:test-command + #~(list "emacs" "-Q" "--batch" + "-l" "tests/cycle-at-point-tests" + "-f" "ert-run-tests-batch-and-exit"))) + (propagated-inputs (list emacs-recomplete)) + (home-page "https://codeberg.org/ideasman42/emacs-cycle-at-point") + (synopsis "Immediately cycle text at the cursor, without prompting") + (description + "@code{cycle-at-point} provides commands to cycle text at the cursor. +Repeatedly invoke the command to cycle over available options. Completion +candidates are displayed in the echo area. Users can define their own +completion lists. Common use cases include true and false literals, +arithmetic operators, and months of the year.") + (license license:gpl3+))) + (define-public emacs-ediprolog (package (name "emacs-ediprolog") diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 35d28c4ce2..7408389b91 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -81,6 +81,7 @@ #: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-check) #:use-module (gnu packages golang-crypto) @@ -474,6 +475,7 @@ is corrupted you'll lose the affected file(s) but not the whole back-up.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/google/fscrypt" #:install-source? #f #:test-flags @@ -604,7 +606,7 @@ significantly increases the risk of irreversible data loss!") (define-public gocryptfs (package (name "gocryptfs") - (version "2.5.1") + (version "2.5.4") (source (origin (method git-fetch) (uri (git-reference @@ -613,10 +615,11 @@ significantly increases the risk of irreversible data loss!") (file-name (git-file-name name version)) (sha256 (base32 - "0ai30h56qvp31a3rl72biwx8w9blmi7va7d1bflmxbp41zhl6dn9")))) + "1glzq6syid1ws3wc9fk16z3vmphvgaf8dwr8hrg4s02bqqqhlcll")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/rfjakob/gocryptfs" #:build-flags @@ -2206,8 +2209,8 @@ memory-efficient.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/oniony/TMSU" - #:unpack-path "github.com/oniony/TMSU" #:install-source? #f #:phases #~(modify-phases %standard-phases diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 0ef4c206c9..205f252b7d 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -1771,35 +1771,38 @@ trezord as a regular user instead of needing to it run as root.") (license license:lgpl3+)))) (define-public trezord - (package - (name "trezord") - (version "2.0.33") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/trezor/trezord-go") - (commit (string-append "v" version)))) - (sha256 - (base32 "0nnfh9qkb8ljajkxwrn3nn85zrsw10hp7c5i4zh60qgfyl0djppw")) - (file-name (git-file-name name version)))) - (build-system go-build-system) - (arguments - (list - #:go go-1.18 - #:install-source? #f - #:import-path "github.com/trezor/trezord-go")) - (native-inputs - (list go-github-com-gorilla-csrf - go-github-com-gorilla-handlers - go-github-com-gorilla-mux - go-gopkg-in-natefinch-lumberjack-v2)) - (home-page "https://trezor.io") - (synopsis "Trezor Communication Daemon aka Trezor Bridge (written in Go)") - (description - "This allows a Trezor hardware wallet to communicate to the Trezor + ;; XXX: The latest commit provides support for Go 1.24+, move back to the + ;; tag when it is released. + (let ((commit "a58468e4f70619d4ca7dd6404bdf9bdcff8011f0") + (revision "0")) + (package + (name "trezord") + (version (git-version "2.0.33" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/trezor/trezord-go") + (commit commit))) + (sha256 + (base32 "15bqxg98wp4w8yc697rf228298dcxfmlvf7pzq370g852w8hm6q8")) + (file-name (git-file-name name version)))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/trezor/trezord-go")) + (native-inputs + (list go-github-com-gorilla-csrf + go-github-com-gorilla-handlers + go-github-com-gorilla-mux + go-gopkg-in-natefinch-lumberjack-v2)) + (home-page "https://trezor.io") + (synopsis "Trezor Communication Daemon aka Trezor Bridge (written in Go)") + (description + "This allows a Trezor hardware wallet to communicate to the Trezor wallet.") - (license license:lgpl3+))) + (license license:lgpl3+)))) (define-public libofx (package diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index f081229d6a..26cd1a6405 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -4570,6 +4570,26 @@ enough to remain readable even at high resolutions.") Bonnie Scranton, and Edward Tufte.") (license license:expat)))) +(define-public font-commit-mono + (package + (name "font-commit-mono") + (version "1.143") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/eigilnikolajsen/commit-mono/" + "releases/download/" + "v" version + "/CommitMono-" version ".zip")) + (sha256 + (base32 "1l4yqjif6ijdpjsncana6swlh1mz0vbzaxkgk4580m3mgimg5lgp")))) + (build-system font-build-system) + (home-page "https://commitmono.com/") + (synopsis "Commit Mono programming font") + (description + "Commit Mono is an anonymous and neutral programming typeface.") + (license license:silofl1.1))) + (define-public font-cica (package (name "font-cica") diff --git a/gnu/packages/golang-apps.scm b/gnu/packages/golang-apps.scm index 2e54b8be35..38f055ce7b 100644 --- a/gnu/packages/golang-apps.scm +++ b/gnu/packages/golang-apps.scm @@ -138,7 +138,6 @@ import of a 3rd party package at runtime).") (build-system go-build-system) (arguments (list - #:go go-1.24 #:install-source? #f #:import-path "golang.org/x/tools/gopls" #:unpack-path "golang.org/x/tools" diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 010946b832..cc12a5dbd7 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -44,7 +44,8 @@ #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages) - #:use-module (gnu packages gcc)) + #:use-module (gnu packages gcc) + #:use-module (gnu packages golang)) ;;; Commentary: ;;; @@ -62,16 +63,16 @@ (define-public go-github-com-goccmack-gocc (package (name "go-github-com-goccmack-gocc") - (version "0.0.0-20230228185258-2292f9e40198") + (version "1.0.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/goccmack/gocc") - (commit (go-version->git-ref version)))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0ah1z1bmn9y9sbh2z1jxsjgsrv1rfrzzzi4c4nq646z2n25c2x8s")))) + (base32 "0rv0v0k13lql0z9s9bffkjsan32a0i0m8405w3xng1y0jk3706mh")))) (build-system go-build-system) (arguments (list @@ -85,15 +86,15 @@ (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 +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") - (version "1.2.3") + (version "1.2.5") (source (origin (method git-fetch) @@ -102,7 +103,7 @@ automatically resolves shift / reduce and reduce / reduce conflicts.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1sfgcf18wg4glcamgq9njmbny17xq0dd14g3094sj5c1cwjij982")))) + (base32 "15gza8cb5qs8brwqjn1lpbm9p5z5332m44gmxz9m0qxkr27lcmhr")))) (build-system go-build-system) (arguments (list @@ -188,7 +189,16 @@ as an ordered, mutable data structure.") (build-system go-build-system) (arguments (list - #:import-path "github.com/google/go-cmdtest")) + #:import-path "github.com/google/go-cmdtest" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda _ + (substitute* "src/github.com/google/go-cmdtest/cmdtest_test.go" + ;; Since Go 1.24, fmt procedures are checked to use a constant + ;; format string. + (("t.Errorf\\(diff)") + "t.Errorf(\"%s\", diff)"))))))) (propagated-inputs (list go-github-com-google-renameio go-github-com-google-go-cmp)) (home-page "https://github.com/google/go-cmdtest") @@ -203,7 +213,7 @@ also update a file with new \"golden\" output that is deemed correct.") (define-public go-github-com-google-go-cmp (package (name "go-github-com-google-go-cmp") - (version "0.6.0") + (version "0.7.0") (source (origin (method git-fetch) @@ -212,7 +222,7 @@ also update a file with new \"golden\" output that is deemed correct.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1n1j4hi50bl05pyys4i7y417k9g6k1blslj27z327qny7kkdl2ma")))) + (base32 "1cys8lz68za30z5cabvwrpnv2pg1ppqxdncmiz8iy2j624a5kg15")))) (build-system go-build-system) (arguments (list @@ -243,7 +253,7 @@ semantically equal.") (define-public go-github-com-google-renameio (package (name "go-github-com-google-renameio") - (version "1.0.1") + (version "2.0.0") (source (origin (method git-fetch) @@ -252,7 +262,7 @@ semantically equal.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1qn84nra9nxqyqg4i496b6ijbhnxvx66hdndwl7qh7r6q8lz2ba5")))) + (base32 "13vc7p43zz5pmgli4k18b15khxpca1zd8v1ga0ryq7ddyz55fg7i")))) (build-system go-build-system) (arguments (list @@ -379,6 +389,7 @@ primitives in Go.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/twitchyliquid64/golang-asm")) (home-page "https://github.com/twitchyliquid64/golang-asm") (synopsis "Assembler from the Go compiler, in library form") @@ -391,7 +402,7 @@ library.") (define-public go-github-com-yuin-goldmark (package (name "go-github-com-yuin-goldmark") - (version "1.7.8") + (version "1.7.12") (source (origin (method git-fetch) @@ -400,7 +411,7 @@ library.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1iz7x1hqdixx8dkcbaa8lr842i59n843mc553jv5grq057s76yjx")))) + (base32 "1qc665b8clfvah62l8bkk473ybng7qzwwibxsq5wskfswv5yaj94")))) (build-system go-build-system) (arguments (list @@ -423,7 +434,7 @@ library.") (define-public go-github-com-yuin-goldmark-emoji (package (name "go-github-com-yuin-goldmark-emoji") - (version "1.0.4") + (version "1.0.6") (source (origin (method git-fetch) @@ -432,7 +443,7 @@ library.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "001dgjaa9crbl1yb803gyq1dbcnnfzvv205ycgd97qw9p4xjg21g")))) + (base32 "09n5ws797ma47kj0jwg0g2gkwq899kb40ny62r9f44wg6dkrpppr")))) (build-system go-build-system) (arguments (list @@ -449,7 +460,7 @@ library.") (define-public go-golang-org-x-arch (package (name "go-golang-org-x-arch") - (version "0.12.0") + (version "0.17.0") (source (origin (method git-fetch) @@ -458,7 +469,7 @@ library.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "104mnfx3v6lwjndjd35ly8r6yb4bb74lq5sq1cqpxw38mqyzqmx2")))) + (base32 "02qwvciikyrssifdp50zbjgqvpkb6sj09jzjvyl1n9v5fvg7mxba")))) (build-system go-build-system) (arguments (list @@ -483,7 +494,7 @@ toolchain. The parts needed in the main Go repository are copied in.") (define-public go-golang-org-x-crypto (package (name "go-golang-org-x-crypto") - (version "0.31.0") + (version "0.38.0") (source (origin (method git-fetch) @@ -492,7 +503,7 @@ toolchain. The parts needed in the main Go repository are copied in.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0pd3qipz2wb5wbbb44lgbfygxhf9lq5rknf82p2dmaicszn0rd53")) + (base32 "1wx7wf3ifb10cx2yckm925a9ydy5bw3iv664cma27abkfssj07ba")) (modules '((guix build utils))) (snippet #~(begin @@ -553,7 +564,9 @@ language.") (define-public go-golang-org-x-exp (package (name "go-golang-org-x-exp") - (version "0.0.0-20241217172543-b2144cdd0a67") + ;; Note: Beware, the updater gets this wrong. Take the latest version + ;; string from <https://pkg.go.dev/golang.org/x/exp?tab=versions>. + (version "0.0.0-20250531010427-b6e5de432a8b") (source (origin (method git-fetch) @@ -562,7 +575,7 @@ language.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "01dq7llbqqdybv5s372zwlfiyq2syqpfqs7h4lxvbpqjq0aayf60")) + (base32 "0vszjiblb7i79dp9x1zvfpjidnmkzsaq6ij2jfh63hv9ph7yz3hf")) (modules '((guix build utils))) (snippet #~(begin @@ -636,7 +649,10 @@ directory) packages.") (define-public go-golang-org-x-exp-typeparams (package (name "go-golang-org-x-exp-typeparams") - (version "0.0.0-20241210194714-1829a127f884") + ;; Note: Beware, the updater gets this wrong. Take the latest version + ;; string from + ;; <https://pkg.go.dev/golang.org/x/exp/typeparams?tab=versions>. + (version "0.0.0-20250531010427-b6e5de432a8b") (source (origin (method git-fetch) @@ -645,7 +661,7 @@ directory) packages.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "16lc0sgydpr4gbb5c9ygq86jdmq6f9qjf0vv1m5mhh3dggc1fzpp")))) + (base32 "0vszjiblb7i79dp9x1zvfpjidnmkzsaq6ij2jfh63hv9ph7yz3hf")))) (build-system go-build-system) (arguments (list @@ -672,7 +688,7 @@ compile does not support generics.") (define-public go-golang-org-x-image (package (name "go-golang-org-x-image") - (version "0.23.0") + (version "0.27.0") (source (origin (method git-fetch) @@ -681,7 +697,7 @@ compile does not support generics.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0xm3cqzh0j6s8m8k6c3rd170qbmz2lwb628jb48cl4wr6ivq5fp9")))) + (base32 "0kc75lbfb0m9xp0idcqlpcis6xahblw2q7cj6vg9lmblxzqy5nvh")))) (build-system go-build-system) (arguments (list @@ -719,7 +735,7 @@ compile does not support generics.") ;; "go/version" module, see ;; <https://cs.opensource.google/go/go/+/refs/tags/ ;; go1.23.0:src/go/version/version.go>. - (version "0.21.0") + (version "0.24.0") (source (origin (method git-fetch) @@ -728,7 +744,7 @@ compile does not support generics.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1rk4vbdrdmiaacx50a1q31hydidwl9rnlcl7rim3f535vyw01fxk")))) + (base32 "17sjk98d3qwh9s6gqjmfy07z0gyj5hyv5a9kyg4si3yjfzbnwhx7")))) (build-system go-build-system) (arguments (list @@ -766,7 +782,7 @@ loading algorithms.") (define-public go-golang-org-x-net (package (name "go-golang-org-x-net") - (version "0.33.0") + (version "0.40.0") (source (origin (method git-fetch) @@ -775,7 +791,7 @@ loading algorithms.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0k3vbxj4dxyki7rflbnad95avz7hnapwr02aa7jqgs79vd9j9k7n")))) + (base32 "0zsh08wbamzlvlwvlw6slgcqhaa59rwz9pq01lbyjigw6cfww406")))) (build-system go-build-system) (arguments (list @@ -810,7 +826,7 @@ loading algorithms.") (define-public go-golang-org-x-sync (package (name "go-golang-org-x-sync") - (version "0.10.0") + (version "0.14.0") (source (origin (method git-fetch) @@ -819,7 +835,7 @@ loading algorithms.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1yp7pcfvy4793mjbfq28hxbr05yg38m0njnwam580xkb54lfwshx")))) + (base32 "1gpa1v6wnp1bszk5iyiakq1j37icgxswj3iysdrdyp0yadw0pm30")))) (build-system go-build-system) (arguments (list @@ -854,7 +870,7 @@ cancellation 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.28.0") + (version "0.33.0") (source (origin (method git-fetch) @@ -863,7 +879,7 @@ cancellation 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 "1lgsisl36knlr41inqls3w51xcqfl6d3hkacxry0nqx39167b882")))) + (base32 "19m090xd3abysvk1y07fhhd025k3s456i71ww0pq0b2pzsva5ra2")))) (build-system go-build-system) (arguments (list @@ -917,7 +933,9 @@ low-level interaction with the operating system.") (define-public go-golang-org-x-telemetry (package (name "go-golang-org-x-telemetry") - (version "0.0.0-20240912191618-22fe4a1e7b9c") + ;; Beware: the updater gets this wrong. Use the latest commit and its + ;; matching date. + (version "0.0.0-20250529002037-25d2f7894191") (source (origin (method git-fetch) @@ -926,7 +944,7 @@ low-level interaction with the operating system.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "05gvxiv0yqfclckm2ysavbfy1jpz8v71r2glrcvhjq8wzw90g9gz")) + (base32 "0ymqig10vyrmzkali1wqhxrrb3fjvl7z9wmzf5g0dydb9a8ng42l")) (modules '((guix build utils))) (snippet #~(begin @@ -952,7 +970,10 @@ low-level interaction with the operating system.") "TestRun_ModeHandling/on" "TestRun_MultipleUploads" "TestRun_Retries" - "TestStart") ; no upload occurred on 2786 + "TestStart" ;no upload occurred on 2786 + ;; TestLoadedChartsAreValid fails with "go: list + ;; -cannot be used with GO111MODULE=off" + "TestLoadedChartsAreValid") "|")) #:import-path "golang.org/x/telemetry")) (propagated-inputs @@ -970,7 +991,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.36.0") + (version "0.48.0") (source (origin (method git-fetch) @@ -980,7 +1001,7 @@ Go toolchain programs with opt-in telemetry.") #:subdir "config")))) (file-name (git-file-name name version)) (sha256 - (base32 "1nib4d3p1zknd8m0grkylpd3qfknnw7cffv2v1l4sq0rf30gi04m")))) + (base32 "0lzybsdibr71y6n3x8qh37yh9vfwdmmdb6vksqimg4ayys373q7x")))) (build-system go-build-system) (arguments (list @@ -1000,7 +1021,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.27.0") + (version "0.32.0") (source (origin (method git-fetch) @@ -1009,7 +1030,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 "1gfykqmzgwgrb3adlbknjrb96i58bx2q2vjcdvfvwm554gznkgki")))) + (base32 "09q25x265yyy4jfjqpm10x8jai30wcbhb7bqgkjll4gw2sz3zhz1")))) (build-system go-build-system) (arguments '(#:import-path "golang.org/x/term")) (propagated-inputs @@ -1034,7 +1055,7 @@ terminals, as commonly found on Unix systems.") (define-public go-golang-org-x-text (package (name "go-golang-org-x-text") - (version "0.21.0") + (version "0.25.0") (source (origin (method git-fetch) @@ -1043,12 +1064,22 @@ terminals, as commonly found on Unix systems.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "02zh18l5rlr8hg8ipn9r5m4rir3hskp80pzr4ljyfmgy72gxbhlv")))) + (base32 "1r9532ml0psfby89agf20q23qzwfikhydl8q77ad5y73xvdx89lf")))) (build-system go-build-system) (arguments (list #:skip-build? #t - #:import-path "golang.org/x/text")) + #:import-path "golang.org/x/text" + #:test-flags + #~(list "-skip" + (string-join + (list + ;; TestLinking fails with error: "dict_test.go:19: size(base) + ;; - size(compact) = 4929873 - 4898852 = was 31021; want > + ;; 1.5MB + "TestLinking" + "TestFullCycle") ;requires go module support + "|")))) (home-page "https://go.googlesource.com/text") (native-inputs (list go-golang-org-x-mod-bootstrap @@ -1074,7 +1105,7 @@ processing.") (define-public go-golang-org-x-time (package (name "go-golang-org-x-time") - (version "0.8.0") + (version "0.11.0") (source (origin (method git-fetch) @@ -1083,7 +1114,7 @@ processing.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1m2xfgq3a6y1xckl0al9n03il927z3rp2a8fvb8369035d3al3qh")))) + (base32 "1bqgxv7b3n69h4mi4hwr51pfr1hr6s1h6k7nb3dl32dryy7xwr12")))) (build-system go-build-system) (arguments (list @@ -1099,7 +1130,7 @@ time.") (define-public go-golang-org-x-tools (package (name "go-golang-org-x-tools") - (version "0.25.0") + (version "0.33.0") (source (origin (method git-fetch) @@ -1108,7 +1139,7 @@ time.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "12r0cwsq898vka7jkxwjv1s8y8z2gxzq8z15ssl37y85hhcadkl8")) + (base32 "1lbb4y1c5b4719pdhfcb90sdzagzsb2lw5hx8gizsba3cj0r0f25")) (modules '((guix build utils))) (snippet '(begin @@ -1161,7 +1192,18 @@ time.") "./refactor/importgraph/..." "./refactor/rename/..." "./refactor/satisfy/..." - "./txtar/...")))))))) + "./txtar/..." + "-skip" + (string-join + (list + ;; The GenericPaths test fails with "invalid + ;; memory address or nil pointer dereference". + "TestGenericPaths" + ;; The ordering and paths tests fails because they + ;; can't find test packages (perhaps because we do + ;; not support Go modules). + "TestOrdering" "TestPaths") + "|"))))))))) (native-inputs (list gccgo-14 go-github-com-google-go-cmp)) @@ -1193,7 +1235,7 @@ Go programming language.") (name "go-golang-org-x-vuln") ;; XXX: Newer version of govulncheck requires golang.org/x/telemetry, ;; which needs to be discussed if it may be included in Guix. - (version "1.1.3") + (version "1.1.4") (source (origin (method git-fetch) @@ -1202,7 +1244,7 @@ Go programming language.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0izm18r8ksx4n10an9nxyflc8cgr766qrwfmx5nbk702x80prln9")))) + (base32 "004hmcaahgj0ajvpkrhbvs6av1nas8302vzy9is9msxyya3mclkp")))) (build-system go-build-system) (arguments (list @@ -1286,7 +1328,7 @@ values.") (define-public go-google-golang-org-protobuf (package (name "go-google-golang-org-protobuf") - (version "1.36.0") + (version "1.36.6") (source (origin (method git-fetch) @@ -1295,7 +1337,7 @@ values.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1a6l9zcm1za7w9f9n86wjszn9fm53cfacl0liyk3wpsqx4h4x6dl")))) + (base32 "0lp1a6bcwdiil4my0aq85ranxf2k757m8q0ss9658jyrh5g7av79")))) (build-system go-build-system) (arguments (list diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index cd1f382020..9cf09ace67 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -331,7 +331,9 @@ test (using testing.TB's @code{TempDir}) and with a few helper methods.") "1mkbyzhwq3rby832ikq00nxv3jnckxsm3949wkxd8ya9js2jmg4d")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/cheekybits/is")) + (list + #:go go-1.23 + #:import-path "github.com/cheekybits/is")) (home-page "https://github.com/cheekybits/is") (synopsis "Mini testing helper for Go") (description "A mini testing helper for Go. @@ -375,10 +377,40 @@ 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-cockroachdb-datadriven + (package + (name "go-github-com-cockroachdb-datadriven") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/datadriven") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1h2dhm4g1n8ny71lm495l5l842lwq320la0q8b8zmr4w3s5nyk09")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/datadriven")) + (propagated-inputs + (list go-github-com-pmezard-go-difflib)) + (home-page "https://github.com/cockroachdb/datadriven") + (synopsis "Data-Driven Tests for Golang") + (description + "This package implements an extension of +@url{https://github.com/golang/go/wiki/TableDrivenTests, Table-Driven +Testing}. Instead of building and iterating over a table in the test code, +the input is further separated into files (or inline strings). For certain +classes of tests, this can significantly reduce the friction involved in +writing and reading these tests.") + (license license:asl2.0))) + (define-public go-github-com-coder-quartz (package (name "go-github-com-coder-quartz") - (version "0.1.3") + (version "0.2.1") (source (origin (method git-fetch) @@ -387,10 +419,11 @@ test (using testing.TB's @code{TempDir}) and with a few helper methods.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08ghwy4i4h9shxchcly69pqprqqcs7pcvaprc7kjgghbvwbgr69k")))) + (base32 "1c2ki5w75a3nkhnzpld65bm9swfhp0ra16jccwdcplqgmil77nc1")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/coder/quartz")) (home-page "https://github.com/coder/quartz") (synopsis "Golang time testing library for writing deterministic unit tests") @@ -443,6 +476,7 @@ strings which may be used in mock tests.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/DATA-DOG/go-sqlmock" #:phases #~(modify-phases %standard-phases @@ -970,6 +1004,7 @@ package, but can be used in other contexts too.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/google/gofuzz" ;; Tests fail on 32bit #:tests? (target-64bit?))) @@ -1107,6 +1142,30 @@ Node @code{nock} library, it has features like: "This package provides a library to generate unified diffs.") (license license:bsd-3))) +(define-public go-github-com-hydrogen18-memlistener + (package + (name "go-github-com-hydrogen18-memlistener") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hydrogen18/memlistener") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "088zv1sqxw50x95xh7n7b5s4h32mry6myx559jjl1h11h9h7szwg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hydrogen18/memlistener")) + (home-page "https://github.com/hydrogen18/memlistener") + (synopsis "In memory listener for testing socket and HTTP servers in Golang") + (description + "This package implements a functionality for testing socket and HTTP +servers in Golang.") + (license license:bsd-3))) + (define-public go-github-com-icrowley-fake (package (name "go-github-com-icrowley-fake") @@ -1621,6 +1680,7 @@ output capturing, mocking, and much more.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/matryer/is")) (home-page "https://github.com/matryer/is") (synopsis "Lightweight testing mini-framework for Golang") @@ -1709,6 +1769,7 @@ error messages, preserving the order of @code{have} (actual result) before (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/onsi/ginkgo" #:test-flags #~(list "-skip" "TestIntegration"))) (propagated-inputs @@ -1729,7 +1790,7 @@ Gomega matcher library.") (package (inherit go-github-com-onsi-ginkgo) (name "go-github-com-onsi-ginkgo-v2") - (version "2.22.0") + (version "2.23.4") (source (origin (method git-fetch) @@ -1738,14 +1799,17 @@ Gomega matcher library.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1mla4hr73ykbhl2mr40vzr4fjl97whr17ip907cac78fzch1csn8")))) + (base32 "01rmm0lx29bwl973qixx6avwa8m6yc1vkara52cbl0jxxwf1jf3d")))) (arguments (list + #:go go-1.23 #: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" "."))) + (native-inputs + (list go-go-uber-org-automaxprocs)) ; for the CLI (propagated-inputs (list go-github-com-go-logr-logr go-github-com-go-task-slim-sprig-v3 @@ -1771,7 +1835,7 @@ Gomega matcher library.") (define-public go-github-com-onsi-gomega (package (name "go-github-com-onsi-gomega") - (version "1.33.1") + (version "1.37.0") (source (origin (method git-fetch) @@ -1780,10 +1844,11 @@ Gomega matcher library.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1jygwi2lz3q7ri85dxdxf187l1hm7r3i0c843l47iakivmld31x1")))) + (base32 "1nkkr1kw3bbz0mmxqyxafa9h951plv7nd570lc0wrr7skmicbw9x")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/onsi/gomega" #:phases #~(modify-phases %standard-phases @@ -1823,6 +1888,7 @@ framework.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/otiai10/mint")) (home-page "https://github.com/otiai10/mint") (synopsis "Minimal assertion for Golang testing framework") @@ -1832,8 +1898,8 @@ testing type to omit repeated @code{t}.") (license license:expat))) (define-public go-github-com-petermattis-goid - (let ((commit "bb94eb51e7a772d09cef11768f3248ac25adf9f9") - (revision "2")) + (let ((commit "395b08cebbdbaf68f44f53a2d6e9f8d064180a0b") + (revision "3")) (package (name "go-github-com-petermattis-goid") (version (git-version "0.0.0" revision commit)) @@ -1845,7 +1911,7 @@ testing type to omit repeated @code{t}.") (commit commit))) (file-name (git-file-name name version)) (sha256 - (base32 "0hr94frr0rhac4mb9r7ixdgr6hm63rxh6z43rhn2wn7fdy8csw11")))) + (base32 "0c8fc1v29wjv9r1l2dhkr9bxc7hysahr30bnxwnc854jckxiqi46")))) (build-system go-build-system) (arguments (list @@ -1985,6 +2051,7 @@ GIT_TRACE mechanism.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/smarty/assertions")) (home-page "https://github.com/smarty/assertions") (synopsis "Fluent assertion-style functions") @@ -2000,7 +2067,7 @@ functions and even in applications.") (define-public go-github-com-smarty-gunit (package (name "go-github-com-smarty-gunit") - (version "1.5.0") + (version "1.5.1") (source (origin (method git-fetch) @@ -2009,17 +2076,12 @@ functions and even in applications.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "13bcb1aq8yshmi5inn7np5lyqhsyy5hksridi8bxbjq35xrknskr")))) + (base32 "0qf050cby21in2s5k8777vbrbjssl8glkkn6h1x24xkjmi7q3fv8")))) (build-system go-build-system) (arguments (list - #: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"))) + #:go go-1.23 + #:import-path "github.com/smarty/gunit")) (home-page "https://github.com/smarty/gunit") (synopsis "Golang xUnit-style test fixture test adapter") (description @@ -2083,6 +2145,9 @@ test coverage and has a web user interface that will refresh automatically.") (build-system go-build-system) (arguments (list + ;; See the list of supported Golang versions in + ;; <testify/.github/workflows/main.yml>. + #:go go-1.23 ;; XXX: Tests are shaky on non x86_64 architectures, check if some may ;; be enabled. #:tests? (target-x86-64?) @@ -2335,6 +2400,7 @@ customization (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/warpfork/go-testmark")) (propagated-inputs (list go-github-com-warpfork-go-fsx)) @@ -2365,6 +2431,7 @@ testmark} format, which itself is a subset of Markdown format.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/warpfork/go-wish" #:test-subdirs #~(list "cmp/..." "wishfix" ".") #:test-flags @@ -2572,36 +2639,6 @@ 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-golang-org-sql-mock - (package - (name "go-golang-org-sql-mock") - (version "1.5.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/DATA-DOG/go-sqlmock") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1vpvdx9hwmx9gm27aq5r5219xpaxz0gy4q1iqskk4saz05bspn0f")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/DATA-DOG/go-sqlmock" - #: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/DATA-DOG/go-sqlmock") - (synopsis "Mock library implementing @code{sql/driver}") - (description - "This library simulates SQL-driver behavior in tests without requiring a -real database connection.") - (license license:expat))) - (define-public go-golang-org-x-lint (package (name "go-golang-org-x-lint") @@ -2825,7 +2862,6 @@ used to skip the test (build-system go-build-system) (arguments (list - #:go go-1.23 #:skip-build? #t #:import-path "honnef.co/go/tools" #:unpack-path "honnef.co/go/tools")) @@ -2833,7 +2869,7 @@ used to skip the test (list go-github-com-burntsushi-toml go-golang-org-x-exp go-golang-org-x-exp-typeparams - go-golang-org-x-mod + go-golang-org-x-sys go-golang-org-x-tools)) (home-page "https://staticcheck.dev/") (synopsis "Staticcheck advanced Go linter library") @@ -2949,19 +2985,49 @@ thoroughly @end itemize") (license license:mpl2.0))) +(define-public go-sigs-k8s-io-randfill + (package + (name "go-sigs-k8s-io-randfill") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kubernetes-sigs/randfill") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nk0vk269jw0k155yna43jx9lz4dbzhlhp98jrk8iwqn7k250my6")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "sigs.k8s.io/randfill")) + (home-page "https://sigs.k8s.io/randfill") + (synopsis "Fuzz testing for Golang") + (description + "Package randfill is a library for populating go objects with random values.") + (license license:asl2.0))) + ;;; ;;; Executables: ;;; (define-public go-ginkgo - (package - (inherit go-github-com-onsi-ginkgo-v2) + (package/inherit go-github-com-onsi-ginkgo-v2 (name "ginkgo") (arguments - (list - #:import-path "github.com/onsi/ginkgo/ginkgo" - #:unpack-path "github.com/onsi/ginkgo" - #:install-source? #f)) + (substitute-keyword-arguments + (package-arguments go-github-com-onsi-ginkgo-v2) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:import-path _) "github.com/onsi/ginkgo/ginkgo") + ((#:unpack-path _ "") "github.com/onsi/ginkgo"))) + (native-inputs + (append (package-native-inputs go-github-com-onsi-ginkgo-v2) + (package-propagated-inputs go-github-com-onsi-ginkgo-v2))) + (propagated-inputs '()) + (inputs '()) (description (string-append (package-description go-github-com-onsi-ginkgo-v2) " This package provides an command line interface (CLI) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index efb67fcea0..21aede3238 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -213,6 +213,7 @@ primitives.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/99designs/keyring" #:test-flags #~(list "-skip" (string-join @@ -273,34 +274,6 @@ common ChaCha variant is ChaCha20 (20 rounds). ChaCha20 is standardized in RFC 7539.") (license license:expat))) -(define-public go-github-com-aead-ecdh - (package - (name "go-github-com-aead-ecdh") - (version "0.2.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/aead/ecdh") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0b0ps5wzm0q0skzikp91l8slgaw5s9z42g4wnmc69am5gw7h4mpd")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/aead/ecdh")) - (propagated-inputs - (list go-golang-org-x-crypto)) - (home-page "https://github.com/aead/ecdh") - (synopsis "Elliptic Cureves Deffie-Hellman key exchange implementation in Golang") - (description - "Package ecdh implements the Diffie-Hellman key exchange using elliptic -curves (ECDH). It directly provides ECDH implementations for the NIST curves -P224, P256, P384, and Bernstein's Cruve25519. The same logic is available in -Go 1.20 @code{crypto/ecdh} standard package.") - (license license:expat))) - (define-public go-github-com-aperturerobotics-jacobsa-crypto (let ((commit "b1eb679742a8deed015a4406384eea6bd985d08a") (revision "0")) @@ -388,6 +361,7 @@ with its management port enabled.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "github.com/blanu/Dust")) (propagated-inputs @@ -568,16 +542,8 @@ described at @url{https://xxhash.com/}.") (build-system go-build-system) (arguments (list - #:import-path "github.com/chmduquesne/rollinghash/" - #:phases - #~(modify-phases %standard-phases - ;; 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" "./...")))))))) + #:go go-1.23 + #:import-path "github.com/chmduquesne/rollinghash/")) (propagated-inputs (list go-code-cloudfoundry-org-bytefmt)) (home-page "https://github.com/chmduquesne/rollinghash") @@ -1235,7 +1201,6 @@ RSA, RSA-PSS, and ECDSA, though hooks are present for adding your own.") (build-system go-build-system) (arguments (list - #:go go-1.22 #:import-path "github.com/google/go-tpm" #:phases #~(modify-phases %standard-phases @@ -1831,7 +1796,7 @@ times faster decoding.") (define-public go-github-com-nats-io-jwt-v2 (package (name "go-github-com-nats-io-jwt-v2") - (version "2.7.3") + (version "2.7.4") (source (origin (method git-fetch) @@ -1840,11 +1805,13 @@ times faster decoding.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "09gfzhahm6wfnkaqm5yam8vd9y50rnyjxcl6mw3a9y4far1vpmvb")))) + (base32 "0gjfayslmvs5kpgrb7sscaafi5fsm2j6446vbjm830ak0nhq8df9")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/nats-io/jwt/v2" - #:unpack-path "github.com/nats-io/jwt")) + (list + #:go go-1.23 + #:import-path "github.com/nats-io/jwt/v2" + #:unpack-path "github.com/nats-io/jwt")) (propagated-inputs (list go-github-com-nats-io-nkeys)) (home-page "https://github.com/nats-io/jwt") (synopsis "Go library signing JWT tokens with NKeys for the NATS ecosystem") @@ -2178,7 +2145,7 @@ done by Marc Stevens and Dan Shumow, and can be found at: (define-public go-github-com-protonmail-go-crypto (package (name "go-github-com-protonmail-go-crypto") - (version "1.1.3") + (version "1.3.0") (source (origin (method git-fetch) @@ -2187,19 +2154,17 @@ done by Marc Stevens and Dan Shumow, and can be found at: (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0kcan2bw548cn6pm282zyddysv400dankcsrdanha7qmxqki34c0")))) + (base32 "0h4zhdxpg5qh5li4r2nsjya757d9kghqjxg3cch4pm3wqvkpjg1h")))) (build-system go-build-system) (arguments (list + #:skip-build? #t #:import-path "github.com/ProtonMail/go-crypto" #:test-flags (if (target-riscv64?) ;; This test times out on riscv64-linux. #~(list "-skip" "TestEndToEnd") - #~'()) - #:phases - #~(modify-phases %standard-phases - (delete 'build)))) ; no go files in project's root + #~'()))) (propagated-inputs (list go-github-com-cloudflare-circl go-golang-org-x-crypto)) @@ -2368,7 +2333,7 @@ user-defined collections.") (define-public go-github-com-skeema-knownhosts (package (name "go-github-com-skeema-knownhosts") - (version "1.3.0") + (version "1.3.1") (source (origin (method git-fetch) @@ -2377,11 +2342,14 @@ user-defined collections.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1i74wqingiflrrvpzhahwdly9f8c27i2far1qxkszi7aswhpj956")))) + (base32 "04lb198n9k9y96v7kvyrvwx2w70kb6jq47p6p19h6wd77c7r0flj")))) (build-system go-build-system) (arguments (list - #:import-path "github.com/skeema/knownhosts")) + #:import-path "github.com/skeema/knownhosts" + ;; Unexpected number of keys returned by + ;; HostKeys("multi.example.test:2233"): expected 3, found 4 + #:test-flags #~(list "-skip" "TestHostKeys"))) (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") diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm index a37fd37a75..0ed7f1501b 100644 --- a/gnu/packages/golang-maths.scm +++ b/gnu/packages/golang-maths.scm @@ -25,6 +25,7 @@ #:use-module (guix git-download) #:use-module (guix packages) #:use-module (gnu packages) + #:use-module (gnu packages golang) #:use-module (gnu packages golang-build)) ;;; Commentary: @@ -37,6 +38,33 @@ ;;; Libraries: ;;; +(define-public go-github-com-aclements-go-gg + (package + (name "go-github-com-aclements-go-gg") + (version "0.0.0-20170323211221-abd1f791f5ee") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aclements/go-gg") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06vda3fvhyavwdcbch591v64ds8jdb1v56c8rjv8qbd6g65ky383")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:tests? #f + #:import-path "github.com/aclements/go-gg")) + (propagated-inputs + (list go-github-com-aclements-go-moremath)) + (home-page "https://github.com/aclements/go-gg") + (synopsis "Plotting package for Golang") + (description + "gg is a plotting package for Go inspired by the Grammar of Graphics.") + (license license:bsd-3))) + (define-public go-codeberg-org-astronexus-brahe (package (name "go-codeberg-org-astronexus-brahe") @@ -114,7 +142,8 @@ and APIs for non-parametric methods.") (build-system go-build-system) (arguments (list - #:import-path "github.com/cockroachdb/apd")) + #:import-path "github.com/cockroachdb/apd" + #:test-flags #~(list "-skip" "TestFormatFlags/.*010G"))) (propagated-inputs (list go-github-com-pkg-errors)) (home-page "https://github.com/cockroachdb/apd") @@ -142,8 +171,9 @@ and GCC’s decimal extension.") (sha256 (base32 "1jrb43l80mr8q1hx8q4p54rld6kya886ackv5yzqyhhhl271rnm6")))) (arguments - (list - #:import-path "github.com/cockroachdb/apd/v3")))) + (substitute-keyword-arguments + (package-arguments go-github-com-cockroachdb-apd) + ((#:import-path _) "github.com/cockroachdb/apd/v3"))))) (define-public go-github-com-johncgriffin-overflow (package @@ -202,6 +232,7 @@ flow into higher precision types from the @code{math.big} library.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/montanaflynn/stats" #:phases #~(modify-phases %standard-phases @@ -300,7 +331,7 @@ format as binary16.") (define-public go-gonum-org-v1-gonum (package (name "go-gonum-org-v1-gonum") - (version "0.15.1") + (version "0.16.0") (source (origin (method git-fetch) @@ -309,10 +340,11 @@ format as binary16.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "002qsavnylj8l4ki56narpn3zm0r9p7p8ccgd20q1xp751wg2kvp")))) + (base32 "01mj449mlvp863d6k9zaz3y2z3vc0l5vcn046f17s83f49r0sh58")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "gonum.org/v1/gonum" #:test-subdirs #~(list "." diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm index 28b3d8fa0c..74dceed8ec 100644 --- a/gnu/packages/golang-vcs.scm +++ b/gnu/packages/golang-vcs.scm @@ -231,6 +231,7 @@ using the Git pkt-line format used in various Git operations.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/jiangxin/goconfig")) (native-inputs (list git-minimal/pinned diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 6dab984885..fe848f4f64 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -119,7 +119,6 @@ (build-system go-build-system) (arguments (list - #:go go-1.22 #:import-path "0xacab.org/leap/lb")) (propagated-inputs (list go-github-com-golang-protobuf @@ -213,24 +212,26 @@ devices.") (define-public go-cloud-google-com-go-compute-metadata (package (name "go-cloud-google-com-go-compute-metadata") - (version "0.81.0") + (version "0.7.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/googleapis/google-cloud-go") - (commit (string-append "v" version)))) + (commit (go-version->git-ref version + #:subdir "compute/metadata")))) (file-name (git-file-name name version)) (sha256 - (base32 "15jgynqb5pbxqbj3a7ii970yn4srsw1dbxzxnhpkfkmplalpgyh3")))) + (base32 "1ryq4ay3myk7w2wb7pzfk0pbvz6ymirxq91zm6rql7a1vb15x0n9")))) (build-system go-build-system) (arguments - '(#:unpack-path "cloud.google.com/go" - #:import-path "cloud.google.com/go/compute/metadata")) - (home-page - "https://pkg.go.dev/cloud.google.com/go/compute/metadata") - (synopsis - "Go wrapper for Google Compute Engine metadata service") + (list + #:import-path "cloud.google.com/go/compute/metadata" + #:unpack-path "cloud.google.com/go")) + (native-inputs + (list go-github-com-google-go-cmp)) + (home-page "https://pkg.go.dev/cloud.google.com/go/compute/metadata") + (synopsis "Go wrapper for Google Compute Engine metadata service") (description "This package provides access to Google Compute Engine (GCE) metadata and API service accounts for Go.") @@ -302,7 +303,7 @@ Gemini clients and servers.") (define-public go-git-sr-ht-emersion-gqlclient (package (name "go-git-sr-ht-emersion-gqlclient") - (version "0.0.0-20230820050442-8873fe0204b9") + (version "0.0.0-20250318184027-d4a003529bba") (source (origin (method git-fetch) @@ -311,10 +312,11 @@ Gemini clients and servers.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0x64kcryawdr0daq1w6fada60zqrddw75yi397835b9ij7wb5gmh")))) + (base32 "1yqgyjdi9cxkqdp20xwqycd8rccpqqanpq29k1qz8jazabkdlr06")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:embed-files #~(list "prelude.graphql") #:import-path "git.sr.ht/~emersion/gqlclient")) ;; For the CLI. @@ -330,7 +332,7 @@ Gemini clients and servers.") (define-public go-git-sr-ht-rockorager-go-jmap (package (name "go-git-sr-ht-rockorager-go-jmap") - (version "0.5.0") + (version "0.5.2") (source (origin (method git-fetch) @@ -339,19 +341,12 @@ Gemini clients and servers.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1r8bmdlmvpk08i7xrqwgv0aaz05564wgcyji73nszdh2s32m4kzl")))) + (base32 "00lj2ckg039xn7gnwyvl55wcwrzcnz4383qajv35dv9yp19vnljy")))) (build-system go-build-system) (arguments (list - #:import-path "git.sr.ht/~rockorager/go-jmap" - #: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" "./...")))))))) + #:go go-1.23 + #:import-path "git.sr.ht/~rockorager/go-jmap")) (native-inputs (list go-github-com-stretchr-testify)) @@ -368,7 +363,7 @@ Gemini clients and servers.") (define-public go-github-com-42wim-httpsig (package (name "go-github-com-42wim-httpsig") - (version "1.2.2") + (version "1.2.3") (source (origin (method git-fetch) @@ -377,11 +372,14 @@ Gemini clients and servers.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0r6q3g0ghccnvqsw7g3g18s710q8haq5vzpvhrb48vmbcj0pdyn8")))) + (base32 "1526ck0d32qjc6xkfi6s5wj241r9slng596w9slnpska5vazddv2")))) (build-system go-build-system) (arguments (list - #:import-path "github.com/42wim/httpsig")) + #:import-path "github.com/42wim/httpsig" + ;; algorithms_test.go:623: "rsa_SHA3_224": expected error, got: + ;; %!s(<nil>) + #:test-flags #~(list "-skip" "TestSignerSigns"))) (propagated-inputs (list go-golang-org-x-crypto)) (home-page "https://github.com/42wim/httpsig") (synopsis "Golang implementation of the HTTP Signatures RFC draft") @@ -535,6 +533,7 @@ example @code{GOPPROF=http,block}.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/apex/log")) (native-inputs (list go-github-com-tj-assert @@ -565,7 +564,8 @@ require encoding and decoding before fanning-out to handlers.") (hidden-package (package/inherit go-github-com-apex-log (arguments - (list #:import-path "github.com/apex/log" + (list #:go go-1.23 + #:import-path "github.com/apex/log" #:test-subdirs #~(list "."))) (propagated-inputs (list go-github-com-fatih-color @@ -829,7 +829,7 @@ functions.") (define-public go-github-com-aws-aws-sdk-go (package (name "go-github-com-aws-aws-sdk-go") - (version "1.55.2") + (version "1.55.7") (source (origin (method git-fetch) @@ -838,26 +838,13 @@ functions.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0wsl1vcig3j9z6v2hppfr1bvrvbisck026fwq2a7yzmx36pwnj6a")))) + (base32 "11lyc27wwpfly4hvvml8j3y16g010snd4qjc9ivlwdcafjpxly33")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/aws/aws-sdk-go" - #: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$") - (("TestProcessProviderTimeout") - "OffTestProcessProviderTimeout"))))) - ;; 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" "./...")))))))) + #:test-flags #~(list "-skip" "TestProcessProviderTimeout"))) (propagated-inputs (list go-github-com-jmespath-go-jmespath)) (home-page "https://github.com/aws/aws-sdk-go") @@ -869,7 +856,7 @@ functions.") (define-public go-github-com-aws-aws-sdk-go-v2 (package (name "go-github-com-aws-aws-sdk-go-v2") - (version "1.32.0") + (version "1.36.4") (source (origin (method git-fetch) @@ -878,7 +865,7 @@ functions.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1iflf2ski7vm2z78wdmbrqpchc3qr50macnf965wmdyfinvx58wn")) + (base32 "07g7vgpkq8cqirc2s64d9yswnpzdb7jzqr5kwrpblya2nq27inml")) ;; XXX: It contains a lot of sub packages defined with go.mod, consider ;; to pack them separately. (modules '((guix build utils))) @@ -886,9 +873,13 @@ functions.") #~(begin ;; Submodules with their own go.mod files and packaged separately: ;; + ;; - github.com/aws/aws-sdk-go-v2/config + ;; - github.com/aws/aws-sdk-go-v2/service/s3 ;; - github.com/aws/aws-sdk-go-v2/service/sqs (for-each delete-file-recursively - (list "service/sqs")))))) + (list "config" + "service/s3" + "service/sqs")))))) (build-system go-build-system) (arguments (list @@ -905,20 +896,37 @@ functions.") (define-public go-github-com-aws-aws-sdk-go-v2-config (package - (inherit go-github-com-aws-aws-sdk-go-v2) (name "go-github-com-aws-aws-sdk-go-v2-config") - (version "1.18.5") + (version "1.29.16") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/aws-sdk-go-v2") + (commit (go-version->git-ref version + #:subdir "config")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07g7vgpkq8cqirc2s64d9yswnpzdb7jzqr5kwrpblya2nq27inml")))) + (build-system go-build-system) (arguments - '(#:import-path "github.com/aws/aws-sdk-go-v2/config" - #:unpack-path "github.com/aws/aws-sdk-go-v2")) + (list + #:import-path "github.com/aws/aws-sdk-go-v2/config" + #:unpack-path "github.com/aws/aws-sdk-go-v2")) (propagated-inputs - (list go-github-com-google-go-cmp - go-github-com-aws-smithy-go)))) + (list go-github-com-aws-smithy-go)) + (home-page "https://github.com/aws/aws-sdk-go-v2") + (synopsis "AWS SDK for Go v2 - config module") + (description + "Package config provides utilities for loading configuration from +multiple sources that can be used to configure the SDK's API clients, and +utilities.") + (license license:asl2.0))) (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.48") + (version "1.17.69") (source (origin (method git-fetch) @@ -928,7 +936,7 @@ functions.") #:subdir "credentials")))) (file-name (git-file-name name version)) (sha256 - (base32 "1n3spqncpw6w11pwkqaiq7jyv6dv0229jsbshibg24l2g3accdqi")))) + (base32 "07g7vgpkq8cqirc2s64d9yswnpzdb7jzqr5kwrpblya2nq27inml")))) (build-system go-build-system) (arguments (list @@ -953,13 +961,30 @@ credentials sources.") (define-public go-github-com-aws-aws-sdk-go-v2-feature-s3-manager (package - (inherit go-github-com-aws-aws-sdk-go-v2) (name "go-github-com-aws-aws-sdk-go-v2-feature-s3-manager") - (version "1.11.44") + (version "1.17.78") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/aws-sdk-go-v2") + (commit (go-version->git-ref version + #:subdir "feature/s3/manager")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g6pmb6i7l88d2k4i2jz2mfxjb8snq8lhl419yvblgm96zgp5qbi")))) + (build-system go-build-system) (arguments - '(#:import-path "github.com/aws/aws-sdk-go-v2/feature/s3/manager" - #:unpack-path "github.com/aws/aws-sdk-go-v2")) - (propagated-inputs (list go-github-com-aws-smithy-go)))) + (list + #:import-path "github.com/aws/aws-sdk-go-v2/feature/s3/manager" + #: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 SDK for Go v2 - S3 manager module") + (description + "Package manager provides utilities to upload and download objects from +S3 concurrently. Helpful for when working with large objects.") + (license license:asl2.0))) (define-public go-github-com-aws-aws-sdk-go-v2-service-iam (package @@ -974,14 +999,31 @@ credentials sources.") (define-public go-github-com-aws-aws-sdk-go-v2-service-s3 (package - (inherit go-github-com-aws-aws-sdk-go-v2) (name "go-github-com-aws-aws-sdk-go-v2-service-s3") - (version "1.30.0") + (version "1.80.2") + (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/s3")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07g7vgpkq8cqirc2s64d9yswnpzdb7jzqr5kwrpblya2nq27inml")))) + (build-system go-build-system) (arguments - '(#:import-path "github.com/aws/aws-sdk-go-v2/service/s3" - #:unpack-path "github.com/aws/aws-sdk-go-v2")) + (list + #:import-path "github.com/aws/aws-sdk-go-v2/service/s3" + #:unpack-path "github.com/aws/aws-sdk-go-v2")) (propagated-inputs - (list go-github-com-aws-smithy-go)))) + (list go-github-com-aws-smithy-go)) + (home-page "https://github.com/aws/aws-sdk-go-v2") + (synopsis "AWS SDK for Go v2 - S3 service module") + (description + "Package s3 provides the API client, operations, and parameter types for +Amazon Simple Storage Service.") + (license license:asl2.0))) (define-public go-github-com-aws-aws-sdk-go-v2-service-secretsmanager (package @@ -1014,7 +1056,7 @@ parameter types for AWS Secrets Manager.") (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") + (version "1.38.7") (source (origin (method git-fetch) @@ -1024,7 +1066,7 @@ parameter types for AWS Secrets Manager.") #:subdir "service/sqs")))) (file-name (git-file-name name version)) (sha256 - (base32 "158mgp8czzkhjdwli2wciwqihs56jp879ahjdjyy8c6fn0g3xdvb")) + (base32 "07g7vgpkq8cqirc2s64d9yswnpzdb7jzqr5kwrpblya2nq27inml")) (modules '((guix build utils) (ice-9 ftw) (srfi srfi-26))) @@ -1099,7 +1141,7 @@ Amazon Simple Queue Service.") (define-public go-github-com-aws-smithy-go (package (name "go-github-com-aws-smithy-go") - (version "1.22.1") + (version "1.22.2") (source (origin (method git-fetch) @@ -1108,7 +1150,7 @@ Amazon Simple Queue Service.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "16jbv7cyj85048f4kcrib8k2yif165sc099h0aklal5dwlf85xcg")) + (base32 "1jm5d8ampysimhnm3ginfv0fh8cmp4f2fghisk5lk0zsc0anahrm")) (modules '((guix build utils))) (snippet #~(begin @@ -1152,7 +1194,10 @@ Amazon Simple Queue Service.") (list #:skip-build? #t #:import-path "github.com/aws/smithy-go/aws-http-auth" - #:unpack-path "github.com/aws/smithy-go")) + #:unpack-path "github.com/aws/smithy-go" + ;; panic: runtime error: invalid memory address or nil pointer + ;; dereference + #:test-flags #~(list "-skip" "TestSignRequest_SignStringError"))) (home-page "https://github.com/aws/smithy-go") (synopsis "Consumable SigV4 and SigV4a request signing") (description @@ -1451,7 +1496,7 @@ differentiate between installs of Mozilla software in @code{installs.ini} and (define-public go-github-com-caddyserver-certmagic (package (name "go-github-com-caddyserver-certmagic") - (version "0.21.4") + (version "0.22.1") (source (origin (method git-fetch) @@ -1460,7 +1505,7 @@ differentiate between installs of Mozilla software in @code{installs.ini} and (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "061whx9p00lpxlfnywizqx5z9b020ggqg5vx5r5v2qhdrprg1gkz")))) + (base32 "0xi3c4b0wcpk75lrpvx254zf49pi2yibxvl3x7hm9j1xhah6fsaa")))) (build-system go-build-system) (arguments (list @@ -1481,10 +1526,11 @@ differentiate between installs of Mozilla software in @code{installs.ini} and (list go-github-com-caddyserver-zerossl go-github-com-klauspost-cpuid-v2 go-github-com-libdns-libdns - go-github-com-mholt-acmez + go-github-com-mholt-acmez-v3 go-github-com-miekg-dns go-github-com-zeebo-blake3 go-go-uber-org-zap + go-go-uber-org-zap-exp go-golang-org-x-crypto go-golang-org-x-net)) (home-page "https://github.com/caddyserver/certmagic") @@ -1595,6 +1641,7 @@ and RFC 5389).") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/cenkalti/backoff/v4")) (home-page "https://github.com/cenkalti/backoff") (synopsis "The exponential backoff algorithm in Go") @@ -1612,6 +1659,31 @@ process, in order to gradually find an acceptable rate. The retries exponentially increase and stop increasing when a certain threshold is met.") (license license:expat))) +(define-public go-github-com-cenkalti-backoff-v5 + (package + (inherit go-github-com-cenkalti-backoff-v4) + (name "go-github-com-cenkalti-backoff-v5") + (version "5.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cenkalti/backoff") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hc4manlkqfy9acva1jb8ayh8jihjb0h76l3g1sqqp0vlaq5y6q3")))) + (arguments + (list + #:import-path "github.com/cenkalti/backoff/v5" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Example tests freeze infinitely. + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file "example_test.go"))))))))) + (define-public go-github-com-cenkalti-hub (package (name "go-github-com-cenkalti-hub") @@ -1808,10 +1880,101 @@ API. See the full Circonus API Documentation at browser window.") (license license:bsd-2))) +(define-public go-github-com-cockroachdb-errors + (package + (name "go-github-com-cockroachdb-errors") + (version "1.12.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/errors") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0savcvdq1xiwgf8in2xvj9d7gnj921izixlzd2zwdk6384lllc7m")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/errors" + #:test-subdirs #~(list "assert/..." + "barriers/..." + "contexttags/..." + "domains/..." + "errbase/..." + "errutil/..." + "extgrpc/..." + "exthttp/..." + ;; "fmttests/..." ; build failed + "grpc/..." + "hintdetail/..." + "issuelink/..." + "join/..." + "markers/..." + "oserror/..." + ;; "report/..." ; build failed + "safedetails/..." + "secondary/..." + "telemetrykeys/..." + "testutils/..." + "withstack/..."))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-cockroachdb-datadriven + go-github-com-cockroachdb-logtags + go-github-com-cockroachdb-redact + go-github-com-getsentry-sentry-go + go-github-com-gogo-googleapis + go-github-com-gogo-protobuf + go-github-com-gogo-status + go-github-com-hydrogen18-memlistener + go-github-com-kr-pretty + go-github-com-pkg-errors + go-google-golang-org-grpc + go-google-golang-org-protobuf)) + (home-page "https://github.com/cockroachdb/errors") + (synopsis "Golang errors with network portability") + (description + "This package provides a a drop-in replacement to +@code{github.com/pkg/errors} and Go's standard @code{errors} package. It also +provides of error objects, in ways suitable for distributed systems with +mixed-version software compatibility.") + (license license:asl2.0))) + +(define-public go-github-com-cockroachdb-metamorphic + (package + (name "go-github-com-cockroachdb-metamorphic") + (version "0.0.0-20231120015718-884f2746775a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/metamorphic") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cf5rwifmlvnrwq17izgc0297yjw4q2fl1qar9d1slm3wqd4h186")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/metamorphic")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-cockroachdb-errors)) + (home-page "https://github.com/cockroachdb/metamorphic") + (synopsis "Metamorphic-style testing in Golang") + (description + "This Package provides facilities for running metamorphic, property-based +testing. By running logically equivalent operations with different +conditions, metamorphic tests can identify bugs without requiring an oracle.") + (license license:asl2.0))) + (define-public go-github-com-coder-websocket (package (name "go-github-com-coder-websocket") - (version "1.8.12") + (version "1.8.13") (source (origin (method git-fetch) @@ -1820,7 +1983,7 @@ browser window.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "172v9mqghswf50ga512qghb6ii0ivz5fi2iyjzdnbm42g0cr4fjj")) + (base32 "1ycphyxz8ap0l3sbwii650wz2p0a0wy7swikxr1sb39m5mw2amdi")) (modules '((guix build utils))) (snippet #~(begin @@ -1864,8 +2027,7 @@ compression. CloseRead} helper for write only connections @item Compile to @url{https://pkg.go.dev/github.com/coder/websocket#hdr-Wasm, Wasm}. -@end itemize -") +@end itemize") (license license:isc))) (define-public go-github-com-containerd-typeurl @@ -1932,7 +2094,9 @@ Any}.") (base32 "180wnxiim622v17xcnrjrg9g07mg4xizmlxxyrl9p42is0abi9c8")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/coreos/go-oidc")) + (list + #:go go-1.23 + #:import-path "github.com/coreos/go-oidc")) (native-inputs (list go-golang-org-x-net)) (propagated-inputs @@ -2116,7 +2280,7 @@ Data Representation (XDR) standard protocol as specified in RFC (define-public go-github-com-digitalocean-godo (package (name "go-github-com-digitalocean-godo") - (version "1.138.0") + (version "1.151.0") (source (origin (method git-fetch) @@ -2125,16 +2289,20 @@ Data Representation (XDR) standard protocol as specified in RFC (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "083vhzb1hwzdmn5m14ygs949g2kabmafvpcxq2laylkylq1fd3rm")))) + (base32 "02nwqlz2fxv74h4bhd8yp02s0zfxb1d7jmp4yydgbz7psk296j98")))) (build-system go-build-system) (arguments (list - #:go go-1.22 + #:go go-1.23 #:import-path "github.com/digitalocean/godo" #:test-flags #~(list "-skip" (string-join ;; Tests requiring networking setup. - (list "TestRegistry_DeleteManifest" + (list "TestRegistries_DeleteManifest" + "TestRegistries_DeleteTag" + "TestRegistries_ListRepositoryManifests" + "TestRegistries_ListRepositoryTags" + "TestRegistry_DeleteManifest" "TestRegistry_DeleteTag" "TestRegistry_ListManifests" "TestRepository_ListTags") @@ -2247,6 +2415,7 @@ translation (NAT), proxies, sockets, and transport layer security (TLS).") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/donovanhide/eventsource")) (home-page "https://github.com/donovanhide/eventsource") (synopsis "Server Side Events client and server for Golang") @@ -2656,7 +2825,7 @@ for Go.") (define-public go-github-com-emersion-go-smtp (package (name "go-github-com-emersion-go-smtp") - (version "0.21.3") + (version "0.22.0") (source (origin (method git-fetch) @@ -2665,10 +2834,11 @@ for Go.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0drvmvrkmhqhnv4m3my1hbkyyva2vi35b36j0pdi57xc9rflziq3")))) + (base32 "0p57x0x0pvk24pgl6qnyz7pvfvdncj8bs5p5k0g10phh5p8md684")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/emersion/go-smtp")) (propagated-inputs (list go-github-com-emersion-go-sasl)) @@ -2713,7 +2883,7 @@ protocol definition.") (define-public go-github-com-evanphx-json-patch (package (name "go-github-com-evanphx-json-patch") - (version "0.5.2") + (version "4.12.0") (source (origin (method git-fetch) @@ -2722,10 +2892,11 @@ protocol definition.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "00sib9ba8j1h1n3r1cxx48zn8hs6sxwnrh78p6wbs28wcpz8nqxi")))) + (base32 "1z0bmsvzm4nchfbi7h9pdvkfgrnf0fvhn39pgb0q2az8cql58q56")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/evanphx/json-patch")) (propagated-inputs (list go-github-com-jessevdk-go-flags go-github-com-pkg-errors)) @@ -2738,6 +2909,27 @@ documents, as well as for calculating & applying @url{https://tools.ietf.org/html/rfc7396,RFC7396 JSON merge patches}.") (license license:bsd-3))) +(define-public go-github-com-evanphx-json-patch-v5 + (package + (inherit go-github-com-evanphx-json-patch) + (name "go-github-com-evanphx-json-patch-v5") + (version "5.9.11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/evanphx/json-patch") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sydllg5hsmvwdr1276qzl8v3xsr3jjrimvvgl9096rn3kf3664m")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "github.com/evanphx/json-patch/v5" + #:unpack-path "github.com/evanphx/json-patch")))) + (define-public go-github-com-fasthttp-router (package (name "go-github-com-fasthttp-router") @@ -2805,6 +2997,7 @@ application's http.Handlers.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/flosch/pongo2/v6")) (native-inputs (list go-gopkg-in-check-v1)) @@ -2960,35 +3153,6 @@ OpenAPI v3.0} and 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 -(define-public go-github-com-getsentry-raven-go - (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92") - (revision "0")) - (package - (name "go-github-com-getsentry-raven-go") - (version (git-version "0.2.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/getsentry/raven-go") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0lvc376sq8r8jhy2v1m6rf1wyld61pvbk0x6j9xpg56ivqy69xs7")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/getsentry/raven-go")) - (propagated-inputs - (list go-github-com-certifi-gocertifi go-github-com-pkg-errors)) - (home-page "https://github.com/getsentry/raven-go") - (synopsis "Sentry client in Go") - (description "This package is a Go client API for the Sentry event/error -logging system.") - (license license:bsd-3)))) - (define-public go-github-com-getsentry-sentry-go (package (name "go-github-com-getsentry-sentry-go") @@ -3105,7 +3269,7 @@ Features: (define-public go-github-com-go-chi-chi-v5 (package (name "go-github-com-go-chi-chi-v5") - (version "5.0.7") + (version "5.2.1") (source (origin (method git-fetch) @@ -3114,10 +3278,12 @@ Features: (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0rzrsxz4xj0973c6nxklvq2vmg2m795snhk25836i0gnd1jnx79k")))) + (base32 "1kbgz6j720cdipmmkaxqa1w42wyqirw3x5pysnph92wpm2wnss1g")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/go-chi/chi/v5")) + (list + #:go go-1.23 + #:import-path "github.com/go-chi/chi/v5")) (home-page "https://github.com/go-chi/chi") (synopsis "Composable router for HTTP services written in Go") (description @@ -3142,8 +3308,14 @@ decompose request handling into many smaller layers.") (arguments (list #:import-path "github.com/go-fed/httpsig" - ;; algorithms_test.go:153: "sha1": got true, want false - #:test-flags #~(list "-skip" "TestIsAvailable"))) + #:test-flags + #~(list "-skip" (string-join + ;; algorithms_test.go:153: "sha1": got true, want false + (list "TestIsAvailable" + ;; "rsa_SHA3_224": expected error, got: + ;; %!s(<nil>) + "TestSignerSigns") + "|")))) (propagated-inputs (list go-golang-org-x-crypto)) (home-page "https://github.com/go-fed/httpsig") @@ -3206,6 +3378,7 @@ Signature headers are to be set (but not both).") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/go-jose/go-jose/v3")) (native-inputs (list go-github-com-google-go-cmp @@ -3339,7 +3512,7 @@ about the content.") (define-public go-github-com-go-openapi-errors (package (name "go-github-com-go-openapi-errors") - (version "0.22.0") + (version "0.22.1") (source (origin (method git-fetch) @@ -3348,10 +3521,11 @@ about the content.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0nikzvknkv0nqdy44dfi096lcvkjnpjfrpg1gqlkg5ffccvdnd9s")))) + (base32 "0ll8hys25q536q73d5qhgf7ch9cl5183g6bqgdq61zdgcvvz0krf")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/go-openapi/errors")) (native-inputs (list go-github-com-stretchr-testify)) @@ -3455,7 +3629,7 @@ Supports JSON and YAML documents.") (define-public go-github-com-go-openapi-runtime (package (name "go-github-com-go-openapi-runtime") - (version "0.28.0") + (version "0.26.2") (source (origin (method git-fetch) @@ -3464,10 +3638,11 @@ Supports JSON and YAML documents.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0h8yqc6bb8mzb8jvr3m08fyws1gbrhbry6k5vj2cx2xdi50kqiy5")))) + (base32 "1vi0pdip4zdw8yn8qd7wn8i1di4f05qfy9cyjfskgqpqw38v4jkz")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:embed-files #~(list "jsonschema-draft-04\\.json" "schema\\.json") #:import-path "github.com/go-openapi/runtime")) (native-inputs @@ -3604,6 +3779,7 @@ projects.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:embed-files #~(list "jsonschema-draft-04\\.json" "schema\\.json") #:import-path "github.com/go-openapi/validate" #:phases @@ -3651,7 +3827,6 @@ OpenAPI 2.0).") (build-system go-build-system) (arguments (list - #:go go-1.22 #:import-path "github.com/go-webauthn/webauthn" #:phases #~(modify-phases %standard-phases @@ -3759,6 +3934,7 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/gobwas/httphead")) (home-page "https://github.com/gobwas/httphead") (synopsis "Tiny HTTP header value parsing library in Golang") @@ -3798,7 +3974,7 @@ protocol as specified in @url{https://rfc-editor.org/rfc/rfc6455.html, RFC (define-public go-github-com-goccy-go-json (package (name "go-github-com-goccy-go-json") - (version "0.10.3") + (version "0.10.5") (source (origin (method git-fetch) @@ -3807,12 +3983,14 @@ protocol as specified in @url{https://rfc-editor.org/rfc/rfc6455.html, RFC (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0w9kjplhyzq8n4iainddapzj7dxnfbjiz4xdpb0hlb6h35grpxgn")) + (base32 "0kbb7d4xal1y65fnb152icqjkhrk19b4h3344xmzl3grc4rdxj1n")) (modules '((guix build utils))) (snippet '(delete-file-recursively "benchmarks")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/goccy/go-json")) + (list + #:go go-1.23 + #:import-path "github.com/goccy/go-json")) (home-page "https://github.com/goccy/go-json") (synopsis "JSON encoder/decoder in Go") (description @@ -3862,6 +4040,33 @@ 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-googleapis + (package + (name "go-github-com-gogo-googleapis") + (version "1.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gogo/googleapis") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "094znmiswmz8d4b6k7il655gvjrwvraacln0n0lzv5kskbzhlmfi")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:tests? #f + #:import-path "github.com/gogo/googleapis")) + (propagated-inputs (list go-github-com-gogo-protobuf)) + (home-page "https://github.com/gogo/googleapis") + (synopsis "Google APIs rRPC templates") + (description + "This package provides rRPC templates used to interact with Google +APIs.") + (license license:asl2.0))) + (define-public go-github-com-gogo-protobuf (package (name "go-github-com-gogo-protobuf") @@ -3878,6 +4083,7 @@ allocation and performance in mind.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "github.com/gogo/protobuf" ;; protoc: exec: "protoc-min-version": executable file not found in $PATH @@ -3908,6 +4114,39 @@ generation features. This code generation is used to achieve: @end itemize") (license license:bsd-3))) +(define-public go-github-com-gogo-status + (package + (name "go-github-com-gogo-status") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gogo/status") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0k0j262qvq5ligiqafhq3mljzmgjcqz4n3xxv7j3di9glr8n38cz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gogo/status")) + (propagated-inputs + (list go-github-com-gogo-googleapis + go-github-com-gogo-protobuf + go-github-com-golang-protobuf + go-google-golang-org-grpc)) + (home-page "https://github.com/gogo/status") + (synopsis "Error handling for client/server rRPC-like communication") + (description + "Package status implements errors returned by @code{gRPC}. These errors +are serialized and transmitted on the wire between server and client, and +allow for additional data to be transmitted via the Details field in the +status proto. @code{gRPC} service handlers should return an error created by +this package, and @code{gRPC} clients should expect a corresponding error to +be returned from the RPC call.") + (license license:asl2.0))) + (define-public go-github-com-golang-groupcache (package (name "go-github-com-golang-groupcache") @@ -4115,7 +4354,9 @@ parameters.") (base32 "0j2xjy8xrk9y9k6bqpvimj84i6hg1wwsyvwsb0axhmp49cmnrp86")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/google/safehtml")) + (list + #:go go-1.23 + #:import-path "github.com/google/safehtml")) (propagated-inputs (list go-golang-org-x-text)) (home-page "https://github.com/google/safehtml") @@ -4208,7 +4449,7 @@ language.") (define-public go-github-com-gorilla-csrf (package (name "go-github-com-gorilla-csrf") - (version "1.7.2") + (version "1.7.3") (source (origin (method git-fetch) @@ -4217,10 +4458,11 @@ language.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "01d56sr9yggn6gs4lf5bnj15q6bkwvsim8kzj8m4arv1ccj7918j")))) + (base32 "0h32npfjir3k0yciisr6ybziv1bshmzw6x3bfkh3i72y3i7nv610")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/gorilla/csrf")) (propagated-inputs (list go-github-com-gorilla-securecookie @@ -4429,6 +4671,47 @@ 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-grpc-ecosystem-grpc-gateway-v2 + (package + (name "go-github-com-grpc-ecosystem-grpc-gateway-v2") + (version "2.26.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/grpc-ecosystem/grpc-gateway") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pw845x9bqhj64pxvyaafacq0mmmblbf5z4r2arprhdnb05czx3v")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/grpc-ecosystem/grpc-gateway/v2")) + (propagated-inputs + (list go-github-com-antihax-optional + go-github-com-google-go-cmp + go-github-com-rogpeppe-fastuuid + go-golang-org-x-oauth2 + go-golang-org-x-text + go-google-golang-org-genproto-googleapis-api + go-google-golang-org-genproto-googleapis-rpc + go-google-golang-org-grpc + go-google-golang-org-protobuf + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/grpc-ecosystem/grpc-gateway") + (synopsis "gRPC to JSON proxy generator following the gRPC HTTP spec") + (description + "The @code{gRPC-Gateway} is a plugin of the Google protocol buffers +compiler @@url{https://github.com/protocolbuffers/protobuf,protoc}. It reads +protobuf service definitions and generates a reverse-proxy server which +translates a RESTful HTTP API into @code{gRPC}. This server is generated +according to the +@url{https://github.com/googleapis/googleapis/raw/master/google/api/http.proto#L46,(code +google.api.http)} annotations in your service definitions.") + (license license:bsd-3))) + (define-public go-github-com-hashicorp-go-cleanhttp (package (name "go-github-com-hashicorp-go-cleanhttp") @@ -4853,10 +5136,11 @@ port mapping and discovering the external IP address of a firewall.") (("jaytaylor.com/html2text") "github.com/jaytaylor/html2text")))))) (build-system go-build-system) (arguments - (list #:import-path "github.com/jaytaylor/html2text")) + (list + #:import-path "github.com/jaytaylor/html2text")) (propagated-inputs (list go-golang-org-x-net - go-github-com-olekukonko-tablewriter + go-github-com-olekukonko-tablewriter-0.0.5 go-github-com-ssor-bom)) (home-page "https://github.com/jaytaylor/html2text") (synopsis "Convert HTML emails to text") @@ -4934,8 +5218,10 @@ authenticated identities and their attributes.") (base32 "1rv495j8j2x6avw5hqpf7rpiakr5gdsx6pv8rfn0ff7vi35zfa62")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/jcmturner/gokrb5/v8" - #:unpack-path "github.com/jcmturner/gokrb5")) + (list + #:go go-1.23 + #:import-path "github.com/jcmturner/gokrb5/v8" + #:unpack-path "github.com/jcmturner/gokrb5")) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs @@ -5065,7 +5351,9 @@ about missing required fields, or when pattern validation does not match.") (base32 "1mlgnk0y0d8njx7h66w6bhr95zh2ccg1hxlnm15i2lfh6l58s60q")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/jhillyerd/enmime")) + (list + #:go go-1.23 + #:import-path "github.com/jhillyerd/enmime")) (native-inputs (list go-github-com-go-test-deep go-github-com-stretchr-testify)) @@ -5082,6 +5370,24 @@ about missing required fields, or when pattern validation does not match.") geared towards parsing MIME encoded emails.") (license license:expat))) +(define-public go-github-com-jhillyerd-enmime-v2 + (package + (inherit go-github-com-jhillyerd-enmime) + (name "go-github-com-jhillyerd-enmime-v2") + (version "2.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jhillyerd/enmime") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ahw8bxwp8zbi7qgq2d49hd31iznc8njjjzk84xmxa30qyb3ilgc")))) + (arguments + (list + #:import-path "github.com/jhillyerd/enmime/v2")))) + (define-public go-github-com-jlaffaye-ftp (package (name "go-github-com-jlaffaye-ftp") @@ -5098,6 +5404,7 @@ geared towards parsing MIME encoded emails.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/jlaffaye/ftp")) (native-inputs (list go-github-com-stretchr-testify)) @@ -5125,7 +5432,9 @@ described in @url{https://www.rfc-editor.org/rfc/rfc959,RFC 959}.") (base32 "18zyr9nlywmwp3wpzcjxrgq9s9d2mmc6zg6xhsna00m663nkyc3n")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/jmespath/go-jmespath")) + (list + #:go go-1.23 + #:import-path "github.com/jmespath/go-jmespath")) (native-inputs (list go-github-com-davecgh-go-spew go-github-com-pmezard-go-difflib @@ -5202,10 +5511,15 @@ controlled. It is based on netlink messages.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/json-iterator/go" #:test-flags - ;; XXX: Try to skip just "Test_symmetric/map[test.stringKeyType]string". - #~(list "-skip" "Test_symmetric"))) + #~(list "-skip" (string-join + (list "Test_marshal/.53..b/string" + "Test_marshal/.57._/string" + "Test_string_encode_with_std_without_html_escape" + "Test_symmetric/map.test.stringKeyType.string") + "|")))) (native-inputs (list go-github-com-davecgh-go-spew go-github-com-google-gofuzz @@ -5374,6 +5688,7 @@ protocol in Go language.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "github.com/labbsr0x/goh")) (propagated-inputs @@ -5434,6 +5749,63 @@ Features: @end itemize") (license license:expat))) +(define-public go-github-com-letsencrypt-challtestsrv + (package + (name "go-github-com-letsencrypt-challtestsrv") + (version "1.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/letsencrypt/challtestsrv") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03g5bvifxijhg9kw4qrs3x3h48m6q6s9a14w7172s1mwshmyr0wi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/letsencrypt/challtestsrv")) + (propagated-inputs + (list go-github-com-miekg-dns)) + (home-page "https://github.com/letsencrypt/challtestsrv") + (synopsis "Challenge Test Server") + (description + "Package challtestsrv provides a trivially insecure acme challenge response +server for rapidly testing HTTP-01, DNS-01 and TLS-ALPN-01 challenge types.") + (license license:mpl2.0))) + +(define-public go-github-com-letsencrypt-pebble-v2 + (package + (name "go-github-com-letsencrypt-pebble-v2") + (version "2.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/letsencrypt/pebble") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17jqkmgh8hl4cazslnjc90blzncqv5g2h0nf1bihpc26x7an3xqx")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/letsencrypt/pebble/v2")) + (propagated-inputs + (list go-github-com-go-jose-go-jose-v4 + go-github-com-letsencrypt-challtestsrv + go-github-com-miekg-dns)) + (home-page "https://github.com/letsencrypt/pebble") + (synopsis "RFC 8555 ACME test server") + (description + "This package provides a miniature version of +@url{https://github.com/letsencrypt/boulder, Boulder}, Pebble is a small +@url{https://github.com/ietf-wg-acme/acme, ACME} test server not suited for +use as a production CA.") + (license license:mpl2.0))) + (define-public go-github-com-levigross-grequests (package (name "go-github-com-levigross-grequests") @@ -5874,7 +6246,6 @@ intends to be compatible with Avahi.") (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "github.com/LINBIT/golinstor")) (native-inputs (list go-github-com-stretchr-testify)) @@ -5975,6 +6346,7 @@ fixed.") go-golang-org-x-text)) (arguments (list + #:go go-1.23 #:import-path "github.com/makeworld-the-better-one/go-gemini")) (home-page "https://github.com/makew0rld/go-gemini") (synopsis "Client/server library for the Gemini protocol, in Go") @@ -6085,6 +6457,31 @@ supported by HTTP PATCH method, allowing for standards based partial updates via REST APIs.") (license license:asl2.0))) +(define-public go-github-com-matterbridge-gomatrix + (package + (name "go-github-com-matterbridge-gomatrix") + (version "0.0.0-20220411225302-271e5088ea27") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/matterbridge/gomatrix") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08y6kbsa9cs4d9qckwg85i64gz7jbv606gqk4sk09172bzaxzsm1")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/matterbridge/gomatrix")) + (home-page "https://github.com/matterbridge/gomatrix") + (synopsis "Golang Matrix client") + (description + "Package gomatrix implements the Matrix Client-Server API. This package +is an alternative fork of not maintained +https://github.com/matrix-org/gomatrix project.") + (license license:asl2.0))) + (define-public go-github-com-mattn-go-ieproxy (package (name "go-github-com-mattn-go-ieproxy") @@ -6589,9 +6986,9 @@ communication between a hypervisor and its virtual machines.") operations on Linux using nl80211.") (license license:expat))) -(define-public go-github-com-mholt-acmez +(define-public go-github-com-mholt-acmez-v2 (package - (name "go-github-com-mholt-acmez") + (name "go-github-com-mholt-acmez-v2") (version "2.0.3") (source (origin @@ -6605,7 +7002,7 @@ operations on Linux using nl80211.") (build-system go-build-system) (arguments (list - #:import-path "github.com/mholt/acmez")) + #:import-path "github.com/mholt/acmez/v2")) (propagated-inputs (list go-golang-org-x-crypto go-golang-org-x-net @@ -6651,6 +7048,24 @@ RFC 8737} (tls-alpn-01 challenge), @url{https://tools.ietf.org/html/rfc8823, RFC @end itemize") (license license:asl2.0))) +(define-public go-github-com-mholt-acmez-v3 + (package + (inherit go-github-com-mholt-acmez-v2) + (name "go-github-com-mholt-acmez-v3") + (version "3.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mholt/acmez") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0knh1j9679ma50myh38nj1hpgifk2h3jyn70nnjsmmmm6whysnlg")))) + (arguments + (list + #:import-path "github.com/mholt/acmez/v3")))) + (define-public go-github-com-microcosm-cc-bluemonday (package (name "go-github-com-microcosm-cc-bluemonday") @@ -6927,7 +7342,7 @@ function for formatting a Forwarded header.") (define-public go-github-com-multiformats-go-multiaddr (package (name "go-github-com-multiformats-go-multiaddr") - (version "0.13.0") + (version "0.15.0") (source (origin (method git-fetch) @@ -6936,7 +7351,7 @@ function for formatting a Forwarded header.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0029zjhndbisfsc2msd2h18pcw23rqvf40drkcf7nxic3y2vaff7")))) + (base32 "0rnq4b9vn6d0d9b6m0yqwdigrgidky3smrgnp5w8sfw523nk5dkl")))) (build-system go-build-system) (arguments (list @@ -7298,6 +7713,42 @@ standard library.") (description "OpenTracing-Go is a Go implementation of the OpenTracing API.") (license license:asl2.0))) +(define-public go-github-com-openzipkin-zipkin-go + (package + (name "go-github-com-openzipkin-zipkin-go") + (version "0.4.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openzipkin/zipkin-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0780agn2bygi7i2nxng8n80mspaab17k95px1vf6nqil1kg8hh7m")))) + (build-system go-build-system) + (arguments + (list + ;; TODO: Enable tests and build when all missing inputs are packags, use + ;; as source only package for Kubo. + #:skip-build? #t + #:tests? #f + #:import-path "github.com/openzipkin/zipkin-go")) + (native-inputs + (list go-github-com-onsi-ginkgo-v2 + go-github-com-onsi-gomega)) + (propagated-inputs + (list ;; go-github-com-ibm-sarama + ;; go-github-com-rabbitmq-amqp091-go + go-google-golang-org-grpc + go-google-golang-org-protobuf)) + (home-page "https://github.com/openzipkin/zipkin-go") + (synopsis "Zipkin Library for Go") + (description + "Package zipkin implements a native Zipkin instrumentation library for +Go.") + (license license:asl2.0))) + (define-public go-github-com-oschwald-geoip2-golang (package (name "go-github-com-oschwald-geoip2-golang") @@ -7386,7 +7837,6 @@ higher-level API for doing so.") (build-system go-build-system) (arguments (list - #:go go-1.24 #:skip-build? #t #:import-path "github.com/osrg/gobgp/v3")) (native-inputs @@ -7443,6 +7893,7 @@ Border Gateway Protocol}} implementation.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "github.com/ovn-kubernetes/libovsdb" #:test-flags @@ -7529,22 +7980,44 @@ also be used to manage your stamp collection.") (build-system go-build-system) (arguments (list - #:import-path "github.com/pascaldekloe/goe" - #: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" "./...")))))))) + #:go go-1.23 + #:skip-build? #t + #:import-path "github.com/pascaldekloe/goe")) (home-page "https://github.com/pascaldekloe/goe") (synopsis "Enterprise tooling for Golang") (description "Common enterprise features for the Go programming language.") (license license:cc0))) +(define-public go-github-com-performancecopilot-speed-v4 + (package + (name "go-github-com-performancecopilot-speed-v4") + (version "4.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/performancecopilot/speed") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zpf42pid3cd3sqv4gy2h51adq2zpw0pi0v3fpgxqna4iia280j0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/performancecopilot/speed/v4")) + (propagated-inputs + (list go-github-com-edsrzf-mmap-go + go-github-com-hdrhistogram-hdrhistogram-go + go-github-com-pkg-errors)) + (home-page "https://github.com/performancecopilot/speed") + (synopsis "Performance Co-Pilot instrumentation API in Golang") + (description + "Package speed implements a golang client for the @url{https://pcp.io/, +Performance Co-Pilot}, system performance analysis toolkit, instrumentation +API.") + (license license:expat))) + (define-public go-github-com-perimeterx-marshmallow (package (name "go-github-com-perimeterx-marshmallow") @@ -7561,6 +8034,7 @@ also be used to manage your stamp collection.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/perimeterx/marshmallow")) (native-inputs (list go-github-com-go-test-deep)) @@ -7808,6 +8282,7 @@ part of @url{https://github.com/pion, Pion} WebRTC implementation.") (base32 "0f9jy80law69zb26rkb6kl6w1c66vdghdrmifhwlmzngb644ihdb")))) (arguments (list + #:go go-1.23 #:tests? #f ;Tests require network access. #:import-path "github.com/pion/ice/v3")) (propagated-inputs @@ -8113,6 +8588,7 @@ Protocol,SCTP} as specified in (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/pion/stun")) (native-inputs (list go-github-com-stretchr-testify)) @@ -8147,6 +8623,7 @@ Protocol,SCTP} as specified in (base32 "0zli55ls5izpr6cw0wj0gy44872xn9rk20i8ay9cfk7j2rb60y60")))) (arguments (list + #:go go-1.23 #:import-path "github.com/pion/stun/v2")) (propagated-inputs (list go-github-com-pion-dtls-v2 @@ -8171,6 +8648,7 @@ Protocol,SCTP} as specified in (base32 "0yavl76y0fida9f1jfdmzdg7rm5jhp6kvdgn3smsf93jad1vbr2x")))) (arguments (list + #:go go-1.23 #:import-path "github.com/pion/stun/v3")) (propagated-inputs (list go-github-com-pion-dtls-v3 @@ -8277,6 +8755,7 @@ throughout the @url{https://github.com/pion, Pion} modules.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/pion/turn" #:test-flags #~(list "-skip" @@ -8737,7 +9216,7 @@ the Go standard library}.") (define-public go-github-com-quic-go-quic-go (package (name "go-github-com-quic-go-quic-go") - (version "0.45.2") + (version "0.52.0") (source (origin (method git-fetch) @@ -8746,10 +9225,11 @@ the Go standard library}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0skg771b6h9xlssf7prkryypz4j8hnkz7k3i76qhxdc4iz4rqyfz")))) + (base32 "0frcjzrarvk3ck6dhqp88a1cbazw7jb26gxq1wp3lhgmxv4v4m2m")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/quic-go/quic-go" #:phases #~(modify-phases %standard-phases @@ -8774,8 +9254,8 @@ the Go standard library}.") (native-inputs (list go-ginkgo go-github-com-onsi-ginkgo-v2 - go-go-uber-org-mock - go-golang-org-x-time)) + go-github-com-stretchr-testify + go-go-uber-org-mock)) (propagated-inputs (list go-github-com-francoispqt-gojay go-github-com-quic-go-qpack @@ -8792,43 +9272,48 @@ protocol.") (license license:expat))) (define-public go-github-com-quic-go-webtransport-go - (package - (name "go-github-com-quic-go-webtransport-go") - (version "0.8.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/quic-go/webtransport-go") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0zwr4jg4dg2b14kkypkbs8dpai5b5s44gm5gq0vrs3mmg6vq0v97")))) - (build-system go-build-system) - (arguments - (list - #: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)) - (propagated-inputs - (list go-github-com-quic-go-quic-go - go-golang-org-x-exp)) - (home-page "https://github.com/quic-go/webtransport-go") - (synopsis "WebTransport implementation based on quic-go") - (description - "webtransport-go is an implementation of the @code{WebTransport} protocol, based -on @@url{https://github.com/quic-go/quic-go,quic-go}. It currently implements + ;; XXX: The latest commits contains comparability with Go@1.24 and QUICK + ;; 0.48+, revert back to version tag when released. + (let ((commit "0a9e2ee55f751e48eb03c4675d873edff3b69c05") + (revision "0")) + (package + (name "go-github-com-quic-go-webtransport-go") + (version (git-version "0.8.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/quic-go/webtransport-go") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "048qf7glv3zgz43qvi1smwsh1khhzyfrid6hp5dnp799p3s3vk13")))) + (build-system go-build-system) + (arguments + (list + #: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)) + (propagated-inputs + (list go-github-com-quic-go-quic-go + go-golang-org-x-exp)) + (home-page "https://github.com/quic-go/webtransport-go") + (synopsis "WebTransport implementation based on quic-go") + (description + "webtransport-go is an implementation of the @code{WebTransport} +protocol, based on @@url{https://github.com/quic-go/quic-go,quic-go}. It +currently implements @@url{https://www.ietf.org/archive/id/draft-ietf-webtrans-http3-02.html,draft-02} of the specification.") - (license license:expat))) + (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") + (version "0.0.0-20250401214520-65e299d6c5c9") (source (origin (method git-fetch) @@ -8837,14 +9322,23 @@ of the specification.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0s7zab04slz07c7l4h2cqz62qnqah69r6p157vvbd7725a7wzkr0")))) + (base32 "1d47289sm3gzjx0ah5wi0gcia40kixfyxyilrdrdzlak8mra94c4")))) (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")) + (list + #:go go-1.23 + #:import-path "github.com/rcrowley/go-metrics" + #:test-flags + ;; Arbitrary precision tests are known to be broken on aarch64, ppc64le + ;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249 + #~(list #$@(if (or (target-aarch64?) (target-ppc64le?)) + '("-skip" (string-join + (list "TestEWMA1" + "TestEWMA5" + "TestUniformSampleSnapshot" + "TestUniformSampleStatistics") + "|")) + '())))) (propagated-inputs (list go-github-com-stathat-go)) (home-page "https://github.com/rcrowley/go-metrics") @@ -9054,6 +9548,69 @@ 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-santhosh-tekuri-jsonschema-v5 + (package + (name "go-github-com-santhosh-tekuri-jsonschema-v5") + (version "5.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/santhosh-tekuri/jsonschema") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fjklx6sik1pp4qpmzsvwfmavd1m9pcsyap1wvajhm2d8wx3vnh0")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/santhosh-tekuri/jsonschema/cmd/jv + (delete-file-recursively "cmd"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/santhosh-tekuri/jsonschema/v5" + #:test-flags + #~(list "-skip" (string-join + ;; TODO: Figure out why these test patterns fail. + (list "TestDraft2019/optional" + "TestDraft2019/refRemote.json" + "TestDraft2019/vocabulary.json" + "TestDraft2020/dynamicRef.json" + "TestDraft2020/optional" + "TestDraft2020/refRemote.json" + "TestDraft2020/vocabulary.json" + "TestDraft4/refRemote.json" + "TestDraft6/refRemote.json" + "TestDraft7/optional" + "TestDraft7/refRemote.json" + "TestExtra/draft2020") + "|")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'copy-json-schema-specs + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (copy-recursively + (string-append #$(this-package-native-input + "specification-json-schema-test-suite") + "/share/tests") + "testdata/JSON-Schema-Test-Suite/tests")))) + (add-after 'check 'remove-json-schema-specs + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively + "testdata/JSON-Schema-Test-Suite/tests"))))))) + (native-inputs + (list specification-json-schema-test-suite)) + (home-page "https://github.com/santhosh-tekuri/jsonschema") + (synopsis "JSONSchema validation using Golang") + (description + "Package jsonschema provides json-schema compilation and validation.") + (license license:asl2.0))) + (define-public go-github-com-sherclockholmes-webpush-go (package (name "go-github-com-sherclockholmes-webpush-go") @@ -9081,6 +9638,45 @@ information or even the peer of a VETH interface.") support.") (license license:expat))) +(define-public go-github-com-shopify-goreferrer + (package + (name "go-github-com-shopify-goreferrer") + (version "0.0.0-20250513162709-b78e2829e40b") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Shopify/goreferrer") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1sdmhkb1z5lhk7sgwq13vn2ryp0aaj4vsqb3fcxj8nyjvq19bfin")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/Shopify/goreferrer" + #:embed-files + #~(list + ;; golang.org/x/net/publicsuffix/table.go:63:12: pattern + ;; data/children: cannot embed irregular file data/children + "children" + ;; golang.org/x/net/publicsuffix/table.go:48:12: pattern data/nodes: + ;; cannot embed irregular file data/nodes + "nodes" + ;; golang.org/x/net/publicsuffix/table.go:33:12: pattern data/text: + ;; cannot embed irregular file data/text + "text"))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-golang-org-x-net)) + (home-page "https://github.com/Shopify/goreferrer") + (synopsis "Referrer URLs analyzer and classifier library for Golang") + (description + "This package provides a Go module that analyzes and classifies different +kinds of referrer URLs (search, social, ...).") + (license license:expat))) + (define-public go-github-com-shurcool-githubv4 (package (name "go-github-com-shurcool-githubv4") @@ -9225,6 +9821,56 @@ use gzip compression when serving HTTP requests.") provided @code{http.FileSystem}.") (license license:expat))) +(define-public go-github-com-slok-go-http-metrics + (package + (name "go-github-com-slok-go-http-metrics") + (version "0.13.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/slok/go-http-metrics") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lrnf0vhqlnhad6n8yyc2iafqlw6jr55cmyg9gqns2yi2gdfqv8m")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/slok/go-http-metrics" + ;; XXX: Full tests require Iris package. + #:test-subdirs #~(list "metrics/...") + #: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"))))))) + (propagated-inputs + (list go-contrib-go-opencensus-io-exporter-prometheus + go-github-com-emicklei-go-restful-v3 + go-github-com-fasthttp-router + go-github-com-gin-gonic-gin + go-github-com-go-chi-chi-v5 + go-github-com-gorilla-mux + go-github-com-julienschmidt-httprouter + go-github-com-justinas-alice + ;; go-github-com-kataras-iris-v12 + go-github-com-labstack-echo-v4 + go-github-com-prometheus-client-golang + go-github-com-stretchr-testify + go-github-com-urfave-negroni + go-github-com-valyala-fasthttp + go-go-opencensus-io + go-goji-io)) + (home-page "https://github.com/slok/go-http-metrics") + (synopsis "Modular http middleware to measure HTTP requests") + (description + "Package gohttpmetrics knows how to measure http metrics in different +metric formats, it comes with a middleware that can be used for different +frameworks and also the the main Go net/http handler:.") + (license license:asl2.0))) + (define-public go-github-com-smartystreets-go-aws-auth (package (name "go-github-com-smartystreets-go-aws-auth") @@ -9360,6 +10006,7 @@ StatHat} account.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/swaggo/swag" #:unpack-path "github.com/swaggo/swag" #:embed-files @@ -9757,7 +10404,7 @@ extract data from those paths.") (define-public go-github-com-ugorji-go-codec (package (name "go-github-com-ugorji-go-codec") - (version "1.2.12") + (version "1.2.14") (source (origin (method git-fetch) @@ -9766,10 +10413,11 @@ extract data from those paths.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "11j0sd7kli2bh2npfr2znnvdjsk118rs8khqzfdp6pb5jm0l20ib")))) + (base32 "1mny5gm5gr82hz4y6k5ljaa0khjw647ys278wq750fgrbzp6fs8h")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/ugorji/go/codec" #:unpack-path "github.com/ugorji/go" #:phases #~(modify-phases %standard-phases @@ -9802,6 +10450,7 @@ encoding library for the MessagePack, CBOR, JSON and the Binc formats.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/urfave/negroni")) (home-page "https://github.com/urfave/negroni") (synopsis "Idiomatic HTTP Middleware for Golang") @@ -9827,6 +10476,7 @@ tiny,non-intrusive, and encourages use of @code{net/http} Handlers.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/urfave/negroni/v3")))) (define-public go-github-com-valyala-fasthttp @@ -10265,6 +10915,7 @@ programming language.") (build-system go-build-system) (arguments (list + #:go go-1.23 ;; validation of time strings. only RFC3339 not all of ISO 8601 are ;; valid. expects: false, given true Schema: {"format":"time"} Data: ;; "01:01:01,1111" @@ -10446,7 +11097,7 @@ connection management for @url{https://github.com/xtaci/kcp-go,kcp-go}.") go-github-com-hashicorp-go-syslog go-github-com-hjson-hjson-go-v4 go-github-com-kardianos-minwinsvc - go-github-com-olekukonko-tablewriter + go-github-com-olekukonko-tablewriter-0.0.5 go-github-com-quic-go-quic-go go-github-com-vishvananda-netlink go-github-com-wlynxg-anet @@ -10497,6 +11148,7 @@ It is to used for inputs in other packages.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/zitadel/oidc/v3" #:test-flags #~(list "-skip" (string-join @@ -10550,7 +11202,6 @@ https://openid.net/developers/how-connect-works/}.") (build-system go-build-system) (arguments (list - #:go go-1.22 #:import-path "gitlab.com/gitlab-org/api/client-go" #:test-flags #~(list "-skip" @@ -10637,7 +11288,7 @@ Go.") (package (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-ptutil") - (version "0.0.0-20240710081135-6c4d8ed41027") + (version "0.0.0-20250130151315-efaf4e0ec0d3") (source (origin (method git-fetch) @@ -10648,16 +11299,21 @@ Go.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1h7ssgsny6abhpycgks1kvqzvd20s081n39j5yxjjr7zn495ysdc")))) + (base32 "04c76aygplm81h49dbibzjax1r9b4i37rn7qi8qsi2j2czvm639z")))) (build-system go-build-system) (arguments (list #:skip-build? #t #:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/ptutil")) + (native-inputs + (list go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2-bootstrap)) (propagated-inputs (list go-github-com-prometheus-client-golang go-github-com-prometheus-client-model + go-github-com-refraction-networking-utls + go-github-com-smartystreets-goconvey + go-golang-org-x-net go-google-golang-org-protobuf)) (home-page "https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/ptutil") @@ -10670,7 +11326,7 @@ Go.") (package (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2") - (version "2.10.1") + (version "2.11.0") (source (origin (method git-fetch) @@ -10681,19 +11337,20 @@ Go.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "14ypgzj6c6vjw9s85wf2vdfa9l06iandx7gz90i3w6r65q2cp6vj")))) + (base32 "0cy0q88bw14fwbyk0nrdc1g73g7623k337w4b9n7hln2jmis5wjm")))) (build-system go-build-system) (arguments (list - ;; Project provides a Go library and also CLI builds. + #:go go-1.23 + ;; TODO: Project provides a Go library and also CLI builds for service, + ;; client and proxy. #: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)) + (list 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 @@ -10702,16 +11359,15 @@ Go.") 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-ice-v4 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-pion-transport-v3 + go-github-com-pion-webrtc-v4 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 @@ -10742,6 +11398,20 @@ library code @end itemize") (license license:bsd-3))) +(define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2-bootstrap + ;; This variant is to break cycle where ptuil tries to read version from + ;; <gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/version> + (hidden-package + (package/inherit go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2 + (arguments + (list #:skip-build? #t + #:tests? #f + #:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2")) + (propagated-inputs + (modify-inputs (package-propagated-inputs + go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-snowflake-v2) + (delete "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-ptutil")))))) + (define-public go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel (package (name "go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-webtunnel") @@ -10831,7 +11501,7 @@ lists) (build-system go-build-system) (arguments (list - #:go go-1.22 + #:go go-1.23 #:import-path "go.opencensus.io" #:test-flags #~(list "-skip" @@ -10859,35 +11529,6 @@ lists) "Package opencensus contains Go support for @code{OpenCensus}.") (license license:asl2.0))) -(define-public go-go-opentelemetry-io-contrib - (package - (name "go-go-opentelemetry-io-contrib") - (version "1.35.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/open-telemetry/opentelemetry-go-contrib") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1gnhccl9fkyqr4kp8by3cqzsc1w88h1ghxikdh5fpwnvsdqzqy9q")))) - (build-system go-build-system) - (arguments - (list - #:go go-1.22 - #:import-path "go.opentelemetry.io/contrib" - #:tests? #f)) - (native-inputs (list go-github-com-stretchr-testify)) - (propagated-inputs (list go-github-com-felixge-httpsnoop)) - (home-page "https://go.opentelemetry.io/contrib") - (synopsis "OpenTelemetry-Go Contrib") - (description - "Package contrib is a collection of extensions for the opentelemetry-go project. -It provides 3rd party resource detectors, propagators, samplers, bridges, and -instrumentation as submodules.") - (license license:asl2.0))) - (define-public go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp (package (name "go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp") @@ -10933,6 +11574,202 @@ intended to be used to add tracing by wrapping existing handlers (with Handler) and routes @code{WithRouteTag}.") (license license:asl2.0))) +(define-public go-go-opentelemetry-io-contrib-propagators-autoprop + (package + (name "go-go-opentelemetry-io-contrib-propagators-autoprop") + (version "0.61.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go-contrib") + (commit (go-version->git-ref version + #:subdir "propagators/autoprop")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15k2xps4qv37pw3ml6pj98kihl6a04bbr005px5hhckl23s40w2c")) + (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 "propagators" "autoprop") + (delete-all-but "." "propagators"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/contrib/propagators/autoprop" + #:unpack-path "go.opentelemetry.io/contrib")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-go-opentelemetry-io-contrib-propagators-aws + go-go-opentelemetry-io-contrib-propagators-b3 + go-go-opentelemetry-io-contrib-propagators-jaeger + go-go-opentelemetry-io-contrib-propagators-ot + go-go-opentelemetry-io-otel)) + (home-page "https://opentelemetry.io/") + (synopsis "OpenTelemetry TextMapPropagator creation") + (description + "Package autoprop provides an @code{OpenTelemetry} +@code{TextMapPropagator} creation function. The @code{OpenTelemetry} +specification states that the default @code{TextMapPropagator} needs to be a +no-operation implementation. The opentelemetry-go project adheres to this +requirement. However, for systems that perform propagation this default is +not ideal. This package provides a @code{TextMapPropagator} with useful +defaults (a combined @code{TraceContext} and Baggage +@code{TextMapPropagator}), and supports environment overrides using the +OTEL_PROPAGATORS environment variable.") + (license license:asl2.0))) + +(define-public go-go-opentelemetry-io-contrib-propagators-aws + (package + (name "go-go-opentelemetry-io-contrib-propagators-aws") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go-contrib") + (commit (go-version->git-ref version + #:subdir "propagators/aws")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15k2xps4qv37pw3ml6pj98kihl6a04bbr005px5hhckl23s40w2c")))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/contrib/propagators/aws" + #:unpack-path "go.opentelemetry.io/contrib")) + (native-inputs + (list go-github-com-google-go-cmp + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel-sdk + go-go-opentelemetry-io-otel-trace)) + (home-page "https://go.opentelemetry.io/contrib") + (synopsis "OpenTracing AWS propagator library") + (description + "Package aws contains @code{OpenTelemetry} propagators that use AWS +propagation formats.") + (license license:asl2.0))) + +(define-public go-go-opentelemetry-io-contrib-propagators-b3 + (package + (name "go-go-opentelemetry-io-contrib-propagators-b3") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go-contrib") + (commit (go-version->git-ref version + #:subdir "propagators/b3")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15k2xps4qv37pw3ml6pj98kihl6a04bbr005px5hhckl23s40w2c")))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/contrib/propagators/b3" + #:unpack-path "go.opentelemetry.io/contrib")) + (native-inputs + (list go-github-com-google-go-cmp + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel-trace)) + (home-page "https://go.opentelemetry.io/contrib") + (synopsis "OpenTracing B3 propagator library") + (description + "Package b3 implements the B3 propagator specification as defined at +@@url{https://github.com/openzipkin/b3-propagation,}.") + (license license:asl2.0))) + +(define-public go-go-opentelemetry-io-contrib-propagators-jaeger + (package + (name "go-go-opentelemetry-io-contrib-propagators-jaeger") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go-contrib") + (commit (go-version->git-ref version + #:subdir "propagators/jaeger")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15k2xps4qv37pw3ml6pj98kihl6a04bbr005px5hhckl23s40w2c")))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/contrib/propagators/jaeger" + #:unpack-path "go.opentelemetry.io/contrib")) + (native-inputs + (list go-github-com-google-go-cmp + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel-trace)) + (home-page "https://go.opentelemetry.io/contrib") + (synopsis "OpenTracing Jaeger propagator library") + (description + "Package jaeger implements the Jaeger propagator specification as defined +at +@url{https://www.jaegertracing.io/docs/1.18/client-libraries/#propagation-format}.") + (license license:asl2.0))) + +(define-public go-go-opentelemetry-io-contrib-propagators-ot + (package + (name "go-go-opentelemetry-io-contrib-propagators-ot") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go-contrib") + (commit (go-version->git-ref version + #:subdir "propagators/ot")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15k2xps4qv37pw3ml6pj98kihl6a04bbr005px5hhckl23s40w2c")))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/contrib/propagators/ot" + #:unpack-path "go.opentelemetry.io/contrib")) + (native-inputs + (list go-github-com-google-go-cmp + go-github-com-stretchr-testify)) + (propagated-inputs + (list + go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel-trace + go-go-uber-org-multierr)) + (home-page "https://opentelemetry.io/") + (synopsis "OpenTracing propagator library") + (description + "Package ot implements the ot-tracer-* propagator used by the default +Tracer implementation from the @code{OpenTracing} project.") + (license license:asl2.0))) + (define-public go-go-opentelemetry-io-otel (package (name "go-go-opentelemetry-io-otel") @@ -10957,21 +11794,9 @@ Handler) and routes @code{WithRouteTag}.") ;; the longest path to go.mod first, shell snippet to ;; produce the list: ;; find . -type f -name go.mod -printf "%d %p\n" | sort -rn - (list "exporters/otlp/otlptrace/otlptracehttp" - "exporters/otlp/otlptrace/otlptracegrpc" - "exporters/otlp/otlpmetric/otlpmetrichttp" - "exporters/otlp/otlpmetric/otlpmetricgrpc" - "exporters/otlp/otlplog/otlploghttp" - "exporters/otlp/otlplog/otlploggrpc" - "exporters/stdout/stdouttrace" - "exporters/stdout/stdoutmetric" - "exporters/stdout/stdoutlog" - "exporters/otlp/otlptrace" - "sdk/metric" + (list "sdk/metric" "sdk/log" "internal/tools" - "exporters/zipkin" - "exporters/prometheus" "example/zipkin" "example/prometheus" "example/passthrough" @@ -10982,6 +11807,7 @@ Handler) and routes @code{WithRouteTag}.") "bridge/opentracing" "bridge/opencensus" ;; "trace" - introduces a cycle, keep it + "exporters" "sdk" "schema" ;; "metric" - introduces a cycle, keep it @@ -11008,6 +11834,280 @@ 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-exporters-otlp-otlptrace + (package + (name "go-go-opentelemetry-io-otel-exporters-otlp-otlptrace") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go") + (commit (go-version->git-ref version + #:subdir "exporters/otlp/otlptrace")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kvfbqc56p1h9rh9cvgn37ya6k10613r0f2rhjiwrrkgs2mszk30")) + (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 "exporters/otlp" "otlptrace") + (delete-all-but "." "exporters") + ;; Submodules with their own go.mod files and packed as separated + ;; packages: + ;; + ;; - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc + ;; - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp + (for-each delete-file-recursively + (list "exporters/otlp/otlptrace/otlptracegrpc" + "exporters/otlp/otlptrace/otlptracehttp")))))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/otel/exporters/otlp/otlptrace" + #:unpack-path "go.opentelemetry.io/otel")) + (native-inputs + (list go-github-com-google-go-cmp + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-go-opentelemetry-io-proto-otlp + go-google-golang-org-protobuf)) + (home-page "https://go.opentelemetry.io/otel") + (synopsis "OTLP Trace Exporter") + (description + "Package otlptrace contains abstractions for OTLP span exporters.") + (license license:asl2.0))) + +(define-public go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracegrpc + (package + (name "go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracegrpc") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go") + (commit (go-version->git-ref version + #:subdir "exporters/otlp/otlptrace/otlptracegrpc")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kvfbqc56p1h9rh9cvgn37ya6k10613r0f2rhjiwrrkgs2mszk30")) + (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 "exporters/otlp/otlptrace" "otlptracegrpc") + (delete-all-but "." "exporters"))))) + (build-system go-build-system) + (arguments + (list + ;; TODO: Enable when all missing inputs are availalbe, use as source + ;; only package for Boxo. + #:skip-build? #t + #:tests? #f + #:import-path + "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" + #:unpack-path "go.opentelemetry.io/otel")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-cenkalti-backoff-v5 + go-go-opentelemetry-io-proto-otlp + go-go-uber-org-goleak + go-google-golang-org-genproto-googleapis-rpc + go-google-golang-org-grpc + go-google-golang-org-protobuf)) + (home-page "https://go.opentelemetry.io/otel") + (synopsis "OTLP Trace gRPC Exporter") + (description + "Package otlptracegrpc provides an OTLP span exporter using @code{gRPC}. +By default the telemetry is sent to @@url{https://localhost:4317}.") + (license license:asl2.0))) + +(define-public go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracehttp + (package + (name "go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracehttp") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go") + (commit (go-version->git-ref version + #:subdir "exporters/otlp/otlptrace/otlptracehttp")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kvfbqc56p1h9rh9cvgn37ya6k10613r0f2rhjiwrrkgs2mszk30")) + (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 "exporters/otlp/otlptrace" "otlptracehttp") + (delete-all-but "." "exporters"))))) + (build-system go-build-system) + (arguments + (list + ;; TODO: Enable when all missing inputs are availalbe, use as source + ;; only package for Boxo. + #:skip-build? #t + #:tests? #f + #:import-path + "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp" + #:unpack-path "go.opentelemetry.io/otel")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-cenkalti-backoff-v5 + go-go-opentelemetry-io-proto-otlp + ;; go-google-golang-org-grpc + go-google-golang-org-protobuf)) + (home-page "https://go.opentelemetry.io/otel") + (synopsis "OTLP Trace HTTP Exporter") + (description + "Package otlptracehttp provides an OTLP span exporter using HTTP with +protobuf payloads. By default the telemetry is sent to +@@url{https://localhost:4318/v1/traces}.") + (license license:asl2.0))) + +(define-public go-go-opentelemetry-io-otel-exporters-stdout-stdouttrace + (package + (name "go-go-opentelemetry-io-otel-exporters-stdout-stdouttrace") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go") + (commit (go-version->git-ref version + #:subdir + "exporters/stdout/stdouttrace")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kvfbqc56p1h9rh9cvgn37ya6k10613r0f2rhjiwrrkgs2mszk30")))) + (build-system go-build-system) + (arguments + (list + ;; TODO: Enable when all missing inputs are availalbe, use as source + ;; only package for Boxo. + #:skip-build? #t + #:tests? #f + #:import-path "go.opentelemetry.io/otel/exporters/stdout/stdouttrace" + #:unpack-path "go.opentelemetry.io/otel")) + (propagated-inputs (list go-github-com-stretchr-testify)) + (home-page "https://go.opentelemetry.io/otel") + (synopsis "STDOUT Trace Exporter") + (description + "Package stdouttrace contains an @code{OpenTelemetry} exporter for tracing +telemetry to be written to an output destination as JSON.") + (license license:asl2.0))) + +(define-public go-go-opentelemetry-io-otel-exporters-zipkin + (package + (name "go-go-opentelemetry-io-otel-exporters-zipkin") + (version "1.36.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-go") + (commit (go-version->git-ref version + #:subdir "exporters/zipkin")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kvfbqc56p1h9rh9cvgn37ya6k10613r0f2rhjiwrrkgs2mszk30")) + (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 "exporters" "zipkin") + (delete-all-but "." "exporters"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opentelemetry.io/otel/exporters/zipkin" + #:unpack-path "go.opentelemetry.io/otel")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-openzipkin-zipkin-go + go-github-com-google-go-cmp + go-github-com-go-logr-stdr + go-github-com-go-logr-logr)) + (home-page "https://go.opentelemetry.io/otel") + (synopsis "Zipkin Exporter") + (description + "Package zipkin contains an @code{OpenTelemetry} tracing exporter for Zipkin.") + (license license:asl2.0))) + (define-public go-go-opentelemetry-io-otel-log (package (name "go-go-opentelemetry-io-otel-log") @@ -11260,6 +12360,39 @@ metrics SDK.") "Package trace provides an implementation of the tracing part of the OpenTelemetry API."))) +(define-public go-go-opentelemetry-io-proto-otlp + (package + (name "go-go-opentelemetry-io-proto-otlp") + (version "1.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-telemetry/opentelemetry-proto-go") + (commit (go-version->git-ref version + #:subdir "otlp")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0k7g5p1qhw17szyzxr08aixi5d0d2ixlb3sp4dksgz45v0dy5cds")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "go.opentelemetry.io/proto/otlp" + #:unpack-path "go.opentelemetry.io/proto")) + (propagated-inputs + (list go-github-com-grpc-ecosystem-grpc-gateway-v2 + go-google-golang-org-grpc + go-google-golang-org-protobuf)) + (home-page "https://go.opentelemetry.io/proto") + (synopsis "OpenTelemetry protobuf data model") + (description + "This package provides Go code follows the stability guarantees as +defined in +@code{https://github.com/open-telemetry/opentelemetry-proto?tab=readme-ov-file#maturity-level, +maturity level}.") + (license license:asl2.0))) + (define-public go-go-starlark-net (package (name "go-go-starlark-net") @@ -11396,6 +12529,68 @@ the standard @code{context} package to store request-scoped values.") (description "This package is a Go Implementation of WireGuard.") (license license:expat))) +(define-public go-google-golang-org-genproto-googleapis-api + (package + (name "go-google-golang-org-genproto-googleapis-api") + (version "0.0.0-20250519155744-55703ea1f237") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/googleapis/go-genproto") + (commit (go-version->git-ref version #:subdir "googleapis/api")))) + (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)))) + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - google.golang.org/genproto/googleapis/api/apikeys + ;; - google.golang.org/genproto/googleapis/api/servicecontrol + ;; - google.golang.org/genproto/googleapis/api/servicemanagement + ;; - google.golang.org/genproto/googleapis/api/serviceusage + (for-each delete-file-recursively + (list "googleapis/api/apikeys" + "googleapis/api/servicecontrol" + "googleapis/api/servicemanagement" + "googleapis/api/serviceusage")) + (delete-all-but "googleapis" "api") + (delete-all-but "." "googleapis"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ilf95lhx7930cqx2hmswxasxyxjz3xmbznd0cfcglzdl3d9k4rk")))) + (build-system go-build-system) + (arguments + (list + #:import-path "google.golang.org/genproto/googleapis/api" + #:unpack-path "google.golang.org/genproto")) + (propagated-inputs + (list go-google-golang-org-genproto-googleapis-rpc + go-google-golang-org-grpc + go-google-golang-org-protobuf)) + (home-page "https://github.com/googleapis/go-genproto") + (synopsis "API implementation of Google Cloud Platform in Golang") + (description + "This package provides an API to interact with @acronym{GCP, Google Cloud Platform}.") + (license license:asl2.0))) + (define-public go-google-golang-org-grpc (package (name "go-google-golang-org-grpc") @@ -11437,7 +12632,6 @@ the standard @code{context} package to store request-scoped values.") (build-system go-build-system) (arguments (list - #:go go-1.22 #:tests? #f ; TODO: full test suite needs more packages #:import-path "google.golang.org/grpc")) (propagated-inputs @@ -11526,7 +12720,6 @@ the standard @code{context} package to store request-scoped values.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:import-path "k8s.io/cri-api")) (native-inputs (list go-github-com-stretchr-testify)) @@ -11547,7 +12740,7 @@ docs}.") (define-public go-k8s-io-kube-openapi (package (name "go-k8s-io-kube-openapi") - (version "0.0.0-20241212222426-2c72e554b1e7") + (version "0.0.0-20250318190949-c8a335a9a2ff") ;; XXX: Unbundle third_party in pkg. (source (origin @@ -11557,7 +12750,7 @@ docs}.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0crd349jd210bh68ic70pqmdkfns7cix2qhsa6pfya6kbvschyf9")) + (base32 "02l2rp1fgraincay5xj9ar3l5v60svq07i6b2hamn74i3xkm3lis")) ;; XXX: test/integration contains submodule with it's own go.mod. (modules '((guix build utils))) (snippet @@ -11575,13 +12768,11 @@ docs}.") (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 + #:skip-build? #t + #:import-path "k8s.io/kube-openapi")) (native-inputs (list go-github-com-getkin-kin-openapi - go-github-com-google-gofuzz + go-sigs-k8s-io-randfill go-github-com-onsi-ginkgo-v2 go-github-com-onsi-gomega go-github-com-stretchr-testify)) @@ -11602,8 +12793,7 @@ docs}.") 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)) + go-sigs-k8s-io-structured-merge-diff-v4)) (home-page "https://github.com/kubernetes/kube-openapi") (synopsis "Kubernetes OpenAPI spec generation & serving") (description @@ -11794,7 +12984,6 @@ etc) (build-system go-build-system) (arguments (list - #:go go-1.22 #:import-path "mvdan.cc/xurls/v2" #:build-flags #~(list (string-append "-ldflags=-X main.version=" #$version)) @@ -12043,6 +13232,7 @@ carries no encryption keys and cannot decode the traffic that it proxies."))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/tomnomnom/gron")) (native-inputs diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 42aa985ac2..60e43e2b7a 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -144,6 +144,7 @@ (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "9fans.net/go" #:test-subdirs #~(list "acme/..." @@ -172,6 +173,63 @@ interacting with Acme windows of the Plan 9 text editor.") (license license:expat))) +(define-public go-ariga-io-atlas + (package + (name "go-ariga-io-atlas") + (version "0.35.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ariga/atlas") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09lh0j5w85xm0rli4cqifn5qkwdb1vnmwfdf5kymsf2w4qz3f82i")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - ariga.io/atlas/cmd/atlas + ;; - ariga.io/atlas/internal/integration + (delete-file-recursively "cmd") + (delete-file-recursively "internal/integration"))))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "ariga.io/atlas" + #:test-flags + #~(list "-skip" (string-join + (list "TestValidate" + "TestDriver_LockAcquired") + "|")) + #:phases + #~(modify-phases %standard-phases + ;; Received unexpected error: open + ;; /homeless-shelter/.cache/lock.lock: no such file or directory + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" "/tmp")))))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-bmatcuk-doublestar + go-github-com-data-dog-go-sqlmock + go-github-com-go-openapi-inflect + go-github-com-hashicorp-hcl-v2 + go-github-com-zclconf-go-cty + go-github-com-zclconf-go-cty-yaml + go-golang-org-x-mod + go-gopkg-in-yaml-v3)) + (home-page "https://ariga.io/atlas") + (synopsis "Database schema as code") + (description + "Atlas is a language-agnostic tool for managing and migrating database +schemas using @code{DevOps} principles.") + (license license:asl2.0))) + (define-public go-atomicgo-dev-cursor (package (name "go-atomicgo-dev-cursor") @@ -431,7 +489,7 @@ file along with an index.html file.") (define-public go-dario-cat-mergo (package (name "go-dario-cat-mergo") - (version "1.0.1") + (version "1.0.2") (source (origin (method git-fetch) @@ -440,10 +498,11 @@ file along with an index.html file.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0v12vc9bmqq89k4y60a8ykmv85hpa7nh73sn9b7ars143pxvmhf1")))) + (base32 "1q61904rd858ac19vsmmhz69b1hvn0y9rjfb9d2gc4abg64dva57")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "dario.cat/mergo")) (native-inputs (list go-gopkg-in-yaml-v3)) @@ -561,7 +620,9 @@ commands.") (base32 "1z64yzr2l5j5r5rqi89jk4madn3ak8hw95lva5ra7gnlyhh2vs05")))) (build-system go-build-system) (arguments - (list #:import-path "git.sr.ht/~rockorager/tcell-term")) + (list + #:go go-1.23 + #:import-path "git.sr.ht/~rockorager/tcell-term")) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs @@ -578,7 +639,7 @@ Go library.") (define-public go-git-sr-ht-rockorager-vaxis (package (name "go-git-sr-ht-rockorager-vaxis") - (version "0.13.0") + (version "0.14.0") (source (origin (method git-fetch) @@ -587,10 +648,11 @@ Go library.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0lv2ry55a19vym5km6d1rpyhafx2kh0ikcnishkjhyg93i884k52")))) + (base32 "09n2vafkb4mfxq4fiwf7ir3557q0h91n0s7imhh0789fj19g9j30")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "git.sr.ht/~rockorager/vaxis")) (native-inputs (list go-github-com-stretchr-testify)) @@ -668,7 +730,7 @@ Golang.") (define-public go-github-com-a8m-envsubst (package (name "go-github-com-a8m-envsubst") - (version "1.4.2") + (version "1.4.3") (source (origin (method git-fetch) @@ -677,10 +739,12 @@ Golang.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1mjs729g9nmalx25l4nn3p07amm4vsciqmdf0jbh2jwpy1zymz41")))) + (base32 "0pkvza3dr3bs2r8y8gfbckijcpl4w3llxd7zy8hw45zznynb273q")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/a8m/envsubst")) + (list + #:go go-1.23 + #:import-path "github.com/a8m/envsubst")) (home-page "https://github.com/a8m/envsubst") (synopsis "Environment variables substitution for Go") (description @@ -713,6 +777,46 @@ scripts (writing systems). Languages are represented by a defined list of constants, while scripts are represented by RangeTable.") (license license:expat))) +(define-public go-github-com-aclements-go-perfevent + (package + (name "go-github-com-aclements-go-perfevent") + (version "0.0.0-20240703205258-f34bb3e1a4e4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aclements/go-perfevent") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xlm7zi7k2ynla8z18n4zbz76n5f3iw5wz8axnn95jhdgzw07xr5")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/aclements/go-perfevent" + #:test-flags + ;; Disable tests requiring root access and failing with error: + ;; permission denied (consider: echo 0 | sudo tee + ;; /proc/sys/kernel/perf_event_paranoid) + #~(list "-skip" (string-join + (list "TestBasic" + "TestOpenGroup" + "TestOpenOne" + "TestResetRunning" + "TestResetStopped" + "TestStop" + "TestTotal") + "|")))) + (propagated-inputs + (list go-golang-org-x-sys)) + (home-page "https://github.com/aclements/go-perfevent") + (synopsis "Golang API for Linux's @code{perf_event_open}") + (description + "This package provides a simple Go API to Linux's @code{perf_event_open}, +supporting event counters and a basic set of events.") + (license license:bsd-3))) + (define-public go-github-com-adhocore-gronx (package (name "go-github-com-adhocore-gronx") @@ -739,6 +843,33 @@ runner and daemon that supports crontab like task list file. It may be used programatically in Golang or as standalone binary instead of crond.") (license license:expat))) +(define-public go-github-com-adrg-frontmatter + (package + (name "go-github-com-adrg-frontmatter") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/adrg/frontmatter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0slacbb6m6g9xg85qw3b170mimjahn9pryacm4iqk459s1qib6sq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/adrg/frontmatter")) + (propagated-inputs + (list go-github-com-burntsushi-toml + go-gopkg-in-yaml-v2)) + (home-page "https://github.com/adrg/frontmatter") + (synopsis "Detecting and decoding various content front matter formats") + (description + "This package implements fuctionality of detecting and decoding various +content front matter formats e.g. @code{JSON}, @code{TOML} and @code{YAML}.") + (license license:expat))) + (define-public go-github-com-adrg-strutil (package (name "go-github-com-adrg-strutil") @@ -935,7 +1066,9 @@ prompts on terminals supporting ANSI escape sequences.") (build-system go-build-system) ;; TODO: Build cmd/chroma and cmd/chromad commands. (arguments - `(#:import-path "github.com/alecthomas/chroma")) + (list + #:go go-1.23 + #:import-path "github.com/alecthomas/chroma")) (native-inputs (list go-github-com-alecthomas-kong go-github-com-alecthomas-kong-hcl @@ -1118,7 +1251,7 @@ Golang structs.") (define-public go-github-com-alecthomas-participle-v2 (package (name "go-github-com-alecthomas-participle-v2") - (version "2.1.1") + (version "2.1.4") (source (origin (method git-fetch) @@ -1127,7 +1260,7 @@ Golang structs.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0k2vsd58rgwyylyn5zja6z6k1sg4m39g2fhd88lvja60ca51bh98")))) + (base32 "0hfgrdzj0p2knqmnspkpjb1y4bbhbxbykckpvsp3mc1n9hr6gz01")))) (build-system go-build-system) (arguments (list @@ -1354,6 +1487,7 @@ environment and runtime configuration.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/AndreasBriese/bbloom")) (home-page "https://github.com/AndreasBriese/bbloom") (synopsis "Bitset Bloom filter for Golang") @@ -1489,7 +1623,7 @@ dumps of Go values.") (define-public go-github-com-apparentlymart-go-textseg-autoversion (package (name "go-github-com-apparentlymart-go-textseg-autoversion") - (version "1.3.0") + (version "1.4.0") (source (origin (method git-fetch) @@ -1498,7 +1632,7 @@ dumps of Go values.") (commit (go-version->git-ref version #:subdir "autoversion")))) (file-name (git-file-name name version)) (sha256 - (base32 "1j7vm09cd36wm4z986qz5am3rk242v52amcapwbdbkbgzx2kqfkm")))) + (base32 "06y73sqyihcyfigy9z0kbv4x1dd7yh4ipkxhsyshd04hwxfxx0bq")))) (build-system go-build-system) (arguments (list @@ -1687,6 +1821,7 @@ cluster segmentation algorithm.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/arbovm/levenshtein")) (home-page "https://github.com/arbovm/levenshtein") (synopsis "Levenshtein Distance in Golang") @@ -1807,6 +1942,7 @@ for Go.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/asaskevich/govalidator" #:phases #~(modify-phases %standard-phases @@ -2063,7 +2199,6 @@ interfaces.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:import-path "github.com/axiomhq/hyperloglog")) (propagated-inputs (list go-github-com-stretchr-testify go-github-com-kamstrup-intmap @@ -2369,6 +2504,7 @@ based on murmurhash.") (build-system go-build-system) (arguments (list + #:go go-1.23 ;; This test fails with Go 1.16. #:test-flags #~(list "-skip" "TestMatch") #:import-path "github.com/bmatcuk/doublestar")) @@ -2402,7 +2538,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.7.1") + (version "4.8.1") (source (origin (method git-fetch) @@ -2411,9 +2547,10 @@ matching and globbing with support for \"doublestar\" patterns.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1bvfxqkpl8bkfqxjxjgmz0gd4b4v6dxwrzxq2qzly0r9zrj1lfic")))) + (base32 "0jskh3dp9xmh1bf1a7dh5ykv0pk2v4pxh5bynsl33cmw61dkd6s0")))) (arguments (list + #:go go-1.23 #:import-path "github.com/bmatcuk/doublestar/v4")))) (define-public go-github-com-bmizerany-perks-quantile @@ -2534,7 +2671,7 @@ Supported Barcode Types: (define-public go-github-com-briandowns-spinner (package (name "go-github-com-briandowns-spinner") - (version "1.23.0") + (version "1.23.2") (source (origin (method git-fetch) @@ -2543,7 +2680,7 @@ Supported Barcode Types: (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "036r59m068k8grr0q77a6b1rqw4dyxm00fsxj7b9w1fjviq8djs6")) + (base32 "1icg6z10rkksbls6c50syfw63vvxbp849w4gbq3dsxlsabj32vsp")) (modules '((guix build utils))) (snippet '(begin @@ -2671,6 +2808,7 @@ strings into words like a POSIX or Windows shell would.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/BurntSushi/toml")) (home-page "https://github.com/BurntSushi/toml") (synopsis "Toml parser and encoder for Go") @@ -2682,7 +2820,7 @@ similar to Go's standard library @code{json} and @code{xml} package.") (define-public go-github-com-bytedance-sonic (package (name "go-github-com-bytedance-sonic") - (version "1.12.6") + (version "1.13.3") (source (origin (method git-fetch) @@ -2691,7 +2829,7 @@ similar to Go's standard library @code{json} and @code{xml} package.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "011hp6lvqvx4facxsmy6vya02g9q3rlnmxcii827sbf6bssy7wxp")) + (base32 "0sh7xmf0sivxbl344ns4i35fijcq259wcz5fn2xb5pkacxffclgg")) (modules '((guix build utils))) (snippet #~(begin @@ -2731,7 +2869,7 @@ using JIT and SIMD approaches.") (define-public go-github-com-bytedance-sonic-loader (package (name "go-github-com-bytedance-sonic-loader") - (version "0.2.1") + (version "0.2.4") (source (origin (method git-fetch) @@ -2741,7 +2879,7 @@ using JIT and SIMD approaches.") #:subdir "loader")))) (file-name (git-file-name name version)) (sha256 - (base32 "0fyjq3hr4cmai2r06ppzil314bcqz416gd1zpw7lfp9h7mcwxwa4")))) + (base32 "09a7jka6a74802i6a6lgxlc3vp0jnb69hy1l5s772260q1zgnkds")))) (build-system go-build-system) (arguments (list @@ -3085,7 +3223,7 @@ glamorous default themes.") (replace "go-github-com-alecthomas-chroma-v2" go-github-com-alecthomas-chroma) (append go-github-com-dlclark-regexp2 - go-github-com-olekukonko-tablewriter)))))) + go-github-com-olekukonko-tablewriter-0.0.5)))))) (define-public go-github-com-charmbracelet-harmonica (package @@ -3447,7 +3585,7 @@ code is based on the Go-based PHaul implementation from the CRIU repository.") (package (inherit go-github-com-cheggaaa-pb) (name "go-github-com-cheggaaa-pb-v3") - (version "3.1.5") + (version "3.1.7") (source (origin (method git-fetch) @@ -3456,7 +3594,7 @@ code is based on the Go-based PHaul implementation from the CRIU repository.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1mf86iav69qpyg0nd54g0f50yigjkfzdhaqzkbn4yfb3fnb75n2z")))) + (base32 "1zbqjc7phdsa4p66j3nrpbgrdq171nvqma99bq6d3w373lnl1q67")))) (arguments (list #:import-path "github.com/cheggaaa/pb/v3" @@ -3711,6 +3849,192 @@ locale can be selected.") the Go language features.") (license license:asl2.0))) +(define-public go-github-com-cockroachdb-crlib + (package + (name "go-github-com-cockroachdb-crlib") + (version "0.0.0-20250521014800-1789bc709bcb") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/crlib") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09757m5brzl2pgvzqwgcz5sy0wnvgl12lz991plssazmgkl98dv6")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + ;; TODO: More additional packages are required to enable all tests, it's + ;; used as source only package. + #:test-flags + #~(list "-skip" "TestLint") + #:import-path "github.com/cockroachdb/crlib")) + (home-page "https://github.com/cockroachdb/crlib") + (synopsis "Utility library for CockroachDB") + (description + "This package provides general-purpose Go libraries and utilities. It is +intended as an \"extended standard library\" and it has no external +dependencies.") + (license license:asl2.0))) + +(define-public go-github-com-cockroachdb-fifo + (package + (name "go-github-com-cockroachdb-fifo") + (version "0.0.0-20240816210425-c5d0cb0b6fc0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/fifo") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17p2x5q7ngp0l0wswyf9816dv93ix0wljvp9cfiid9if6mr96wjp")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/fifo")) + (native-inputs + (list go-github-com-stretchr-testify + go-golang-org-x-sync)) + (home-page "https://github.com/cockroachdb/fifo") + (synopsis "Facilities for FIFO queueing in Golang") + (description + "This package provides several optimized facilities related to FIFO +queueing and rate limiting.") + (license license:asl2.0))) + +(define-public go-github-com-cockroachdb-logtags + (package + (name "go-github-com-cockroachdb-logtags") + (version "0.0.0-20241215232642-bb51bb14a506") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/logtags") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vlbp0k365arqqxmdvdizxvmx6qpr2fqhqi5p6ini3l5zbxl5bw7")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/logtags")) + (home-page "https://github.com/cockroachdb/logtags") + (synopsis "Key/Value annotations for Golang contexts") + (description + "This package provides a way to attach key/value annotations to a Go +@code{context.Context}.") + (license license:asl2.0))) + +(define-public go-github-com-cockroachdb-redact + (package + (name "go-github-com-cockroachdb-redact") + (version "1.1.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/redact") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1q6h35nrgsh2ygcvvs4ds9swwzzbh3v7414rvlpsnqq6a1kcskw0")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/redact")) + (home-page "https://github.com/cockroachdb/redact") + (synopsis "Utilities to redact Golang strings for confidentiality") + (description + "Package redact provides facilities for separating @code{safe} and +@code{unsafe} pieces of data when logging and constructing error object.") + (license license:asl2.0))) + +(define-public go-github-com-cockroachdb-swiss + (package + (name "go-github-com-cockroachdb-swiss") + (version "0.0.0-20250327203710-2932b022f6df") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/swiss") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1v902vdngjqabqz6brkrsa26sb5x0xwa2b3986jy8ih6z7x44ib5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/swiss")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-aclements-go-perfevent)) + (home-page "https://github.com/cockroachdb/swiss") + (synopsis "Golang port of Google's Swiss Table hash table") + (description + "This package implements Swiss Tables as described in +https://abseil.io/about/design/swisstables. It provides pseudo-randomized +iteration (iteration order will change from one iteration to the next) and +iteration stability akin to Go's builtin map if the map is mutated during +iteration.") + (license license:asl2.0))) + +(define-public go-github-com-cockroachdb-tokenbucket + (package + (name "go-github-com-cockroachdb-tokenbucket") + (version "0.0.0-20250429170803-42689b6311bb") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cockroachdb/tokenbucket") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "051s1y35xqnr2qxzzyqnhs4zz8knqfj6zyxgzli2c7nycbzg9nrq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/cockroachdb/tokenbucket")) + (home-page "https://github.com/cockroachdb/tokenbucket") + (synopsis "Token bucket implementation in Golang") + (description + "This package provides a token bucket implementation in Golang.") + (license license:asl2.0))) + +(define-public go-github-com-code-hex-go-generics-cache + (package + (name "go-github-com-code-hex-go-generics-cache") + (version "1.5.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Code-Hex/go-generics-cache") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xna1fn9m35z17slf4z2f4dkc6s1hy5q41w8gf2500cl6bfid1ip")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/Code-Hex/go-generics-cache")) + (propagated-inputs (list go-golang-org-x-exp)) + (home-page "https://github.com/Code-Hex/go-generics-cache") + (synopsis "Key:Value store/cache library written in Golang") + (description + "This package implements a functionality of an in-memory key:value +store/cache that is suitable for applications running on a single machine. +This in-memory cache uses @url{https://go.dev/blog/generics-proposal, Go +Generics} which is introduced in 1.18.") + (license license:expat))) + (define-public go-github-com-containerd-btrfs-v2 (package (name "go-github-com-containerd-btrfs-v2") @@ -4210,6 +4534,7 @@ parse and compare two semantic version strings.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/coreos/go-systemd/v22" #:phases #~(modify-phases %standard-phases @@ -4601,6 +4926,8 @@ structs in the Go programming language.") (outputs '("out" "doc")) (arguments (list + ;; See <https://github.com/d5/tengo/issues/466>. + #:go go-1.23 #:import-path "github.com/d5/tengo/v2" #:phases #~(modify-phases %standard-phases @@ -4712,6 +5039,7 @@ gist (https://gist.github.com/kballard/272720).") (name "go-github-com-darccio-mergo") (arguments (list + #:go go-1.23 #:import-path "github.com/darccio/mergo" #:phases #~(modify-phases %standard-phases @@ -4724,7 +5052,7 @@ gist (https://gist.github.com/kballard/272720).") (define-public go-github-com-dave-jennifer (package (name "go-github-com-dave-jennifer") - (version "1.7.0") + (version "1.7.1") (source (origin (method git-fetch) @@ -4733,10 +5061,11 @@ gist (https://gist.github.com/kballard/272720).") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "01sgafbds8n5zs61qf057whn06yj6avz30xgxk6pllf22528558m")))) + (base32 "1a0zg8cdnhyqfgrz7jbgpnnz75g5ps1c8cnmbxvfldmy973ziaml")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/dave/jennifer")) (home-page "https://github.com/dave/jennifer") (synopsis "Code generator for Go") @@ -5089,6 +5418,38 @@ simultaneously. It uses @acronym{Multi-Version Concurrency Control, MVCC}, supports concurrent serializable transactions.") (license license:asl2.0))) +(define-public go-github-com-dgraph-io-badger-v4 + (package + (inherit go-github-com-dgraph-io-badger) + (name "go-github-com-dgraph-io-badger-v4") + (version "4.5.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dgraph-io/badger") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0v4c69whypm3k40hrx8bw9rjrcb0swz43v056s0fadqr04j0ncwj")))) + (arguments + (list + #:go go-1.23 + #:tests? #f ; TODO: tests hang, find out why. + #:import-path "github.com/dgraph-io/badger/v4")) + (propagated-inputs + (list go-github-com-cespare-xxhash-v2 + go-github-com-dgraph-io-ristretto-v2 + go-github-com-dustin-go-humanize + go-github-com-google-flatbuffers + go-github-com-klauspost-compress + go-github-com-pkg-errors + go-github-com-spf13-cobra + go-go-opencensus-io + go-golang-org-x-net + go-golang-org-x-sys + go-google-golang-org-protobuf)))) + (define-public go-github-com-dgraph-io-ristretto (package (name "go-github-com-dgraph-io-ristretto") @@ -5614,7 +5975,7 @@ interact with distribution components.") go-github-com-moby-sys-sequential go-github-com-moby-sys-user go-github-com-moby-sys-userns - go-go-opentelemetry-io-contrib + go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp go-go-opentelemetry-io-otel)) (home-page "https://github.com/docker/docker") (synopsis "The Moby Project") @@ -6318,7 +6679,7 @@ cases (e.g. snake_case, camelCase, kebab-case, etc).") (define-public go-github-com-expr-lang-expr (package (name "go-github-com-expr-lang-expr") - (version "1.16.9") + (version "1.17.5") (source (origin (method git-fetch) @@ -6327,7 +6688,7 @@ cases (e.g. snake_case, camelCase, kebab-case, etc).") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08p7gcxm7psgn1rzhhy2s2va59ssy77x8wd706gdp2pif7wln883")) + (base32 "0kcpgycdy9fm4g2i4mhp6hprzkg75r0lfrvc0gbwd2wiir460222")) (modules '((guix build utils))) (snippet #~(begin @@ -6340,6 +6701,7 @@ cases (e.g. snake_case, camelCase, kebab-case, etc).") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/expr-lang/expr")) (home-page "https://expr-lang.org/") (synopsis "Expression language and expression evaluation for Go") @@ -6761,7 +7123,7 @@ Differentiation between text and binary files}. (define-public go-github-com-gammazero-chanqueue (package (name "go-github-com-gammazero-chanqueue") - (version "1.0.0") + (version "1.1.0") (source (origin (method git-fetch) @@ -6770,7 +7132,7 @@ Differentiation between text and binary files}. (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0kji9blaqbphzrdr9b09c1lfm4vzj94m2ygwganw62byqg4hwy26")))) + (base32 "1ff4k2hmg9m1k9qjdr5cv1rdhls5iajpi4c3rdqwbmqnnaz7m5fr")))) (build-system go-build-system) (arguments (list @@ -6914,6 +7276,7 @@ also favors portability, and includes support for all POSIX systems.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/gdey/errors")) (home-page "https://github.com/gdey/errors") (synopsis "Augmentation of std @code{errors} library") @@ -6945,6 +7308,31 @@ library in go standard library.") "Go library that pluralizes and singularizes English nouns.") (license license:bsd-2))) +(define-public go-github-com-ghemawat-stream + (package + (name "go-github-com-ghemawat-stream") + (version "0.0.0-20171120220530-696b145b53b9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ghemawat/stream") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0i0cjvhn2zfnvm9dc9nd9yyq27nmv8j2s7sa0lvcdvv2mbcdvvq8")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "github.com/ghemawat/stream")) + (home-page "https://github.com/ghemawat/stream") + (synopsis "UNIX pipe-like chained filters") + (description + "This Package provides filters that can be chained together in a manner +similar to Unix pipelines.") + (license license:asl2.0))) + (define-public go-github-com-ghodss-yaml (package (name "go-github-com-ghodss-yaml") @@ -6980,7 +7368,7 @@ it effectively reuses the JSON struct tags as well as the custom JSON methods (define-public go-github-com-git-lfs-go-netrc (package (name "go-github-com-git-lfs-go-netrc") - (version "0.0.0-20230601124202-e96144b9a966") + (version "0.0.0-20250218165306-ba0029b43d11") (source (origin (method git-fetch) @@ -6989,7 +7377,7 @@ it effectively reuses the JSON struct tags as well as the custom JSON methods (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1rb8xk0gp7yvw10zs122p48qhj3xc9csaykbflr7wdfx5xqpbr2f")))) + (base32 "11srhd9xjrrkmqxkgzdbfahak6bi1zlm153i6cbl3z0pchrlykqr")))) (build-system go-build-system) (arguments (list @@ -7084,6 +7472,7 @@ goroutines.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/go-errors/errors" ;; Stack trace does not contain source line: 'a: b(5)'. #:test-flags #~(list "-skip" "TestStackFormat"))) @@ -7346,6 +7735,31 @@ standard log package.") of building man pages.") (license license:expat))) +(define-public go-github-com-go-openapi-inflect + (package + (name "go-github-com-go-openapi-inflect") + (version "0.21.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-openapi/inflect") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xmayn2qbl8dy7hk60xwwgkacpzv7ssm2s6xqn84kg4bnr6bbvhv")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-openapi/inflect")) + (home-page "https://github.com/go-openapi/inflect") + (synopsis "Pluralize words library for Golang") + (description + "This package provides a basic set of functions applying grammar rules to +inflect English words, modify case style (Capitalize, camelCase, snake_case, +etc.).") + (license license:expat))) + (define-public go-github-com-go-playground-locales (package (name "go-github-com-go-playground-locales") @@ -7440,6 +7854,7 @@ professionally translated (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/go-spatial/proj")) (native-inputs (list go-github-com-stretchr-testify)) @@ -7655,6 +8070,7 @@ native Go structure.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/gobwas/glob")) (home-page "https://github.com/gobwas/glob") (synopsis "Go globbing library") @@ -7689,7 +8105,7 @@ size.") (define-public go-github-com-goccy-go-yaml (package (name "go-github-com-goccy-go-yaml") - (version "1.12.0") + (version "1.18.0") (home-page "https://github.com/goccy/go-yaml") (source (origin @@ -7699,7 +8115,7 @@ size.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "06sf7vpz8gjyivrn3yhzcbbf3qhsqq5n7lsc23j91xw5xwpn37bk")))) + (base32 "0abvpywscsi503nq5a6z1jxhvvhk5gc366nk6xdlslp0gdh4sfhq")))) (build-system go-build-system) (arguments (list @@ -7709,13 +8125,7 @@ size.") (add-after 'unpack 'remove-benchmarks (lambda* (#:key import-path #:allow-other-keys) (delete-file-recursively - (string-append "src/" import-path "/benchmarks")))) - ;; 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" "./...")))))))) + (string-append "src/" import-path "/benchmarks"))))))) (native-inputs (list go-github-com-go-playground-validator-v10 go-github-com-google-go-cmp)) @@ -7752,6 +8162,7 @@ size.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/godbus/dbus" #:phases #~(modify-phases %standard-phases @@ -7882,6 +8293,7 @@ execution.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/gogs/chardet")) (home-page "https://github.com/gogs/chardet") (synopsis "Character set detection for Go") @@ -8423,6 +8835,7 @@ provides a buffered io.Writer that is flushed at a timed interval.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/goverter/patherr")) (home-page "https://github.com/goverter/patherr") (synopsis "Implementation for Goverter's wrapErrorsUsing") @@ -8771,7 +9184,7 @@ their component bytes.") (define-public go-github-com-hashicorp-go-version (package (name "go-github-com-hashicorp-go-version") - (version "1.6.0") + (version "1.7.0") (source (origin (method git-fetch) @@ -8780,18 +9193,19 @@ their component bytes.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0fw6hwvjadpbfj10yk7f64ypw8lmv5s5ny3s4ria0nv6xam1wpai")))) + (base32 "04kb102igwnp03rcjjlg7w2lb2dbr7h0w751w72v6imid51kyrsj")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/hashicorp/go-version")) + (list + #:go go-1.23 + #:import-path "github.com/hashicorp/go-version")) (home-page "https://github.com/hashicorp/go-version") - (synopsis "Go library for parsing and verifying versions and version -constraints") + (synopsis "Parsing and verifying versions for Golang") (description - "This package is a library for parsing versions and version -constraints, and verifying versions against a set of constraints. It can sort -a collection of versions properly, handles prerelease/beta versions, can -increment versions.") + "This package is a library for parsing versions and version constraints, +and verifying versions against a set of constraints. It can sort a collection +of versions properly, handles prerelease/beta versions, can increment +versions.") (license license:mpl2.0))) (define-public go-github-com-hashicorp-golang-lru @@ -8920,7 +9334,7 @@ expressing configuration which is easy for both humans and machines to read.") (define-public go-github-com-hashicorp-hcl-v2 (package (name "go-github-com-hashicorp-hcl-v2") - (version "2.11.1") + (version "2.23.0") (source (origin (method git-fetch) @@ -8929,10 +9343,11 @@ expressing configuration which is easy for both humans and machines to read.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0f9flmmkj7fr1337fc56cqy73faq87ix375hnz3id4wc023przv1")))) + (base32 "0y457prckv5pdglxxc61fcslmswm35c6swwgcrdvfmjgw286y56i")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/hashicorp/hcl/v2" #:test-flags #~(list "-skip" @@ -8942,20 +9357,16 @@ expressing configuration which is easy for both humans and machines to read.") "TestFunctionCallExprValue/valid_call_with_dynamic_arg") "|")))) (native-inputs - (list go-github-com-apparentlymart-go-dump - go-github-com-davecgh-go-spew + (list 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 + go-github-com-zclconf-go-cty-debug)) + (propagated-inputs (list go-github-com-agext-levenshtein go-github-com-apparentlymart-go-textseg-v13 go-github-com-mitchellh-go-wordwrap - go-github-com-zclconf-go-cty)) + go-github-com-zclconf-go-cty + go-golang-org-x-tools)) (synopsis "Go implementation of HashiCorp Configuration Language V2") (description "This package contains the main implementation of the @acronym{HCL, @@ -8964,6 +9375,37 @@ 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-hdrhistogram-hdrhistogram-go + (package + (name "go-github-com-hdrhistogram-hdrhistogram-go") + (version "1.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/HdrHistogram/hdrhistogram-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0l12j3dvljp868p1d2izpiq7ysll05fchvxij8zb8r160lmqv58r")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/HdrHistogram/hdrhistogram-go")) + (native-inputs + (list go-github-com-google-go-cmp + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-gonum-org-v1-gonum)) + (home-page "https://github.com/HdrHistogram/hdrhistogram-go") + (synopsis "Gil Tene's HDR Histogram in Golang") + (description + "This package provides an implementation of +@url{https://github.com/HdrHistogram/HdrHistogram, Gil Tene's HDR Histogram} +data structure. The HDR Histogram allows for fast and accurate analysis of +the extreme ranges of data with non-normal distributions, like latency.") + (license license:expat))) + (define-public go-github-com-hebcal-gematriya (package (name "go-github-com-hebcal-gematriya") @@ -9290,6 +9732,7 @@ ABI}.") (name "go-github-com-imdario-mergo") (arguments (list + #:go go-1.23 #:import-path "github.com/imdario/mergo" #:phases #~(modify-phases %standard-phases @@ -9341,7 +9784,6 @@ better way of handling YAML when marshaling to and from structs.") (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "github.com/itchyny/astgen-go")) (home-page "https://github.com/itchyny/astgen-go") (synopsis "AST build for Golang @code{interface{}} => @code{ast.Node}") @@ -9364,6 +9806,7 @@ better way of handling YAML when marshaling to and from structs.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/itchyny/go-flags" ;; Test is time dependent and not reproducible. ;; -.TH TestMan 1 "1 January 1970" @@ -10068,7 +10511,6 @@ vendor,product and class information.") (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)) @@ -10093,13 +10535,12 @@ that might only rarely be reached.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0q91f5549n81w3z5927n4a1mdh220bdmgl42zi3h992dcc4ls0sl")))) + (base32 "0q91f5549n81w3z5927n4a1mdh220bdmgl42zi3h992dcc4ls0sl")) + (patches (search-patches + "go-github-com-jbenet-go-context-fix-import-error.patch")))) (build-system go-build-system) (arguments - (list - #:import-path "github.com/jbenet/go-context")) - (propagated-inputs - (list go-golang-org-x-net)) + (list #:import-path "github.com/jbenet/go-context")) (home-page "https://github.com/jbenet/go-context/") (synopsis "@code{jbenet's} context extensions") (description @@ -10175,6 +10616,7 @@ object, which implements simple error-retrying functionality.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/jbenet/goprocess" #:test-flags #~(list "-short" @@ -10295,7 +10737,7 @@ Golang.") (define-public go-github-com-jedib0t-go-pretty-v6 (package (name "go-github-com-jedib0t-go-pretty-v6") - (version "6.6.5") + (version "6.6.7") (source (origin (method git-fetch) @@ -10304,10 +10746,11 @@ Golang.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0sy8fia04lxi07yga7z3h3fp19y4bla5p16v1n7ldip0ymdmvjnx")))) + (base32 "122zmbcrxvl0yvpcq56p4hhcasf7lmprmka4fa00hkpr0m0rrbxq")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "github.com/jedib0t/go-pretty/v6")) (native-inputs @@ -10341,6 +10784,7 @@ text, etc. with a heavy emphasis on customization.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/jessevdk/go-flags" #:test-flags #~(list "-skip" "TestCompletion|TestParserCompletion"))) (propagated-inputs @@ -10832,7 +11276,6 @@ customized globally.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:import-path "github.com/kamstrup/intmap")) (home-page "https://github.com/kamstrup/intmap") (synopsis "Fast hashmap with integer keys for Golang") @@ -10934,6 +11377,7 @@ resources located relative to the executable file.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/karrick/godirwalk")) ;; To build all examples as a test scenario. (native-inputs @@ -11054,7 +11498,7 @@ word-splitting rules.") (define-public go-github-com-kevinburke-ssh-config (package (name "go-github-com-kevinburke-ssh-config") - (version "1.2.0") + (version "1.3") (source (origin (method git-fetch) @@ -11063,7 +11507,7 @@ word-splitting rules.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0jvv3i0g8ll210xlbxy8ywj09gab0im676rmnywh3wlpdhxdkbjd")))) + (base32 "1m8nagaylwrgy9yfqr5x6p1zdsnrfy4km7pgv58iqdmmd5l6v73a")))) (arguments (list #:import-path "github.com/kevinburke/ssh_config")) @@ -11356,8 +11800,8 @@ very eas to use.") (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"))))))) + (with-directory-excursion (string-append "src/" import-path "/_gen") + (invoke "go" "generate" "-v" "-n"))))))) (propagated-inputs (list go-github-com-klauspost-cpuid-v2)) (home-page "https://github.com/klauspost/reedsolomon") (synopsis "Reed-Solomon algorithm implementation in Golang") @@ -11798,6 +12242,7 @@ structure. It's a stable fork of https://github.com/mndrix/ps.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "layeh.com/gopher-luar")) (propagated-inputs (list go-github-com-yuin-gopher-lua)) (home-page "https://github.com/layeh/gopher-luar") @@ -11836,7 +12281,7 @@ specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.") (define-public go-github-com-leonelquinteros-gotext (package (name "go-github-com-leonelquinteros-gotext") - (version "1.7.0") + (version "1.7.2") (source (origin (method git-fetch) @@ -11845,14 +12290,14 @@ 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 "0ccls9xzbbrbrplbikz18lcky5p5rmifif6w69l5rl34dv11948m")))) + (base32 "098iizlr05xj16b2mxwpa8bmcfm3fnlhm8a13kdzmw9dz11jjsm9")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/leonelquinteros/gotext")) (propagated-inputs - (list go-golang-org-x-text - go-golang-org-x-tools)) + (list go-golang-org-x-tools)) (home-page "https://github.com/leonelquinteros/gotext") (synopsis "GNU gettext utilities in Go") (description @@ -12332,7 +12777,7 @@ generation.") (define-public go-github-com-magiconair-properties (package (name "go-github-com-magiconair-properties") - (version "1.8.9") + (version "1.8.10") (source (origin (method git-fetch) @@ -12341,10 +12786,11 @@ generation.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "05nkgdzl393505arq6hf1wxjxs2iaqkc88v5cy1s068abpl65xy0")))) + (base32 "1cmbh9y51lbn2q2i2jzjfd14spwclg88hfsj4k1kkj1xc2bkwqdj")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/magiconair/properties")) (home-page "https://github.com/magiconair/properties") (synopsis "Java properties scanner for Go") @@ -12367,6 +12813,7 @@ generation.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/MakeNowJust/heredoc")) (home-page "https://github.com/MakeNowJust/heredoc") (synopsis "Here-documents with indent") @@ -12375,6 +12822,24 @@ generation.") raw strings.") (license license:expat))) +(define-public go-github-com-makenowjust-heredoc-v2 + (package + (inherit go-github-com-makenowjust-heredoc) + (name "go-github-com-makenowjust-heredoc-v2") + (version "2.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/makenowjust/heredoc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1k4ggh0dkz3919m7gy2avhj0drjxrcvm01a5dgsc3z971yk6h5xw")))) + (arguments + (list + #:import-path "github.com/MakeNowJust/heredoc/v2")))) + (define-public go-github-com-marcinbor85-gohex ;; No release, see <https://github.com/marcinbor85/gohex/issues/5>. (let ((commit "baab2527a9a2a4abb3dc06baabedfa5e0268b8d8") @@ -12426,6 +12891,7 @@ implementing features like: (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/Masterminds/goutils")) (home-page "https://github.com/Masterminds/goutils/") (synopsis "Utility functions to manipulate strings") @@ -12709,14 +13175,16 @@ string.") "0l0l5s4hlsrm4z6hygig2pp1qirk5ycrzn9z27ay3yvg9k7zafzx")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/mattn/go-shellwords" - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-sh-path - (lambda* (#:key import-path #:allow-other-keys) - (substitute* (string-append - "src/" import-path "/util_posix.go") - (("/bin/sh") (which "sh")))))))) + (list + #:go go-1.23 + #:import-path "github.com/mattn/go-shellwords" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-sh-path + (lambda* (#:key import-path #:allow-other-keys) + (substitute* (string-append + "src/" import-path "/util_posix.go") + (("/bin/sh") (which "sh")))))))) (home-page "https://github.com/mattn/go-shellwords") (synopsis "Parse lines into shell words") (description "This package parses text into shell arguments. Based on @@ -13315,6 +13783,7 @@ https://github.com/syndtr/gocapability.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/moby/sys/mountinfo" #:unpack-path "github.com/moby/sys" #:test-flags @@ -13535,6 +14004,29 @@ 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-monochromegane-go-gitignore + (package + (name "go-github-com-monochromegane-go-gitignore") + (version "0.0.0-20200626010858-205db1a8cc00") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/monochromegane/go-gitignore") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rawqsxi6n0nwl34nc4jda7drnwfli9v4zkhf60qhl6lcipj0lwg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/monochromegane/go-gitignore")) + (home-page "https://github.com/monochromegane/go-gitignore") + (synopsis "Gitignore matching library for Golang") + (description + "This package provides a fast gitignore matching library for Go.") + (license license:expat))) + (define-public go-github-com-motemen-go-colorine (package (name "go-github-com-motemen-go-colorine") @@ -13779,6 +14271,7 @@ Authentication Modules, PAM} application API.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/muesli/cancelreader")) (propagated-inputs (list go-golang-org-x-sys)) @@ -14329,6 +14822,7 @@ pretty printed rendering in Golang.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "github.com/nlpodyssey/spago")) (native-inputs @@ -14478,6 +14972,7 @@ NSQ protocol @url{https://nsq.io/}.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/nxadm/tail")) (propagated-inputs (list go-github-com-fsnotify-fsnotify @@ -14578,10 +15073,66 @@ millisecond) (list #:import-path "github.com/oklog/ulid/v2")))) +(define-public go-github-com-olekukonko-errors + (package + (name "go-github-com-olekukonko-errors") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/olekukonko/errors") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12wb02aa4pmd1dl34jczcf12v0bv7kh6qfp8zqmw0hsnh6kdp3i4")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/olekukonko/errors")) + (home-page "https://github.com/olekukonko/errors") + (synopsis "Enhanced Error Handling for Golang") + (description + "Package errors provides a robust error handling library with support for +error wrapping, stack traces, context storage, and retry mechanisms. It +extends the standard library's error interface with features like HTTP-like +status codes, error categorization, and JSON serialization, while maintaining +compatibility with `errors.Is`, `errors.As`, and `errors.Unwrap`. The package +is thread-safe and optimized with object pooling for performance.") + (license license:expat))) + +(define-public go-github-com-olekukonko-ll + (package + (name "go-github-com-olekukonko-ll") + (version "0.0.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/olekukonko/ll") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1c3f0vqg5fpyqmz86xlgf8sjv9jgbxc3i9ackmdk9xnhjx9mxac9")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/olekukonko/ll")) + (home-page "https://github.com/olekukonko/ll") + (synopsis "Structured Logging Library for Golang") + (description + "@code{ll} is a high-performance, production-ready logging library for Go, +designed to provide @strong{hierarchical namespaces}, @strong{structured +logging}, @strong{middleware pipelines}, @strong{conditional logging}, and +support for multiple output formats, including text, JSON, colorized logs, and +compatibility with Go’s @code{slog}. It’s ideal for applications requiring +fine-grained log control, extensibility, and scalability.") + (license license:expat))) + (define-public go-github-com-olekukonko-tablewriter (package (name "go-github-com-olekukonko-tablewriter") - (version "0.0.5") + (version "1.0.7") (source (origin (method git-fetch) @@ -14590,13 +15141,19 @@ millisecond) (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0zhnrih2px6jm8nxzkz8s7va3lj03bzwxim8wjba9zh7i78bp67z")))) + (base32 "1ycpp98j8xzgfq87f9vqzh8mncai142l1r32qrz3m47sx88pk69s")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/olekukonko/tablewriter")) + (native-inputs + (list go-github-com-olekukonko-ts)) ; for CLI <cmd/csv2table> (propagated-inputs - (list go-github-com-mattn-go-runewidth)) + (list go-github-com-fatih-color + go-github-com-mattn-go-runewidth + go-github-com-olekukonko-errors + go-github-com-olekukonko-ll)) (home-page "https://github.com/olekukonko/tablewriter/") (synopsis "Generate ASCII table") (description "This package generates ASCII tables. Features: @@ -14619,6 +15176,22 @@ millisecond) @end itemize") (license license:expat))) +(define-public go-github-com-olekukonko-tablewriter-0.0.5 + ;; XXX: Pinned older version as upstream did not migrated to the latest one, + ;; remove it when no longer required. + (hidden-package (package (inherit go-github-com-olekukonko-tablewriter) + (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"))))))) + (define-public go-github-com-olekukonko-ts (package (name "go-github-com-olekukonko-ts") @@ -14687,7 +15260,6 @@ levels per backend and logger.") (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "github.com/opencontainers/cgroups" #:test-flags ;; Tests requiring root access to /sys/fs/cgroup. @@ -14793,7 +15365,6 @@ container image format spec (OCI Image Format).") (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "github.com/opencontainers/runc" ;; Most tests require additinoal set up and downloading images from ;; Internet. @@ -14909,7 +15480,6 @@ specification-runtime-spec.") (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "github.com/opencontainers/umoci" ;; convert spec to rootless: inspecting mount flags of /etc/resolv.conf: ;; no such file or directory @@ -15075,6 +15645,7 @@ composable way such that accurate error can be reasoned about.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/orisano/pixelmatch")) (home-page "https://github.com/orisano/pixelmatch") (synopsis "Pixelmatch port to Go") @@ -15259,6 +15830,7 @@ processes.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/pborman/getopt")) (home-page "https://github.com/pborman/getopt") (synopsis "Getopt style option parsing for Go") @@ -15283,9 +15855,10 @@ programs that use traditional command lines.") (base32 "0sacv6g8cxfibxd3gnfjnzp7fynrnc4s2aaz5wbxivqqhvflc22l")))) (build-system go-build-system) (arguments - (list - #:import-path "github.com/pborman/getopt/v2" - #:unpack-path "github.com/pborman/getopt")))) + (substitute-keyword-arguments + (package-arguments go-github-com-pborman-getopt) + ((#:import-path _) "github.com/pborman/getopt/v2") + ((#:unpack-path _ "") "github.com/pborman/getopt"))))) (define-public go-github-com-pborman-uuid (package @@ -15330,7 +15903,9 @@ package (which is based off an earlier version of this package).") (base32 "1wypjrr1axkrkzp4n5gvams94f2sd7dq1pdpd2i35sgpdz6r2m6g")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/pelletier/go-toml")) + (list + #:go go-1.23 + #:import-path "github.com/pelletier/go-toml")) (propagated-inputs (list go-github-com-burntsushi-toml go-github-com-davecgh-go-spew @@ -15614,6 +16189,7 @@ on top of the standard library @code{flag} package.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/pingcap/errors" #:test-flags #~(list "-skip" (string-join @@ -15641,7 +16217,7 @@ alternative fork of https://github.com/pkg/errors project.") (define-public go-github-com-pion-logging (package (name "go-github-com-pion-logging") - (version "0.2.2") + (version "0.2.3") (source (origin (method git-fetch) @@ -15650,10 +16226,11 @@ alternative fork of https://github.com/pkg/errors project.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "11ay8c15xk3pv7y9nd80szk3mci480x67yqlgb10vswrz4h4mx3v")))) + (base32 "13c8pkn6nyhayjax77bcysmv9fsyb63gllk2ns880b3hgdcl2l1a")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/pion/logging")) (home-page "https://github.com/pion/logging/") (synopsis "Logging library for Golang projects") @@ -15678,6 +16255,7 @@ Pion}.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/pkg/diff")) (home-page "https://github.com/pkg/diff/") (synopsis "Create and print diffs") @@ -15767,6 +16345,7 @@ https://en.wikipedia.org/wiki/Extended_file_attributes}.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/pmezard/go-difflib/difflib" #:unpack-path "github.com/pmezard/go-difflib/")) (home-page "https://github.com/pmezard/go-difflib") @@ -15791,6 +16370,7 @@ https://en.wikipedia.org/wiki/Extended_file_attributes}.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/polydawn/refmt")) (propagated-inputs (list go-github-com-go-yaml-yaml @@ -16284,7 +16864,6 @@ comments. (arguments (list #:skip-build? #t - #:go go-1.23 #:import-path "github.com/rogpeppe/go-internal" #:test-flags #~(list "-skip" "TestSimple/cover"))))) @@ -16392,7 +16971,9 @@ logging.") (sha256 (base32 "0d1rg1drrfmabilqjjayklsz5d0n3hkf979sr3wsrw92bfbkivs7")))) (arguments - (list #:import-path "github.com/russross/blackfriday/v2")))) + (list + #:go go-1.23 + #:import-path "github.com/russross/blackfriday/v2")))) (define-public go-github-com-rwcarlsen-goexif ;; No release or version tag, Golang pseudo version: @@ -16559,7 +17140,6 @@ Lodash}.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:skip-build? #t #:import-path "github.com/SAP/go-hdb" ;; XXX: The most of the tests require access to database, run some @@ -16855,9 +17435,16 @@ and branchless algorithms shine.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "github.com/segmentio/encoding" - #:test-flags #~(list "-skip" "TestUnmarshalFixture|TestDecodeFixture"))) + #:test-flags + #~(list "-skip" (string-join + (list "TestCodec/string#07" + "TestCodec/string#08" + "TestDecodeFixture" + "TestUnmarshalFixture") + "|")))) (propagated-inputs (list go-github-com-segmentio-asm)) (home-page "https://github.com/segmentio/encoding") @@ -17186,6 +17773,7 @@ GNU/Linux, this is a proxy for the @command{xdg-open} command.") (build-system go-build-system) (arguments (list + #:go go-1.23 #: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") @@ -17446,12 +18034,10 @@ a few advantages over using the standard log library alone. @end itemize") (license license:expat))) -;; XXX: Not maintained for 3y, see -;; <https://github.com/spf13/pflag/issues/385>. (define-public go-github-com-spf13-pflag (package (name "go-github-com-spf13-pflag") - (version "1.0.5") + (version "1.0.6") (source (origin (method git-fetch) @@ -17460,19 +18046,11 @@ a few advantages over using the standard log library alone. (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\")")))))) + (base32 "0ckdaa5q3afhgx5hi45czxn2pcc5fd0sz4axh4hqxyvgsjfjvmg0")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/spf13/pflag")) (home-page "https://github.com/spf13/pflag") (synopsis "Replacement for Go's @code{flag} package") @@ -17633,7 +18211,9 @@ slices, JSON and other data.") (build-system go-build-system) (arguments (list - #:import-path "github.com/subosito/gotenv")) + #:go go-1.23 + #:import-path "github.com/subosito/gotenv" + #:test-flags #~(list "-skip" "TestScanner"))) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs @@ -17765,7 +18345,7 @@ storage system.") (define-public go-github-com-tdewolff-argp (package (name "go-github-com-tdewolff-argp") - (version "0.0.0-20240625173203-87b04d5d3e52") + (version "0.0.0-20250430135133-0f54527d2b1e") (source (origin (method git-fetch) @@ -17774,7 +18354,7 @@ storage system.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0d2xqir997qrxkwmbb6pn5hgl9ii0nz19f19lrgc4ixjhxxjwyy5")))) + (base32 "06pjm6z0b21rjwwpq0b18mr7v2h7igf9rrv7zqlaadmv5i58cbh4")))) (build-system go-build-system) (arguments (list @@ -17784,7 +18364,8 @@ storage system.") (propagated-inputs (list go-github-com-go-sql-driver-mysql go-github-com-jmoiron-sqlx - go-github-com-pelletier-go-toml)) + go-github-com-pelletier-go-toml + go-gopkg-in-yaml-v3)) (home-page "https://github.com/tdewolff/argp") (synopsis "GNU command line argument parser") (description "Command line argument parser following the GNU standard.") @@ -18347,7 +18928,6 @@ supported by the time package (build-system go-build-system) (arguments (list - #:go go-1.22 #:embed-files #~(list ".*\\.xml") #:import-path "github.com/tomwright/dasel/v2")) (propagated-inputs @@ -18810,7 +19390,7 @@ datastore connectivity and testing (viant/dsc, viant/dsunit).") (define-public go-github-com-viant-xunsafe (package (name "go-github-com-viant-xunsafe") - (version "0.9.4") + (version "0.10.3") (source (origin (method git-fetch) @@ -18819,10 +19399,11 @@ datastore connectivity and testing (viant/dsc, viant/dsunit).") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1ddf9grf7rczik9rzwmz10xagn65sn1n7mhkp7app0d3nc3xdlgs")))) + (base32 "0q9zqz6p8spf7nq9r75yv9zizxf80mg0i6w0y9a0qxcgpnji0a3z")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/viant/xunsafe")) (native-inputs (list go-github-com-stretchr-testify)) @@ -18935,6 +19516,7 @@ weighted moving averages}.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/vmihailenco/msgpack/v4")) (native-inputs (list go-gopkg-in-check-v1)) @@ -19094,6 +19676,7 @@ Redis.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/warpfork/go-fsx")) (home-page "https://github.com/warpfork/go-fsx") (synopsis "Extended filesystem interface for Golang") @@ -19711,6 +20294,7 @@ common sequence} values from two arbitrary arrays.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "github.com/yuin/gopher-lua" #:phases #~(modify-phases %standard-phases @@ -19853,6 +20437,30 @@ configuration languages, but other uses may be possible too.") utilities for cty Golang module.") (license license:expat))) +(define-public go-github-com-zclconf-go-cty-yaml + (package + (name "go-github-com-zclconf-go-cty-yaml") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zclconf/go-cty-yaml") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wwfwrf77rwxi39ln8mhdwg2d2znqz109yksac9x0x9jhczmxbvf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/zclconf/go-cty-yaml")) + (propagated-inputs (list go-github-com-zclconf-go-cty)) + (home-page "https://github.com/zclconf/go-cty-yaml") + (synopsis "YAML marshalling and unmarshalling for go-cty") + (description + "Package yaml can marshal and unmarshal cty values in YAML format.") + (license license:asl2.0))) + (define-public go-github-com-zitadel-logging (package (name "go-github-com-zitadel-logging") @@ -19869,7 +20477,6 @@ utilities for cty Golang module.") (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "github.com/zitadel/logging")) (native-inputs (list go-github-com-stretchr-testify @@ -20202,7 +20809,6 @@ word on a list of words, if none is found, look for a similar word.") (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)) @@ -20490,6 +21096,7 @@ written in YAML or JSON.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "go.mongodb.org/mongo-driver" #:test-flags #~(list "-skip" @@ -20618,7 +21225,7 @@ CPU quota.") (define-public go-go-uber-org-dig (package (name "go-go-uber-org-dig") - (version "1.18.0") + (version "1.19.0") (source (origin (method git-fetch) @@ -20627,7 +21234,7 @@ CPU quota.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1hc56szkalhsxfnpw5iphhm1vhlq2za5049vcwi4zlcy64mjx8v9")))) + (base32 "1wmd4l3nn1mkv5kkx2xylk1fbkpp5a5f21fzavmc1rxlbfhfqvpz")))) (build-system go-build-system) (arguments (list @@ -20931,6 +21538,7 @@ APIs may be unstable (build-system go-build-system) (arguments (list + #:go go-1.23 #:skip-build? #t #:import-path "go4.org" #:test-subdirs @@ -21047,6 +21655,55 @@ for locating directories their ASCII approximations.") (license license:asl2.0)))) +(define-public go-golang-org-x-perf + (package + (name "go-golang-org-x-perf") + (version "0.0.0-20250515181355-8f5f3abfb71a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/perf") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01qby8hvyamacndkavij7kk0dp95q3irssj4krpb7ppqwpq4j7l3")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:tests? #f + #:import-path "golang.org/x/perf")) + (propagated-inputs + (list ;; go-cloud-google-com-go-storage + go-github-com-aclements-go-gg + go-github-com-aclements-go-moremath + go-github-com-go-sql-driver-mysql + go-github-com-google-safehtml + ;; go-github-com-googlecloudplatform-cloudsql-proxy + go-github-com-mattn-go-sqlite3 + go-golang-org-x-net + go-golang-org-x-oauth2 + ;; go-gonum-org-v1-plot + ;; go-google-golang-org-api + go-google-golang-org-appengine)) + (home-page "https://cs.opensource.google/go/x/perf") + (synopsis "Golang benchmark analysis tools and libraries") + (description + "This package provides tooling and utility libraries for perfoming and +reading benchmarks results. + +@itemize +@item @code{benchfmt} - reads and writes the Go benchmark format +@item @code{benchunit} - manipulates benchmark units and formats numbers in +those units +@item @code{benchproc} - provides tools for filtering, grouping, and sorting +benchmark results +@item @code{benchmath} - provides tools for computing statistics over +distributions of benchmark measurements +@end itemize") + (license license:bsd-3))) + (define-public go-google-golang-org-appengine (package (name "go-google-golang-org-appengine") @@ -21105,7 +21762,7 @@ their ASCII approximations.") (build-system go-build-system) (arguments (list - #:test-flags #~(list "-skip" "TestFailoverHandler") + #:test-flags #~(list "-skip" "TestFailoverHandler|TestLazy") #:import-path "gopkg.in/inconshreveable/log15.v1")) (native-inputs (list go-github-com-stretchr-testify)) @@ -21469,6 +22126,7 @@ dependencies.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "howett.net/plist" ;; cmd requires gopkg.in/yaml.v1 #:test-subdirs #~(list "internal/..." "."))) @@ -21543,6 +22201,7 @@ split out here for ease of reuse and maintainability.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "k8s.io/klog/v2" #:test-flags #~(list "-skip" @@ -21823,7 +22482,6 @@ defined in @url{https://editorconfig.org/,https://editorconfig.org/}.") (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 @@ -21880,7 +22538,6 @@ that @code{gofmt} is happy with.") (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 @@ -21894,6 +22551,7 @@ that @code{gofmt} is happy with.") "TestRunnerRun/#989" "TestRunnerRun/#990" "TestRunnerRun/#991" + "TestRunnerRunConfirm/#152" "TestScript/flags") "|")))) (native-inputs @@ -22019,7 +22677,6 @@ prints the Go version used to build that executable.") (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") @@ -22028,10 +22685,57 @@ prints the Go version used to build that executable.") unmarshaling functions based on @code{encoding/json} @code{Unmarshal()}.") (license license:asl2.0))) +(define-public go-sigs-k8s-io-kustomize-kyaml + (package + (name "go-sigs-k8s-io-kustomize-kyaml") + (version "0.19.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kubernetes-sigs/kustomize") + (commit (go-version->git-ref version + #:subdir "kyaml")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0bpllzbaxvi93i74dw1z8k221ib2ydks0wmwx13vkh6cacrvydan")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "sigs.k8s.io/kustomize/kyaml" + #:unpack-path "sigs.k8s.io/kustomize" + #:test-flags + #~(list "-skip" (string-join + (list "TestCommandResultsChecker_UpdateExpectedFromActual" + "TestProcessorResultsChecker_UpdateExpectedFromActual") + "|")))) + (native-inputs + (list go-github-com-stretchr-testify + go-github-com-davecgh-go-spew)) + (propagated-inputs + (list go-github-com-go-errors-errors + go-github-com-google-gnostic-models + go-github-com-google-go-cmp + go-github-com-monochromegane-go-gitignore + go-github-com-sergi-go-diff + go-github-com-spf13-cobra + go-github-com-xlab-treeprint + go-golang-org-x-sys + go-google-golang-org-protobuf + go-k8s-io-kube-openapi + go-sigs-k8s-io-yaml)) + (home-page "https://github.com/kubernetes-sigs/") + (synopsis "Read Kubernetes config as YAML") + (description + "Package kyaml contains libraries for reading and writing Kubernetes Resource +configuration as YAML.") + (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") + (version "4.7.0") (source (origin (method git-fetch) @@ -22040,17 +22744,16 @@ unmarshaling functions based on @code{encoding/json} @code{Unmarshal()}.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0xgi3r2xvwvxy6jc6rd5rrnib4y9b4kgpqphm4lkhgaayy3njwv3")))) + (base32 "001h7lsnnglwj2nbbfhkmyfrym0y2dpwbfc6kqa3spl1dbl2lgac")))) (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 + #:skip-build? #t + #:import-path "sigs.k8s.io/structured-merge-diff/v4")) + (native-inputs + (list go-sigs-k8s-io-randfill)) (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") @@ -22122,7 +22825,7 @@ It allows one to safely call Unveil / Pledge on non-OpenBSD operating systems.") (define-public go-zgo-at-jfmt (package (name "go-zgo-at-jfmt") - (version "0.0.0-20240531161922-a97493b8db3c") + (version "0.0.0-20240726113937-e6436421fade") (source (origin (method git-fetch) @@ -22131,23 +22834,12 @@ It allows one to safely call Unveil / Pledge on non-OpenBSD operating systems.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0vm38kp46m1drxx16prbjwrc575vv7819ci16p96i0mksnnlfxj3")))) + (base32 "1nc3n3lf0ixzpk85sadp2w4yg9v39pdb2z0i1rpxksdayax009wa")))) (build-system go-build-system) (arguments (list - #:import-path "zgo.at/jfmt" - #:phases - #~(modify-phases %standard-phases - ;; Remove test data which failing during tests, see - ;; <https://github.com/arp242/jfmt/issues/1>. - (add-after 'unpack 'disable-failing-tests - (lambda* (#:key import-path #:allow-other-keys) - (with-directory-excursion (string-append "src/" import-path) - (for-each - (lambda (file) (delete-file file)) - '("testdata/escape.json" - "testdata/toml-test-key-escapes.json" - "testdata/toml-test-string-quoted-unicode.json")))))))) + #:go go-1.23 + #:import-path "zgo.at/jfmt")) (propagated-inputs (list go-zgo-at-termtext go-zgo-at-zli @@ -22216,7 +22908,7 @@ terminals.") (define-public go-zgo-at-zli (package (name "go-zgo-at-zli") - (version "0.0.0-20240922172047-d7bc84b1106f") + (version "0.0.0-20250601161843-debde58580f1") (source (origin (method git-fetch) @@ -22225,10 +22917,11 @@ terminals.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "110kwhydj6bzwqk7amkm9xgr3apx2bq6frlqb5yxds8cj5y25jks")))) + (base32 "120nlnxhzdmk1lh7cfgajkl85n8mfd00cn5csyislris9q2n2rxb")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "zgo.at/zli")) (home-page "https://github.com/arp242/zli") (synopsis "Go library for writing command line interface programs") @@ -22241,7 +22934,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-20241125224656-49fafbb06ca9") + (version "0.0.0-20250624130507-310bc16feb74") (source (origin (method git-fetch) @@ -22250,12 +22943,13 @@ helpful utility functions, and makes testing fairly easy.") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1hwvv685vv003j4ry6b791fmz5fz0ff57pq64s9s57zqxaxn8jrv")))) + (base32 "1b8w6cl0z9wz32n8znj3d6il775gfbnw6k8x6cxki4acqhga8dd2")))) (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "zgo.at/zstd" - #:test-flags #~(list "-skip" "TestExists/4|TestDiffMatch/3"))) + #:test-flags #~(list "-skip" "TestExists/4"))) (home-page "https://github.com/arp242/zstd") (synopsis "Extensions to Go's standard library") (description @@ -22344,9 +23038,17 @@ streaming.") (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")) + (substitute-keyword-arguments + (package-arguments go-github-com-olekukonko-tablewriter) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:import-path _) "github.com/olekukonko/tablewriter/cmd/csv2table") + ((#:unpack-path _ "") "github.com/olekukonko/tablewriter"))) + (native-inputs + (append (package-native-inputs go-github-com-olekukonko-tablewriter) + (package-propagated-inputs go-github-com-olekukonko-tablewriter))) + (propagated-inputs '()) + (inputs '()) (description (string-append (package-description go-github-com-olekukonko-tablewriter) "\nThis package provides a command line interface (CLI) tool.")))) @@ -22383,9 +23085,13 @@ correctly."))) (define-public go-jfmt (package/inherit go-zgo-at-jfmt (name "go-jfmt") - (arguments (list #:install-source? #f - #:import-path "zgo.at/jfmt/cmd/jfmt" - #:unpack-path "zgo.at/jfmt")) + (arguments + (substitute-keyword-arguments + (package-arguments go-zgo-at-jfmt) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:import-path _) "zgo.at/jfmt/cmd/jfmt") + ((#:unpack-path _ "") "zgo.at/jfmt"))) (description (string-append (package-description go-zgo-at-jfmt) " This package provides a command line interface (CLI) tool.")))) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index eb04e2eb86..ed9a32e610 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1065,7 +1065,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") ;; ;; Default Golang version used in guix/build-system/go.scm to build packages. ;; -(define-public go go-1.21) +(define-public go go-1.24) (define make-go-std (mlambdaq (go) diff --git a/gnu/packages/hexedit.scm b/gnu/packages/hexedit.scm index e9e6482780..42f3398537 100644 --- a/gnu/packages/hexedit.scm +++ b/gnu/packages/hexedit.scm @@ -114,7 +114,6 @@ the file and search through it.") (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "github.com/wader/fq")) (native-inputs (list go-github-com-burntsushi-toml diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm index a70a990cb0..4e03904677 100644 --- a/gnu/packages/high-availability.scm +++ b/gnu/packages/high-availability.scm @@ -373,16 +373,9 @@ systems.") (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (invoke "make")))) - (replace 'check - (lambda* (#:key tests? import-path #:allow-other-keys) - (when tests? - (setenv "HOME" "/tmp") - (with-directory-excursion (string-append "src/" import-path) - ;; go test: -race is only supported on linux/amd64, - ;; linux/ppc64le, linux/arm64 - (invoke #$@(if (not target-x86-32?) - (list "go" "test" "-v" "-race" "./...") - (list "go" "test" "-v" "./..."))))))) + (add-before 'check 'pre-check + (lambda _ + (setenv "HOME" "/tmp"))) (replace 'install (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index ab30dfa31d..0f5cf2a302 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -1309,7 +1309,11 @@ libraries designed for computer vision research and implementation.") (outputs '("out" "python")) (arguments (list - #:tests? #f ;tests require network access and external data + #:imported-modules (append %cmake-build-system-modules + %pyproject-build-system-modules) + #:modules '(((guix build pyproject-build-system) #:prefix py:) + (guix build cmake-build-system) + (guix build utils)) #:configure-flags #~(list "-DITK_USE_GPU=ON" "-DITK_USE_SYSTEM_LIBRARIES=ON" @@ -1377,7 +1381,19 @@ libraries designed for computer vision research and implementation.") (delete-file (string-append "Modules/Remote/" - "MorphologicalContourInterpolation.remote.cmake"))))))) + "MorphologicalContourInterpolation.remote.cmake")))) + (add-after 'unpack 'fix-numpy-bool + (lambda _ + ;; <https://github.com/InsightSoftwareConsortium/ITK/pull/5402> + (substitute* (string-append "Wrapping/Generators/" + "Python/itk/support/types.py") + (("np\\.bool") "np.bool_")))) + (delete 'check) ;tests require network access and external data + (add-after 'install 'python-sanity-check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (py:add-installed-pythonpath inputs outputs) + (invoke "python3" "-c" "import itk"))))))) (inputs (list eigen expat fftw @@ -1397,6 +1413,7 @@ libraries designed for computer vision research and implementation.") gcc-13 git-minimal pkg-config + python-numpy ;for phase 'python-sanity-check swig-next which (origin @@ -1454,11 +1471,15 @@ combine the information contained in both.") (string-prefix? "-DITK_USE_PYTHON_LIMITED_API=" flag) (string-prefix? "-DITK_USE_SYSTEM_CASTXML=" flag) (string-prefix? "-DITK_USE_SYSTEM_SWIG=" flag)))) - #$cf)))) + #$cf)) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (delete 'python-sanity-check))))) (inputs (modify-inputs (package-inputs insight-toolkit) (delete "python"))) (native-inputs (modify-inputs (package-native-inputs insight-toolkit) (delete "castxml") + (delete "python-numpy") (delete "swig")))))) (define-public itk-snap diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 4140000bd1..f0ee0fd807 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -30,6 +30,7 @@ #:use-module (guix git-download) #:use-module (guix download) #:use-module (guix build-system go) + #:use-module (gnu packages databases) #:use-module (gnu packages gcc) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) @@ -122,16 +123,16 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.") (define-public go-github-com-ipfs-boxo (package (name "go-github-com-ipfs-boxo") - (version "0.28.0") + (version "0.30.0") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/ipfs/boxo") - (commit (string-append "v" version)))) + (url "https://github.com/ipfs/boxo") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "152g98g4j0pw5az1pc9xdrrzp4qd3cb9xflc98w69migq9il6k68")) + (base32 "1siicb0bs4shc220xk2i5d4p5myrh3yg64hm3yl796gjbcqgs66d")) (modules '((guix build utils))) (snippet #~(begin @@ -146,37 +147,18 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:skip-build? #t #:embed-files #~(list "sorted-network-list.bin") - #:test-subdirs #~(list "bitswap/..." - "blockservice/..." - "blockstore/..." - "bootstrap/..." - "chunker/..." - "datastore/..." - "exchange/..." - "fetcher/..." - "files/..." - "filestore/..." - ;; "gateway/..." ; missing packages - "ipld/..." - "ipns/..." - "keystore/..." - "mfs/..." - ;; "namesys/..." ; missing packages - "path/..." - "peering/..." - "pinning/..." - "provider/..." - ;; "routing/..." ; missing packages - "tar/..." - ;; "tracing/..." ; missing packages - "util/..." - "verifcid/...") - #:import-path "github.com/ipfs/boxo")) + #:import-path "github.com/ipfs/boxo" + #:test-flags + #~(list "-skip" (string-join + ;; Network access is required. + (list "TestAddNewDNSResolver" + "TestOverrideDNSDefaults") + "|")))) (native-inputs - (list go-github-com-stretchr-testify)) + (list go-github-com-libp2p-go-libp2p-kad-dht-bootstrap + go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-alecthomas-units go-github-com-cespare-xxhash-v2 @@ -189,7 +171,6 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.") go-github-com-gammazero-deque go-github-com-google-uuid go-github-com-gorilla-mux - go-github-com-hashicorp-go-multierror go-github-com-hashicorp-golang-lru-v2 go-github-com-ipfs-bbloom go-github-com-ipfs-go-bitfield @@ -214,7 +195,6 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.") go-github-com-libp2p-go-buffer-pool go-github-com-libp2p-go-doh-resolver go-github-com-libp2p-go-libp2p - ;; go-github-com-libp2p-go-libp2p-kad-dht go-github-com-libp2p-go-libp2p-record go-github-com-libp2p-go-libp2p-routing-helpers go-github-com-libp2p-go-libp2p-testing @@ -231,17 +211,18 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.") go-github-com-polydawn-refmt go-github-com-prometheus-client-golang go-github-com-samber-lo - ;; go-github-com-slok-go-http-metrics + go-github-com-slok-go-http-metrics go-github-com-spaolacci-murmur3 go-github-com-whyrusleeping-base32 go-github-com-whyrusleeping-chunker go-go-opencensus-io go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp go-go-opentelemetry-io-otel - ;; go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracegrpc - ;; go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracehttp - ;; go-go-opentelemetry-io-otel-exporters-stdout-stdouttrace - ;; go-go-opentelemetry-io-otel-exporters-zipkin + go-go-opentelemetry-io-otel-exporters-otlp-otlptrace + go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracegrpc + go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracehttp + go-go-opentelemetry-io-otel-exporters-stdout-stdouttrace + go-go-opentelemetry-io-otel-exporters-zipkin go-go-opentelemetry-io-otel-sdk go-go-opentelemetry-io-otel-trace go-go-uber-org-multierr @@ -393,6 +374,39 @@ provides a single @code{GetBlock/AddBlock} interface that seamlessly retrieves data either locally or from a remote peer through the exchange.") (license license:expat))) +(define-public go-github-com-ipfs-go-ds-badger4 + (package + (name "go-github-com-ipfs-go-ds-badger4") + (version "0.1.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ipfs/go-ds-badger4") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gyzywd74cb8jl0zr8b3fjjmd8rsabwk5rj17nhagigps4971h1a")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.23 + #:import-path "github.com/ipfs/go-ds-badger4")) + (native-inputs + (list go-github-com-stretchr-testify + go-go-uber-org-zap)) + (propagated-inputs + (list go-github-com-dgraph-io-badger-v4 + go-github-com-ipfs-go-datastore + go-github-com-ipfs-go-detect-race + go-github-com-ipfs-go-log-v2)) + (home-page "https://github.com/ipfs/go-ds-badger4") + (synopsis "Datastore implementation using Badger v4 as backend") + (description + "This package implements a Badger v4 (a key-value database) backed +datastore for IPFS.") + (license (list license:expat license:asl2.0)))) + (define-public go-github-com-ipfs-go-ds-dynamodb (package (name "go-github-com-ipfs-go-ds-dynamodb") @@ -430,7 +444,7 @@ scans, enabling high performance, ordered, high-cardinality prefix queries.") (define-public go-github-com-ipfs-go-ds-flatfs (package (name "go-github-com-ipfs-go-ds-flatfs") - (version "0.5.1") + (version "0.5.5") (source (origin (method git-fetch) @@ -439,7 +453,7 @@ scans, enabling high performance, ordered, high-cardinality prefix queries.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1mrgl6kslq4d4zfpdyxvqxz8brhm8wphvnp916pippn7z63sayj3")))) + (base32 "1m5fxxdn2zj9i9nm8fdyll4wcgaknfg3vj07959mj06hwc9r3z3c")))) (build-system go-build-system) (arguments (list @@ -449,7 +463,7 @@ scans, enabling high performance, ordered, high-cardinality prefix queries.") 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") + (synopsis "Datastore with sharded directories and flat files") (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 @@ -483,10 +497,40 @@ hierarchy of the keys.") @url{https://github.com/ipfs/go-metrics-interface}.") (license license:expat))) +(define-public go-github-com-ipfs-go-ds-pebble + (package + (name "go-github-com-ipfs-go-ds-pebble") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ipfs/go-ds-pebble") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0l0abcknray9hvk5j3vdiybgjk7yn6j3awznpy46j08g97z88ljw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ipfs/go-ds-pebble")) + (propagated-inputs + (list go-github-com-cockroachdb-pebble-v2 + go-github-com-ipfs-go-datastore + go-github-com-ipfs-go-log-v2)) + (home-page "https://github.com/ipfs/go-ds-pebble") + (synopsis "Pebble-backed datastore") + (description + "This is a simple adapter to plug in +@url{https://github.com/cockroachdb/pebble, cockroachdb/pebble} as a backend +anywhere that accepts a @url{https://github.com/ipfs/go-datastore, +go-datastore}.") + (license (list license:asl2.0 license:expat)))) + (define-public go-github-com-ipfs-go-fs-lock (package (name "go-github-com-ipfs-go-fs-lock") - (version "0.0.7") + (version "0.1.1") (source (origin (method git-fetch) @@ -495,7 +539,7 @@ hierarchy of the keys.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1zf52cq7j59pwdy4wd8h5gym8ph2big0nma05xwl61wrsyjwsngz")))) + (base32 "14m5038067px6vvqyvx6449f0f62nj8d0p5hkf9rj8ykfahs80ff")))) (build-system go-build-system) (arguments (list @@ -533,7 +577,7 @@ hierarchy of the keys.") go-github-com-ipfs-bbloom go-github-com-ipfs-go-block-format go-github-com-ipfs-go-cid - go-github-com-ipfs-go-datastore + go-github-com-ipfs-go-datastore-0.6 go-github-com-ipfs-go-ipfs-ds-help go-github-com-ipfs-go-ipfs-util go-github-com-ipfs-go-ipld-format @@ -544,39 +588,35 @@ hierarchy of the keys.") (home-page "https://github.com/ipfs/go-ipfs-blockstore") (synopsis "Caching wrapper over a IPFS datastore") (description - "@code{go-ipfs-blockstore} implements a thin wrapper over an IPFS datastore, -giving a clean interface for getting and putting block objects.") + "@code{go-ipfs-blockstore} implements a thin wrapper over an IPFS +datastore, giving a clean interface for getting and putting block objects.") (license license:expat))) (define-public go-github-com-ipfs-go-ipfs-blocksutil - ;; Use the latest commit from the "master" branch to fix the build with - ;; go-1.21, see <https://github.com/ipfs/go-ipfs-blocksutil/issues/25>. - (let ((commit "ce0497f5ee55c479db98905aec8ff56c27aad2a2") - (revision "0")) - (package - (name "go-github-com-ipfs-go-ipfs-blocksutil") - (version (git-version "0.0.1" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ipfs/go-ipfs-blocksutil") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1ya6376wphp51rv48nmv4jw3x0mf6ym5yx1650fbkp5l5crqpdb8")))) - (build-system go-build-system) - (arguments - (list - #:import-path "github.com/ipfs/go-ipfs-blocksutil")) - (propagated-inputs - (list go-github-com-ipfs-go-block-format)) - (home-page "https://github.com/ipfs/go-ipfs-blocksutil") - (synopsis "Utility functions for working with IPFS blocks") - (description - "This package provides an utility functions for working with + (package + (name "go-github-com-ipfs-go-ipfs-blocksutil") + (version "0.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ipfs/go-ipfs-blocksutil") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g6b4b2b5wp5r0dh20qdfdm76qnh421y8lgz4381r02q2flh57dv")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ipfs/go-ipfs-blocksutil")) + (propagated-inputs + (list go-github-com-ipfs-go-block-format)) + (home-page "https://github.com/ipfs/go-ipfs-blocksutil") + (synopsis "Utility functions for working with IPFS blocks") + (description + "This package provides an utility functions for working with @url{https://github.com/ipfs/go-block-format, IPFS blocks}.") - (license license:expat)))) + (license license:expat))) (define-public go-github-com-ipfs-go-cid (package @@ -651,7 +691,6 @@ with @url{https://github.com/ipld/cid, CIDs}.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:import-path "github.com/ipfs/go-ipfs-cmds" #:phases #~(modify-phases %standard-phases @@ -728,36 +767,27 @@ keys used by @code{go-ipfs} (Kubo).") (define-public go-github-com-ipfs-go-datastore (package (name "go-github-com-ipfs-go-datastore") - (version "0.6.0") + (version "0.8.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/ipfs/go-datastore") (commit (string-append "v" version)))) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/ipfs/go-datastore/fuzz + (delete-file-recursively "fuzz"))) (file-name (git-file-name name version)) (sha256 - (base32 "1xbhh3gm7bgd2d1p821w8gmbh87aix1g1ynhbl7gjaxxyhrsh68n")))) + (base32 "02n38i09f8ffr894fzlsl80ahf32mpap5q004acz9cdg9a67pdz3")))) (build-system go-build-system) (arguments (list #: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 @@ -771,9 +801,9 @@ keys used by @code{go-ipfs} (Kubo).") (list go-github-com-google-uuid go-github-com-ipfs-go-detect-race go-github-com-ipfs-go-ipfs-delay - go-github-com-jbenet-goprocess - go-go-uber-org-multierr - go-golang-org-x-xerrors)) + go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel-trace + go-go-uber-org-multierr)) (home-page "https://github.com/ipfs/go-datastore") (synopsis "Key-value datastore interfaces") (description @@ -785,10 +815,39 @@ different strengths without committing the application to one datastore throughout its lifetime.") (license license:expat))) +(define-public go-github-com-ipfs-go-datastore-0.6 + (package + (inherit go-github-com-ipfs-go-datastore) + (name "go-github-com-ipfs-go-datastore") + (version "0.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ipfs/go-datastore") + (commit (string-append "v" version)))) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/ipfs/go-datastore/fuzz + (delete-file-recursively "fuzz"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xbhh3gm7bgd2d1p821w8gmbh87aix1g1ynhbl7gjaxxyhrsh68n")))) + (propagated-inputs + (list go-github-com-google-uuid + go-github-com-ipfs-go-detect-race + go-github-com-ipfs-go-ipfs-delay + go-github-com-jbenet-goprocess + go-go-uber-org-multierr + go-golang-org-x-xerrors)))) + (define-public go-github-com-ipfs-go-ds-badger (package (name "go-github-com-ipfs-go-ds-badger") - (version "0.3.0") + (version "0.3.4") (source (origin (method git-fetch) @@ -797,7 +856,7 @@ throughout its lifetime.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "06hn79airlqrgsbsppin98swbqwz58ji659fyrk1wivp4iz2na3h")))) + (base32 "0ywq8cs6yf5vqfbw6rd5pw79sqljd87qi0ykv4gg736s7g7mkjr6")))) (build-system go-build-system) (arguments (list @@ -940,7 +999,10 @@ but returns nil values to every request.") (build-system go-build-system) (arguments (list - #:import-path "github.com/ipfs/go-ipfs-pq")) + #:import-path "github.com/ipfs/go-ipfs-pq" + ;; By using Go version higher than 1.21 one test keep failing with + ;; error: the values were not returned in sorted order. + #:test-flags #~(list "-skip" "TestCorrectnessOfPop"))) (home-page "https://github.com/ipfs/go-ipfs-pq") (synopsis "Priority queue used by go-ipfs") (description "Package pq implements a priority queue.") @@ -1225,7 +1287,7 @@ Graphs, DAG} data structures as specified in (define-public go-github-com-ipfs-go-metrics-prometheus (package (name "go-github-com-ipfs-go-metrics-prometheus") - (version "0.0.3") + (version "0.1.0") (source (origin (method git-fetch) @@ -1234,7 +1296,7 @@ Graphs, DAG} data structures as specified in (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1gyh2g912lrwghs2f5alh42dgwsbbdg1wan5vw8s0a2ni0avsfib")))) + (base32 "12bvlg1pnwxyfn8paxf0viky5mv5isdql29mflvjhgs5g48mnc3s")))) (build-system go-build-system) (arguments (list @@ -1470,7 +1532,6 @@ code prior to it getting merged into @code{go-cid}.") (build-system go-build-system) (arguments (list - #:go go-1.23 #:embed-files #~(list "sorted-network-list.bin") #:import-path "github.com/ipfs-shipyard/nopfs/ipfs" #:unpack-path "github.com/ipfs-shipyard/nopfs")) @@ -1712,7 +1773,7 @@ their levels to be controlled individually.") (define-public go-github-com-ipfs-go-metrics-interface (package (name "go-github-com-ipfs-go-metrics-interface") - (version "0.0.1") + (version "0.3.0") (source (origin (method git-fetch) @@ -1721,7 +1782,7 @@ their levels to be controlled individually.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "09xc71175sfnqlizkbw066jagnbag9ihvs240z6g6dm2yx3w5xgy")))) + (base32 "0d7jh9aclmxq4z5hynn4lc0ab8c8rip92xkc224vjw2y7kg6jyvg")))) (build-system go-build-system) (arguments (list @@ -1739,10 +1800,60 @@ their levels to be controlled individually.") "Metrics interface for IPFS (Kubo).") (license license:expat))) +(define-public go-github-com-ipshipyard-p2p-forge + (package + (name "go-github-com-ipshipyard-p2p-forge") + (version "0.5.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ipshipyard/p2p-forge") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qh820v738fn1k5scd99v230s4xcz26wg2s41farirhdjx8lmzc6")))) + (build-system go-build-system) + (arguments + (list + ;; TODO: Enalbe when all missing inputs are packaged, using for Kubo as + ;; source only package. + #:skip-build? #t + #:tests? #f + #:import-path "github.com/ipshipyard/p2p-forge")) + (propagated-inputs + (list go-github-com-aws-aws-sdk-go + go-github-com-caddyserver-certmagic + ;; go-github-com-coredns-caddy + ;; go-github-com-coredns-coredns + go-github-com-felixge-httpsnoop + go-github-com-ipfs-go-datastore + go-github-com-ipfs-go-ds-badger4 + go-github-com-ipfs-go-ds-dynamodb + go-github-com-ipfs-go-log-v2 + go-github-com-joho-godotenv + go-github-com-letsencrypt-pebble-v2 + go-github-com-libp2p-go-libp2p + go-github-com-mholt-acmez-v3 + go-github-com-miekg-dns + go-github-com-multiformats-go-multiaddr + go-github-com-multiformats-go-multiaddr-dns + go-github-com-multiformats-go-multibase + go-github-com-prometheus-client-golang + go-github-com-slok-go-http-metrics + go-go-uber-org-zap)) + (home-page "https://github.com/ipshipyard/p2p-forge") + (synopsis "Authoritative DNS server for distributing DNS subdomains to libp2p peers") + (description + "This package provides an Authoritative DNS server and HTTP+libp2p API +for distributing DNS subdomains with CA-signed TLS certificates to libp2p +peers.") + (license (list license:asl2.0 license:expat)))) + (define-public go-github-com-libp2p-go-libp2p (package (name "go-github-com-libp2p-go-libp2p") - (version "0.40.0") + (version "0.41.1") (source (origin (method git-fetch) @@ -1751,7 +1862,7 @@ their levels to be controlled individually.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1w9bx5g5c39ik4d7lxrhh1hv6k1mw9hz61l3ipshylf5jc3azc8f")) + (base32 "1sxx27hgryg93a03n08vasycaj76iwclzdskajjy8bivk5z9ls9p")) (modules '((guix build utils))) (snippet #~(begin @@ -1764,7 +1875,6 @@ their levels to be controlled individually.") (build-system go-build-system) (arguments (list - #:go go-1.22 #:embed-files #~(list "sorted-network-list.bin") #:import-path "github.com/libp2p/go-libp2p" ;; XXX: Check how to enable the most of the tests, see GitHub Actions @@ -1790,18 +1900,20 @@ their levels to be controlled individually.") go-github-com-gorilla-websocket go-github-com-hashicorp-golang-lru-arc-v2 go-github-com-hashicorp-golang-lru-v2 + go-github-com-huin-goupnp go-github-com-ipfs-go-cid go-github-com-ipfs-go-datastore go-github-com-ipfs-go-ds-badger go-github-com-ipfs-go-ds-leveldb go-github-com-ipfs-go-log-v2 + go-github-com-jackpal-go-nat-pmp go-github-com-jbenet-go-temp-err-catcher go-github-com-klauspost-compress + go-github-com-koron-go-ssdp go-github-com-libp2p-go-buffer-pool go-github-com-libp2p-go-flow-metrics go-github-com-libp2p-go-libp2p-asn-util go-github-com-libp2p-go-msgio - go-github-com-libp2p-go-nat go-github-com-libp2p-go-netroute go-github-com-libp2p-go-reuseport go-github-com-libp2p-go-yamux-v5 @@ -1845,29 +1957,6 @@ their levels to be controlled individually.") @url{https://github.com/libp2p/specs,libp2p}.") (license license:expat))) -;; For kubo@0.32.0 -(define-public go-github-com-libp2p-go-libp2p-0.38 - (hidden-package (package/inherit go-github-com-libp2p-go-libp2p - (name "go-github-com-libp2p-go-libp2p") - (version "0.38.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/libp2p/go-libp2p") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1c88qgkvyvdjsy5bds3ylcikpj00jxhyxnv7alb6x860xm9703xk")))) - (propagated-inputs - (modify-inputs (package-propagated-inputs go-github-com-libp2p-go-libp2p) - (replace "go-github-com-libp2p-go-yamux-v5" - go-github-com-libp2p-go-yamux-v4) - (replace "go-github-com-pion-ice-v4" - go-github-com-pion-ice-v2) - (replace "go-github-com-pion-webrtc-v4" - go-github-com-pion-webrtc-v3)))))) - (define-public go-github-com-libp2p-go-libp2p-gostream (package (name "go-github-com-libp2p-go-libp2p-gostream") @@ -1945,7 +2034,7 @@ through @url{https://github.com/libp2p/libp2p, LibP2P} using Go's standard (define-public go-github-com-libp2p-go-libp2p-kad-dht (package (name "go-github-com-libp2p-go-libp2p-kad-dht") - (version "0.29.2") + (version "0.33.1") (source (origin (method git-fetch) @@ -1954,26 +2043,25 @@ through @url{https://github.com/libp2p/libp2p, LibP2P} using Go's standard (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1cmj04sypdky5fc3b50fhz8h1aarg0ngdi15cyfwn6yb98pmfq4z")))) + (base32 "1m263kjax7zyn3k3xgiamh6fcfl4724hm64z6mvmlslcx5zvmmzz")))) (build-system go-build-system) (arguments (list - #:go go-1.23 #:embed-files #~(list "sorted-network-list.bin") - #:import-path "github.com/libp2p/go-libp2p-kad-dht")) + #:import-path "github.com/libp2p/go-libp2p-kad-dht" + ;; Error: "[]" should have 3 item(s), but has 0 + #:test-flags #~(list "-skip" "TestIPDiversityFilter/Different_IPv6_blocks"))) (native-inputs (list go-github-com-ipfs-go-test go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-google-gopacket go-github-com-google-uuid - go-github-com-hashicorp-go-multierror go-github-com-hashicorp-golang-lru go-github-com-ipfs-boxo go-github-com-ipfs-go-cid go-github-com-ipfs-go-datastore go-github-com-ipfs-go-detect-race - go-github-com-ipfs-go-log go-github-com-ipfs-go-log-v2 go-github-com-libp2p-go-libp2p go-github-com-libp2p-go-libp2p-kbucket @@ -1990,7 +2078,7 @@ through @url{https://github.com/libp2p/libp2p, LibP2P} using Go's standard go-github-com-multiformats-go-multistream go-github-com-whyrusleeping-go-keyspace go-go-opentelemetry-io-otel - ;; go-go-opentelemetry-io-otel-metric + go-go-opentelemetry-io-otel-metric go-go-opentelemetry-io-otel-trace go-go-uber-org-multierr go-go-uber-org-zap @@ -2004,10 +2092,23 @@ routing interface as specified in @url{https://github.com/libp2p/specs, kab-dht}. This DHT is modeled after Kademlia with S/Kademlia modifications.") (license license:expat))) +(define-public go-github-com-libp2p-go-libp2p-kad-dht-bootstrap + (hidden-package + (package/inherit go-github-com-libp2p-go-libp2p-kad-dht + (arguments + (list + #:skip-build? #t + #:tests? #f + #:import-path "github.com/libp2p/go-libp2p-kad-dht")) + (propagated-inputs + (list go-github-com-libp2p-go-libp2p-kbucket + go-github-com-whyrusleeping-go-keyspace + go-gonum-org-v1-gonum))))) + (define-public go-github-com-libp2p-go-libp2p-kbucket (package (name "go-github-com-libp2p-go-libp2p-kbucket") - (version "0.6.5") + (version "0.7.0") (source (origin (method git-fetch) @@ -2016,7 +2117,7 @@ kab-dht}. This DHT is modeled after Kademlia with S/Kademlia modifications.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "03xla0mhb17lh7syv0x4hvg2i0q1r8d6ym6rmjgf1z3z955znx6l")))) + (base32 "1p764b38xm0v5w3h8df14480j6y0fxxlsxwqizqchf0ivr3fr634")))) (build-system go-build-system) (arguments (list @@ -2060,9 +2161,9 @@ kab-dht}. This DHT is modeled after Kademlia with S/Kademlia modifications.") (build-system go-build-system) (arguments (list - #:go go-1.22 ;; TODO: Tests may need some adjustments as they take quite a lot of ;; time to finish. + #:tests? #f #:import-path "github.com/libp2p/go-libp2p-pubsub" ;; src/github.com/libp2p/go-libp2p-asn-util/asn.go:12:12: pattern ;; sorted-network-list.bin: cannot embed irregular file @@ -2282,162 +2383,21 @@ types.") (define-public kubo (package (name "kubo") - (version "0.32.1") + (version "0.35.0") (source (origin - (method url-fetch/tarbomb) - (uri (string-append - ;; Permament redirection from <https://ipfs.io>. - "https://dist.ipfs.tech/kubo//v" version - "/kubo-source.tar.gz")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/ipfs/kubo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "1v8bnrfir7322qklc2ri4xd32arifza5w6br7kpfknyrq2daiggz")) - (file-name (string-append name "-" version "-source")) - (modules '((guix build utils))) - (snippet '(for-each delete-file-recursively - ;; TODO: unbundle the rest as well - '("vendor/bazil.org" - "vendor/contrib.go.opencensus.io" - "vendor/github.com/AndreasBriese" - "vendor/github.com/DataDog" - "vendor/github.com/Jorropo" - "vendor/github.com/alecthomas" - "vendor/github.com/benbjohnson" - "vendor/github.com/beorn7" - "vendor/github.com/blang" - "vendor/github.com/caddyserver/certmagic" - "vendor/github.com/cenkalti" - "vendor/github.com/ceramicnetwork" - "vendor/github.com/cespare" - "vendor/github.com/cheggaaa" - "vendor/github.com/containerd" - "vendor/github.com/coreos" - "vendor/github.com/crackcomm" - "vendor/github.com/cskr" - "vendor/github.com/davecgh" - "vendor/github.com/davidlazar" - "vendor/github.com/decred" - "vendor/github.com/dgraph-io" - "vendor/github.com/docker" - "vendor/github.com/dustin" - "vendor/github.com/elastic" - "vendor/github.com/elgris" - "vendor/github.com/facebookgo" - "vendor/github.com/felixge" - "vendor/github.com/flynn" - "vendor/github.com/francoispqt" - "vendor/github.com/fsnotify" - "vendor/github.com/gabriel-vasile" - "vendor/github.com/go-kit" - "vendor/github.com/go-logfmt" - "vendor/github.com/go-logr" - "vendor/github.com/go-task" - "vendor/github.com/godbus" - "vendor/github.com/gogo" - "vendor/github.com/golang" - "vendor/github.com/google" - "vendor/github.com/gorilla" - "vendor/github.com/hashicorp" - "vendor/github.com/huin" - "vendor/github.com/ipfs/bbloom" - "vendor/github.com/ipfs/go-bitfield" - "vendor/github.com/ipfs/go-block-format" - "vendor/github.com/ipfs/go-cid" - "vendor/github.com/ipfs/go-cidutil" - "vendor/github.com/ipfs/go-datastore" - "vendor/github.com/ipfs/go-detect-race" - "vendor/github.com/ipfs/go-ds-badger" - "vendor/github.com/ipfs/go-ds-flatfs" - "vendor/github.com/ipfs/go-ds-leveldb" - "vendor/github.com/ipfs/go-ds-measure" - "vendor/github.com/ipfs/go-fs-lock" - "vendor/github.com/ipfs/go-ipfs-delay" - "vendor/github.com/ipfs/go-ipfs-ds-help" - "vendor/github.com/ipfs/go-ipfs-redirects-file" - "vendor/github.com/ipfs/go-ipfs-util" - "vendor/github.com/ipfs/go-ipld-cbor" - "vendor/github.com/ipfs/go-ipld-format" - "vendor/github.com/ipfs/go-ipld-git" - "vendor/github.com/ipfs/go-ipld-legacy" - "vendor/github.com/ipfs/go-log" - "vendor/github.com/ipfs/go-metrics-interface" - "vendor/github.com/ipfs/go-metrics-prometheus" - "vendor/github.com/ipfs/go-peertaskqueue" - "vendor/github.com/ipfs/go-test" - "vendor/github.com/ipfs/go-unixfsnode" - "vendor/github.com/ipfs/go-verifcid" - "vendor/github.com/ipld" - "vendor/github.com/jackpal" - "vendor/github.com/jbenet" - "vendor/github.com/julienschmidt" - "vendor/github.com/klauspost" - "vendor/github.com/koron" - "vendor/github.com/kr" - "vendor/github.com/libp2p/go-buffer-pool" - "vendor/github.com/libp2p/go-cidranger" - "vendor/github.com/libp2p/go-doh-resolver" - "vendor/github.com/libp2p/go-flow-metrics" - "vendor/github.com/libp2p/go-libp2p" - "vendor/github.com/libp2p/go-libp2p-asn-util" - "vendor/github.com/libp2p/go-libp2p-http" - "vendor/github.com/libp2p/go-libp2p-pubsub" - "vendor/github.com/libp2p/go-libp2p-pubsub-router" - "vendor/github.com/libp2p/go-libp2p-routing-helpers" - "vendor/github.com/libp2p/go-libp2p-testing" - "vendor/github.com/libp2p/go-msgio" - "vendor/github.com/libp2p/go-nat" - "vendor/github.com/libp2p/go-netroute" - "vendor/github.com/libp2p/go-reuseport" - "vendor/github.com/libp2p/go-socket-activation" - "vendor/github.com/libp2p/go-yamux" - "vendor/github.com/libp2p/zeroconf" - "vendor/github.com/marten-seemann" - "vendor/github.com/mattn" - "vendor/github.com/mgutz" - "vendor/github.com/mholt" - "vendor/github.com/miekg" - "vendor/github.com/mikioh" - "vendor/github.com/minio" - "vendor/github.com/mr-tron" - "vendor/github.com/multiformats" - "vendor/github.com/munnerz" - "vendor/github.com/onsi" - "vendor/github.com/opencontainers" - "vendor/github.com/opentracing" - "vendor/github.com/pbnjay" - "vendor/github.com/petar" - "vendor/github.com/pion" - "vendor/github.com/pkg" - "vendor/github.com/pmezard" - "vendor/github.com/polydawn" - "vendor/github.com/prometheus" - "vendor/github.com/quic-go" - "vendor/github.com/raulk" - "vendor/github.com/rogpeppe" - "vendor/github.com/rs" - "vendor/github.com/samber" - "vendor/github.com/spaolacci" - "vendor/github.com/stretchr" - "vendor/github.com/syndtr" - "vendor/github.com/texttheater" - "vendor/github.com/tidwall" - "vendor/github.com/ucarion" - "vendor/github.com/whyrusleeping" - "vendor/github.com/wlynxg" - "vendor/go.opencensus.io" - "vendor/go.uber.org" - "vendor/go4.org" - "vendor/golang.org" - "vendor/gonum.org" - "vendor/google.golang.org/genproto/googleapis/rpc" - "vendor/google.golang.org/protobuf" - "vendor/gopkg.in" - "vendor/lukechampine.com"))))) + (base32 "18xkgxy07dz3zxvvrpaiv5m46slcl6hh07qbmmnfihcnx34431qa")))) (build-system go-build-system) (arguments (list - #:go go-1.22 - #:embed-files #~(list "sorted-network-list.bin") + #:install-source? #f + #:embed-files #~(list "sorted-network-list.bin" ".*\\.css" ".*\\.html") #:unpack-path "github.com/ipfs/kubo" #:import-path "github.com/ipfs/kubo/cmd/ipfs" #:phases @@ -2454,20 +2414,14 @@ types.") "ipfs" #~(string-append #$output "/bin/ipfs")) "commands" "completion" "bash"))))))))) - (inputs (list ;; Direct requirements as seen in kubo's go.mod file. - ;; - ;; XXX: Uncomment out when package is available in Guix, - ;; otherwise it will be sourced from provided vendor - ;; directory. - ;; - go-bazil-org-fuse + (inputs (list go-bazil-org-fuse go-contrib-go-opencensus-io-exporter-prometheus go-github-com-blang-semver-v4 go-github-com-caddyserver-certmagic go-github-com-cenkalti-backoff-v4 go-github-com-ceramicnetwork-go-dag-jose go-github-com-cheggaaa-pb - ;;go-github-com-cockroachdb-pebble + go-github-com-cockroachdb-pebble-v2 go-github-com-coreos-go-systemd-v22 go-github-com-dustin-go-humanize go-github-com-elgris-jsondiff @@ -2475,9 +2429,8 @@ types.") go-github-com-filecoin-project-go-clock go-github-com-fsnotify-fsnotify go-github-com-google-uuid - go-github-com-hashicorp-go-multierror go-github-com-hashicorp-go-version - ;;go-github-com-ipfs-boxo + go-github-com-ipfs-boxo go-github-com-ipfs-go-block-format go-github-com-ipfs-go-cid go-github-com-ipfs-go-cidutil @@ -2487,9 +2440,9 @@ types.") go-github-com-ipfs-go-ds-flatfs go-github-com-ipfs-go-ds-leveldb go-github-com-ipfs-go-ds-measure - ;;go-github-com-ipfs-go-ds-pebble + go-github-com-ipfs-go-ds-pebble go-github-com-ipfs-go-fs-lock - ;;go-github-com-ipfs-go-ipfs-cmds + go-github-com-ipfs-go-ipfs-cmds go-github-com-ipfs-go-ipld-cbor go-github-com-ipfs-go-ipld-format go-github-com-ipfs-go-ipld-git @@ -2500,24 +2453,24 @@ types.") go-github-com-ipfs-go-metrics-prometheus go-github-com-ipfs-go-test go-github-com-ipfs-go-unixfsnode - ;;go-github-com-ipfs-shipyard-nopfs - ;;go-github-com-ipfs-shipyard-nopfs-ipfs + go-github-com-ipfs-shipyard-nopfs + go-github-com-ipfs-shipyard-nopfs-ipfs go-github-com-ipld-go-car go-github-com-ipld-go-car-v2 go-github-com-ipld-go-codec-dagpb go-github-com-ipld-go-ipld-prime - ;;go-github-com-ipshipyard-p2p-forge + go-github-com-ipshipyard-p2p-forge go-github-com-jbenet-go-temp-err-catcher go-github-com-jbenet-goprocess go-github-com-julienschmidt-httprouter go-github-com-libp2p-go-doh-resolver - go-github-com-libp2p-go-libp2p-0.38 + go-github-com-libp2p-go-libp2p go-github-com-libp2p-go-libp2p-http - ;;go-github-com-libp2p-go-libp2p-kad-dht - ;;go-github-com-libp2p-go-libp2p-kbucket + go-github-com-libp2p-go-libp2p-kad-dht + go-github-com-libp2p-go-libp2p-kbucket go-github-com-libp2p-go-libp2p-pubsub go-github-com-libp2p-go-libp2p-pubsub-router - ;;go-github-com-libp2p-go-libp2p-record + go-github-com-libp2p-go-libp2p-record go-github-com-libp2p-go-libp2p-routing-helpers go-github-com-libp2p-go-libp2p-testing go-github-com-libp2p-go-socket-activation @@ -2536,11 +2489,11 @@ types.") go-github-com-whyrusleeping-go-sysinfo go-github-com-whyrusleeping-multiaddr-filter go-go-opencensus-io - ;;go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp - ;;go-go-opentelemetry-io-contrib-propagators-autoprop - ;;go-go-opentelemetry-io-otel - ;;go-go-opentelemetry-io-otel-sdk - ;;go-go-opentelemetry-io-otel-trace + go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp + go-go-opentelemetry-io-contrib-propagators-autoprop + go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel-sdk + go-go-opentelemetry-io-otel-trace go-go-uber-org-dig go-go-uber-org-fx go-go-uber-org-multierr @@ -2550,40 +2503,7 @@ types.") go-golang-org-x-mod go-golang-org-x-sync go-golang-org-x-sys - go-google-golang-org-protobuf - - ;; - ;; A list of indirect dependencies required for the vendored - ;; models. - ;; XXX: Remove them when all of the vendored packages are - ;; available. - ;; - - go-github-com-texttheater-golang-levenshtein ; github.com/ipfs/go-ipfs-cmds - - go-github-com-crackcomm-go-gitignore ; github.com/ipfs/boxo - go-github-com-cskr-pubsub ; github.com/ipfs/boxo - go-github-com-datadog-zstd ; github.com/cockroachdb/pebble - go-github-com-felixge-httpsnoop ; go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp - go-github-com-gabriel-vasile-mimetype ; github.com/ipfs/boxo - go-github-com-go-logr-stdr ; go.opentelemetry.io/otel - go-github-com-google-gopacket ; github.com/libp2p/go-libp2p-kad-dht - go-github-com-gorilla-mux ; github.com/ipfs/boxo - go-github-com-hashicorp-golang-lru ; github.com/libp2p/go-libp2p-kad-dht - go-github-com-hashicorp-golang-lru-v2 ; github.com/ipfs/boxo - go-github-com-ipfs-go-bitfield ; github.com/ipfs/boxo - go-github-com-ipfs-go-ipfs-redirects-file ; github.com/ipfs/boxo - go-github-com-ipfs-go-peertaskqueue ; github.com/ipfs/boxo - go-github-com-libp2p-go-cidranger ; github.com/libp2p/go-libp2p-kbucket - go-github-com-libp2p-go-libp2p-asn-util ; github.com/libp2p/go-libp2p-kbucket - go-github-com-libp2p-go-msgio ; github.com/libp2p/go-libp2p-kad-dht - go-github-com-rs-cors ; github.com/ipfs/go-ipfs-cmds - go-github-com-samber-lo ; github.com/ipfs/boxo - go-github-com-whyrusleeping-base32 ; github.com/ipfs/boxo - go-github-com-whyrusleeping-chunker ; github.com/ipfs/boxo - go-github-com-whyrusleeping-go-keyspace ; github.com/libp2p/go-libp2p-kad-dht - go-gonum-org-v1-gonum ; github.com/libp2p/go-libp2p-kad-dht - )) + go-google-golang-org-protobuf)) (native-inputs (append (if (%current-target-system) (list this-package) @@ -2620,7 +2540,6 @@ also mount the world at @code{/ipfs}.") (build-system go-build-system) (arguments (list - #:go go-1.22 #:embed-files #~(list "sorted-network-list.bin") #:install-source? #f #:import-path "gitlab.com/spritely/spritely-libp2p-daemon")) diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index 17e397f86b..0675213c26 100644 --- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -73,6 +73,7 @@ #: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-check) #:use-module (gnu packages golang-web) @@ -1232,6 +1233,7 @@ seen, tell, and what.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "codeberg.org/emersion/soju" #:phases diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 79a72941ee..dedc4b1665 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -5315,7 +5315,7 @@ from the module-init-tools project.") (list ;; For the test suite. cppcheck - go))) + go-1.23))) (home-page "https://github.com/rfjakob/earlyoom") (synopsis "Simple out of memory (OOM) daemon for the Linux kernel") (description "Early OOM is a minimalist out of memory (OOM) daemon that diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm index c8edaf5d5a..b6b35b0fa1 100644 --- a/gnu/packages/matrix.scm +++ b/gnu/packages/matrix.scm @@ -68,7 +68,6 @@ (build-system go-build-system) (arguments (list - #:go go-1.23 #:install-source? #f #:tests? #f ; no tests provided #:import-path "go.mau.fi/mautrix-whatsapp/cmd/mautrix-whatsapp" diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index c267c8207e..8bc504fc38 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -96,6 +96,7 @@ #: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-check) #:use-module (gnu packages golang-compression) @@ -3374,6 +3375,7 @@ designed for experienced users.") (build-system go-build-system) (arguments (list + #:go go-1.23 ;; It helps to resolve <golang.org/x/net/publicsuffix/table.go:63:12>: ;; pattern data/children: cannot embed irregular file data/children #:embed-files #~(list "children" "nodes" "text") diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 1db090b1a3..82b67d3e4b 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -4852,7 +4852,7 @@ implementing them.") go-github-com-hashicorp-go-syslog go-github-com-hjson-hjson-go-v4 go-github-com-kardianos-minwinsvc - go-github-com-olekukonko-tablewriter + go-github-com-olekukonko-tablewriter-0.0.5 go-github-com-quic-go-quic-go go-github-com-vishvananda-netlink go-github-com-wlynxg-anet diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 051dc6a9ac..704690a0f7 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -95,6 +95,7 @@ #: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-crypto) #:use-module (gnu packages golang-xyz) @@ -151,6 +152,7 @@ (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/99designs/aws-vault" #:build-flags diff --git a/gnu/packages/patches/go-github-com-jbenet-go-context-fix-import-error.patch b/gnu/packages/patches/go-github-com-jbenet-go-context-fix-import-error.patch new file mode 100644 index 0000000000..26a3db2fab --- /dev/null +++ b/gnu/packages/patches/go-github-com-jbenet-go-context-fix-import-error.patch @@ -0,0 +1,137 @@ +Retrieved from +<https://patch-diff.githubusercontent.com/raw/jbenet/go-context/pull/3.patch>. + +From a55d3832cfe7bb061123c7e90ed3c6195d8ce890 Mon Sep 17 00:00:00 2001 +From: Prudhvi Surapaneni <p@supr.io> +Date: Wed, 13 Mar 2019 16:29:55 -0500 +Subject: [PATCH] No-longer necessary to import context package + +--- + dag/dagctx.go | 3 +-- + dag/dagctx_test.go | 3 +-- + frac/fracctx.go | 3 +-- + frac/fracctx_test.go | 12 +++++++----- + io/ctxio.go | 3 +-- + io/ctxio_test.go | 3 +-- + 6 files changed, 12 insertions(+), 15 deletions(-) + +diff --git a/dag/dagctx.go b/dag/dagctx.go +index 521390b..17a9090 100644 +--- a/dag/dagctx.go ++++ b/dag/dagctx.go +@@ -1,10 +1,9 @@ + package ctxext + + import ( ++ "context" + "sync" + "time" +- +- context "golang.org/x/net/context" + ) + + // WithParents returns a Context that listens to all given +diff --git a/dag/dagctx_test.go b/dag/dagctx_test.go +index 30a27e2..8692f54 100644 +--- a/dag/dagctx_test.go ++++ b/dag/dagctx_test.go +@@ -1,11 +1,10 @@ + package ctxext + + import ( ++ "context" + "math/rand" + "testing" + "time" +- +- context "golang.org/x/net/context" + ) + + func TestWithParentsSingle(t *testing.T) { +diff --git a/frac/fracctx.go b/frac/fracctx.go +index 60938c0..d1ee94a 100644 +--- a/frac/fracctx.go ++++ b/frac/fracctx.go +@@ -2,9 +2,8 @@ + package ctxext + + import ( ++ "context" + "time" +- +- context "golang.org/x/net/context" + ) + + // WithDeadlineFraction returns a Context with a fraction of the +diff --git a/frac/fracctx_test.go b/frac/fracctx_test.go +index c6dd10d..8de81be 100644 +--- a/frac/fracctx_test.go ++++ b/frac/fracctx_test.go +@@ -1,11 +1,10 @@ + package ctxext + + import ( ++ "context" + "os" + "testing" + "time" +- +- context "golang.org/x/net/context" + ) + + // this test is on the context tool itself, not our stuff. it's for sanity on ours. +@@ -14,7 +13,8 @@ func TestDeadline(t *testing.T) { + t.Skip("timeouts don't work reliably on travis") + } + +- ctx, _ := context.WithTimeout(context.Background(), 5*time.Millisecond) ++ ctx, cncl := context.WithTimeout(context.Background(), 5*time.Millisecond) ++ defer cncl() + + select { + case <-ctx.Done(): +@@ -46,8 +46,10 @@ func TestDeadlineFractionHalf(t *testing.T) { + t.Skip("timeouts don't work reliably on travis") + } + +- ctx1, _ := context.WithTimeout(context.Background(), 10*time.Millisecond) +- ctx2, _ := WithDeadlineFraction(ctx1, 0.5) ++ ctx1, cncl1 := context.WithTimeout(context.Background(), 10*time.Millisecond) ++ defer cncl1() ++ ctx2, cncl2 := WithDeadlineFraction(ctx1, 0.5) ++ defer cncl2() + + select { + case <-ctx1.Done(): +diff --git a/io/ctxio.go b/io/ctxio.go +index b4f2454..b27689b 100644 +--- a/io/ctxio.go ++++ b/io/ctxio.go +@@ -11,9 +11,8 @@ + package ctxio + + import ( ++ "context" + "io" +- +- context "golang.org/x/net/context" + ) + + type ioret struct { +diff --git a/io/ctxio_test.go b/io/ctxio_test.go +index 884e090..bc4a0e9 100644 +--- a/io/ctxio_test.go ++++ b/io/ctxio_test.go +@@ -2,11 +2,10 @@ package ctxio + + import ( + "bytes" ++ "context" + "io" + "testing" + "time" +- +- context "golang.org/x/net/context" + ) + + func TestReader(t *testing.T) { diff --git a/gnu/packages/prolog.scm b/gnu/packages/prolog.scm index d629754af3..61c2f13951 100644 --- a/gnu/packages/prolog.scm +++ b/gnu/packages/prolog.scm @@ -185,7 +185,7 @@ it.") (define-public trealla (package (name "trealla") - (version "2.81.3") + (version "2.82.2") (source (origin (method git-fetch) @@ -194,7 +194,7 @@ it.") (url "https://github.com/trealla-prolog/trealla") (commit (string-append "v" version)))) (sha256 - (base32 "0y92d80r3w2cvgkc1yz7c126bgycqj8xy8jnnvirbf6qdmr78h5d")) + (base32 "0ahcc7whfl1izzdqmqsxr87i997x07c0sg6ribawmwfpwqf7r0xa")) (file-name (git-file-name name version)))) (build-system gnu-build-system) (native-inputs diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index 3245567900..c206b670bd 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -192,7 +192,7 @@ registry.") (define-public go-github-com-prometheus-client-golang (package (name "go-github-com-prometheus-client-golang") - (version "1.21.1") + (version "1.22.0") (source (origin (method git-fetch) @@ -201,7 +201,7 @@ registry.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "01946gv7ncjzd0536dx0523safcdnwy64m7pa8b54vrwzryrvb7p")) + (base32 "08japwfsl7wlw6z8dkfdrhpgxr2w6frbinn96ksn0izab2h9s5gd")) (modules '((guix build utils))) (snippet #~(begin @@ -468,7 +468,7 @@ Protocol,ICMP} echo (ping) functionality.") (define-public go-github-com-prometheus-procfs (package (name "go-github-com-prometheus-procfs") - (version "0.16.0") + (version "0.16.1") (source (origin (method git-fetch) @@ -477,7 +477,7 @@ Protocol,ICMP} echo (ping) functionality.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0f692685zcssryd38bahmamd72iaiilngp92gl1s9177891f44gm")))) + (base32 "0k2x2kqghr34ggc888ldaj0crx6zvxclr3c3r6n3nhznjwx0p79f")))) (build-system go-build-system) (arguments (list @@ -493,12 +493,6 @@ Protocol,ICMP} echo (ping) functionality.") (lambda* (#:key tests? import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (invoke "./ttar" "-C" "testdata/" "-x" "-f" "testdata/fixtures.ttar")))) - ;; 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 'check 'remove-testdata (lambda* (#:key tests? import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) diff --git a/gnu/packages/specifications.scm b/gnu/packages/specifications.scm index d0f121fb56..c711303dad 100644 --- a/gnu/packages/specifications.scm +++ b/gnu/packages/specifications.scm @@ -84,6 +84,33 @@ suites of application implementing the standard.") ;; terms. (license (list license:expat license:asl2.0))))) +(define-public specification-json-schema-test-suite + (package + (name "specification-json-schema-test-suite") + (version "23.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/json-schema-org/JSON-Schema-Test-Suite") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1400r7v5rl0bdhiygg37in0wzbqagc8jprcsw8wxfw082ayn57gq")))) + (build-system copy-build-system) + (arguments + '(#:install-plan '(("./tests" "share/tests")))) + (home-page "https://github.com/json-schema-org/JSON-Schema-Test-Suite") + (synopsis "Language agnostic test suite for the JSON Schema specifications") + (description + "This package provides a set of JSON objects that implementers of JSON +Schema validation libraries can use to test their validators. + +It is meant to be language agnostic and should require only a JSON parser. +The conversion of the JSON objects into tests within a specific language and +test framework of choice is left to be done by the validator implementer.") + (license license:expat))) + (define-public specification-multibase (let ((commit "4c8344e37852773de155f587dcf5897771b3fc19") (revision "1")) diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm index 43844f0f36..66bc4617e1 100644 --- a/gnu/packages/syncthing.scm +++ b/gnu/packages/syncthing.scm @@ -65,12 +65,12 @@ (outputs '("out" "utils")) (arguments (list + #:go go-1.23 #:modules '((srfi srfi-26) ; for cut (guix build utils) (guix build go-build-system)) #:import-path "github.com/syncthing/syncthing" ;; Check 'go.mod' in the source distribution for the required version of Go. - #:go go-1.23 ;; We don't need to install the source code for end-user applications. #:install-source? #f #:phases diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index baf526b4fe..01c00e0081 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -96,6 +96,7 @@ #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-xyz) @@ -180,6 +181,7 @@ extensions over the standard utility.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/zyedidia/micro/v2/cmd/micro" #:unpack-path "github.com/zyedidia/micro/v2" diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index ae8bce7b3e..dc5c7c6849 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -1402,6 +1402,7 @@ formats (e.g. Bibtex, RIS, etc.) using a common XML intermediate.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/benhoyt/goawk" #:phases @@ -1615,7 +1616,7 @@ of a Unix terminal to HTML code.") (define-public vale (package (name "vale") - (version "3.9.5") + (version "3.11.2") (source (origin (method git-fetch) @@ -1623,7 +1624,7 @@ of a Unix terminal to HTML code.") (url "https://github.com/errata-ai/vale") (commit (string-append "v" version)))) (sha256 - (base32 "119iiyh164rkj7jlghr2j1kbhc8k1bvfhsfvd972zs092fg7dh4p")) + (base32 "04xgya706ljnbb7kh3kip0p9z67hpw55p7vfa0bl1nnd0is4q07g")) (file-name (git-file-name name version)))) (build-system go-build-system) (arguments @@ -1651,7 +1652,8 @@ of a Unix terminal to HTML code.") (lambda _ (setenv "HOME" "/tmp")))))) (native-inputs - (list go-github-com-adrg-strutil + (list go-github-com-adrg-frontmatter + go-github-com-adrg-strutil go-github-com-adrg-xdg go-github-com-bmatcuk-doublestar-v4 go-github-com-d5-tengo-v2 @@ -1664,14 +1666,13 @@ of a Unix terminal to HTML code.") 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-olekukonko-tablewriter-0.0.5 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 diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index f950fa050e..45f42f63d1 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1052,7 +1052,6 @@ the date of the most recent commit that modified them (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "go.abhg.dev/gs" #:install-source? #f #:build-flags @@ -1644,7 +1643,6 @@ collaboration using typical untrusted file hosts or services.") (build-system go-build-system) (arguments (list - #:go go-1.24 #:import-path "github.com/Apteryks/git-repo-go" #:build-flags #~(list "-ldflags" (string-append @@ -4207,28 +4205,28 @@ will reconstruct the object along its delta-base chain and return it.") (define-public git-lfs (package (name "git-lfs") - (version "3.6.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/git-lfs/git-lfs") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "02819i3sd9qjw89lcpv6rmhfqaxkz1pddqw8havw3ysmcmhmb7yd")))) + (version "3.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/git-lfs/git-lfs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wxx7i29n4gk8s78xq4hacc1ylwi6bq4b6y2bjx8fs9p7z4awnqh")))) (build-system go-build-system) (arguments (list #:embed-files #~(list "children" "nodes" "text") - #:import-path "github.com/git-lfs/git-lfs" + #:import-path "github.com/git-lfs/git-lfs/v3" #:install-source? #f #:test-flags #~(list "-skip" "TestHistoryRewriterUpdatesRefs") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-/bin/sh (lambda* (#:key inputs #:allow-other-keys) - (substitute* "src/github.com/git-lfs/git-lfs/lfs/hook.go" + (substitute* "src/github.com/git-lfs/git-lfs/v3/lfs/hook.go" (("/bin/sh") (search-input-file inputs "bin/sh"))))) ;; Only build the man pages if ruby-asciidoctor is available. @@ -4237,15 +4235,15 @@ will reconstruct the object along its delta-base chain and return it.") ;; Without this, the binary generated in 'build ;; phase won't have any embedded usage-text. (lambda _ - (with-directory-excursion "src/github.com/git-lfs/git-lfs" + (with-directory-excursion "src/github.com/git-lfs/git-lfs/v3" (invoke "make" "mangen")))) (add-after 'build 'build-man-pages (lambda _ - (with-directory-excursion "src/github.com/git-lfs/git-lfs" + (with-directory-excursion "src/github.com/git-lfs/git-lfs/v3" (invoke "make" "man")))) (add-after 'install 'install-man-pages (lambda* (#:key outputs #:allow-other-keys) - (with-directory-excursion "src/github.com/git-lfs/git-lfs/man" + (with-directory-excursion "src/github.com/git-lfs/git-lfs/v3/man" (for-each (lambda (manpage) (install-file manpage @@ -4260,6 +4258,7 @@ will reconstruct the object along its delta-base chain and return it.") go-github-com-git-lfs-go-netrc go-github-com-git-lfs-pktline go-github-com-git-lfs-wildmatch-v2 + go-github-com-golang-groupcache go-github-com-jmhodges-clock go-github-com-leonelquinteros-gotext go-github-com-mattn-go-isatty @@ -4301,6 +4300,7 @@ file contents on a remote server.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "git.sr.ht/~ngraves/lfs-s3")) (inputs (list git-lfs)) (propagated-inputs @@ -4869,6 +4869,7 @@ developer workflow, and project and release management.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "git.sr.ht/~xenrox/hut" #:phases #~(modify-phases %standard-phases diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index daac0fbefe..f4966439cb 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -159,6 +159,7 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages gnunet) #: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) @@ -3516,6 +3517,7 @@ playlists.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:install-source? #f #:import-path "github.com/Kethsar/ytarchive" #:embed-files #~(list "children" "nodes" "text") diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm index cf70505ac5..5940ca5418 100644 --- a/gnu/packages/web-browsers.scm +++ b/gnu/packages/web-browsers.scm @@ -76,6 +76,7 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages gnome-xyz) #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages image) @@ -923,6 +924,7 @@ history, and page outlines.") (build-system go-build-system) (arguments (list + #:go go-1.23 #:import-path "tildegit.org/sloum/bombadillo" #:install-source? #f #:phases diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 93e91e75ef..fd57213a12 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -403,7 +403,6 @@ one.") (build-system go-build-system) (arguments (list - #:go go-1.22 #:install-source? #f #:import-path "miniflux.app/v2" #:build-flags @@ -5712,7 +5711,7 @@ you'd expect.") (define-public go-github-com-mikefarah-yq-v4 (package (name "go-github-com-mikefarah-yq-v4") - (version "4.44.3") + (version "4.45.4") (source (origin (method git-fetch) (uri (git-reference @@ -5721,7 +5720,7 @@ you'd expect.") (file-name (git-file-name name version)) (sha256 (base32 - "0s7c8r6y5jv6wda2v3k47hawfdr9j3rwk717l6byvh5qsbbml0vd")))) + "1adrbxqsmpsvz2jfjkvarvnvblj5zdznr3sxpakv85vvs3njdjx9")))) (build-system go-build-system) (arguments (list @@ -5835,7 +5834,6 @@ processor.") (build-system go-build-system) (arguments (list - #:go go-1.22 #:embed-files #~(list ".*.xml") #:install-source? #f #:import-path "github.com/noahgorstein/jqp")) diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm index 8e03efa2eb..90e63640c1 100644 --- a/guix/build-system/go.scm +++ b/guix/build-system/go.scm @@ -229,7 +229,6 @@ commit hash and its date rather than a proper release tag." #:system #$system #:phases #$phases #:outputs #$(outputs->gexp outputs) - #:substitutable? #$substitutable? #:goarch #$goarch #:goos #$goos #:embed-files #$embed-files @@ -253,6 +252,7 @@ commit hash and its date rather than a proper release tag." system #:graft? #f))) (gexp->derivation name builder #:system system + #:substitutable? substitutable? #:guile-for-build guile))) (define* (go-cross-build name |