133/169: gnu: go-github-com-shadowsocks-go-shadowsocks2: Update to 0.1.5.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit fba8b774d3065c349ca23926d68126a3d4edcb93
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 12:55:58 2024 +0100

gnu: go-github-com-shadowsocks-go-shadowsocks2: Update to 0.1.5.

* gnu/packages/golang-crypto.scm 
(go-github-com-shadowsocks-go-shadowsocks2): Update to 0.1.5.
[propagated-inputs]: Remove go-golang-org-x-net, go-golang-org-x-sys, and
go-golang-org-x-text.

Change-Id: I14d26ea40cf7d317b07fcf0484a0727e8f3c5f91
---
 gnu/packages/golang-crypto.scm | 10 +++---
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index d0bef279ff..27ce64ca9a 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -1576,8 +1576,7 @@ wide-block encryption mode developed by Halevi and 
Rogaway.")
 (define-public go-github-com-shadowsocks-go-shadowsocks2
   (package
 (name "go-github-com-shadowsocks-go-shadowsocks2")
-;; Version > 0.1.3 requires go-toolchain v1.16.
-(version "0.1.3")
+(version "0.1.5")
 (source
  (origin
(method git-fetch)
@@ -1586,16 +1585,13 @@ wide-block encryption mode developed by Halevi and 
Rogaway.")
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
-(base32 "1wzy3ml4ld83iawcl6p313bskzs6zjhz8vlg8kpwgn71cnbv4pvi"
+(base32 "0n24h5ffgc3735y0mmp6dbhxdfm9fk13i26fqxxw7i75qnmvjvyg"
 (build-system go-build-system)
 (arguments
  `(#:import-path "github.com/shadowsocks/go-shadowsocks2"))
 (propagated-inputs
  (list go-github-com-riobard-go-bloom
-   go-golang-org-x-crypto
-   go-golang-org-x-net
-   go-golang-org-x-sys
-   go-golang-org-x-text))
+   go-golang-org-x-crypto))
 (home-page "https://github.com/shadowsocks/go-shadowsocks2";)
 (synopsis "Shadowsocks tunnel proxy")
 (description "Go-ShadowSocks is a Go implementation of the Shadowsocks



163/169: gnu: Add go-github-com-goreleaser-fileglob.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 24ffe2157cb8690dc171c50a2f0436bc79332d56
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 26 11:06:12 2024 +0100

gnu: Add go-github-com-goreleaser-fileglob.

* gnu/packages/golang-xyz.scm (go-github-com-goreleaser-fileglob): New 
variable.

Change-Id: I068cad724f0aabeda01e09c4ce9ea48c6b344424
---
 gnu/packages/golang-xyz.scm | 30 ++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 417f2f89c7..510be80f10 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3531,6 +3531,36 @@ color (24-bit, RGB)
 @end itemize")
 (license license:expat)))
 
+(define-public go-github-com-goreleaser-fileglob
+  (package
+(name "go-github-com-goreleaser-fileglob")
+(version "1.3.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/goreleaser/fileglob";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1c4p98prb0gf8a8789lxp1qw0v6anlqk5b1ff2r861gv2nclp8dx"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/goreleaser/fileglob"))
+(native-inputs
+ (list go-github-com-caarlos0-testfs
+   go-github-com-matryer-is))
+(propagated-inputs
+ (list go-github-com-gobwas-glob))
+(home-page "https://github.com/goreleaser/fileglob";)
+(synopsis "Golang file globbing library")
+(description
+ "This package provides a filesystem glob API.  It uses @code{gobwas/glob}
+underneath and returns only matching files or direcories, depending on the
+configuration.")
+(license license:expat)))
+
 (define-public go-github-com-hashicorp-errwrap
   (package
 (name "go-github-com-hashicorp-errwrap")



156/169: gnu: Add go-github-com-rogpeppe-fastuuid.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 964072c0edc14435c1403cd168827a3e4f18f1c6
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 23:02:05 2024 +0100

gnu: Add go-github-com-rogpeppe-fastuuid.

* gnu/packages/golang-xyz.scm (go-github-com-rogpeppe-fastuuid): New 
variable.

Change-Id: Ie8458f79e0b39e8660a2fdd64bb4d4482cd22339
---
 gnu/packages/golang-xyz.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 34340438cb..bdbf01b830 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6285,6 +6285,31 @@ routines querying a database but without sending too 
much queries in order to
 not overload the given database.")
 (license license:expat)))
 
+(define-public go-github-com-rogpeppe-fastuuid
+  (package
+(name "go-github-com-rogpeppe-fastuuid")
+(version "1.2.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/rogpeppe/fastuuid";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "028acdg63zkxpjz3l639nlhki2l0canr2v5jglrmwa1wpjqcfff8"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/rogpeppe/fastuuid"))
+(home-page "https://github.com/rogpeppe/fastuuid";)
+(synopsis "192-bit UUID generator in Golang")
+(description
+ "Package fastuuid provides UUID generation of 192 bit universally unique
+identifiers.  It also provides simple support for 128-bit RFC-4122 V4 UUID
+strings.")
+(license license:bsd-3)))
+
 (define-public go-github-com-rogpeppe-go-internal
   (package
 (name "go-github-com-rogpeppe-go-internal")



88/169: gnu: go-github-go-git: Rename variable.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 91900c346e0938fa24bdde7cbb140e2181eb5fd0
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 22:38:35 2024 +0100

gnu: go-github-go-git: Rename variable.

* gnu/packages/version-control.scm (go-github-go-git): Rename variable
to go-github-com-go-git-go-git-v5 to reflect go.mod import path
* gnu/packages/configuration-management.scm (chezmoi) [native-inputs]:
Remove go-github-go-git; add go-github-com-go-git-go-git-v5.

Change-Id: I670b0f05ea3aba7d07ffb9b6a09279e155c4da21
---
 gnu/packages/configuration-management.scm | 2 +-
 gnu/packages/version-control.scm  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/configuration-management.scm 
b/gnu/packages/configuration-management.scm
index ffb6762142..66ce87f944 100644
--- a/gnu/packages/configuration-management.scm
+++ b/gnu/packages/configuration-management.scm
@@ -115,6 +115,7 @@
go-github-com-bmatcuk-doublestar-v2
go-github-com-charmbracelet-glamour
go-github-com-coreos-go-semver
+   go-github-com-go-git-go-git-v5
go-github-com-google-go-github-v33
go-github-com-google-renameio
go-github-com-masterminds-sprig-v3
@@ -130,7 +131,6 @@
go-github-com-twpayne-go-vfsafero
go-github-com-twpayne-go-xdg-v3
go-github-com-zalando-go-keyring
-   go-github-go-git
go-go-etcd-io-bbolt
go-golang-org-x-oauth2
go-golang-org-x-sys
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 79f7c17508..7686a21bd5 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -3831,9 +3831,9 @@ of machine readable.  This helps improve code quality and 
helps you spot
 defects faster.")
 (license license:expat)))
 
-(define-public go-github-go-git
+(define-public go-github-com-go-git-go-git-v5
   (package
-(name "go-github-go-git")
+(name "go-github-com-go-git-go-git-v5")
 (version "5.1.0")
 (source (origin
   (method git-fetch)



85/169: gnu: go-github-com-go-git-go-billy: Update to 5.5.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 2deaf2729c9385cca308f11db0a3c589f7b90d4d
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 22:29:28 2024 +0100

gnu: go-github-com-go-git-go-billy: Update to 5.5.0.

* gnu/packages/golang.scm (go-github-com-go-git-go-billy): Update to 5.5.0.
[propagated-inputs]: Add go-github-com-cyphar-filepath-securejoin.
[native-inputs]: Add go-github-com-onsi-gomega.

Change-Id: I1bea1c54507e4c23d770bbe1bbce722799f026a8
---
 gnu/packages/golang.scm | 13 -
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index b5c872203b..ba9971a373 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6032,7 +6032,7 @@ errors (warnings).")
 (define-public go-github-com-go-git-go-billy
   (package
 (name "go-github-com-go-git-go-billy")
-(version "5.0.0")
+(version "5.5.0")
 (source (origin
   (method git-fetch)
   (uri (git-reference
@@ -6041,14 +6041,17 @@ errors (warnings).")
   (file-name (git-file-name name version))
   (sha256
(base32
-"1wdzczfk1n50dl2zpgf46m69b0sm8qkan5xyv82pk9x53zm1dmdx"
+"1r7hfwc6lqnb7jhbbmicdlb3yipjyazq3pndpffw026fcq7jhxg1"
 (build-system go-build-system)
 (arguments
- `(#:import-path "github.com/go-git/go-billy/v5"))
+ (list
+  #:import-path "github.com/go-git/go-billy/v5"))
 (propagated-inputs
- (list go-golang-org-x-sys))
+ (list go-github-com-cyphar-filepath-securejoin
+   go-golang-org-x-sys))
 (native-inputs
- (list go-gopkg-in-check-v1))
+ (list go-github-com-onsi-gomega
+   go-gopkg-in-check-v1))
 (home-page "https://github.com/go-git/go-billy/";)
 (synopsis "File system abstraction for Go")
 (description "Billy implements an interface based on the OS's standard



18/169: gnu: go-1.23: Update to 1.23.1.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 7ebd57cdc4a8f103ee4d058405cd2e933974626c
Author: Brennan Vincent 
AuthorDate: Tue Sep 10 13:25:18 2024 -0400

gnu: go-1.23: Update to 1.23.1.

* gnu/packages/golang.scm (go-1.23): Update to 1.23.1.

Change-Id: I2f5c377ae8009facd899d1cd3d0f6e2fe89fcf14
Signed-off-by: Sharlatan Hellseher 
---
 gnu/packages/golang.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5109bc0987..60d7354e0d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -987,7 +987,7 @@ in the style of communicating sequential processes 
(@dfn{CSP}).")
   (package
 (inherit go-1.22)
 (name "go")
-(version "1.23.0")
+(version "1.23.1")
 (source
  (origin
(method git-fetch)
@@ -996,7 +996,7 @@ in the style of communicating sequential processes 
(@dfn{CSP}).")
  (commit (string-append "go" version
(file-name (git-file-name name version))
(sha256
-(base32 "0yq7fmha7x6fiah68mpx7cvffsd8a7z569cfq2dj5s66pbgzmji9"))
+(base32 "0dx8mlmq0kh6b9h583nf6ijnm3p84rwanb4i1bwxd7lp67afk1v4"))
 
 ;;
 ;; Default Golang version used in guix/build-system/go.scm to build packages.



54/169: gnu: go-github-com-google-go-cmdtest: Move to golang-build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 143c2ffa3bc13b5a4792041fd6d3033fb1e8fda5
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 10:11:12 2024 +0100

gnu: go-github-com-google-go-cmdtest: Move to golang-build.

* gnu/packages/golang-check.scm (go-github-com-google-go-cmdtest): Move
from here ...
* gnu/packages/golang-build.scm: ... to here.

Change-Id: I4e6015ba18c4aa57856df32dd98199f3bcf5dc0c
---
 gnu/packages/golang-build.scm | 28 
 gnu/packages/golang-check.scm | 28 
 2 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index 9d9297029f..bc7e05128b 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -140,6 +140,34 @@ functions that have a name matched by regex:.")
 serialization format.")
 (license license:bsd-3)))
 
+(define-public go-github-com-google-go-cmdtest
+  (package
+(name "go-github-com-google-go-cmdtest")
+(version "0.4.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/google/go-cmdtest";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0zkghc60ymxmg19j90r6j7clq3xifh5m9kg1bgr4zpr5sv148x72"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/google/go-cmdtest"))
+(propagated-inputs
+ (list go-github-com-google-renameio go-github-com-google-go-cmp))
+(home-page "https://github.com/google/go-cmdtest";)
+(synopsis "Testing for your CLI")
+(description
+ "The cmdtest package simplifies testing of command-line interfaces.  It
+provides a simple, cross-platform, shell-like language to express command
+execution.  It can compare actual output with the expected output, and can
+also update a file with new \"golden\" output that is deemed correct.")
+(license license:asl2.0)))
+
 (define-public go-github-com-google-go-cmp
   (package
 (name "go-github-com-google-go-cmp")
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 71c8961e95..914b5ea59b 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -383,34 +383,6 @@ when comparing complex types like structures and maps.")
 (description "This package provides additions to Go's stdlib testing.")
 (license license:bsd-3)))
 
-(define-public go-github-com-google-go-cmdtest
-  (package
-(name "go-github-com-google-go-cmdtest")
-(version "0.4.0")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/google/go-cmdtest";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256
-(base32 "0zkghc60ymxmg19j90r6j7clq3xifh5m9kg1bgr4zpr5sv148x72"
-(build-system go-build-system)
-(arguments
- (list
-  #:import-path "github.com/google/go-cmdtest"))
-(propagated-inputs
- (list go-github-com-google-renameio go-github-com-google-go-cmp))
-(home-page "https://github.com/google/go-cmdtest";)
-(synopsis "Testing for your CLI")
-(description
- "The cmdtest package simplifies testing of command-line interfaces.  It
-provides a simple, cross-platform, shell-like language to express command
-execution.  It can compare actual output with the expected output, and can
-also update a file with new \"golden\" output that is deemed correct.")
-(license license:asl2.0)))
-
 (define-public go-github-com-google-gofuzz
   (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382")
 (revision "0"))



65/169: gnu: go-github-com-google-goterm: Update to 0.0.0-20200907032337-555d40f16ae2.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit a7f65e9802ff6ffbe2568d48f02740fb221caa7e
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 11:00:37 2024 +0100

gnu: go-github-com-google-goterm: Update to 
0.0.0-20200907032337-555d40f16ae2.

* gnu/packages/golang.scm (go-github-com-google-goterm): Update to 
0.0.0-20200907032337-555d40f16ae2.

Change-Id: Ie6a1258f88f9630a9dd946f5cf4a252e8b0f90e8
---
 gnu/packages/golang.scm | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 73285e167f..2927a73669 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5343,16 +5343,14 @@ a cron spec parser and job runner.")
 (license license:bsd-3)))
 
 (define-public go-github-com-google-goterm
-  (let ((commit "fc88cf888a3fa99ecc23d1efc1a44284268457d3")
-(revision "1"))
 (package
   (name "go-github-com-google-goterm")
-  (version (git-version "0.0.1" revision commit))
+  (version "0.0.0-20200907032337-555d40f16ae2")
   (source (origin
 (method git-fetch)
 (uri (git-reference
   (url "https://github.com/google/goterm";)
-  (commit commit)))
+  (commit (go-version->git-ref version
 (file-name (git-file-name name version))
 (sha256
  (base32
@@ -5366,7 +5364,7 @@ a cron spec parser and job runner.")
   (description "The term package implements PTY creation and termios 
get/set
 attributes.  It also contains some convenience functions for colors, SSH to
 and from termios translations, readCh, reading passwords, etc.")
-  (license license:bsd-3
+  (license license:bsd-3)))
 
 (define (go-gotest-tools-source version sha256-base32-hash)
   (origin



115/169: gnu: Add go-github-com-tinylib-msgp.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 51b556d120f1d1db5eb3002f587b13000cd1c798
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 21:11:08 2024 +0100

gnu: Add go-github-com-tinylib-msgp.

* gnu/packages/golang-xyz.scm (go-github-com-tinylib-msgp): New variable.

Change-Id: I901e4f1671a0868b0042d224f26ed74f2f9d3900
---
 gnu/packages/golang-xyz.scm | 33 +
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 16e360dd4b..5cf6074074 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7003,6 +7003,39 @@ readability, or to compact JSON for smaller payloads.")
 document.")
 (license license:expat)))
 
+(define-public go-github-com-tinylib-msgp
+  (package
+(name "go-github-com-tinylib-msgp")
+(version "1.2.1")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/tinylib/msgp";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0mplb420i9cmf40qwsqzd1plln52nl0x0b7nkxffyr0pdh9za79a"
+(build-system go-build-system)
+(arguments
+ (list
+  ;; Tests require alternative Golang compiler
+  ;; .
+  #:tests? #f
+  #:import-path "github.com/tinylib/msgp"
+  #:phases
+  #~(modify-phases %standard-phases
+  (delete 'build
+(propagated-inputs
+ (list go-golang-org-x-tools go-github-com-philhofer-fwd))
+(home-page "http://msgpack.org/";)
+(synopsis "MessagePack Code Generator")
+(description
+ "This package provides a code generation tool for creating methods to
+serialize and de-serialize Go data structures to and from data interchange
+format - @url{https://en.wikipedia.org/wiki/MessagePack,MessagePack}.";)
+(license license:expat)))
+
 (define-public go-github-com-tklauser-go-sysconf
   (package
 (name "go-github-com-tklauser-go-sysconf")



120/169: gnu: miniflux: Fix build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 2c110c07715f04a160eddb88ff7cab77d97b1c7c
Author: Sharlatan Hellseher 
AuthorDate: Mon Sep 16 10:58:25 2024 +0100

gnu: miniflux: Fix build.

Fix the build as senn in .

* gnu/packages/web.scm (miniflux): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: If266fa82e0e810e340a3c69c80edbacddd6bcefa
---
 gnu/packages/web.scm | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 5d8f043355..5be742ee21 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -367,6 +367,24 @@ and its related documentation.")
#$version))
   #:phases
   #~(modify-phases %standard-phases
+  ;; TODO: Implement it in go-build-system.
+  ;;
+  ;; This happens due to Golang can't determine the valid directory of
+  ;; the module of embed file which is symlinked during setup
+  ;; environment phase, but easy resolved after coping file from the
+  ;; store to the build directory of the current package, see details
+  ;; in Golang source:
+  ;;
+  ;; - URL: 
+  ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+  ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+  (add-after 'unpack 'fix-embed-files
+(lambda _
+  (for-each (lambda (file)
+  (let ((file-store-path (readlink file)))
+(delete-file file)
+(copy-recursively file-store-path file)))
+(find-files "src" ".*(editions_defaults.binpb)$"
   ;; XXX: Replace when go-build-system supports nested path.
   (replace 'check
 (lambda* (#:key import-path tests? #:allow-other-keys)



135/169: gnu: Add go-github-com-xtaci-smux.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 4448a20a3c96b44981cba9b13a245f5169f16ef8
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 13:10:52 2024 +0100

gnu: Add go-github-com-xtaci-smux.

* gnu/packages/golang-web.scm (go-github-com-xtaci-smux): New variable.

Change-Id: I62ddb7898eba295ba773579dcd84704e54f2d408
---
 gnu/packages/golang-web.scm | 28 
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index ba90efc1e9..9369d2649b 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -5692,6 +5692,34 @@ programming language.")
 programming language, which supports draft-04, draft-06 and draft-07.")
 (license license:asl2.0)))
 
+(define-public go-github-com-xtaci-smux
+  (package
+(name "go-github-com-xtaci-smux")
+(version "1.5.30")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/xtaci/smux";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1i4h672vmg2b4p8hkbhpsp8p2nk4d3qm6vf76yly389l2zb7h4l3"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/xtaci/smux"))
+(home-page "https://github.com/xtaci/smux";)
+(synopsis "Introduction")
+(description
+ "Smux (@strong{S}imple @strong{MU}ltiple@strong{X}ing) is a multiplexing
+library for Golang.  It relies on an underlying connection to provide
+reliability and ordering, such as TCP or
+@url{https://github.com/xtaci/kcp-go,KCP}, and provides stream-oriented
+multiplexing.  The original intention of this library is to power the
+connection management for @url{https://github.com/xtaci/kcp-go,kcp-go}.";)
+(license license:expat)))
+
 (define-public go-go-opentelemetry-io-otel
   (package
 (name "go-go-opentelemetry-io-otel")



146/169: gnu: Add go-github-com-prometheus-community-pro-bing.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit af25b9f96bca48a7e0bcc052abc308c6f89bd937
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 21:13:05 2024 +0100

gnu: Add go-github-com-prometheus-community-pro-bing.

* gnu/packages/prometheus.scm 
(go-github-com-prometheus-community-pro-bing): New variable.

Change-Id: Ifc536d497396b02671ff44f4845c43dfba893d4d
---
 gnu/packages/prometheus.scm | 33 +
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm
index 3e3a51b805..c498c27030 100644
--- a/gnu/packages/prometheus.scm
+++ b/gnu/packages/prometheus.scm
@@ -366,6 +366,39 @@ using Amazon's Signature Verification V4 signing 
procedure, using credentials
 from the default AWS credential chain.")
 (license license:asl2.0)))
 
+(define-public go-github-com-prometheus-community-pro-bing
+  (package
+(name "go-github-com-prometheus-community-pro-bing")
+(version "0.4.1")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/prometheus-community/pro-bing";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1yz4cf1qrm1jrzw2yd5p08663hynk4ihlf5mi2fn6irnzh343a7b"
+(build-system go-build-system)
+(arguments
+ (list
+  ;; Tests requiring network setup.
+  #:test-flags
+  #~(list "-skip" (string-append "TestNewPingerValid"
+ "|TestSetIPAddr"
+ "|TestSetResolveTimeout"))
+  #:import-path "github.com/prometheus-community/pro-bing"))
+(propagated-inputs
+ (list go-github-com-google-uuid
+   go-golang-org-x-net
+   go-golang-org-x-sync))
+(home-page "https://github.com/prometheus-community/pro-bing";)
+(synopsis "Continuous probers Golang library")
+(description
+ "This package implements @acronym{Internet Control Message
+Protocol,ICMP} echo (ping) functionality.")
+(license license:expat)))
+
 (define-public go-github-com-prometheus-exporter-toolkit
   (package
 (name "go-github-com-prometheus-exporter-toolkit")



113/169: gnu: Add go-github-com-pquerna-ffjson.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 00da4501b01ddfa754a391afd2d5edd01d8a10d7
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:56:51 2024 +0100

gnu: Add go-github-com-pquerna-ffjson.

* gnu/packages/golang-web.scm (go-github-com-pquerna-ffjson): New variable.

Change-Id: I234a53a44e96b6db82261dea75a928ffab70723a
---
 gnu/packages/golang-web.scm | 30 ++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index b0657ce4b0..ff5d51f3ca 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -4928,6 +4928,36 @@ for Go.")
 Caching.")
 (license license:asl2.0)))
 
+(define-public go-github-com-pquerna-ffjson
+  (package
+(name "go-github-com-pquerna-ffjson")
+(version "0.0.0-20190930134022-aa0246cd15f7")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/pquerna/ffjson";)
+ (commit (go-version->git-ref version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0mxmrvqmiinqhlaxncaqznxwfspf3p8bmg9vniz40dw5jpv24cwb"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/pquerna/ffjson"))
+(home-page "https://github.com/pquerna/ffjson";)
+(synopsis "Faster JSON for Golang")
+(description
+ "This package implements functinality to generate static
+@code{MarshalJSON} and @code{UnmarshalJSON} functions for structures in Go.
+The generated functions reduce the reliance upon runtime reflection to do
+serialization and are generally 2 to 3 times faster.  In cases where
+@@code{ffjson} doesn't understand a Type involved, it falls back to
+@@code{encoding/json}, meaning it is a safe drop in replacement.  By using
+@code{ffjson} your JSON serialization just gets faster with no additional code
+changes.")
+(license license:asl2.0)))
+
 (define-public go-github-com-puerkitobio-goquery
   (package
 (name "go-github-com-puerkitobio-goquery")



02/02: gnu: Add decker.

2024-09-26 Thread guix-commits
apteryx pushed a commit to branch master
in repository guix.

commit 4fcbb5787ccc0ad6818fda6faba92afed297da00
Author: Jorge Acereda 
AuthorDate: Sat Jun 29 19:52:44 2024 +0200

gnu: Add decker.

Change-Id: Id0879002f9ce0928051dda40ba0dc7bc233ea439
Signed-off-by: Maxim Cournoyer 
Modified-by: Maxim Cournoyer 
---
 gnu/local.mk|  1 +
 gnu/packages/decker.scm | 65 +
 2 files changed, 66 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index 82bd24942b..979e6bad74 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -235,6 +235,7 @@ GNU_SYSTEM_MODULES =\
   %D%/packages/debug.scm   \
   %D%/packages/dejagnu.scm \
   %D%/packages/dezyne.scm  \
+  %D%/packages/decker.scm  \
   %D%/packages/dhall.scm   \
   %D%/packages/dico.scm\
   %D%/packages/dictionaries.scm\
diff --git a/gnu/packages/decker.scm b/gnu/packages/decker.scm
new file mode 100644
index 00..fdea8ad272
--- /dev/null
+++ b/gnu/packages/decker.scm
@@ -0,0 +1,65 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2024 Jorge Acereda 
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see .
+
+
+(define-module (gnu packages decker)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (gnu packages sdl)
+  #:use-module (gnu packages vim)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix gexp)
+  #:use-module (guix utils)
+  #:use-module (guix git-download)
+  #:use-module (guix packages))
+
+(define-public decker
+  (package
+(name "decker")
+(version "1.49")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/JohnEarnest/Decker";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0hwi62g5wg7zxj98j3civz42za133jq3mz8c0mapqnkn0xnb0qa8"
+(build-system gnu-build-system)
+(arguments
+ (list
+  #:test-target "test"
+  #:make-flags #~(list (string-append "PREFIX=" #$output)
+   (string-append "COMPILER=" #$(cc-for-target)))
+  #:phases #~(modify-phases %standard-phases
+   (delete 'configure)  ;no configure script
+   (replace 'build
+ (lambda* (#:key parallel-build? #:allow-other-keys)
+   (let ((job-count (if parallel-build?
+(parallel-job-count)
+1)))
+ (invoke "make" "lilt" "decker"
+ "-j" (number->string job-count
+(native-inputs (list xxd))
+(inputs (list (sdl-union (list sdl2-image sdl2
+(home-page "http://beyondloom.com/decker/";)
+(synopsis "Multimedia sketchpad")
+(description
+ "Decker is a multimedia platform for creating and sharing interactive
+documents, with sound, images, hypertext, and scripted behavior.")
+(license license:expat)))



01/02: gnu: emacs-org-texlive-collection: Reduce closure.

2024-09-26 Thread guix-commits
apteryx pushed a commit to branch master
in repository guix.

commit 4818404bb41687249d9a7004cf350575de9970ab
Author: Maxim Cournoyer 
AuthorDate: Thu Sep 19 10:39:23 2024 +0900

gnu: emacs-org-texlive-collection: Reduce closure.

Based on feedback received by Nicolas Goaziou.  Thank you!

* gnu/packages/emacs-xyz.scm (emacs-org-texlive-collection): Do not inherit
from emacs-org.
[version]: Explicitly set to that of emacs-org.
[inputs]: Remove texlive-amsmath, texlive-graphics, texlive-hypperef,
texlive-titling, texlive-tools.
Replace texlive-scheme-small by texlive-collection-latexrecommended.  Add
texlive-soul and texlive-standalone.
[synopsis, description]: Fix TeX Live and Org mode spelling.
[home-page]: Explicitly set to that of emacs-org.
[license]: Use the TeX Live license, as this is a TeX Live collection
meta-package.

Suggested-by: Nicolas Goaziou 
Change-Id: Id898f0cde5d805ee9262b5ded0d47f307b73f005
---
 gnu/packages/emacs-xyz.scm | 25 +
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cfedbb01a9..05077d331d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17700,26 +17700,27 @@ compatible with the Org stable version.")
 
 (define-public emacs-org-texlive-collection
   (package
-(inherit emacs-org)
 (name "emacs-org-texlive-collection")
 (source #f)
+(version (package-version emacs-org))
 (build-system trivial-build-system)
 (arguments (list #:builder #~(mkdir #$output)))
 (native-inputs '())
 (inputs '())
 (propagated-inputs
- (list texlive-amsmath
-   texlive-capt-of
-   texlive-graphics ;for graphicx, rotating
-   texlive-hyperref
-   texlive-titling
-   texlive-tools;for longtable
+ (list texlive-capt-of
+   ;; The latexrecommended collection provides fontspec, amsmath,
+   ;; hyperref, graphicx, tools, etc.
+   texlive-collection-latexrecommended
+   texlive-soul
+   texlive-standalone
texlive-ulem
-   texlive-wrapfig
-   texlive-scheme-small))  ;for amsfonts, fontspec, inputenc, etc.
-(synopsis "Basic TexLive packages for Org-mode LaTeX export")
-(description "This meta-package propagates the TexLive packages minimally
-required by the Org-mode produced LaTeX output.")))
+   texlive-wrapfig))
+(home-page (package-home-page emacs-org))
+(synopsis "Basic TeX Live packages for Org mode LaTeX export")
+(description "This meta-package propagates the TeX Live packages minimally
+required by the LaTeX output produced by Org mode.")
+(license (license:fsf-free "https://www.tug.org/texlive/copying.html";
 
 (define-public emacs-org-contacts
   ;; XXX: Upstream does not tag version bumps. Commit below matches latest



125/169: build/go: Replace symlinks with a copy of the file.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit fa68d7efb8de58b28b48c11647a36d1d48acc11e
Author: Efraim Flashner 
AuthorDate: Mon Sep 16 18:38:46 2024 +0300

build/go: Replace symlinks with a copy of the file.

* guix/build/go-build-system.scm (fix-embed-files): New procedure.
(%standard-phases): Add 'fix-embed-files after 'unpack.
* guix/build-system/go.scm (#:embed-files): New key parameter.
* doc/guix.texi: (go-build-system): Document a new key.

Co-authored-by: Sharlatan Hellseher 
Change-Id: I27bc46fa1a3f4675ff73b6cba4ef5c3d177c22b1
---
 doc/guix.texi  |  8 
 guix/build-system/go.scm   |  6 ++
 guix/build/go-build-system.scm | 30 --
 3 files changed, 42 insertions(+), 2 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 3e0834700f..f3924a3152 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -130,6 +130,9 @@ Copyright @copyright{} 2024 Richard Sent@*
 Copyright @copyright{} 2024 Dariqq@*
 Copyright @copyright{} 2024 Denis 'GNUtoo' Carikli@*
 Copyright @copyright{} 2024 Fabio Natali@*
+Copyright @copyright{} 2024 Troy Figiel@*
+Copyright @copyright{} 2024 Sharlatan Hellseher@*
+
 
 Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.3 or
@@ -9580,6 +9583,11 @@ the test binary.  Build, test and test binary flags can 
be provided as
 @code{#:test-flags} parameter, default is @code{'()}.  See @code{go help
 test} and @code{go help testflag} for more details.
 
+The key @code{#:embed-files}, default is @code{'()}, provides a list of
+future embedded files or regexps matching files.  They will be copied to
+build directory after @code{unpack} phase.  See
+@url{https://pkg.go.dev/embed} for more details.
+
 @end defvar
 
 @defvar glib-or-gtk-build-system
diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm
index e6e8b84e48..97581a14c6 100644
--- a/guix/build-system/go.scm
+++ b/guix/build-system/go.scm
@@ -6,6 +6,8 @@
 ;;; Copyright © 2021, 2023 Efraim Flashner 
 ;;; Copyright © 2021 Sarah Morgensen 
 ;;; Copyright © 2024 Christina O'Donnell 
+;;; Copyright © 2024 Troy Figiel 
+;;; Copyright © 2024 Sharlatan Hellseher 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -197,6 +199,7 @@ commit hash and its date rather than a proper release tag."
(outputs '("out"))
(search-paths '())
(install-source? #t)
+   (embed-files ''())
(import-path "")
(unpack-path "")
(build-flags ''())
@@ -226,6 +229,7 @@ commit hash and its date rather than a proper release tag."
 #:substitutable? #$substitutable?
 #:goarch #$goarch
 #:goos #$goos
+#:embed-files #$embed-files
 #:search-paths '#$(sexp->gexp
(map search-path-specification->sexp
 search-paths))
@@ -264,6 +268,7 @@ commit hash and its date rather than a proper release tag."
  (system (%current-system))
  (goarch (first (go-target target)))
  (goos (last (go-target target)))
+ (embed-files ''())
  (guile #f)
  (imported-modules %go-build-system-modules)
  (modules '((guix build go-build-system)
@@ -297,6 +302,7 @@ commit hash and its date rather than a proper release tag."
 #:target #$target
 #:goarch #$goarch
 #:goos #$goos
+#:embed-files #$embed-files
 #:inputs %build-target-inputs
 #:native-inputs %build-host-inputs
 #:search-paths '#$(map search-path-specification->sexp
diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm
index 3f0f5700a1..14cb5ae687 100644
--- a/guix/build/go-build-system.scm
+++ b/guix/build/go-build-system.scm
@@ -4,10 +4,12 @@
 ;;; Copyright © 2019 Maxim Cournoyer 
 ;;; Copyright © 2020 Jack Hill 
 ;;; Copyright © 2020 Jakub Kądziołka 
-;;; Copyright © 2020, 2021, 2023 Efraim Flashner 
+;;; Copyright © 2020, 2021, 2023, 2024 Efraim Flashner 
 ;;; Copyright © 2021 Sarah Morgensen 
 ;;; Copyright © 2024 Ekaitz Zarraga 
 ;;; Copyright © 2024 Picnoir 
+;;; Copyright © 2024 Troy Figiel 
+;;; Copyright © 2024 Sharlatan Hellseher 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -28,8 +30,9 @@
   #:use-module ((guix build gnu-build-system) #:prefix gnu:)
   #:use-module (guix build union)
   #:use-module (guix build utils)
-  #:use-module (ice-9 match)
+  #:use-module (ice-9 format)
   #:use-module (ice-9 ftw)
+  #:use-module (ice-9 match)
   #:use-module (srfi srfi-1)
   #:use-module (rnrs i

76/169: gnu: go-github-com-xeipuuv-gojsonschema: Update to 1.2.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit e1a9f34033e6b1aa1a1c9ea4da0690a46762e4a2
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 12:16:40 2024 +0100

gnu: go-github-com-xeipuuv-gojsonschema: Update to 1.2.0.

* gnu/packages/golang-web.scm (go-github-com-xeipuuv-gojsonschema): Update 
to 1.2.0.
[arguments]: <#:phases>: Remove 'disable-failing-tests and utilize
<#:test-flags> parameter.

Change-Id: Iafe51425325b9128a1e036f0f4eca88c91760ace
---
 gnu/packages/golang-web.scm | 29 ++---
 1 file changed, 10 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index d0d316ceef..1ff3e31015 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -5447,35 +5447,26 @@ programming language.")
   (license license:asl2.0
 
 (define-public go-github-com-xeipuuv-gojsonschema
-  (let ((commit "6b67b3fab74d992bd07f72550006ab2c6907c416")
-(revision "0"))
 (package
   (name "go-github-com-xeipuuv-gojsonschema")
-  (version (git-version "0.0.0" revision commit))
+  (version "1.2.0")
   (source
(origin
  (method git-fetch)
  (uri (git-reference
(url "https://github.com/xeipuuv/gojsonschema";)
-   (commit commit)))
+   (commit (string-append "v" version
  (file-name (git-file-name name version))
  (sha256
-  (base32 "1q937a6q7canlr3dllqdw0qwa6z2fpwn1w9kycavx8jmwh6q3f69"
+  (base32 "1mqiq0r8qw4qlfp3ls8073r6514rmzwrmdn4j33rppk3zh942i6l"
   (build-system go-build-system)
   (arguments
-   '(#:import-path "github.com/xeipuuv/gojsonschema"
- #:phases
- (modify-phases %standard-phases
-   (add-after 'unpack 'disable-failing-tests
- (lambda* (#:key import-path #:allow-other-keys)
-   (with-directory-excursion (string-append "src/" import-path)
- (substitute* "schema_test.go"
-   (("\\{\"phase\": \"remote ref, " all)
-(string-append "// " all))
-   (("\\{\"phase\": \"valid definition" all)
-(string-append "// " all))
-   (("\\{\"phase\": \"invalid definition" all)
-(string-append "// " all)
+   (list
+;; validation of time strings.  only RFC3339 not all of ISO 8601 are
+;; valid.  expects: false, given true Schema: {"format":"time"} Data:
+;; "01:01:01,"
+#:test-flags #~(list "-skip" "TestFormats")
+#:import-path "github.com/xeipuuv/gojsonschema"))
   (native-inputs
(list go-github-com-stretchr-testify))
   (propagated-inputs
@@ -5486,7 +5477,7 @@ programming language.")
   (description
"This package provides an implementation of JSON Schema for the Go
 programming language, which supports draft-04, draft-06 and draft-07.")
-  (license license:asl2.0
+  (license license:asl2.0)))
 
 (define-public go-golang-org-x-oauth2
   (package



122/169: gnu: go-github-com-nbrownus-go-metrics-prometheus: Fix build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 2e0965df0e0a7973d8e83599b918d8a6e7a8e42a
Author: Sharlatan Hellseher 
AuthorDate: Mon Sep 16 11:04:40 2024 +0100

gnu: go-github-com-nbrownus-go-metrics-prometheus: Fix build.

Fix the build as senn in .

* gnu/packages/prometheus.scm 
(go-github-com-nbrownus-go-metrics-prometheus):
Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: I0164c81caf203d93cdc8d1745b5a15bf77be9fb5
---
 gnu/packages/prometheus.scm | 22 +-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm
index 533a922d0b..fe2fa18e95 100644
--- a/gnu/packages/prometheus.scm
+++ b/gnu/packages/prometheus.scm
@@ -112,7 +112,27 @@ x/net/trace)} tracing wrappers @code{net.Conn}, both 
inbound
   ;; The project looks abandoned, tests failed with a new go-metrics, see
   ;; .
   #:tests? #f
-  #:import-path "github.com/nbrownus/go-metrics-prometheus"))
+  #:import-path "github.com/nbrownus/go-metrics-prometheus"
+  #:phases
+  #~(modify-phases %standard-phases
+  ;; TODO: Implement it in go-build-system.
+  ;;
+  ;; This happens due to Golang can't determine the valid directory of
+  ;; the module of embed file which is symlinked during setup
+  ;; environment phase, but easy resolved after coping file from the
+  ;; store to the build directory of the current package, see details
+  ;; in Golang source:
+  ;;
+  ;; - URL: 
+  ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+  ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+  (add-after 'unpack 'fix-embed-files
+(lambda _
+  (for-each (lambda (file)
+  (let ((file-store-path (readlink file)))
+(delete-file file)
+(copy-recursively file-store-path file)))
+(find-files "src" ".*(editions_defaults.binpb)$")))
 (native-inputs
  (list go-github-com-stretchr-testify))
 (propagated-inputs



169/169: gnu: run: Update to 0.11.2.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit d59a1900b16cd4bcce05fd0acc87ab24e1fb4721
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 26 11:37:36 2024 +0100

gnu: run: Update to 0.11.2.

* gnu/packages/task-runners.scm (run): Update to 0.11.2. Adjust package
style by shiftin order of fields.
[arguments]: Do not install sources.
[propagated-inputs]: Remove go-github-com-tekwizely-go-parsing.
[native-inputs]: Add go-github-com-goreleaser-fileglob,
go-github-com-subosito-gotenv, and
go-github-com-tekwizely-go-parsing.

Change-Id: I02e4384aee83a3000c159e9d74fe1e94505ce9a7
---
 gnu/packages/task-runners.scm | 17 +++--
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/task-runners.scm b/gnu/packages/task-runners.scm
index f06658fd7d..eb64f432e8 100644
--- a/gnu/packages/task-runners.scm
+++ b/gnu/packages/task-runners.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2021 Stefan Reichör 
 ;;; Copyright © 2021 Ivan Gankevich 
+;;; Copyright © 2024 Sharlatan Hellseher 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -33,7 +34,7 @@
 (define-public run
   (package
 (name "run")
-(version "0.7.2")
+(version "0.11.2")
 (source
  (origin
(method git-fetch)
@@ -42,17 +43,21 @@
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
-(base32 "17n11lqhywq4z62w2rakdq80v7mxf83rgln19vj4v4nxpwd2hjjw"
+(base32 "1p9hyc3zrjh58nqdc2j2qnkcyg7z8av2q7fb49ycs4292awl0zka"
 (build-system go-build-system)
-(propagated-inputs
- (list go-github-com-tekwizely-go-parsing))
 (arguments
- `(#:import-path "github.com/tekwizely/run"))
+ (list
+  #:install-source? #f
+  #:import-path "github.com/tekwizely/run"))
+(native-inputs
+ (list go-github-com-goreleaser-fileglob
+   go-github-com-subosito-gotenv
+   go-github-com-tekwizely-go-parsing))
+(home-page "https://github.com/TekWizely/run";)
 (synopsis "Easily manage and invoke small scripts and wrappers")
 (description
  "Run is a tool to easily manage and invoke small scripts and wrappers by
 using a Runfile.")
-(home-page "https://github.com/TekWizely/run";)
 (license license:expat)))
 
 (define-public task-spooler



130/169: gnu: Add go-github-com-aead-ecdh.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit ce2f04e92bdd273befae2cf87ac5dfce6c081e17
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 11:46:08 2024 +0100

gnu: Add go-github-com-aead-ecdh.

* gnu/packages/golang-crypto.scm (go-github-com-aead-ecdh): New variable.

Change-Id: I50ddf2453834d8928be2301715fd6c207de5a536
---
 gnu/packages/golang-crypto.scm | 28 
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 9a845612a3..d221f78596 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -267,6 +267,34 @@ Bernstein.  The most 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"))



126/169: gnu: build/go: Apply default 'fix-embed-files phase.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit b1af59ca2829efedc07f5ed43f1ee6dbc0ad8673
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 19 14:00:56 2024 +0100

gnu: build/go: Apply default 'fix-embed-files phase.

These changes remove redundant phases where files, requiring to be embed
during build or check phases, are copied to the build directory as
proposed in .

* gnu/packages/backup.scm (restic-rest-server) [arguments]: <#:phases>:
Remove 'fix-embed-files phase.
* gnu/packages/configuration-management.scm (chezmoi): Likewise.
* gnu/packages/packages/golang-build.scm (go-github-com-golang-protobuf): 
Likewise.
* gnu/packages/golang-web.scm (go-github-com-go-openapi-loads,
go-github-com-go-openapi-runtime, go-github-com-golang-groupcache): 
Likewise.
* gnu/packages/golang-xyz.scm (go-github-com-dgraph-io-badger): Likewise.
* gnu/packages/golang.scm (go-github-com-ssgelm-cookiejarparser): Likewise.
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-ds-badger,
go-github-com-libp2p-go-libp2p, kubo): Likewise.
* gnu/packages/irc.scm (soju): Likewise.
* gnu/packages/networking.scm (nebula): Likewise.
* gnu/packages/prometheus.scm (go-github-com-nbrownus-go-metrics-prometheus,
go-github-com-prometheus-client-golang, go-github-com-prometheus-common,
go-github-com-prometheus-common-sigv4, 
go-github-com-prometheus-exporter-toolkit,
go-github-com-prometheus-statsd-exporter): Likewise
* gnu/packages/version-control.scm (git-lfs): Likewise.
* gnu/packages/web.scm (miniflux): Likewise.

* gnu/packages/golang-crypto.scm (go-filippo-io-age): [arguments]:
<#:phases>: Remove 'copy-input-to-vendor-direcotyr and
'remove-vendor-directory phases.
* gnu/packages/golang-web.scm (go-github-com-go-openapi-analysis,
go-github-com-go-openapi-analysis, go-github-com-go-openapi-validate): 
Likewise.
* gnu/packages/golang.scm (go-github-com-charmbracelet-glamour): Likewise.
* gnu/packages/textutils.scm (vale): Likewise.

Change-Id: Ic2ec01c8caf86f3ae69d7a1812c1e0b78a549e91
---
 gnu/packages/backup.scm   |  18 
 gnu/packages/configuration-management.scm |  21 +
 gnu/packages/golang-build.scm |  18 
 gnu/packages/golang-crypto.scm|  31 +--
 gnu/packages/golang-web.scm   | 133 ++
 gnu/packages/golang-xyz.scm   |  84 +--
 gnu/packages/golang.scm   |  39 +
 gnu/packages/ipfs.scm |  69 +---
 gnu/packages/irc.scm  |  18 
 gnu/packages/networking.scm   |  18 
 gnu/packages/prometheus.scm   | 122 +--
 gnu/packages/textutils.scm|  27 +-
 gnu/packages/version-control.scm  |   8 +-
 gnu/packages/web.scm  |  18 
 14 files changed, 31 insertions(+), 593 deletions(-)

diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 02539f..0973c5ddca 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -1058,24 +1058,6 @@ precious backup space.
   #:unpack-path "github.com/restic/rest-server"
   #:phases
   #~(modify-phases %standard-phases
-  ;; TODO: Implement it in go-build-system.
-  ;;
-  ;; This happens due to Golang can't determine the valid directory of
-  ;; the module of embed file which is symlinked during setup
-  ;; environment phase, but easy resolved after coping file from the
-  ;; store to the build directory of the current package, see details
-  ;; in Golang source:
-  ;;
-  ;; - URL: 
-  ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
-  ;; - file: src/cmd/go/internal/load/pkg.go#L2059
-  (add-after 'unpack 'fix-embed-files
-(lambda _
-  (for-each (lambda (file)
-  (let ((file-store-path (readlink file)))
-(delete-file file)
-(copy-recursively file-store-path file)))
-(find-files "src" ".*(editions_defaults.binpb)$"
   ;; Unit tests seems to break with Guix' non-standard TMPDIR.
   (add-before 'check 'set-tmpdir
 (lambda _
diff --git a/gnu/packages/configuration-management.scm 
b/gnu/packages/configuration-management.scm
index 6d81f0dcac..b654975a42 100644
--- a/gnu/packages/configuration-management.scm
+++ b/gnu/packages/configuration-management.scm
@@ -50,6 +50,7 @@
 (arguments
  (list
   #:import-path "github.com/twpayne/chezmoi"
+  #:embed-files #~(list ".*\\.xml")
   #:install-source? #f
   #:phases
   #~(modify-phases %standard-phases
@@ -80,25 +81,7 @@

78/169: gnu: go-golang-org-x-oauth2: Update to 0.23.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 1b24e11ae986afff9990f7738e560cf989c3d23e
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 12:20:57 2024 +0100

gnu: go-golang-org-x-oauth2: Update to 0.23.0.

* gnu/packages/golang-web.scm (go-golang-org-x-oauth2): Update to 0.23.0.

Change-Id: I9f3ba17ac715db149f0b8335969cbe1b8f0dd348
---
 gnu/packages/golang-web.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index fe65a80d3b..01afd2011d 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -5482,7 +5482,7 @@ programming language, which supports draft-04, draft-06 
and draft-07.")
 (define-public go-golang-org-x-oauth2
   (package
 (name "go-golang-org-x-oauth2")
-(version "0.21.0")
+(version "0.23.0")
 (source
  (origin
(method git-fetch)
@@ -5491,7 +5491,7 @@ programming language, which supports draft-04, draft-06 
and draft-07.")
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
-(base32 "0pzpa9jqrfxxhxi1w7n5ljnvr9qfw42hzavz62fc9i6z9vk2466k"
+(base32 "00r6qryh9nfnfq8q8h12hvqp0mhflhl68qyknrmzmw5ww52ghm9b"
 (build-system go-build-system)
 (arguments
  (list



80/169: gnu: go-github-com-go-git-go-git-fixtures: Update to 4.3.1.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit eb086ec457f2d3f4942e3459158d273d622faafe
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 22:04:48 2024 +0100

gnu: go-github-com-go-git-go-git-fixtures: Update to 4.3.1.

* gnu/packages/golang.scm (go-github-com-go-git-go-git-fixtures): Update to 
4.3.1.
[propagated-inputs]: Add go-github-com-go-git-go-billy and 
go-gopkg-in-check-v1.
[native-inputs]: Remove go-github-com-alcortesm-tgz, 
go-github-com-go-git-go-billy,
go-golang-org-x-sys, and go-gopkg-in-check-v1; add
go-github-com-stretchr-testify.

Change-Id: Ibe88981fd0dfc45651d7d4fa1f42a82f54472468
---
 gnu/packages/golang.scm | 10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ca4624e0b0..3b7a0322f2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6201,7 +6201,7 @@ temporal directories.")
 (define-public go-github-com-go-git-go-git-fixtures
   (package
 (name "go-github-com-go-git-go-git-fixtures")
-(version "4.0.1")
+(version "4.3.1")
 (source (origin
   (method git-fetch)
   (uri (git-reference
@@ -6210,7 +6210,7 @@ temporal directories.")
   (file-name (git-file-name name version))
   (sha256
(base32
-"002yb1s2mxq2xijkl39ip1iyc3l52k23ikyi9ijfl4bgqxy79ljg"
+"1d6qs2mzbhz95aflpjh6ijywvb4ys73jvk2v30mickax3gmm2vlw"
 (build-system go-build-system)
 (arguments
  (list
@@ -6221,8 +6221,10 @@ temporal directories.")
   #~(modify-phases %standard-phases
   (delete 'reset-gzip-timestamps
 (native-inputs
- (list go-github-com-alcortesm-tgz go-github-com-go-git-go-billy
-   go-golang-org-x-sys go-gopkg-in-check-v1))
+ (list go-github-com-stretchr-testify))
+(propagated-inputs
+ (list go-github-com-go-git-go-billy
+   go-gopkg-in-check-v1))
 (home-page "https://github.com/go-git/go-git-fixtures/";)
 (synopsis "Fixtures used by @code{go-git}")
 (description "This package provides fixtures used by @code{go-git}.")



164/169: gnu: go-github-com-tekwizely-go-parsing: Update to 0.0.0-20221001173913-aa6d6749ea2d.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit e9522f62058a26a69472c8641240764bf63330c3
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 26 11:10:10 2024 +0100

gnu: go-github-com-tekwizely-go-parsing: Update to 
0.0.0-20221001173913-aa6d6749ea2d.

* gnu/packages/golang.scm (go-github-com-tekwizely-go-parsing): Update to 
0.0.0-20221001173913-aa6d6749ea2d.

Change-Id: Ibbea09fc86c8a5a72de2315d2a082978246e8ccc
---
 gnu/packages/golang.scm | 10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 8465603d67..4b8c2f85b3 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6562,20 +6562,18 @@ modifying them.")
 (license license:zlib)))
 
 (define-public go-github-com-tekwizely-go-parsing
-  (let ((commit "1548cfb17df54d365ce9febed0677c06a40a8ceb")
-(revision "0"))
 (package
   (name "go-github-com-tekwizely-go-parsing")
-  (version (git-version "0.0.0" revision commit))
+  (version "0.0.0-20221001173913-aa6d6749ea2d")
   (source
(origin
  (method git-fetch)
  (uri (git-reference
(url "https://github.com/tekwizely/go-parsing";)
-   (commit commit)))
+   (commit (go-version->git-ref version
  (file-name (git-file-name name version))
  (sha256
-  (base32 "0bv5amka8hb9crc7qvlzi2kbycqrnh9d46b9wgcs8wqzl0z7w609"
+  (base32 "0hz4jwvav1ccvigmlxgg50pal3nxklbl0psf7wdzwr1vzmzmj3n3"
   (build-system go-build-system)
   (arguments
`(#:import-path "github.com/tekwizely/go-parsing"))
@@ -6584,7 +6582,7 @@ modifying them.")
   (description
"This package provides Go modules focused on text parsing, with lexers,
 parsers, and related tools.")
-  (license license:expat
+  (license license:expat)))
 
 (define-public go-github-com-akosmarton-papipes
   (let ((commit "3c63b4919c769c9c2b2d07e69a98abb0eb47fe64")



151/169: gnu: go-github-com-emersion-go-autostart: Move to golang-xyz.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 7490cc00c272c3659baef58f5f28c0888627a121
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 21:46:56 2024 +0100

gnu: go-github-com-emersion-go-autostart: Move to golang-xyz.

* gnu/packages/golang.scm (go-github-com-emersion-go-autostart): Move
from here ...
* gnu/packages/golang-xyz.scm: .. to here.

Change-Id: Ia1a52cc0122f3a343171c698f63783265b44bed7
---
 gnu/packages/golang-xyz.scm | 23 +++
 gnu/packages/golang.scm | 22 --
 2 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7f3492515f..1c92b4177b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -2512,6 +2512,29 @@ O(1) for @code{Set}, @code{Get}, @code{Delete} and 
@code{Len}.")
 #~(modify-phases %standard-phases
 (delete 'remove-submodule)))
 
+(define-public go-github-com-emersion-go-autostart
+  (package
+(name "go-github-com-emersion-go-autostart")
+(version "0.0.0-20210130080809-00ed301c8e9a")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/emersion/go-autostart";)
+ (commit (go-version->git-ref version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0cqqvbzn32xv5lknfygrx01rx2sc6pi833k7008nlk9lsfgry06v"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/emersion/go-autostart"))
+(home-page "https://github.com/emersion/go-autostart";)
+(synopsis "Autostart library in Go")
+(description
+ "Go-Autostart is a Go library to run a command after login.")
+(license license:expat)))
+
 (define-public go-github-com-emersion-go-ical
   (package
 (name "go-github-com-emersion-go-ical")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a7eb0a915d..daf7ac26f3 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2315,28 +2315,6 @@ management interface.  It can be used to monitor and 
control an OpenVPN process
 running with its management port enabled.")
   (license license:expat
 
-(define-public go-github-com-emersion-go-autostart
-(package
-  (name "go-github-com-emersion-go-autostart")
-  (version "0.0.0-20210130080809-00ed301c8e9a")
-  (source
-   (origin
- (method git-fetch)
- (uri
-  (git-reference
-   (url "https://github.com/emersion/go-autostart";)
-   (commit (go-version->git-ref version
- (file-name (git-file-name name version))
- (sha256
-  (base32 "0cqqvbzn32xv5lknfygrx01rx2sc6pi833k7008nlk9lsfgry06v"
-  (build-system go-build-system)
-  (arguments
-   `(#:import-path "github.com/emersion/go-autostart"))
-  (home-page "https://github.com/emersion/go-autostart";)
-  (synopsis "Autostart library in Go")
-  (description "Go-Autostart is a Go library to run a command after 
login.")
-  (license license:expat)))
-
 (define-public go-github-com-dchest-siphash
   (package
 (name "go-github-com-dchest-siphash")



50/169: gnu: go-github-com-google-go-cmdtest: Update to 0.4.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit eebffd6282e2bcf34bf4a70bd3278a6787474aaf
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 07:43:33 2024 +0100

gnu: go-github-com-google-go-cmdtest: Update to 0.4.0.

* gnu/packages/golang-check.scm (go-github-com-google-go-cmdtest): Update 
to 0.4.0.

Change-Id: Ia2fcc19cdafeba03d5244dd6faa2e39f1bb10fb6
---
 gnu/packages/golang-check.scm | 10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 53bcc303bf..73ebb9432e 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -384,21 +384,19 @@ when comparing complex types like structures and maps.")
 (license license:bsd-3)))
 
 (define-public go-github-com-google-go-cmdtest
-  (let ((commit "55ab3332a786118933ddf71544aae14951ba9bc5")
-(revision "0"))
 (package
   (name "go-github-com-google-go-cmdtest")
-  (version (git-version "0.4.0" revision commit))
+  (version "0.4.0")
   (source
(origin
  (method git-fetch)
  (uri (git-reference
(url "https://github.com/google/go-cmdtest";)
-   (commit commit)))
+   (commit (string-append "v" version
  (file-name (git-file-name name version))
  (sha256
   (base32
-   "10kswvbdwissjb5mr0ys4b3ppxkxlpklqg7cr2z7rv21g2vwczbl"
+   "0zkghc60ymxmg19j90r6j7clq3xifh5m9kg1bgr4zpr5sv148x72"
   (build-system go-build-system)
   (arguments
'(#:import-path "github.com/google/go-cmdtest"))
@@ -411,7 +409,7 @@ when comparing complex types like structures and maps.")
 provides a simple, cross-platform, shell-like language to express command
 execution.  It can compare actual output with the expected output, and can
 also update a file with new \"golden\" output that is deemed correct.")
-  (license license:asl2.0
+  (license license:asl2.0)))
 
 (define-public go-github-com-google-gofuzz
   (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382")



131/169: gnu: go-github-com-aead-chacha20: Update to 0.0.0-20180709150244-8b13a72661da.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 880abca2fabb52e9642002d5bd3d979c26db5183
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 11:48:46 2024 +0100

gnu: go-github-com-aead-chacha20: Update to 
0.0.0-20180709150244-8b13a72661da.

* gnu/packages/golang-crypto.scm (go-github-com-aead-chacha20): Update to 
0.0.0-20180709150244-8b13a72661da.

Change-Id: I01b464ea6da2f89a3d4e4eeba2e2c13d1f3ac10b
---
 gnu/packages/golang-crypto.scm | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index d221f78596..0034017d3b 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -241,17 +241,15 @@ pcredential store, Pass, Secret Service, KDE Wallet, 
Encrypted File.")
 (license license:expat)))
 
 (define-public go-github-com-aead-chacha20
-  (let ((commit "8b13a72661dae6e9e5dea04f344f0dc95ea29547")
-(revision "0"))
 (package
   (name "go-github-com-aead-chacha20")
-  (version (git-version "0.0.0" revision commit))
+  (version "0.0.0-20180709150244-8b13a72661da")
   (source
(origin
  (method git-fetch)
  (uri (git-reference
(url "https://github.com/aead/chacha20";)
-   (commit commit)))
+   (commit (go-version->git-ref version
  (file-name (git-file-name name version))
  (sha256
   (base32 "0gbmgq5kbqmbyrsav57ql4jzbvqvp1q7yvcd5fl3wf5g94iyv56r"
@@ -265,7 +263,7 @@ pcredential store, Pass, Secret Service, KDE Wallet, 
Encrypted File.")
   (description "ChaCha is a stream cipher family created by Daniel
 Bernstein.  The most common ChaCha variant is ChaCha20 (20 rounds).  ChaCha20
 is standardized in RFC 7539.")
-  (license license:expat
+  (license license:expat)))
 
 (define-public go-github-com-aead-ecdh
   (package



branch master updated (3581d9d3bd -> 4fcbb5787c)

2024-09-26 Thread guix-commits
apteryx pushed a change to branch master
in repository guix.

from 3581d9d3bd gnu: python-tldr: Swap to pyproject-build-system.
 new 4818404bb4 gnu: emacs-org-texlive-collection: Reduce closure.
 new 4fcbb5787c gnu: Add decker.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 gnu/local.mk   |  1 +
 gnu/packages/decker.scm| 65 ++
 gnu/packages/emacs-xyz.scm | 25 +-
 3 files changed, 79 insertions(+), 12 deletions(-)
 create mode 100644 gnu/packages/decker.scm



52/169: gnu: go-mvdan-cc-xurls: Rename variable.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 9b7e8fc086efe31b20dcc61b099ece5ff5071f55
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 09:54:04 2024 +0100

gnu: go-mvdan-cc-xurls: Rename variable.

* gnu/packages/golang-web.scm (go-mvdan-cc-xurls): Rename variable to
go-mvdan-cc-xurls-v2 to reflect current version and Golang import path
as seen in go.mod.
(xurls): Inherit from go-mvdan-cc-xurls-v2.

* gnu/packages/golang.scm (gopls) [native-inputs]: Remove
go-mvdan-cc-xurls; add go-mvdan-cc-xurls-v2.
* gnu/packages/messaging.scm (senpai): Likewise.
* gnu/packages/web.scm (miniflux): Likewise.

Change-Id: I16757182dae8b4638d1e431ad1663eee22f76ad1
---
 gnu/packages/golang-web.scm | 6 +++---
 gnu/packages/golang.scm | 2 +-
 gnu/packages/messaging.scm  | 2 +-
 gnu/packages/web.scm| 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 57c5430d57..71d409b281 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -5549,9 +5549,9 @@ Signing and Encryption set of standards.  This includes 
support for JSON Web
 Encryption, JSON Web Signature, and JSON Web Token standards.")
 (license license:asl2.0)))
 
-(define-public go-mvdan-cc-xurls
+(define-public go-mvdan-cc-xurls-v2
   (package
-(name "go-mvdan-cc-xurls")
+(name "go-mvdan-cc-xurls-v2")
 (version "2.5.0")
 (source
  (origin
@@ -5659,7 +5659,7 @@ go-github-com-tdewolff-minify-v2 source.")))
 
 (define-public xurls
   (package
-(inherit go-mvdan-cc-xurls)
+(inherit go-mvdan-cc-xurls-v2)
 (name "xurls")
 (arguments
  (list
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index d38429b6bf..12ebef8b88 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3179,7 +3179,7 @@ the @url{https://vuln.go.dev,Go Vulnerability Database}.")
go-gopkg-in-yaml-v3
go-honnef-co-go-tools
go-mvdan-cc-gofumpt
-   go-mvdan-cc-xurls))
+   go-mvdan-cc-xurls-v2))
 (home-page "https://golang.org/x/tools/gopls";)
 (synopsis "Official language server for the Go language")
 (description
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index c482cd469e..c86d701c30 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -3637,7 +3637,7 @@ a text snippet), using @code{libphonenumber}.")
  go-golang-org-x-net
  go-golang-org-x-term
  go-golang-org-x-time
- go-mvdan-cc-xurls
+ go-mvdan-cc-xurls-v2
  scdoc))
 (home-page "https://sr.ht/~delthas/senpai";)
 (synopsis "Modern terminal IRC client")
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index c768874a4a..5d8f043355 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -399,7 +399,7 @@ and its related documentation.")
go-golang-org-x-oauth2
go-golang-org-x-term
go-golang-org-x-text
-   go-mvdan-cc-xurls))
+   go-mvdan-cc-xurls-v2))
 (home-page "https://miniflux.app/";)
 (synopsis "Minimalist and opinionated feed reader")
 (description



147/169: gnu: go-gopkg-in-natefinch-lumberjack.v2: Rename variable.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 59b0945bf906af0bb2ac3596a4625abeb10b7811
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 21:16:11 2024 +0100

gnu: go-gopkg-in-natefinch-lumberjack.v2: Rename variable.

* gnu/packages/golang-xyz.scm (go-gopkg-in-natefinch-lumberjack.v2):
Rename variable to go-gopkg-in-natefinch-lumberjack-v2 to reflect import
style.

* gnu/packages/finance.scm (trezord) [native-inputs]: Remove
go-gopkg-in-natefinch-lumberjack.v2; add 
go-gopkg-in-natefinch-lumberjack-v2.

Change-Id: Ifffc20bfcd75db308bca7fc1880f87c477908188
---
 gnu/packages/finance.scm| 2 +-
 gnu/packages/golang-xyz.scm | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 4b5b5eefd5..13d9f2c32a 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1696,7 +1696,7 @@ trezord as a regular user instead of needing to it run as 
root.")
  (list go-github-com-gorilla-csrf
go-github-com-gorilla-handlers
go-github-com-gorilla-mux
-   go-gopkg-in-natefinch-lumberjack.v2))
+   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
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index e32a451bea..7f3492515f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7702,9 +7702,9 @@ Go.")
 (description "Go library for ini files")
 (license license:asl2.0)))
 
-(define-public go-gopkg-in-natefinch-lumberjack.v2
+(define-public go-gopkg-in-natefinch-lumberjack-v2
   (package
-(name "go-gopkg-in-natefinch-lumberjack.v2")
+(name "go-gopkg-in-natefinch-lumberjack-v2")
 (version "2.1")
 (source
  (origin



162/169: gnu: Add go-github-com-matryer-is.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 954a9f28652b5944b8bd8afee63c07014a91075c
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 26 11:01:47 2024 +0100

gnu: Add go-github-com-matryer-is.

* gnu/packages/golang-check.scm (go-github-com-matryer-is): New variable.

Change-Id: I215a7291620b7c2fc34ae759801466856e829263
---
 gnu/packages/golang-check.scm | 24 
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 958b35f63d..3e33cdb976 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -733,6 +733,30 @@ integrates with the default test runner, so you can use it 
with the standard
 output capturing, mocking, and much more.")
 (license license:expat)))
 
+(define-public go-github-com-matryer-is
+  (package
+(name "go-github-com-matryer-is")
+(version "1.4.1")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/matryer/is";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "04wgh8j2n19a5a4p8jjnya6yl5dm07kbbcz8gq6gj980bd9fk1ir"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/matryer/is"))
+(home-page "https://github.com/matryer/is";)
+(synopsis "Lightweight testing mini-framework for Golang")
+(description
+ "Package is provides a lightweight extension to the standard library's
+testing capabilities.")
+(license license:expat)))
+
 (define-public go-github-com-onsi-ginkgo
   (package
 (name "go-github-com-onsi-ginkgo")



129/169: gnu: Add go-github-com-workiva-go-datastructures.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit f71a234e23aef6a180b8486dde793afb076cce2f
Author: Artyom V. Poptsov 
AuthorDate: Wed Sep 11 22:23:14 2024 +0300

gnu: Add go-github-com-workiva-go-datastructures.

* gnu/packages/golang-xyz.scm (go-github-com-workiva-go-datastructures): 
New variable.

Change-Id: I1523c7aeaed0910fbfbfe7fc96566684fdd2dab8
Co-authored-by: Sharlatan Hellseher 
Signed-off-by: Sharlatan Hellseher 
---
 gnu/packages/golang-xyz.scm | 106 
 1 file changed, 106 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 18ac151c7c..2d9fab9b0d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7206,6 +7206,112 @@ XOR, as in kademlia.")
 @code{MemoryInfo}.")
 (license license:expat)))
 
+(define-public go-github-com-workiva-go-datastructures
+  (package
+(name "go-github-com-workiva-go-datastructures")
+(version "1.1.5")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/Workiva/go-datastructures";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "09k5zg0ma8z5bcfwk3viccaxzrrk5pyfhk5hkr9x34vgcnlk0jx7"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/Workiva/go-datastructures"
+  #:phases
+  #~(modify-phases %standard-phases
+  ;; XXX: Replace when go-build-system supports nested path.
+  (replace 'check
+(lambda* (#:key import-path tests? #:allow-other-keys)
+  (when tests?
+(with-directory-excursion (string-append "src/" import-path)
+  (invoke "go" "test" "-v" "./..."
+(native-inputs (list go-github-com-stretchr-testify))
+(propagated-inputs (list go-github-com-tinylib-msgp))
+(home-page "https://github.com/Workiva/go-datastructures";)
+(synopsis "Collection of Go data structures")
+(description
+ "@code{go-datastructures} is a collection of useful, performant, and
+thread-safe Go data structures.
+
+It includes:
+@itemize
+@item Augmented Tree - Interval tree for collision in n-dimensional
+ranges.  Implemented via a red-black augmented tree.
+
+@item Bitarray - Bitarray used to detect existence without having to resort to
+hashing with hashmaps.  Requires entities have a uint64 unique identifier.  Two
+implementations exist, regular and sparse.
+
+@item Futures - A helpful tool to send a @emph{broadcast} message to
+listeners.
+
+@item Queue - Package contains both a normal and priority queue.  Both
+implementations never block on send and grow as much as necessary.
+
+@item Fibonacci Heap - A standard Fibonacci heap providing the usual
+operations.  Can be useful in executing Dijkstra or Prim's algorithms in the
+theoretically minimal time.
+
+@item Range Tree - Useful to determine if n-dimensional points fall within an
+n-dimensional range.
+
+@item Set - Set implementation which accepts items of type @code{interface{}}
+and includes only a few methods.
+
+@item Threadsafe - A package that is meant to contain some commonly used items
+but in a threadsafe way.
+
+@item AVL Tree - This is an example of a branch copy immutable
+@acronym{Adelson-Velsky and Landis,AVL} @acronym{Balanced Binary Search
+Trees,BBST}.
+
+@item X-Fast Trie - An interesting design that treats integers as words and
+uses a trie structure to reduce time complexities by matching prefixes.
+
+@item Y-Fast Trie - An extension of the X-Fast trie in which an X-Fast trie is
+combined with some other ordered data structure to reduce space consumption
+and improve CRUD types of operations.
+
+@item Fast Integer Hashmap - A datastructure used for checking existence but
+without knowing the bounds of your data.  If you have a limited small bounds,
+the bitarray package might be a better choice.
+
+@item Skiplist - An ordered structure that provides amortized logarithmic
+operations but without the complication of rotations that are required by
+BSTs.
+
+@item Sort - The sort package implements a multithreaded bucket sort that can
+be up to 3x faster than the native Golang sort package.
+
+@item Numerics - Early work on some nonlinear optimization problems.  The
+initial implementation allows a simple use case with either linear or
+nonlinear constraints.
+
+@item B+ Tree - Initial implementation of a B+ tree.  Delete method still
+needs added as well as some performance optimization.
+
+@item Immutable B Tree - A btree based on two principles, immutability and
+concurrency.
+
+@item Ctrie - A concurrent, lock-free hash array mapped trie with efficient
+non-blocking snapshots.
+
+@item Dtrie - A persistent hash trie that dynamically expands or shrinks to
+provide efficient memory allocation.
+
+@item Persistent List - A persistent, immutable l

165/169: gnu: go-github-com-tekwizely-go-parsing: Adjust description.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit cd0b2f3897f1695666be4e2a3a5d032c5430e9f7
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 26 11:13:50 2024 +0100

gnu: go-github-com-tekwizely-go-parsing: Adjust description.

* gnu/packages/golang.scm (go-github-com-tekwizely-go-parsing)
[description]: Include a list of shipped modules.

Change-Id: Ieddaf65ec9577846af8785a26bdd2a02d24a
---
 gnu/packages/golang.scm | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4b8c2f85b3..059a158e62 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6581,7 +6581,15 @@ modifying them.")
   (synopsis "Text parsing, with lexers, parsers, and related tools")
   (description
"This package provides Go modules focused on text parsing, with lexers,
-parsers, and related tools.")
+parsers, and related tools.
+
+Included modules are:
+@itemize
+@item github.com/tekwizely/go-parsing
+@item github.com/tekwizely/go-parsing/lexer
+@item github.com/tekwizely/go-parsing/lexer/token
+@item github.com/tekwizely/go-parsing/parser
+@end itemize")
   (license license:expat)))
 
 (define-public go-github-com-akosmarton-papipes



107/169: gnu: Add go-github-com-circonus-labs-circonus-gometrics-v3.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit d2dd6411bf0695cf64b5516c0c650441e34711b0
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:16:39 2024 +0100

gnu: Add go-github-com-circonus-labs-circonus-gometrics-v3.

* gnu/packages/golang-web.scm 
(go-github-com-circonus-labs-circonus-gometrics-v3): New variable.

Change-Id: Ic4ef0f2a312c6b24a6a0f8950861975db7536ac3
---
 gnu/packages/golang-web.scm | 24 
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index c33e5a621b..38798957eb 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -762,6 +762,30 @@ provides convenience wrappers for registering latency 
instrumented functions
 with Go's builtin http server.")
 (license license:bsd-3)))
 
+(define-public go-github-com-circonus-labs-circonus-gometrics-v3
+  (package
+(inherit go-github-com-circonus-labs-circonus-gometrics)
+(name "go-github-com-circonus-labs-circonus-gometrics-v3")
+(version "3.4.7")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/circonus-labs/circonus-gometrics";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1wdnhj1xwm5p5wp76afs08aq30hkpgnq4802d6ylnpb3n46v0lj4"
+(build-system go-build-system)
+(arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-circonus-labs-circonus-gometrics)
+   ((#:import-path _) "github.com/circonus-labs/circonus-gometrics/v3")))
+(propagated-inputs
+ (modify-inputs (package-propagated-inputs
+ go-github-com-circonus-labs-circonus-gometrics)
+   (prepend go-github-com-circonus-labs-go-apiclient)
+
 (define-public go-github-com-circonus-labs-go-apiclient
   (package
 (name "go-github-com-circonus-labs-go-apiclient")



119/169: gnu: soju: Fix build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 540a375132cede13a70eb394d41995db4f954f32
Author: Sharlatan Hellseher 
AuthorDate: Mon Sep 16 10:55:21 2024 +0100

gnu: soju: Fix build.

Fix the build as seen in .

* gnu/packages/irc.scm (soju): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: I8d1bddc335ab838127111f70dbc64528aa3dc4ff
---
 gnu/packages/irc.scm | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index c1c35691cd..4b1ff47803 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -1114,6 +1114,24 @@ what.")
   #:import-path "codeberg.org/emersion/soju"
   #:phases
   #~(modify-phases %standard-phases
+  ;; TODO: Implement it in go-build-system.
+  ;;
+  ;; This happens due to Golang can't determine the valid directory of
+  ;; the module of embed file which is symlinked during setup
+  ;; environment phase, but easy resolved after coping file from the
+  ;; store to the build directory of the current package, see details
+  ;; in Golang source:
+  ;;
+  ;; - URL: 
+  ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+  ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+  (add-after 'unpack 'fix-embed-files
+(lambda _
+  (for-each (lambda (file)
+  (let ((file-store-path (readlink file)))
+(delete-file file)
+(copy-recursively file-store-path file)))
+(find-files "src" ".*(editions_defaults.binpb)$"
   (add-after 'unpack 'adjust-makefile
 (lambda* (#:key import-path #:allow-other-keys)
   (with-directory-excursion (string-append "src/" import-path)



22/169: import/go: Add diagnostics.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit d47965fc174bbb4081d29241d66c96592242216a
Author: Christina O'Donnell 
AuthorDate: Sat Mar 16 10:30:39 2024 +

import/go: Add diagnostics.

guix/import/go.scm (go-module-available-versions): Add warning when fetching
a list of versions from the proxy fails and raise exception when no version
can be found at all.
(module-path->repository-root): Warn when all attempts to find the 
repository
root have failed.
(fetch-module-meta-data): Raise exception when no meta element could be 
found.
(go-module->guix-package): Catch general exceptions and warn that the 
package
could not be imported.

Change-Id: I6dcdccc71f54bfec7110f6bfc5aeb8855502d1e3
Signed-off-by: Sharlatan Hellseher 
---
 guix/import/go.scm | 58 +++---
 1 file changed, 46 insertions(+), 12 deletions(-)

diff --git a/guix/import/go.scm b/guix/import/go.scm
index 34bccd6a0c..53ada83040 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -39,7 +39,9 @@
   #:autoload   (htmlprag) (html->sxml);from Guile-Lib
   #:autoload   (guix base32) (bytevector->nix-base32-string)
   #:autoload   (guix build utils) (mkdir-p)
+  #:autoload   (guix ui) (warning)
   #:autoload   (gcrypt hash) (hash-algorithm sha256)
+  #:autoload   (git structs) (git-error-message)
   #:use-module (ice-9 format)
   #:use-module (ice-9 match)
   #:use-module (ice-9 peg)
@@ -144,10 +146,15 @@ styles for the same package."
  (versions (remove string-null? (string-split body #\newline
 (if (null? versions)
 (begin
+  (warning (G_ "Empty list of versions on proxy ~a for package '~a'. 
Using latest.~%")
+   goproxy name)
   ;; If we haven't recieved any versions, look in the version-info json
   ;; object and return a one-element list if found.
   (or (and=> (assoc-ref (go-module-version-info goproxy name) 
"Version")
- list
+ list)
+  (raise (make-compound-condition
+  (formatted-message (G_ "No versions available for '~a' 
on proxy ~a.")
+ name goproxy))
 versions))
 
 (define (go-package-licenses name)
@@ -471,7 +478,10 @@ hence the need to derive this information."
(+ 1 (string-length subdir)))
 #f)
   (vcs-qualified-module-path->root-repo-url module-path)
-  module-path))
+  (begin
+(warning (G_ "Unable to determine repository root of '~a'. Guessing 
'~a'.~%")
+ module-path module-path)
+module-path)))
 
 (define* (go-module->guix-package-name module-path #:optional version)
   "Converts a module's path to the canonical Guix format for Go packages.
@@ -516,14 +526,19 @@ build a package."
  (select (sxpath `(// (meta (@ (equal? (name "go-import"
   // content
 (match (select (html->sxml meta-data #:strict? #t))
-  (() #f)   ;nothing selected
+  (() (raise (make-compound-condition
+  (formatted-message (G_ "no  element in result when 
accessing module path '~a' using go-get")
+ module-path
   ((('content content-text) ..1)
(or
 (find (lambda (meta)
 (string-prefix? (module-meta-import-prefix meta) module-path))
   (map go-import->module-meta content-text))
 ;; Fallback to the first meta if no import prefixes match.
-(go-import->module-meta (first content-text)))
+(go-import->module-meta (first content-text))
+(raise (make-compound-condition
+(formatted-message (G_ "unable to parse  when accessing 
module path '~a' using go-get")
+   module-path
 
 (define (module-meta-data-repo-url meta-data goproxy)
   "Return the URL where the fetcher which will be used can download the
@@ -720,16 +735,35 @@ When VERSION is unspecified, the latest version available 
is used."
 ;; consistently.
 (setvbuf (current-error-port) 'none)
 (let ((package-name (match args ((name _ ...) name
-  (guard (c ((http-get-error? c)
- (warning (G_ "Failed to import package ~s.
+  (begin
+(info (G_ "Importing package ~s...~%") package-name)
+(guard (c ((http-get-error? c)
+(warning (G_ "Failed to import package ~s.
 reason: ~s could not be fetched: HTTP error ~a (~s).
 This package and its dependencies won't be imported.~%")
-  package-name
-  (uri->string (http-get-error-uri c))
-  (http-get-error-code c)
-  (http-get-error-reason c))
- (values #f '()))

62/169: gnu: go-github-com-google-go-querystring: Update to 1.1.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit e86bf661a2eaea29f625e836eec3b04c02571ce5
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 10:50:35 2024 +0100

gnu: go-github-com-google-go-querystring: Update to 1.1.0.

* gnu/packages/golang.scm (go-github-com-google-go-querystring): Update to 
1.1.0.
[native-inputs]: Add go-github-com-google-go-cmp.

Change-Id: I495c34a4a29718fcaaee4d7f3f307ec81895e6d4
---
 gnu/packages/golang.scm | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a15cbd5a96..76cc9a4543 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5369,29 +5369,29 @@ and from termios translations, readCh, reading 
passwords, etc.")
   (license license:bsd-3
 
 (define-public go-github-com-google-go-querystring
-  (let ((commit "992e8021cf787c100d55520d5c906e01536c0a19") ;fix format in 
tests
-(revision "1"))
 (package
   (name "go-github-com-google-go-querystring")
-  (version "1.0.0")
+  (version "1.1.0")
   (source (origin
 (method git-fetch)
 (uri (git-reference
   (url "https://github.com/google/go-querystring";)
-  (commit commit)))
+  (commit (string-append "v" version
 (file-name (git-file-name name version))
 (sha256
  (base32
-  "0mbx4jvf7nz4sk2fgqfq1llz4xb3vc4625b4x398mspr3a5077rs"
+  "15k460c23nsmqd1nx3mvrnazws8bpb1gafrmffx7vf91m200mnwa"
   (build-system go-build-system)
   (arguments
`(#:import-path "github.com/google/go-querystring/query"
  #:unpack-path "github.com/google/go-querystring"))
+  (native-inputs
+   (list go-github-com-google-go-cmp))
   (home-page "https://github.com/google/go-querystring/";)
   (synopsis "Library for encoding structs into URL query parameters")
   (description "@code{go-querystring} is Go library for encoding structs
 into URL query parameters.")
-  (license license:bsd-3
+  (license license:bsd-3)))
 
 (define (go-gotest-tools-source version sha256-base32-hash)
   (origin



93/169: gnu: Add go-github-com-muesli-combinator.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit add5d244892099be81676df19a4716c09aad72d3
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 23:23:14 2024 +0100

gnu: Add go-github-com-muesli-combinator.

* gnu/packages/golang-xyz.scm (go-github-com-muesli-combinator): New 
variable.

Change-Id: I24e9c6c752e677d6c3f4f97f461bbd66d7b675b1
---
 gnu/packages/golang-xyz.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 41efe69d5c..4a82d3ecd5 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5258,6 +5258,31 @@ Authentication Modules, PAM} application API.")
  "This package provides a cancelable reader for Go.")
 (license license:expat)))
 
+(define-public go-github-com-muesli-combinator
+  (package
+(name "go-github-com-muesli-combinator")
+(version "0.3.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/muesli/combinator";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0rjw1rl1v38pn6lmyaz7yhgrwkyh22d6974lj33x1c86q0xpaw4d"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/muesli/combinator"))
+(home-page "https://github.com/muesli/combinator";)
+(synopsis "Cancelable reader for Go")
+(description
+ "@code{combinator} generates a slice of all possible value combinations
+for any given struct and a set of its potential member values.  This can be
+used to generate extensive test matrixes among other things.")
+(license license:expat)))
+
 (define-public go-github-com-muesli-reflow
   (package
 (name "go-github-com-muesli-reflow")



109/169: gnu: Add go-github-com-pascaldekloe-goe.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit b84924a3a586f98d06f0c4c28c4d86b6aeb89fe2
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:37:07 2024 +0100

gnu: Add go-github-com-pascaldekloe-goe.

* gnu/packages/golang-web.scm (go-github-com-pascaldekloe-goe): New 
variable.

Change-Id: Idd1de1f2d2e5aab8c6e257706fefa1960bce53ab
---
 gnu/packages/golang-web.scm | 32 
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 38798957eb..b0657ce4b0 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -4071,6 +4071,38 @@ used to read GeoLite2 and GeoIP2 databases, 
@code{geoip2} provides a
 higher-level API for doing so.")
 (license license:isc)))
 
+(define-public go-github-com-pascaldekloe-goe
+  (package
+(name "go-github-com-pascaldekloe-goe")
+(version "0.1.1")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/pascaldekloe/goe";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1mszfjcc29b6nvw3hs8w33iy6zx6ih5v2jlard0dsrgkpvsx5c81"
+(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" "./..."
+(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-pion-datachannel
   (package
 (name "go-github-com-pion-datachannel")



07/169: gnu: go-github-com-jaytaylor-html2text: Enable tests.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit bd8c6ca432fec09995d480d007a4db7163119b2b
Author: Sharlatan Hellseher 
AuthorDate: Tue Sep 3 20:47:26 2024 +0100

gnu: go-github-com-jaytaylor-html2text: Enable tests.

* gnu/packages/golang.scm (go-github-com-jaytaylor-html2text): Enable tests.

Change-Id: I014b718d13ce4b266acdb617acc35a3ef9b0ce28
---
 gnu/packages/golang.scm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 48f815017b..b3a9a1a39e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8005,9 +8005,7 @@ email library.")
 "14r0ph8w4yxx129kfvj0qbx4cyid65md93qmwlz2cly4iwjnr7w2"
 (build-system go-build-system)
 (arguments
- (list #:import-path "github.com/jaytaylor/html2text"
-   ;; Tests are broken: 

-   #:tests? #f))
+ (list #:import-path "github.com/jaytaylor/html2text"))
 (propagated-inputs (list go-golang-org-x-net
  go-github-com-olekukonko-tablewriter
  go-github-com-ssor-bom))



167/169: gnu: go-github-com-subosito-gotenv: Update to 1.6.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit c9e151cf2424d54346331ee9fc3a0534f2769db0
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 26 11:31:09 2024 +0100

gnu: go-github-com-subosito-gotenv: Update to 1.6.0.

* gnu/packages/golang.scm (go-github-com-subosito-gotenv): Update to 1.6.0.
[propagated-inputs]: Add go-golang-org-x-text.

Change-Id: I6010bdacf80eaf6aa2cf869844b2327124318580
---
 gnu/packages/golang.scm | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 460a50a911..5a37ace650 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3351,7 +3351,7 @@ updating files, like @command{tail -f}.")
 (define-public go-github-com-subosito-gotenv
   (package
 (name "go-github-com-subosito-gotenv")
-(version "1.2.0")
+(version "1.6.0")
 (source
  (origin
(method git-fetch)
@@ -3361,12 +3361,14 @@ updating files, like @command{tail -f}.")
(file-name (git-file-name name version))
(sha256
 (base32
- "0mav91j7r4arjkpq5zcf9j74f6pww8ic53x43wy7kg3ibw31yjs5"
+ "0h7kb9mc67rl16kvls2d16pimdrz59l5x4l002qsv2p2766mpjif"
 (build-system go-build-system)
 (arguments
  `(#:import-path "github.com/subosito/gotenv"))
 (native-inputs
  (list go-github-com-stretchr-testify))
+(propagated-inputs
+ (list go-golang-org-x-text))
 (home-page "https://github.com/subosito/gotenv";)
 (synopsis "Go library for loading environment variables from files")
 (description "Go library for loading environment variables from files")



123/169: gnu: nebula: Fix build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 761b75c5c3e4ee63438e834cf5773e0f5ac1ec3a
Author: Sharlatan Hellseher 
AuthorDate: Mon Sep 16 11:07:54 2024 +0100

gnu: nebula: Fix build.

* gnu/packages/networking.scm (nebula): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: Ie2522c61aa1febadd250b1c02738c48bb82497e9
---
 gnu/packages/networking.scm | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index d0949618da..ac8ad2ecc8 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -4762,6 +4762,24 @@ IPv6 Internet connectivity - it also works over IPv4.")
   #:install-source? #f
   #:phases
   #~(modify-phases %standard-phases
+  ;; TODO: Implement it in go-build-system.
+  ;;
+  ;; This happens due to Golang can't determine the valid directory of
+  ;; the module of embed file which is symlinked during setup
+  ;; environment phase, but easy resolved after coping file from the
+  ;; store to the build directory of the current package, see details
+  ;; in Golang source:
+  ;;
+  ;; - URL: 
+  ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+  ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+  (add-after 'unpack 'fix-embed-files
+(lambda _
+  (for-each (lambda (file)
+  (let ((file-store-path (readlink file)))
+(delete-file file)
+(copy-recursively file-store-path file)))
+(find-files "src" ".*(editions_defaults.binpb)$"
   (replace 'build
 (lambda* (#:key import-path #:allow-other-keys)
   ;; Suggested option to provide build time flags is not supported



132/169: gnu: go-github-com-aead-chacha20: Fix indentation.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 6833276b436cf2622f00d66d8fce0e704af813fc
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 11:49:10 2024 +0100

gnu: go-github-com-aead-chacha20: Fix indentation.

* gnu/packages/golang-crypto.scm (go-github-com-aead-chacha20): Fix 
indentation.

Change-Id: I2084ebd6a8472b5835498e19c115f778b46ff6d6
---
 gnu/packages/golang-crypto.scm | 48 ++
 1 file changed, 25 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 0034017d3b..d0bef279ff 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -241,29 +241,31 @@ pcredential store, Pass, Secret Service, KDE Wallet, 
Encrypted File.")
 (license license:expat)))
 
 (define-public go-github-com-aead-chacha20
-(package
-  (name "go-github-com-aead-chacha20")
-  (version "0.0.0-20180709150244-8b13a72661da")
-  (source
-   (origin
- (method git-fetch)
- (uri (git-reference
-   (url "https://github.com/aead/chacha20";)
-   (commit (go-version->git-ref version
- (file-name (git-file-name name version))
- (sha256
-  (base32 "0gbmgq5kbqmbyrsav57ql4jzbvqvp1q7yvcd5fl3wf5g94iyv56r"
-  (build-system go-build-system)
-  (arguments
-   `(#:import-path "github.com/aead/chacha20"))
-  (propagated-inputs
-   (list go-golang-org-x-sys))
-  (home-page "https://github.com/aead/chacha20";)
-  (synopsis "ChaCha20 and XChaCha20 stream ciphers")
-  (description "ChaCha is a stream cipher family created by Daniel
-Bernstein.  The most common ChaCha variant is ChaCha20 (20 rounds).  ChaCha20
-is standardized in RFC 7539.")
-  (license license:expat)))
+  (package
+(name "go-github-com-aead-chacha20")
+(version "0.0.0-20180709150244-8b13a72661da")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/aead/chacha20";)
+ (commit (go-version->git-ref version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0gbmgq5kbqmbyrsav57ql4jzbvqvp1q7yvcd5fl3wf5g94iyv56r"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/aead/chacha20"))
+(propagated-inputs
+ (list go-golang-org-x-sys))
+(home-page "https://github.com/aead/chacha20";)
+(synopsis "ChaCha20 and XChaCha20 stream ciphers")
+(description
+ "ChaCha is a stream cipher family created by Daniel Bernstein.  The most
+common ChaCha variant is ChaCha20 (20 rounds).  ChaCha20 is standardized in
+RFC 7539.")
+(license license:expat)))
 
 (define-public go-github-com-aead-ecdh
   (package



149/169: gnu: Add go-github-com-cretz-bine.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 7eb6c94fb8dae21f6b769dd4d40703eb9582da22
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 21:41:18 2024 +0100

gnu: Add go-github-com-cretz-bine.

* gnu/packages/golang-web.scm (go-github-com-cretz-bine): New variable.

Change-Id: I2c3e8bc8ba22e6b76c26412f332d90f29e6ec76a
---
 gnu/packages/golang-web.scm | 48 +
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 93551c7664..e2f50ad1eb 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -922,6 +922,54 @@ Any}.")
go-golang-org-x-net
go-golang-org-x-oauth2
 
+(define-public go-github-com-cretz-bine
+  (package
+;; This package can be used with CGO to statically compile Tor.  This
+;; package expects  to be cloned at
+;; $GOPATH/src/github.com/cretz/tor-static as if it was fetched with go
+;; get.  If you use go modules the expected path would be
+;; $GOPATH/pkg/mod/github.com/cretz/tor-static libs.  See
+;; 
.
+(name "go-github-com-cretz-bine")
+(version "0.2.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/cretz/bine";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "16h7j7v4qbwb7zjsbc1p3b67xji7hgis95znz9cj8fw3rqxwvkcs"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/cretz/bine"
+  #:phases
+  #~(modify-phases %standard-phases
+  (add-after 'unpack 'remove-examples
+(lambda* (#:key import-path #:allow-other-keys)
+  (with-directory-excursion (string-append "src/" import-path)
+(delete-file-recursively "examples")))
+(native-inputs
+ (list go-github-com-stretchr-testify))
+(propagated-inputs
+ (list go-golang-org-x-crypto
+   go-golang-org-x-net))
+(home-page "https://github.com/cretz/bine";)
+(synopsis "Accessing and embedding Tor clients and servers from Golang")
+(description
+ "Bine is a toolkit to assist in creating Tor clients and servers.
+Features:
+@itemize
+@item full support for the Tor controller API
+@item support for @code{net.Conn} and @code{net.Listen} style APIs
+@item supports statically compiled Tor to embed Tor into the binary
+@item supports v3 onion services
+@item support for embedded control socket in Tor >= 0.3.5
+@end itemize")
+(license license:expat)))
+
 (define-public go-github-com-datadog-datadog-go
   (package
 (name "go-github-com-datadog-datadog-go")



71/169: gnu: go-github-com-jonboulle-clockwork: Move to golang-xyz.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit dc66e4ee40315e5bca2fe805108911ff28afe872
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 11:51:46 2024 +0100

gnu: go-github-com-jonboulle-clockwork: Move to golang-xyz.

* gnu/packages/golang.scm (go-github-com-jonboulle-clockwork): Move from
here ...
* gnu/packages/golang-xyz.scm: ... to here.

Change-Id: Idf7a5958a856507f37d54771d6f4881b367ed39e
---
 gnu/packages/golang-xyz.scm | 24 
 gnu/packages/golang.scm | 24 
 2 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 1ebf895b9b..fd6434e06b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3910,6 +3910,30 @@ just matching lines.  This package proviedes a CLI tool 
and @code{colors}
 library.")
 (license license:bsd-2)))
 
+(define-public go-github-com-jonboulle-clockwork
+  (package
+(name "go-github-com-jonboulle-clockwork")
+(version "0.4.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/jonboulle/clockwork";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1j1k9chzy5pb76r4r1k0vr5fbkvna564v6dzjflhapwsr7jpjgwf"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/jonboulle/clockwork"))
+(home-page "https://github.com/jonboulle/clockwork";)
+(synopsis "Fake clock library for Go")
+(description
+ "Replace uses of the @code{time} package with the @code{clockwork.Clock}
+interface instead.")
+(license license:asl2.0)))
+
 (define-public go-github-com-josharian-intern
   (package
 (name "go-github-com-josharian-intern")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0ee12b6548..4b458dd761 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3211,30 +3211,6 @@ information about the resource usage and performance 
characteristics of running
 containers.")
   (license license:asl2.0
 
-(define-public go-github-com-jonboulle-clockwork
-  (package
-(name "go-github-com-jonboulle-clockwork")
-(version "0.4.0")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/jonboulle/clockwork";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256
-(base32 "1j1k9chzy5pb76r4r1k0vr5fbkvna564v6dzjflhapwsr7jpjgwf"
-(build-system go-build-system)
-(arguments
- (list
-  #:import-path "github.com/jonboulle/clockwork"))
-(home-page "https://github.com/jonboulle/clockwork";)
-(synopsis "Fake clock library for Go")
-(description
- "Replace uses of the @code{time} package with the @code{clockwork.Clock}
-interface instead.")
-(license license:asl2.0)))
-
 (define-public go-github-com-spf13-afero
   (package
 (name "go-github-com-spf13-afero")



117/169: guix: Add copyright records.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 0b7bc54bcaebf3551020c704b70f8fdbea108e5f
Author: Sharlatan Hellseher 
AuthorDate: Mon Sep 16 07:51:30 2024 +0100

guix: Add copyright records.

* guix/build-system/go.scm: Add missing copyright record to the header
for Christina O'Donnell .
* guix/import/go.scm: Likewise.

Change-Id: If8b6b5dd31126b9209da5b6c0ad1d479c653bbe6
---
 guix/build-system/go.scm | 1 +
 guix/import/go.scm   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm
index e39502991b..e6e8b84e48 100644
--- a/guix/build-system/go.scm
+++ b/guix/build-system/go.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2021-2022 Ludovic Courtès 
 ;;; Copyright © 2021, 2023 Efraim Flashner 
 ;;; Copyright © 2021 Sarah Morgensen 
+;;; Copyright © 2024 Christina O'Donnell 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
diff --git a/guix/import/go.scm b/guix/import/go.scm
index 53ada83040..32cba25b33 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2021 Sarah Morgensen 
 ;;; Copyright © 2021 Simon Tournier 
 ;;; Copyright © 2023 Efraim Flashner 
+;;; Copyright © 2024 Christina O'Donnell 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;



152/169: gnu: Remove go-github-com-emersion-go-textwrapper.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit e1c16036613851adf74ff3c7fb0993395778ebbf
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 21:48:58 2024 +0100

gnu: Remove go-github-com-emersion-go-textwrapper.

It's not in use by any packages in Guix, upstream message: "This
repository has been archived by the owner on Mar 2, 2024. It is now
read-only."

* gnu/packages/golang.scm (go-github-com-emersion-go-textwrapper): Delete 
variable.

Change-Id: I57b382b8102d808fd153ffc9a39bb1d11ffcb8e7
---
 gnu/packages/golang.scm | 23 ---
 1 file changed, 23 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index daf7ac26f3..917e7da58c 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2416,29 +2416,6 @@ writers can be supplied for alternate environments.")
  "The datacounter package provides counters for Go readers and writers.")
 (license license:expat)))
 
-(define-public go-github-com-emersion-go-textwrapper
-  (package
-(name "go-github-com-emersion-go-textwrapper")
-(version "0.0.0-20200911093747-65d896831594")
-(source (origin
-  (method git-fetch)
-  (uri (git-reference
-(url "https://github.com/emersion/go-textwrapper";)
-(commit (go-version->git-ref version
-  (file-name (git-file-name name version))
-  (sha256
-   (base32
-"1lh9d7zvj6gm1rr6sv5xlagklgx9d666hq5srd37a4sdcjkbiqmq"
-(build-system go-build-system)
-(arguments
- (list #:import-path "github.com/emersion/go-textwrapper"))
-(home-page "https://github.com/emersion/go-textwrapper";)
-(synopsis "Text-wrapping writer for Go")
-(description
- "The textwrapper package provides a writer that wraps long text lines to
-a specified length.")
-(license license:expat)))
-
 (define-public go-github-com-aki237-nscjar
   (let ((commit "e2df936ddd6050d30dd90c7214c02b5019c42f06")
 (revision "0"))



128/169: gnu: go-github-com-deckarep-golang-set-v2: Update to 2.6.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 81edd5237332330b6b6558d9d97c99efa22bd0b0
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 19 20:34:08 2024 +0100

gnu: go-github-com-deckarep-golang-set-v2: Update to 2.6.0.

* gnu/packages/golang-xyz.scm (go-github-com-deckarep-golang-set-v2): 
Update to 2.6.0.

Change-Id: Iaf7f84352514b0b98f23fbd1da47dbe700fd0c03
---
 gnu/packages/golang-xyz.scm | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7ffdd1ca39..18ac151c7c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -2017,7 +2017,7 @@ more complicated parallel cases.")
   (package
 (inherit go-github-com-deckarep-golang-set)
 (name "go-github-com-deckarep-golang-set-v2")
-(version "2.2.0")
+(version "2.6.0")
 (source
  (origin
(method git-fetch)
@@ -2026,11 +2026,10 @@ more complicated parallel cases.")
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
-(base32 "11bvia6cflq46nzc2hfgikgxyck7wskyi0i7ksy9r0d41l4jh4l9"
+(base32 "1yvmra0hfcdzyyw51k0gnnd13zklvsacja0qkd0j1wjhpqmmfbcy"
 (arguments
  (list
-  #:import-path "github.com/deckarep/golang-set/v2"
-  #:unpack-path "github.com/deckarep/golang-set"))
+  #:import-path "github.com/deckarep/golang-set/v2"))
 (native-inputs
  (list go-github-com-stretchr-testify))
 (propagated-inputs



127/169: gnu: go-github-com-aws-smithy-go: Update to 1.21.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 7d915595fbce1e94b08ed5fa37aa8e64df0b4510
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 19 20:20:30 2024 +0100

gnu: go-github-com-aws-smithy-go: Update to 1.21.0.

* gnu/packages/golang-web.scm (go-github-com-aws-smithy-go): Update to 
1.21.0.

Change-Id: Ife3e9685cf4628694538061685ad958f40c3cd14
---
 gnu/packages/golang-web.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 13cb59a65e..ba90efc1e9 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -508,16 +508,16 @@ credentials sources.")
 (define-public go-github-com-aws-smithy-go
   (package
 (name "go-github-com-aws-smithy-go")
-(version "1.13.5")
+(version "1.21.0")
 (source
  (origin
(method git-fetch)
(uri (git-reference
  (url "https://github.com/aws/smithy-go";)
- (commit "v1.13.5")))
+ (commit "v1.21.0")))
(file-name (git-file-name name version))
(sha256
-(base32 "1rgyk0m2d3agknnlzjqvac1a61wwdq1pbck7vyl587m38n5zi2cz"
+(base32 "1pcq9d154l41c4k23q6ri51ba5i2kc8ihrv4sgkv4q59cw70rspi"
 (build-system go-build-system)
 (arguments
  '(#:import-path "github.com/aws/smithy-go"))



111/169: gnu: Add go-github-com-ryanuber-columnize.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit a6a0ed89191081fc9da60461463525102ed5750e
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:48:42 2024 +0100

gnu: Add go-github-com-ryanuber-columnize.

* gnu/packages/golang-xyz.scm (go-github-com-ryanuber-columnize): New 
variable.

Change-Id: I6cd3a54c445c312461e242ae221228993a24e0e6
---
 gnu/packages/golang-xyz.scm | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 192d41183d..e25df5f847 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6387,6 +6387,29 @@ Included are the following:
 logging.")
 (license license:expat)))
 
+(define-public go-github-com-ryanuber-columnize
+  (package
+(name "go-github-com-ryanuber-columnize")
+(version "2.1.2")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/ryanuber/columnize";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0xxzzgvfabc2qx6n313vis8l4npkggiy5kjflv0arm2y7xnv73qj"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/ryanuber/columnize"))
+(home-page "https://github.com/ryanuber/columnize";)
+(synopsis "Column formatted output for golang")
+(description
+ "This package implements column-formatted output for Golang.")
+(license license:expat)))
+
 (define-public go-github-com-schollz-progressbar-v3
   (package
 (name "go-github-com-schollz-progressbar-v3")



98/169: gnu: Add go-github-com-go-openapi-runtime.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 81b036b833bdb0efd4a2fde96d2b92d62422495f
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 23:59:12 2024 +0100

gnu: Add go-github-com-go-openapi-runtime.

* gnu/packages/golang-web.scm (go-github-com-go-openapi-runtime): New 
variable.

Change-Id: Iba2b08ba70af9d376bf657e754391ba18efe814d
---
 gnu/packages/golang-web.scm | 60 +
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 9c5f1260cc..1bce52ca9a 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -1584,6 +1584,66 @@ Initiative,OAI} specification documents from local or 
remote locations.
 Supports JSON and YAML documents.")
 (license license:asl2.0)))
 
+(define-public go-github-com-go-openapi-runtime
+  (package
+(name "go-github-com-go-openapi-runtime")
+(version "0.28.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/go-openapi/runtime";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0h8yqc6bb8mzb8jvr3m08fyws1gbrhbry6k5vj2cx2xdi50kqiy5"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/go-openapi/runtime"
+  #:phases
+  #~(modify-phases %standard-phases
+  ;; TODO: Implement it in go-build-system.
+  ;;
+  ;; This happens due to Golang can't determine the valid directory of
+  ;; the module of embed file which is symlinked during setup
+  ;; environment phase, but easy resolved after coping file from the
+  ;; store to the build directory of the current package, see details
+  ;; in Golang source:
+  ;;
+  ;; - URL: 
+  ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+  ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+  (add-after 'unpack 'fix-embed-files
+(lambda _
+  (for-each (lambda (file)
+  (let ((file-store-path (readlink file)))
+(delete-file file)
+(copy-recursively file-store-path file)))
+(find-files "src" "\\.json$")))
+(native-inputs
+ (list go-github-com-stretchr-testify))
+(propagated-inputs
+ (list go-github-com-docker-go-units
+   go-github-com-go-openapi-analysis
+   go-github-com-go-openapi-errors
+   go-github-com-go-openapi-loads
+   go-github-com-go-openapi-spec
+   go-github-com-go-openapi-strfmt
+   go-github-com-go-openapi-swag
+   go-github-com-go-openapi-validate
+   go-github-com-opentracing-opentracing-go
+   go-go-opentelemetry-io-otel
+   go-go-opentelemetry-io-otel-sdk
+   go-golang-org-x-sync
+   go-gopkg-in-yaml-v3))
+(home-page "https://github.com/go-openapi/runtime";)
+(synopsis "OpenAPI runtime interfaces")
+(description
+ "OpenAPI toolkit runtime component for use in code generation or as
+untyped usage.")
+(license license:asl2.0)))
+
 (define-public go-github-com-go-openapi-spec
   (package
 (name "go-github-com-go-openapi-spec")



106/169: gnu: Add go-github-com-circonus-labs-go-apiclient.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 0934fb0ad8a76822d8e9bcfd0d106f22a72d778c
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:17:56 2024 +0100

gnu: Add go-github-com-circonus-labs-go-apiclient.

* gnu/packages/golang-web.scm (go-github-com-circonus-labs-go-apiclient): 
New variable.

Change-Id: Ia623c1bf0a296201e36ee6fa97e69cc80cee1dee
---
 gnu/packages/golang-web.scm | 28 
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index aac6a939de..c33e5a621b 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -762,6 +762,34 @@ provides convenience wrappers for registering latency 
instrumented functions
 with Go's builtin http server.")
 (license license:bsd-3)))
 
+(define-public go-github-com-circonus-labs-go-apiclient
+  (package
+(name "go-github-com-circonus-labs-go-apiclient")
+(version "0.7.24")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/circonus-labs/go-apiclient";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1ysfycnjmqkn1prlz68k2nkrkk3570q5gx0d6vdvvwfhvlisj4c7"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/circonus-labs/go-apiclient"))
+(propagated-inputs
+ (list go-github-com-hashicorp-go-retryablehttp
+   go-github-com-pkg-errors))
+(home-page "https://github.com/circonus-labs/go-apiclient";)
+(synopsis "Circonus API Client for Golang")
+(description
+ "Package apiclient provides methods for interacting with the Circonus
+API.  See the full Circonus API Documentation at
+@url{https://login.circonus.com/resources/api} for more information.")
+(license license:bsd-3)))
+
 (define-public go-github-com-containerd-typeurl
   (package
 (name "go-github-com-containerd-typeurl")



134/169: gnu: go-github-com-shadowsocks-go-shadowsocks2: Enable all tests.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit aba7981822013cc83fc32dde42863dfce1f9a44c
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 12:57:48 2024 +0100

gnu: go-github-com-shadowsocks-go-shadowsocks2: Enable all tests.

* gnu/packages/golang-crypto.scm (go-github-com-shadowsocks-go-shadowsocks2)
[arguments]: <#:phases>: Use custom 'check phase.

Change-Id: Ia7efa74417d47a4679befd11ca3e76aaf0bc8c48
---
 gnu/packages/golang-crypto.scm | 12 +++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 27ce64ca9a..1236ff38e3 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -1588,7 +1588,17 @@ wide-block encryption mode developed by Halevi and 
Rogaway.")
 (base32 "0n24h5ffgc3735y0mmp6dbhxdfm9fk13i26fqxxw7i75qnmvjvyg"
 (build-system go-build-system)
 (arguments
- `(#:import-path "github.com/shadowsocks/go-shadowsocks2"))
+ (list
+  #:import-path "github.com/shadowsocks/go-shadowsocks2"
+  #:phases
+  #~(modify-phases %standard-phases
+  ;; XXX: Workaround for go-build-system's lack of Go modules
+  ;; support.
+  (replace 'check
+(lambda* (#:key tests? import-path #:allow-other-keys)
+  (when tests?
+(with-directory-excursion (string-append "src/" import-path)
+  (invoke "go" "test" "-v" "./..."
 (propagated-inputs
  (list go-github-com-riobard-go-bloom
go-golang-org-x-crypto))



94/169: gnu: chezmoi: Update to 1.8.10.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit f7078a9c47f0ae6681d6ee20a49940413d6671b9
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 23:23:14 2024 +0100

gnu: chezmoi: Update to 1.8.10.

* gnu/packages/configuration-management.scm (chezmoi): Update to 1.8.10.
[arguments]: <#:phases>: Swap 'copy-input-to-vendor-directory and
'remove-vendor-directory phases with generalized 'fix-embed-files.
[native-inputs]: Remove go-github-com-alecthomas-chroma-v2; add
go-github-com-muesli-combinator, go-github-com-rs-zerolog,
go-go-uber-org-multierr, and go-gopkg-in-yaml-v3.

Change-Id: Iae3945377ec459bd018246bc4463dab580e3d367
---
 gnu/packages/configuration-management.scm | 42 +--
 1 file changed, 17 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/configuration-management.scm 
b/gnu/packages/configuration-management.scm
index 66ce87f944..6d81f0dcac 100644
--- a/gnu/packages/configuration-management.scm
+++ b/gnu/packages/configuration-management.scm
@@ -81,47 +81,37 @@
   "secretlastpass.txt"
   "secretonepassword.txt"
   "secretpass.txt"
-  ;; FIXME: Pattern embedded: cannot embed directory embedded:
-  ;; contains no embeddable files.
+  ;; TODO: Implement it in go-build-system.
   ;;
   ;; This happens due to Golang can't determine the valid directory of
-  ;; the module which is sourced during setup environment phase, but
-  ;; easy resolved after coping to expected directory "vendor" within
-  ;; the current package, see details in Golang source:
+  ;; the module of embed file which is symlinked during setup
+  ;; environment phase, but easy resolved after coping file from the
+  ;; store to the build directory of the current package, see details
+  ;; in Golang source:
   ;;
   ;; - URL: 
   ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
   ;; - file: src/cmd/go/internal/load/pkg.go#L2059
-  (add-before 'build 'copy-input-to-vendor-directory
-(lambda* (#:key import-path #:allow-other-keys)
-  (with-directory-excursion (string-append "src/" import-path)
-(mkdir "vendor")
-(copy-recursively
- (string-append
-  #$(this-package-native-input 
"go-github-com-charmbracelet-glamour")
-  "/src/github.com")
- "vendor/github.com")
-(copy-recursively
- (string-append
-  #$(this-package-native-input 
"go-github-com-alecthomas-chroma-v2")
-  "/src/github.com")
- "vendor/github.com"
-  (add-before 'install 'remove-vendor-directory
-(lambda* (#:key import-path #:allow-other-keys)
-  (with-directory-excursion (string-append "src/" import-path)
-(delete-file-recursively "vendor")))
+  (add-after 'unpack 'fix-embed-files
+(lambda _
+  (for-each (lambda (file)
+  (let ((file-store-path (readlink file)))
+(delete-file file)
+(copy-recursively file-store-path file)))
+(find-files "src" (string-append "\\.xml$"
 (native-inputs
- (list go-github-com-alecthomas-chroma-v2
+ (list go-github-com-masterminds-sprig-v3
go-github-com-bmatcuk-doublestar-v2
go-github-com-charmbracelet-glamour
go-github-com-coreos-go-semver
go-github-com-go-git-go-git-v5
go-github-com-google-go-github-v33
go-github-com-google-renameio
-   go-github-com-masterminds-sprig-v3
+   go-github-com-muesli-combinator
go-github-com-pelletier-go-toml
go-github-com-pkg-diff
go-github-com-rogpeppe-go-internal
+   go-github-com-rs-zerolog
go-github-com-sergi-go-diff
go-github-com-spf13-cobra
go-github-com-spf13-viper
@@ -132,10 +122,12 @@
go-github-com-twpayne-go-xdg-v3
go-github-com-zalando-go-keyring
go-go-etcd-io-bbolt
+   go-go-uber-org-multierr
go-golang-org-x-oauth2
go-golang-org-x-sys
go-golang-org-x-term
go-gopkg-in-yaml-v2
+   go-gopkg-in-yaml-v3
go-howett-net-plist))
 (home-page "https://www.chezmoi.io/";)
 (synopsis "Personal configuration files manager")



36/169: gnu: go-github-com-golang-groupcache: Fix indentation.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 93452bce67b1b8eef3fc14801d21e50f5a0ccaae
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 13:54:45 2024 +0100

gnu: go-github-com-golang-groupcache: Fix indentation.

* gnu/packages/golang-web.scm (go-github-com-golang-groupcache): Fix 
indentation.

Change-Id: I40bf67a27f71844669deedd4106aec51760a0d46
---
 gnu/packages/golang-web.scm | 49 ++---
 1 file changed, 24 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 65456daddf..0f194b7046 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -1902,31 +1902,30 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.")
 (license license:expat)))
 
 (define-public go-github-com-golang-groupcache
-(package
-  (name "go-github-com-golang-groupcache")
-  (version "0.0.0-20210331224755-41bb18bfe9da")
-  (source
-   (origin
- (method git-fetch)
- (uri (git-reference
-   (url "https://github.com/golang/groupcache";)
-   (commit (go-version->git-ref version
- (file-name (git-file-name name version))
- (sha256
-  (base32 "07amgr8ji4mnq91qbsw2jlcmw6hqiwdf4kzfdrj8c4b05w4knszc"
-  (build-system go-build-system)
-  (arguments
-   (list #:import-path "github.com/golang/groupcache"))
-  (propagated-inputs
-   (list go-github-com-golang-protobuf))
-  (home-page "https://github.com/golang/groupcache";)
-  (synopsis "Groupcache is a caching and cache-filling library")
-  (description
-   "Groupcache is a caching and cache-filling library, intended
-as a replacement for memcached in many cases.  It provides a data loading
-mechanism with caching and de-duplication that works across a set of peer
-processes.")
-  (license license:asl2.0)))
+  (package
+(name "go-github-com-golang-groupcache")
+(version "0.0.0-20210331224755-41bb18bfe9da")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/golang/groupcache";)
+ (commit (go-version->git-ref version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "07amgr8ji4mnq91qbsw2jlcmw6hqiwdf4kzfdrj8c4b05w4knszc"
+(build-system go-build-system)
+(arguments
+ (list #:import-path "github.com/golang/groupcache"))
+(propagated-inputs
+ (list go-github-com-golang-protobuf))
+(home-page "https://github.com/golang/groupcache";)
+(synopsis "Groupcache is a caching and cache-filling library")
+(description
+ "Groupcache is a caching and cache-filling library, intended as a
+replacement for memcached in many cases.  It provides a data loading mechanism
+with caching and de-duplication that works across a set of peer processes.")
+(license license:asl2.0)))
 
 (define-public go-github-com-google-go-github
   (package



100/169: gnu: Add go-github-com-datadog-datadog-go.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 76c0269e9697e07670c84c46a090ac2baa096558
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 12:56:26 2024 +0100

gnu: Add go-github-com-datadog-datadog-go.

* gnu/packages/golang-web.scm (go-github-com-datadog-datadog-go): New 
variable.

Change-Id: Icff31fb07033cc41621835a4f6aa56e6a1e8f9ec
---
 gnu/packages/golang-web.scm | 37 +
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 1bce52ca9a..7fd440eecd 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -830,6 +830,43 @@ Any}.")
go-golang-org-x-net
go-golang-org-x-oauth2
 
+(define-public go-github-com-datadog-datadog-go
+  (package
+(name "go-github-com-datadog-datadog-go")
+(version "4.8.3")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/DataDog/datadog-go";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "03dc3ld9zyynhmslzlciry6rs06hvd1c5finjip9vj300xaybazl"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/DataDog/datadog-go"
+  #:phases
+  #~(modify-phases %standard-phases
+  ;; XXX: Workaround for go-build-system's lack of Go modules
+  ;; support.
+  (delete 'build)
+  (replace 'check
+(lambda* (#:key tests? import-path #:allow-other-keys)
+  (when tests?
+(with-directory-excursion (string-append "src/" import-path)
+  (invoke "go" "test" "-v" "./..."
+(native-inputs
+ (list go-github-com-stretchr-testify))
+(home-page "https://github.com/DataDog/datadog-go";)
+(synopsis "Golang client library to work with DataDog's API")
+(description
+ "@code{datadog-go} is a library that provides a
+@url{https://docs.datadoghq.com/developers/dogstatsd/?code-lang=go,@code{DogStatsD}}
+client in Golang.")
+(license license:expat)))
+
 (define-public go-github-com-emersion-go-imap
   (package
 (name "go-github-com-emersion-go-imap")



103/169: gnu: Add go-github-com-openhistogram-circonusllhist.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit c221aae61acf7dc8203b2e8471451cb430188d6c
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:06:40 2024 +0100

gnu: Add go-github-com-openhistogram-circonusllhist.

* gnu/packages/golang-xyz.scm (go-github-com-openhistogram-circonusllhist): 
New variable.

Change-Id: I02af4ee4552fe6d09e6727afe6e9098eba0bc0d0
---
 gnu/packages/golang-xyz.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 73f0317258..6367f13224 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5859,6 +5859,31 @@ levels per backend and logger.")
 specification-runtime-spec.")
 (license license:asl2.0)))
 
+(define-public go-github-com-openhistogram-circonusllhist
+  (package
+(name "go-github-com-openhistogram-circonusllhist")
+(version "0.4.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/openhistogram/circonusllhist";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0ngngjzl3nd30csqvp0gp2qa1hsskl3rh4fgslygvf4p34s42jxk"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/openhistogram/circonusllhist"))
+(home-page "https://github.com/circonus-labs/circonusllhist";)
+(synopsis "OpenHistogram log-linear histograms in Golang")
+(description
+ "Package circllhist provides an implementation of Circonus fixed
+log-linear histogram data structure.  This allows tracking of histograms in a
+composable way such that accurate error can be reasoned about.")
+(license license:bsd-3)))
+
 (define-public go-github-com-openprinting-goipp
   (package
 (name "go-github-com-openprinting-goipp")



110/169: gnu: Add go-github-com-xlab-treeprint.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 2bce28645f6654e75e9858c5314035afe2f31e89
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:41:56 2024 +0100

gnu: Add go-github-com-xlab-treeprint.

* gnu/packages/golang-xyz.scm (go-github-com-xlab-treeprint): New variable.

Change-Id: I5bd6543c5a34881a6a1c084bdb006c6086c312e4
---
 gnu/packages/golang-xyz.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 8686f3f286..192d41183d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7213,6 +7213,31 @@ string.  The string can be a string retorned for 
@code{time.Duration} or a
 similar string with weeks or days too.")
 (license license:bsd-3)))
 
+(define-public go-github-com-xlab-treeprint
+  (package
+(name "go-github-com-xlab-treeprint")
+(version "1.2.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/xlab/treeprint";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "00k1xj3rwqa5f6n9fks8bh1m7vzssdjwxnam9kzy0rlbc74lgkl3"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/xlab/treeprint"))
+(native-inputs
+ (list go-github-com-stretchr-testify))
+(home-page "https://github.com/xlab/treeprint";)
+(synopsis "ASCII tree composing tool")
+(description
+ "This package provides a simple ASCII tree composing tool.")
+(license license:expat)))
+
 (define-public go-github-com-yuin-gopher-lua
   (package
 (name "go-github-com-yuin-gopher-lua")



157/169: gnu: packages/high-availability: Remove golang module.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 58ff11e482fe3b4a013a7e2c94586b30d2f07a1b
Author: Sharlatan Hellseher 
AuthorDate: Wed Sep 25 15:10:32 2024 +0100

gnu: packages/high-availability: Remove golang module.

Do not import not required module.

Change-Id: I2cb09c65d9e587add5def8a7c9087e89f40860c8
---
 gnu/packages/high-availability.scm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gnu/packages/high-availability.scm 
b/gnu/packages/high-availability.scm
index 171b0b5588..9ae8dd14b3 100644
--- a/gnu/packages/high-availability.scm
+++ b/gnu/packages/high-availability.scm
@@ -37,7 +37,6 @@
   #:use-module (gnu packages gcc)
   #: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-compression)



124/169: gnu: go-github-com-matttproud-golang-protobuf-extensions-v2: Fix build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 410f561e1359f466c01428026a8fc8a618456691
Author: Sharlatan Hellseher 
AuthorDate: Mon Sep 16 12:04:25 2024 +0100

gnu: go-github-com-matttproud-golang-protobuf-extensions-v2: Fix build.

* gnu/packages/golang-xyz.scm 
(go-github-com-matttproud-golang-protobuf-extensions-v2):
Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: Id19ae90a13788a454ac11089dabf71ce399b20db
---
 gnu/packages/golang-xyz.scm | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 82002ba665..3cb3d08f1c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5087,6 +5087,24 @@ other directories.  It is optimized for filewalking.")
   #:import-path "github.com/matttproud/golang_protobuf_extensions/v2"
   #:phases
   #~(modify-phases %standard-phases
+  ;; TODO: Implement it in go-build-system.
+  ;;
+  ;; This happens due to Golang can't determine the valid directory of
+  ;; the module of embed file which is symlinked during setup
+  ;; environment phase, but easy resolved after coping file from the
+  ;; store to the build directory of the current package, see details
+  ;; in Golang source:
+  ;;
+  ;; - URL: 
+  ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+  ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+  (add-after 'unpack 'fix-embed-files
+(lambda _
+  (for-each (lambda (file)
+  (let ((file-store-path (readlink file)))
+(delete-file file)
+(copy-recursively file-store-path file)))
+(find-files "src" ".*(editions_defaults.binpb)$"
   ;; XXX: Activate when go-build-system supports submodules.
   (delete 'build)
   ;; XXX: Replace when go-build-system supports nested path.



154/169: gnu: Add go-github-com-pkg-browser.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 11390d54a82dc4d969750494973e8c13b45fd2b0
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 22:38:09 2024 +0100

gnu: Add go-github-com-pkg-browser.

* gnu/packages/golang-web.scm (go-github-com-pkg-browser): New variable.

Change-Id: I02b0c499dbde8dfd9862df61def348fcec381fb9
---
 gnu/packages/golang-web.scm | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index e2f50ad1eb..fecbc906e9 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -4808,6 +4808,32 @@ are supported. @acronym{TLV, tag-length-value} parsers 
extensions comming with
 this library support AWS, Azure and GCP.")
 (license license:asl2.0)))
 
+(define-public go-github-com-pkg-browser
+  (package
+(name "go-github-com-pkg-browser")
+(version "0.0.0-20240102092130-5ac0b6a4141c")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/pkg/browser";)
+ (commit (go-version->git-ref version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "05m0baqy1grd42by3vgih55473fa98cz2psyakbmf0swg8f949pn"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/pkg/browser"))
+(propagated-inputs (list go-golang-org-x-sys))
+(home-page "https://github.com/pkg/browser";)
+(synopsis "Helpers to open files, readers, and URLs in a browser window")
+(description
+ "Package browser provides helpers to open files, readers, and urls in a
+browser window.  The choice of which browser is started is entirely client
+dependant.")
+(license license:bsd-2)))
+
 (define-public go-github-com-pkg-sftp
   (package
 (name "go-github-com-pkg-sftp")



112/169: gnu: Add go-github-com-dgryski-go-ddmin.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 52f21c8d5eda0ba17f2e35a6d8a35d9fa2806ca7
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:53:52 2024 +0100

gnu: Add go-github-com-dgryski-go-ddmin.

* gnu/packages/golang-check.scm (go-github-com-dgryski-go-ddmin): New 
variable.

Change-Id: I8f5a15fb55c2166ee99b6099423c014860f8ee71
---
 gnu/packages/golang-check.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 11a8e365f9..7f1c566982 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -219,6 +219,31 @@ style).
 @end itemize")
 (license license:isc)))
 
+(define-public go-github-com-dgryski-go-ddmin
+  (package
+(name "go-github-com-dgryski-go-ddmin")
+(version "0.0.0-20210904190556-96a6d69f1034")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/dgryski/go-ddmin";)
+ (commit (go-version->git-ref version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0rgv4km7nffsjlyc4jkzy68mzhy38l7fdv7h5szv36wri7cx7n77"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/dgryski/go-ddmin"))
+(home-page "https://github.com/dgryski/go-ddmin";)
+(synopsis "Delta-minimization algorithm in Golang")
+(description
+ "Package ddmin implements the
+@url{https://users.cs.utah.edu/~regehr/papers/mintest.pdf, delta-minimization}
+test minimization algorithm.")
+(license license:bsd-2)))
+
 (define-public go-github-com-elgris-jsondiff
   (package
 (name "go-github-com-elgris-jsondiff")



168/169: gnu: go-github-com-subosito-gotenv: Move to golang-xyz.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 601cce700b489f77d62910a4ec6398964d5953b0
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 26 11:34:41 2024 +0100

gnu: go-github-com-subosito-gotenv: Move to golang-xyz.

* gnu/packages/golang.scm (go-github-com-subosito-gotenv): Move from
here ...
* gnu/packages/golang-xyz.scm: ... to here.

Change-Id: Ic9733d34808da599536a34b33caad88707f8ebb7
---
 gnu/packages/golang-xyz.scm | 27 +++
 gnu/packages/golang.scm | 26 --
 2 files changed, 27 insertions(+), 26 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 3de97af62a..d66c96f577 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6855,6 +6855,33 @@ well as a program to generate applications and command 
files.")
 slices, JSON and other data.")
 (license license:expat)))
 
+(define-public go-github-com-subosito-gotenv
+  (package
+(name "go-github-com-subosito-gotenv")
+(version "1.6.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/subosito/gotenv";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0h7kb9mc67rl16kvls2d16pimdrz59l5x4l002qsv2p2766mpjif"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/subosito/gotenv"))
+(native-inputs
+ (list go-github-com-stretchr-testify))
+(propagated-inputs
+ (list go-golang-org-x-text))
+(home-page "https://github.com/subosito/gotenv";)
+(synopsis "Go library for loading environment variables from files")
+(description
+ "Go library for loading environment variables from files")
+(license license:expat)))
+
 (define-public go-github-com-syndtr-goleveldb
   (package
 (name "go-github-com-syndtr-goleveldb")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5a37ace650..9536089abf 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3348,32 +3348,6 @@ updating files, like @command{tail -f}.")
 (description "Java properties scanner for Go")
 (license license:bsd-2)))
 
-(define-public go-github-com-subosito-gotenv
-  (package
-(name "go-github-com-subosito-gotenv")
-(version "1.6.0")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/subosito/gotenv";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256
-(base32
- "0h7kb9mc67rl16kvls2d16pimdrz59l5x4l002qsv2p2766mpjif"
-(build-system go-build-system)
-(arguments
- `(#:import-path "github.com/subosito/gotenv"))
-(native-inputs
- (list go-github-com-stretchr-testify))
-(propagated-inputs
- (list go-golang-org-x-text))
-(home-page "https://github.com/subosito/gotenv";)
-(synopsis "Go library for loading environment variables from files")
-(description "Go library for loading environment variables from files")
-(license license:expat)))
-
 (define-public go-github-com-sirupsen-logrus
   (package
 (name "go-github-com-sirupsen-logrus")



153/169: gnu: go-github-com-operatorfoundation-shapeshifter-transports: Fix build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 48a4a8e3cee8a7ae94f4f8c36c079e5cab948924
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 22:16:20 2024 +0100

gnu: go-github-com-operatorfoundation-shapeshifter-transports: Fix build.

* gnu/packages/golang.scm 
(go-github-com-operatorfoundation-shapeshifter-transports)
[propagated-inputs]: Remove
go-github-com-operatorfoundation-monolith-go; add
go-github-com-operatorfoundation-monolith-go-1.0.4

(go-github-com-operatorfoundation-monolith-go-1.0.4): New variable.

Change-Id: I858a0ca47f448985a563f2e0fce8c6a7c6de7ca7
---
 gnu/packages/golang.scm | 19 ++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 917e7da58c..10e89dc0f7 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1241,7 +1241,7 @@ cluster segmentation algorithm.")
go-github-com-kataras-golog
go-github-com-mufti1-interconv
go-github-com-opentracing-opentracing-go
-   go-github-com-operatorfoundation-monolith-go
+   go-github-com-operatorfoundation-monolith-go-1.0.4
go-github-com-operatorfoundation-obfs4
go-github-com-operatorfoundation-shapeshifter-ipc
go-github-com-shadowsocks-go-shadowsocks2
@@ -1671,6 +1671,23 @@ configuration file.")
 (description "Monolith-Go is a Go library for working with byte 
sequences.")
 (license license:expat)))
 
+;; To build bitmask 0.21.11, remove when it's updated.
+(define-public go-github-com-operatorfoundation-monolith-go-1.0.4
+  (package
+(inherit go-github-com-operatorfoundation-monolith-go)
+(name "go-github-com-operatorfoundation-monolith-go")
+(version "1.0.4")
+(source
+ (origin
+   (method git-fetch)
+   (uri
+(git-reference
+ (url "https://github.com/OperatorFoundation/monolith-go";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "066bqlgw5h7a3kxswqlv734asb7nw2y6snsn09yqk0ixj23qw22s"))
+
 (define-public go-github-com-dpotapov-go-spnego
   (let ((commit "298b63a544303a239753d04314aada5bdbad7e4a")
 (revision "0"))



143/169: gnu: Remove go-github.com-smartystreets-gunit.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit b2ce5370c4c2b0284ef167f40da28048ca562851
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 20:36:59 2024 +0100

gnu: Remove go-github.com-smartystreets-gunit.

Upstream is changed to https://github.com/smarty/gunit.

* gnu/packages/golang-check.scm (go-github.com-smartystreets-gunit): Delete 
variable.

Change-Id: I2233ccc95d01c08e333954dffc312fd7c9a19bda
---
 gnu/packages/golang-check.scm | 29 -
 1 file changed, 29 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index afcbb4cb71..183b11fa5b 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1087,35 +1087,6 @@ test, can show test coverage and has a web user 
interface that will refresh
 automatically.")
 (license license:expat)))
 
-(define-public go-github.com-smartystreets-gunit
-  (package
-(name "go-github.com-smartystreets-gunit")
-(version "1.0.0")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/smartystreets/gunit";)
- (commit version)))
-   (file-name (git-file-name name version))
-   (sha256
-(base32 "00m4zg0kdj49mnpmf9klb44ba71p966xsk6zknrzqgfc8119f35z"
-(build-system go-build-system)
-(arguments
- '(;; TODO: This package depends on go-github.com-smartystreets-assertions
-   ;; for running the tests, but go-github.com-smartystreets-assertions
-   ;; depends on this package, so break this loop by not running the tests
-   ;; for this package.
-   #:tests? #f
-   #:import-path "github.com/smartystreets/gunit"))
-(home-page "https://github.com/smartystreets/gunit";)
-(synopsis "Testing tool for Go, in the style of xUnit")
-(description "@code{gunit} allows the test author to use a struct as the
-scope for a group of related test cases, in the style of xUnit fixtures.  This
-makes extraction of setup/teardown behavior (as well as invoking the system
-under test) much simpler.")
-(license license:expat)))
-
 (define-public go-github-com-smarty-assertions
   (package
 (name "go-github-com-smarty-assertions")



137/169: gnu: go-github.com-smartystreets-assertions: Rename variable.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 28041a51687c4179bd93665e99f52c6cd13f9e87
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 14:22:31 2024 +0100

gnu: go-github.com-smartystreets-assertions: Rename variable.

* gnu/packages/golang-check.scm (go-github.com-smartystreets-assertions):
Rename variable to go-github-com-smartystreets-assertions to follow
current package style.
(go-github.com-smartystreets-goconvey) [propagated-inputs]: Remove
go-github.com-smartystreets-assertions; add
go-github-com-smartystreets-assertions.

Change-Id: Ic25602f52b9d4717a5101648b402f61d1957cb1a
---
 gnu/packages/golang-check.scm | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 7f1c566982..90c0d8bd8f 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1060,9 +1060,9 @@ such as readers and writers that fail after N consecutive 
reads/writes.")
 execution when a test fails.")
 (license license:expat)))
 
-(define-public go-github.com-smartystreets-assertions
+(define-public go-github-com-smartystreets-assertions
   (package
-(name "go-github.com-smartystreets-assertions")
+(name "go-github-com-smartystreets-assertions")
 (version "1.13.0")
 (source
  (origin
@@ -1109,7 +1109,8 @@ functions for writing tests in Go.")
 (arguments
  '(#:import-path "github.com/smartystreets/goconvey"))
 (propagated-inputs
- (list go-github-com-jtolds-gls go-github.com-smartystreets-assertions))
+ (list go-github-com-jtolds-gls
+   go-github-com-smartystreets-assertions))
 (home-page "https://github.com/smartystreets/goconvey";)
 (synopsis "Go testing tool with both a web and terminal user interface")
 (description "GoConvey is a testing tool for Go. It integrates with go



89/169: gnu: go-github-com-go-git-go-git-v5: Update style.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit e5f054a61013cf520219ef832147e8fd498c3730
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 23:37:25 2024 +0100

gnu: go-github-com-go-git-go-git-v5: Update style.

* gnu/packages/version-control.scm (go-github-com-go-git-go-git-v5):
Apply G-expression.

Change-Id: I80fd085c8ea9bda9d7be45ee8965bbea50117516
---
 gnu/packages/version-control.scm | 31 +++
 1 file changed, 15 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 7686a21bd5..ac0c60404d 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -3846,22 +3846,21 @@ defects faster.")
 "1vkcmhh2qq8c38sjbnzf0wvg2rzr19wssaq177bsvrjwj1xz1qbs"
 (build-system go-build-system)
 (arguments
- `(#:tests? #f ;requires network connection
-   #:import-path "github.com/go-git/go-git/v5"
-   #:phases
-   (modify-phases %standard-phases
- (add-before 'build 'setup
-   (lambda* (#:key inputs #:allow-other-keys)
- (let* ((git (assoc-ref inputs "git"))
-(git-bin (string-append (assoc-ref inputs "git") "/bin"))
-(git-exe (string-append git-bin "/git")))
-   (setenv "GIT_DIST_PATH=" git)
-   (setenv "GIT_EXEC_PATH=" git-bin)
-   (setenv "HOME" (getcwd))
-   (invoke git-exe "config" "--global" "user.email" 
"g...@example.com")
-   (invoke git-exe "config" "--global" "user.name" "GitHub 
Actions")
-   #t)
- #t)
+ (list
+  #:tests? #f ;requires network connection
+  #:import-path "github.com/go-git/go-git/v5"
+  #:phases
+  #~(modify-phases %standard-phases
+  (add-before 'build 'setup
+(lambda* (#:key inputs #:allow-other-keys)
+  (let* ((git #$(this-package-native-input "git"))
+ (git-bin (string-append git "/bin"))
+ (git-exe (string-append git-bin "/git")))
+(setenv "GIT_DIST_PATH=" git)
+(setenv "GIT_EXEC_PATH=" git-bin)
+(setenv "HOME" (getcwd))
+(invoke git-exe "config" "--global" "user.email" 
"g...@example.com")
+(invoke git-exe "config" "--global" "user.name" "GitHub 
Actions")))
 (propagated-inputs
  (list go-github-com-alcortesm-tgz
go-github-com-emirpasic-gods



102/169: gnu: Add go-github-com-datadog-datadog-go-v5.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit f4eb8c463bf8fd88c1485302dee558e458f5e661
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 13:10:24 2024 +0100

gnu: Add go-github-com-datadog-datadog-go-v5.

* gnu/packages/golang-web.scm (go-github-com-datadog-datadog-go-v5): New 
variable.

Change-Id: I34410ef0cbe8ed655eeb8bc5b051c822c5b02523
---
 gnu/packages/golang-web.scm | 22 ++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 7fd440eecd..a00cd1e0d3 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -867,6 +867,28 @@ Any}.")
 client in Golang.")
 (license license:expat)))
 
+(define-public go-github-com-datadog-datadog-go-v5
+  (package
+(inherit go-github-com-datadog-datadog-go)
+(name "go-github-com-datadog-datadog-go-v5")
+(version "5.5.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/DataDog/datadog-go";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "05cw8n2hv8sa6s4qi4xkkv75y9bzn5qdqx1hv5g9h49cw92rkcas"
+(arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-datadog-datadog-go)
+   ((#:import-path _) "github.com/DataDog/datadog-go/v5")))
+(native-inputs
+ (modify-inputs (package-native-inputs go-github-com-datadog-datadog-go)
+   (append go-github-com-golang-mock)
+
 (define-public go-github-com-emersion-go-imap
   (package
 (name "go-github-com-emersion-go-imap")



138/169: gnu: go-github.com-smartystreets-goconvey: Rename variable.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 4bcea922e5a9ae14f525c8ecf4006724e505d75c
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 14:26:21 2024 +0100

gnu: go-github.com-smartystreets-goconvey: Rename variable.

* gnu/packages/golang-check.scm (go-github.com-smartystreets-goconvey):
Rename variable to go-github-com-smartystreets-goconvey.
* gnu/packages/golang-xyz.scm (go-github-com-polydawn-refmt)
[propagated-inputs]: Remove go-github.com-smartystreets-goconvey; add
go-github-com-smartystreets-goconvey.
* gnu/packages/golang.scm (go-gopkg-in-ini) [native-inputs] Remove
go-github.com-smartystreets-goconvey; add

go-github-com-smartystreets-goconvey.

Change-Id: Ibde73bf974edadb90236a6c0d2dcee6545860e6e
---
 gnu/packages/golang-check.scm | 4 ++--
 gnu/packages/golang-xyz.scm   | 2 +-
 gnu/packages/golang.scm   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 90c0d8bd8f..7f9fd3499c 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1092,9 +1092,9 @@ execution when a test fails.")
 functions for writing tests in Go.")
 (license license:expat)))
 
-(define-public go-github.com-smartystreets-goconvey
+(define-public go-github-com-smartystreets-goconvey
   (package
-(name "go-github.com-smartystreets-goconvey")
+(name "go-github-com-smartystreets-goconvey")
 (version "1.6.3")
 (source
  (origin
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 2d9fab9b0d..3e0a51928d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6127,7 +6127,7 @@ Pion}.")
 (propagated-inputs
  (list go-github-com-urfave-cli
go-github-com-warpfork-go-wish
-   go-github.com-smartystreets-goconvey
+   go-github-com-smartystreets-goconvey
go-gopkg-in-yaml-v2))
 (home-page "https://github.com/polydawn/refmt/";)
 (synopsis "Object mapping for Go language")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index da5eb30778..a51a373341 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7394,7 +7394,7 @@ aware of your profiles and configuration in 
~/.aws/config.")
 "1dm9ydqyflasp5li22kb0w73s6kp2swii8naqfhnz64v171gmm5v"
 (build-system go-build-system)
 (native-inputs
- (list go-github.com-smartystreets-goconvey))
+ (list go-github-com-smartystreets-goconvey))
 (arguments
  '(#:import-path "gopkg.in/ini.v1"
#:phases %standard-phases))



159/169: gnu: go-github-com-dustin-go-humanize: Move to golang-xyz.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 4b513b4ac2567691431125aeaf4a67e2b44fe884
Author: Sharlatan Hellseher 
AuthorDate: Wed Sep 25 15:16:40 2024 +0100

gnu: go-github-com-dustin-go-humanize: Move to golang-xyz.

* gnu/packages/golang.scm (go-github-com-dustin-go-humanize): Move from
here ...
* gnu/packages/golang-xyz.scm: ... to here.
* gnu/packages/uucp.scm: Add golang-xyz module.

Change-Id: Ic0913615d559ec255bf98abfab99383edf3c9a84
---
 gnu/packages/golang-xyz.scm | 25 +
 gnu/packages/golang.scm | 24 
 gnu/packages/uucp.scm   |  1 +
 3 files changed, 26 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index bdbf01b830..67fe09a6c8 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2020 Joseph LaFreniere 
 ;;; Copyright © 2020 Oleg Pykhalov 
 ;;; Copyright © 2020, 2021 raingloom 
+;;; Copyright © 2021 Arun Isaac 
 ;;; Copyright © 2021 Collin J. Doering 
 ;;; Copyright © 2021 Guillaume Le Vaillant 
 ;;; Copyright © 2021 Guix Together 
@@ -2375,6 +2376,30 @@ Implements string conversion functionality for unit 
prefixes.
 scanner API made public.")
 (license license:bsd-3)))
 
+(define-public go-github-com-dustin-go-humanize
+  (package
+(name "go-github-com-dustin-go-humanize")
+(version "1.0.1")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/dustin/go-humanize";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1iyhd90pnmxh64nhsh6k02c1b1glpmhh4whga9jgb9g0i5hz3sya"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/dustin/go-humanize"))
+(home-page "https://github.com/dustin/go-humanize";)
+(synopsis "Humane unit formatter")
+(description
+ "@code{go-humanize} provides formatters for units to human friendly
+sizes.  It converts boring ugly numbers to human-friendly strings and back.")
+(license license:expat)))
+
 (define-public go-github-com-edsrzf-mmap-go
   (package
 (name "go-github-com-edsrzf-mmap-go")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ccd77542f8..50fe79bb72 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6878,30 +6878,6 @@ the External Data Representation (XDR) standard protocol 
as specified in RFC
 4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.")
 (license license:isc)))
 
-(define-public go-github-com-dustin-go-humanize
-  (package
-(name "go-github-com-dustin-go-humanize")
-(version "1.0.1")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/dustin/go-humanize";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256
-(base32
- "1iyhd90pnmxh64nhsh6k02c1b1glpmhh4whga9jgb9g0i5hz3sya"
-(build-system go-build-system)
-(arguments
- '(#:import-path "github.com/dustin/go-humanize"))
-(home-page "https://github.com/dustin/go-humanize";)
-(synopsis "Humane unit formatter")
-(description "@code{go-humanize} provides formatters for units to human
-friendly sizes.  It converts boring ugly numbers to human-friendly strings and
-back.")
-(license license:expat)))
-
 (define-public go-gopkg-in-djherbis-times-v1
   (package
 (name "go-gopkg-in-djherbis-times-v1")
diff --git a/gnu/packages/uucp.scm b/gnu/packages/uucp.scm
index 34de6bdec9..96949f01e9 100644
--- a/gnu/packages/uucp.scm
+++ b/gnu/packages/uucp.scm
@@ -23,6 +23,7 @@
   #:use-module (gnu packages golang-compression)
   #:use-module (gnu packages golang-crypto)
   #:use-module (gnu packages golang-web)
+  #:use-module (gnu packages golang-xyz)
   #:use-module (gnu packages texinfo)
   #:use-module (guix licenses)
   #:use-module (guix packages)



150/169: gnu: go-github-com-emersion-go-autostart: Update to 0.0.0-20210130080809-00ed301c8e9a.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 1a88bb390494ab4347d33158ea86bafadcf9451a
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 21:44:29 2024 +0100

gnu: go-github-com-emersion-go-autostart: Update to 
0.0.0-20210130080809-00ed301c8e9a.

* gnu/packages/golang.scm (go-github-com-emersion-go-autostart): Update to 
0.0.0-20210130080809-00ed301c8e9a.

Change-Id: I103e0c9d4d89317371458737af6a33f7d0d3005b
---
 gnu/packages/golang.scm | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ed2572e0ae..a7eb0a915d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2316,18 +2316,16 @@ running with its management port enabled.")
   (license license:expat
 
 (define-public go-github-com-emersion-go-autostart
-  (let ((commit "00ed301c8e9ae79e82878c6361c709983ac5dd2c")
-(revision "0"))
 (package
   (name "go-github-com-emersion-go-autostart")
-  (version (git-version "0.0.0" revision commit))
+  (version "0.0.0-20210130080809-00ed301c8e9a")
   (source
(origin
  (method git-fetch)
  (uri
   (git-reference
(url "https://github.com/emersion/go-autostart";)
-   (commit commit)))
+   (commit (go-version->git-ref version
  (file-name (git-file-name name version))
  (sha256
   (base32 "0cqqvbzn32xv5lknfygrx01rx2sc6pi833k7008nlk9lsfgry06v"
@@ -2337,7 +2335,7 @@ running with its management port enabled.")
   (home-page "https://github.com/emersion/go-autostart";)
   (synopsis "Autostart library in Go")
   (description "Go-Autostart is a Go library to run a command after 
login.")
-  (license license:expat
+  (license license:expat)))
 
 (define-public go-github-com-dchest-siphash
   (package



96/169: gnu: Add go-go-opentelemetry-io-otel-sdk.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 193227a8a43fda10aead13ccd0cbfa6c513eaeb4
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 13:43:11 2024 +0100

gnu: Add go-go-opentelemetry-io-otel-sdk.

* gnu/packages/golang-web.scm (go-go-opentelemetry-io-otel-sdk): New 
variable.

Change-Id: I170133ed9d2d85d33d8a4ee66624382a34fac06b
---
 gnu/packages/golang-web.scm | 54 +
 1 file changed, 54 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index da09e9e2e0..c7dcb232e1 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -5588,6 +5588,60 @@ 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-sdk
+  (package
+(name "go-go-opentelemetry-io-otel-sdk")
+(version "1.30.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/open-telemetry/opentelemetry-go";)
+ (commit (go-version->git-ref version #:subdir "sdk"
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0mpkwz2ryah5j2fb835pdw9084nwhr6fj3jig2mnvwwnsymp2bvy"))
+   (modules '((guix build utils)
+  (ice-9 ftw)
+  (srfi srfi-26)))
+   (snippet
+#~(begin
+;; XXX: 'delete-all-but' is copied from the turbovnc package.
+;; Consider to implement it as re-usable procedure in
+;; guix/build/utils or guix/build-system/go.
+(define (delete-all-but directory . preserve)
+  (define (directory? x)
+(and=> (stat x #f)
+   (compose (cut eq? 'directory <>) stat:type)))
+  (with-directory-excursion directory
+(let* ((pred
+(negate (cut member <> (append '("." "..") preserve
+   (items (scandir "." pred)))
+  (for-each (lambda (item)
+  (if (directory? item)
+  (delete-file-recursively item)
+  (delete-file item)))
+items
+(delete-all-but "." "sdk")
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "go.opentelemetry.io/otel/sdk"
+  #:unpack-path "go.opentelemetry.io/otel"))
+(native-inputs
+ (list go-github-com-stretchr-testify))
+(propagated-inputs
+ (list go-github-com-go-logr-logr
+   go-github-com-google-go-cmp
+   go-github-com-google-uuid
+   go-go-opentelemetry-io-otel
+   go-golang-org-x-sys))
+(home-page "https://opentelemetry.io/";)
+(synopsis "OpenTelemetry Golang SDK")
+(description
+ "This package provides OpenTelemetry Otel SDK.")
+(license license:asl2.0)))
+
 (define-public go-golang-org-x-oauth2
   (package
 (name "go-golang-org-x-oauth2")



105/169: gnu: Add go-github-com-circonus-labs-circonus-gometrics.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 9483dca3564b7e6502e6848ed4bd3c4a4a95d286
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:06:48 2024 +0100

gnu: Add go-github-com-circonus-labs-circonus-gometrics.

* gnu/packages/golang-web.scm 
(go-github-com-circonus-labs-circonus-gometrics): New variable.

Change-Id: I5c03bc30e11d0b056198b8348ebf71646341f19f
---
 gnu/packages/golang-web.scm | 40 
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index e6a460bdfb..aac6a939de 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -722,6 +722,46 @@ and stop increasing when a certain threshold is met.")
 (description "This package provides a CSS parser and inliner.")
 (license license:expat)))
 
+(define-public go-github-com-circonus-labs-circonus-gometrics
+  (package
+(name "go-github-com-circonus-labs-circonus-gometrics")
+(version "2.3.1")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/circonus-labs/circonus-gometrics";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0s2wir711h0k2h8xsypgpzshccnx8jkwjfni7n32l7wd8yng9ngs"))
+   (modules '((guix build utils)))
+   (snippet
+#~(begin
+;; Module name has been changed upstream, permament redirect:
+;;  ->
+;; .
+(substitute* (find-files "." "\\.go$")
+  (("github.com/circonus-labs/circonusllhist")
+   "github.com/openhistogram/circonusllhist"))
+(build-system go-build-system)
+(arguments
+ (list
+  #:test-flags #~(list "-skip" "TestNew|TestFlushMetrics|TestPromOutput")
+  #:import-path "github.com/circonus-labs/circonus-gometrics"))
+(propagated-inputs
+ (list go-github-com-hashicorp-go-retryablehttp
+   go-github-com-openhistogram-circonusllhist
+   go-github-com-pkg-errors
+   go-github-com-tv42-httpunix))
+(home-page "https://github.com/circonus-labs/circonus-gometrics";)
+(synopsis "Circonus metrics tracking for Golang")
+(description
+ "This library supports named counters, gauges and histograms.  It also
+provides convenience wrappers for registering latency instrumented functions
+with Go's builtin http server.")
+(license license:bsd-3)))
+
 (define-public go-github-com-containerd-typeurl
   (package
 (name "go-github-com-containerd-typeurl")



116/169: gnu: Add go-msgp.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 109e06c1470bdc19a6a5b6d36d9a1c95f5de85d3
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 21:15:06 2024 +0100

gnu: Add go-msgp.

* gnu/packages/golang-xyz.scm (go-msgp): New variable.

Change-Id: Ia9b339e6ea413c6d3442ecdcda56e6ce0be5c87b
---
 gnu/packages/golang-xyz.scm | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 5cf6074074..82002ba665 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -8107,6 +8107,20 @@ correctly.")))
   #:unpack-path "github.com/libp2p/go-msgio"))
 (synopsis "CLI tool to wrap messages with msgio header.")))
 
+(define-public go-msgp
+  (package
+(inherit go-github-com-tinylib-msgp)
+(name "go-msgp")
+(arguments
+ (list
+  #:install-source? #f
+  #:tests? #f
+  #:import-path "github.com/tinylib/msgp"))
+(description
+ (string-append (package-description go-github-com-tinylib-msgp)
+" This package provides an command line interface (CLI)
+tool."
+
 (define-public go-numcpus
   (package
 (inherit go-github-com-tklauser-numcpus)



114/169: gnu: Add go-github-com-philhofer-fwd.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 008ecc0c717301ab5cdadbd0008c2e3ad0d89cf3
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:58:56 2024 +0100

gnu: Add go-github-com-philhofer-fwd.

* gnu/packages/golang-xyz.scm (go-github-com-philhofer-fwd): New variable.

Change-Id: Ibb873c8526892b1c05cef557ae1cd6caf9454d60
---
 gnu/packages/golang-xyz.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index e25df5f847..16e360dd4b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6097,6 +6097,31 @@ processes.")
  (list go-github-com-stretchr-testify))
 (propagated-inputs '(
 
+(define-public go-github-com-philhofer-fwd
+  (package
+(name "go-github-com-philhofer-fwd")
+(version "1.1.2")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/philhofer/fwd";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "083zlvna3mz37p91r4h8r7yvjqcvsgr9l5p0zidmk3ajq6gxds1p"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/philhofer/fwd"))
+(home-page "https://github.com/philhofer/fwd";)
+(synopsis "Buffered Reader/Writer for Goalng")
+(description
+ "Package fwd provides a buffered reader and writer.  Each has methods
+that help improve the encoding/decoding performance of some binary
+protocols.")
+(license license:expat)))
+
 (define-public go-github-com-pierrec-cmdflag
   (package
 (name "go-github-com-pierrec-cmdflag")



79/169: gnu: go-github-com-go-logr-logr: Update to 1.4.2.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit f1d72c6bfa3f38989a0b22d21cfd41b9cbbfb42d
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 12:48:07 2024 +0100

gnu: go-github-com-go-logr-logr: Update to 1.4.2.

* gnu/packages/golang-xyz.scm (go-github-com-go-logr-logr): Update to 1.4.2.

Change-Id: Idf6d8fccd9b85bfb9d4d4b60b640bdb43f16f22f
---
 gnu/packages/golang-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index fd6434e06b..9c53e465a6 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -2926,7 +2926,7 @@ logging.")
 (define-public go-github-com-go-logr-logr
   (package
 (name "go-github-com-go-logr-logr")
-(version "1.4.1")
+(version "1.4.2")
 (source
  (origin
(method git-fetch)
@@ -2935,7 +2935,7 @@ logging.")
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
-(base32 "0x0q9jkk2p5pz4lii1qs8ifnsib4ib5s8pigmjwdmagl976g8nhm"
+(base32 "03agibg7i25ppjak1yv4qzvbrv871qnfkmfy17did0h9ml7xh2nx"
 (build-system go-build-system)
 (arguments
  (list



142/169: gnu: Remove go-github-com-smartystreets-assertions.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 654976d0b41c2ca1a879f6ddee89f94005a8cb86
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 20:35:21 2024 +0100

gnu: Remove go-github-com-smartystreets-assertions.

Upstream is changed to https://github.com/smarty/assertions.

* gnu/packages/golang-check.scm (go-github-com-smartystreets-assertions): 
Delete variable.

Change-Id: Iafc9a609d34a5402ce8a2efccd48806a08851ae4
---
 gnu/packages/golang-check.scm | 32 
 1 file changed, 32 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index f2f25b3838..afcbb4cb71 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1060,38 +1060,6 @@ such as readers and writers that fail after N 
consecutive reads/writes.")
 execution when a test fails.")
 (license license:expat)))
 
-(define-public go-github-com-smartystreets-assertions
-  (package
-(name "go-github-com-smartystreets-assertions")
-(version "1.13.0")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/smartystreets/assertions";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256 (base32 
"0flf3fb6fsw3bk1viva0fzrzw87djaj1mqvrx2gzg1ssn7xzfrzr"
-(build-system go-build-system)
-(arguments
- (list
-  #:import-path "github.com/smartystreets/assertions"
-  #:phases
-  #~(modify-phases %standard-phases
-  (replace 'check
-(lambda* (#:key inputs #:allow-other-keys #:rest args)
-  (unless
-  ;; The tests fail when run with gccgo.
-  (false-if-exception (search-input-file inputs "/bin/gccgo"))
-(apply (assoc-ref %standard-phases 'check) args)))
-(native-inputs
- (list go-github.com-smartystreets-gunit))
-(home-page "https://github.com/smartystreets/assertions";)
-(synopsis "Assertions for testing with Go")
-(description "The @code{assertions} package provides convenient assertion
-functions for writing tests in Go.")
-(license license:expat)))
-
 (define-public go-github-com-smartystreets-goconvey
   (package
 (name "go-github-com-smartystreets-goconvey")



90/169: gnu: Add go-github-com-bmatcuk-doublestar-v3.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 32986ff303bb67cddcfcfadef06a13521bee5a5f
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 23:23:14 2024 +0100

gnu: Add go-github-com-bmatcuk-doublestar-v3.

* gnu/packages/golang.scm (go-github-com-bmatcuk-doublestar-v3): New 
variable.

Change-Id: I5d629750abef81f1b4f5ec8bb0cdb0e2f219d3e2
---
 gnu/packages/golang.scm | 21 -
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9a9d1504d7..9c941abe8f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5733,7 +5733,7 @@ maps (because they are not addressable using Go 
reflection).")
 matching and globbing with support for \"doublestar\" patterns.")
 (license license:expat)))
 
-;; For chezmoi-1.8.10
+;; For chezmoi-1.8.11
 (define-public go-github-com-bmatcuk-doublestar-v2
   (package
 (inherit go-github-com-bmatcuk-doublestar)
@@ -5754,6 +5754,25 @@ matching and globbing with support for \"doublestar\" 
patterns.")
   #:unpack-path "github.com/bmatcuk/doublestar/v2"
   #:import-path "github.com/bmatcuk/doublestar/v2"
 
+(define-public go-github-com-bmatcuk-doublestar-v3
+  (package
+(inherit go-github-com-bmatcuk-doublestar)
+(name "go-github-com-bmatcuk-doublestar-v3")
+(version "3.0.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/bmatcuk/doublestar";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "011h07mlmscbxxjr3h30fjjb4dw3gb245nzczaq520r112xlidhj"
+(arguments
+ (list
+  #:tests? #f ; tests have more broken parts
+  #:import-path "github.com/bmatcuk/doublestar/v3"
+
 (define-public go-github-com-bmatcuk-doublestar-v4
   (package
 (inherit go-github-com-bmatcuk-doublestar)



92/169: gnu: Add go-github-com-rs-zerolog.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 55387cb600a73c824289461dfd72b61ce2d7f4c9
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 23:23:03 2024 +0100

gnu: Add go-github-com-rs-zerolog.

* gnu/packages/golang-xyz.scm (go-github-com-rs-zerolog): New variable.

Change-Id: I66ff162e3dcc694f27d6d01fb00099d2d5de9abb
---
 gnu/packages/golang-xyz.scm | 29 +
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 802b7f549e..41efe69d5c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6212,6 +6212,35 @@ Included are the following:
 @end itemize\n")
 (license license:bsd-3)))
 
+(define-public go-github-com-rs-zerolog
+  (package
+(name "go-github-com-rs-zerolog")
+(version "1.33.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/rs/zerolog";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "14g5sy9n18k18pvzccdcvj5rqi670yw478yqm4n30hrfsdkm5jbp"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/rs/zerolog"))
+(propagated-inputs
+ (list go-github-com-coreos-go-systemd-v22
+   go-github-com-mattn-go-colorable
+   go-github-com-pkg-errors
+   go-github-com-rs-xid))
+(home-page "https://github.com/rs/zerolog";)
+(synopsis "Zero Allocation JSON Logger")
+(description
+ "Package zerolog provides a lightweight logging library dedicated to JSON
+logging.")
+(license license:expat)))
+
 (define-public go-github-com-schollz-progressbar-v3
   (package
 (name "go-github-com-schollz-progressbar-v3")



160/169: gnu: go-github-com-fsnotify-fsnotify: Move to golang-xyz.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 501b5e143b92c104840a17319c6c20f36c5f1b53
Author: Sharlatan Hellseher 
AuthorDate: Wed Sep 25 15:21:53 2024 +0100

gnu: go-github-com-fsnotify-fsnotify: Move to golang-xyz.

* gnu/packages/golang.scm (go-github-com-fsnotify-fsnotify): Move from
here ...
* gnu/packages/golang-xyz.scm: ... to here.

Change-Id: I56f234c1dbb956f97d9d733bc9d7b5dd572830f8
---
 gnu/packages/golang-xyz.scm | 25 +
 gnu/packages/golang.scm | 24 
 2 files changed, 25 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 67fe09a6c8..417f2f89c7 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -2846,6 +2846,31 @@ quoting, commenting, and escaping.")
   (home-page "https://github.com/flynn-archive/go-shlex";)
   (license license:asl2.0
 
+(define-public go-github-com-fsnotify-fsnotify
+  (package
+(name "go-github-com-fsnotify-fsnotify")
+(version "1.7.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/fsnotify/fsnotify";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1h7vs21lkj4bqbw5a6mqykaf56y181r0nja7c8pzajkvbsc39y8m"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/fsnotify/fsnotify"))
+(propagated-inputs
+ (list go-golang-org-x-sys))
+(home-page "https://github.com/fsnotify/fsnotify";)
+(synopsis "File system notifications for Go")
+(description
+ "File system notifications for Go")
+(license license:bsd-3)))
+
 (define-public go-github-com-fxamacker-cbor-v2
   (package
 (name "go-github-com-fxamacker-cbor-v2")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 50fe79bb72..8465603d67 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3302,30 +3302,6 @@ GNU extensions} to the POSIX recommendations for 
command-line options.")
 all types of configuration needs and formats.")
 (license license:expat)))
 
-(define-public go-github-com-fsnotify-fsnotify
-  (package
-(name "go-github-com-fsnotify-fsnotify")
-(version "1.7.0")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/fsnotify/fsnotify";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256
-(base32
- "1h7vs21lkj4bqbw5a6mqykaf56y181r0nja7c8pzajkvbsc39y8m"
-(build-system go-build-system)
-(arguments
- `(#:import-path "github.com/fsnotify/fsnotify"))
-(propagated-inputs
- `(("golang.org/x/sys" ,go-golang-org-x-sys)))
-(home-page "https://github.com/fsnotify/fsnotify";)
-(synopsis "File system notifications for Go")
-(description "File system notifications for Go")
-(license license:bsd-3)))
-
 (define-public go-github-com-nxadm-tail
   (package
 (name "go-github-com-nxadm-tail")



95/169: gnu: Add go-go-opentelemetry-io-otel.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 4778a47f4d3a988510aacd9ba26187799921315f
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 12:46:01 2024 +0100

gnu: Add go-go-opentelemetry-io-otel.

* gnu/packages/golang-web.scm (go-go-opentelemetry-io-otel): New variable.

Change-Id: I85c333ea576b1ebcc4373c8a06d50114a4d25325
---
 gnu/packages/golang-web.scm | 73 +
 1 file changed, 73 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 733ed9f5a7..da09e9e2e0 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -5515,6 +5515,79 @@ programming language.")
 programming language, which supports draft-04, draft-06 and draft-07.")
 (license license:asl2.0)))
 
+(define-public go-go-opentelemetry-io-otel
+  (package
+(name "go-go-opentelemetry-io-otel")
+(version "1.30.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/open-telemetry/opentelemetry-go";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0mpkwz2ryah5j2fb835pdw9084nwhr6fj3jig2mnvwwnsymp2bvy"))
+   (modules '((guix build utils)))
+   (snippet
+#~(begin
+;; Submodules with their own go.mod files and packed as separated
+;; packages:
+(for-each
+ delete-file-recursively
+ ;; Do not sort the list, it needs to be formatted with
+ ;; 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"
+   "sdk/log"
+   "internal/tools"
+   "exporters/zipkin"
+   "exporters/prometheus"
+   "example/zipkin"
+   "example/prometheus"
+   "example/passthrough"
+   "example/otel-collector"
+   "example/opencensus"
+   "example/namedtracer"
+   "example/dice"
+   "bridge/opentracing"
+   "bridge/opencensus"
+   ;; "trace"  - introduces a cycle, keep it
+   "sdk"
+   "schema"
+   ;; "metric" - introduces a cycle, keep it
+   "log"))
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "go.opentelemetry.io/otel"))
+(native-inputs
+ (list go-github-com-stretchr-testify))
+(propagated-inputs
+ (list go-github-com-go-logr-logr
+   go-github-com-go-logr-stdr
+   go-github-com-google-go-cmp))
+(home-page "https://opentelemetry.io/";)
+(synopsis "OpenTelemetry implementation for Golang")
+(description
+ "Package otel provides global access to the @code{OpenTelemetry} API.
+The subpackages of the otel package provide an implementation of the
+@code{OpenTelemetry} API.  This package contains 3 Golang modules:
+go.opentelemetry.io/otel, go.opentelemetry.io/otel/metric and
+go.opentelemetry.io/otel/trace.")
+(license license:asl2.0)))
+
 (define-public go-golang-org-x-oauth2
   (package
 (name "go-golang-org-x-oauth2")



139/169: gnu: Add go-github-com-smarty-assertions.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 3aa6ddb3a2f891b180bfa4e11ac612b66ab3556a
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 14:39:28 2024 +0100

gnu: Add go-github-com-smarty-assertions.

* gnu/packages/golang-check.scm (go-github-com-smarty-assertions): New 
variable.

Change-Id: Ibc87eb2810bb66f3ebc5b1f5a894dfcc7942a0bb
---
 gnu/packages/golang-check.scm | 28 
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 7f9fd3499c..7102146c25 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1147,6 +1147,34 @@ makes extraction of setup/teardown behavior (as well as 
invoking the system
 under test) much simpler.")
 (license license:expat)))
 
+(define-public go-github-com-smarty-assertions
+  (package
+(name "go-github-com-smarty-assertions")
+(version "1.16.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/smarty/assertions";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1kbl6h76mjvqkgszx81allhjzy8j331dbsb090rx134swbqs0pxc"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/smarty/assertions"))
+(home-page "https://github.com/smarty/assertions";)
+(synopsis "Fluent assertion-style functions")
+(description
+ "Package assertions contains the implementations for all assertions which
+are referenced in goconvey's
+@url{https://github.com/smartystreets/goconvey,@code{convey}} package and
+gunit @url{github.com/smarty/gunit,@code{gunit}} for use with the
+@code{So(...)}  method.  They can also be used in traditional Go test
+functions and even in applications.")
+(license license:expat)))
+
 (define-public go-go-etcd-io-gofail
   (package
 (name "go-go-etcd-io-gofail")



87/169: gnu: go-github-com-go-git-go-billy-v5: Move to golang-xyz.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 6bf3207708b17b094299a5881c80d4873560db94
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 22:35:21 2024 +0100

gnu: go-github-com-go-git-go-billy-v5: Move to golang-xyz.

* gnu/packages/golang.scm (go-github-com-go-git-go-billy-v5): Move from
here ...
* gnu/packages/golang-xyz.scm: ... to here.

Change-Id: I40d1c024b52f0530a80657d5a2416b27be93
---
 gnu/packages/golang-xyz.scm | 32 
 gnu/packages/golang.scm | 31 ---
 2 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 93d91fe8bf..802b7f549e 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -2901,6 +2901,38 @@ Differentiation between text and binary files}.
 @end itemize")
 (license license:expat)))
 
+(define-public go-github-com-go-git-go-billy-v5
+  (package
+(name "go-github-com-go-git-go-billy-v5")
+(version "5.5.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/go-git/go-billy";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1r7hfwc6lqnb7jhbbmicdlb3yipjyazq3pndpffw026fcq7jhxg1"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/go-git/go-billy/v5"))
+(native-inputs
+ (list go-github-com-onsi-gomega
+   go-gopkg-in-check-v1))
+(propagated-inputs
+ (list go-github-com-cyphar-filepath-securejoin
+   go-golang-org-x-sys))
+(home-page "https://github.com/go-git/go-billy/";)
+(synopsis "File system abstraction for Go")
+(description
+ "Billy implements an interface based on the OS's standard library to
+develop applications without depending on the underlying storage.  This makes
+it virtually free to implement mocks and testing over file system
+operations.")
+(license license:asl2.0)))
+
 (define-public go-github-com-go-git-go-git-fixtures-v4
   (package
 (name "go-github-com-go-git-go-git-fixtures-v4")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 677451c0d9..9a9d1504d7 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6029,37 +6029,6 @@ errors (warnings).")
 (description "Gcfg reads INI-style configuration files into Go structs.")
 (license license:bsd-3)))
 
-(define-public go-github-com-go-git-go-billy-v5
-  (package
-(name "go-github-com-go-git-go-billy-v5")
-(version "5.5.0")
-(source (origin
-  (method git-fetch)
-  (uri (git-reference
-(url "https://github.com/go-git/go-billy";)
-(commit (string-append "v" version
-  (file-name (git-file-name name version))
-  (sha256
-   (base32
-"1r7hfwc6lqnb7jhbbmicdlb3yipjyazq3pndpffw026fcq7jhxg1"
-(build-system go-build-system)
-(arguments
- (list
-  #:import-path "github.com/go-git/go-billy/v5"))
-(propagated-inputs
- (list go-github-com-cyphar-filepath-securejoin
-   go-golang-org-x-sys))
-(native-inputs
- (list go-github-com-onsi-gomega
-   go-gopkg-in-check-v1))
-(home-page "https://github.com/go-git/go-billy/";)
-(synopsis "File system abstraction for Go")
-(description "Billy implements an interface based on the OS's standard
-library to develop applications without depending on the underlying storage.
-This makes it virtually free to implement mocks and testing over
-file system operations.")
-(license license:asl2.0)))
-
 (define-public go-github-com-jba-templatecheck
   (package
 (name "go-github-com-jba-templatecheck")



140/169: gnu: Add go-github-com-smarty-gunit.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 17a2923e1e87fe4e7df82183158eeba60a95eb7f
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 14:44:46 2024 +0100

gnu: Add go-github-com-smarty-gunit.

* gnu/packages/golang-check.scm (go-github-com-smarty-gunit): New variable.

Change-Id: Ibfc07f1aaf4085b5241e2b9549f10e61f81a4187
---
 gnu/packages/golang-check.scm | 24 
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 7102146c25..aa5f12c9e9 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1175,6 +1175,30 @@ gunit @url{github.com/smarty/gunit,@code{gunit}} for use 
with the
 functions and even in applications.")
 (license license:expat)))
 
+(define-public go-github-com-smarty-gunit
+  (package
+(name "go-github-com-smarty-gunit")
+(version "1.5.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/smarty/gunit";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "13bcb1aq8yshmi5inn7np5lyqhsyy5hksridi8bxbjq35xrknskr"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/smarty/gunit"))
+(home-page "https://github.com/smarty/gunit";)
+(synopsis "Golang xUnit-style test fixture test adapter")
+(description
+ "Package gunit provides @code{testing} package hooks and convenience
+functions for writing tests in an @code{xUnit} style.")
+(license license:expat)))
+
 (define-public go-go-etcd-io-gofail
   (package
 (name "go-go-etcd-io-gofail")



161/169: gnu: Add go-github-com-caarlos0-testfs.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 784e892d6de64902d39a9cb6a644c57707185f38
Author: Sharlatan Hellseher 
AuthorDate: Thu Sep 26 10:59:38 2024 +0100

gnu: Add go-github-com-caarlos0-testfs.

* gnu/packages/golang-check.scm (go-github-com-caarlos0-testfs): New 
variable.

Change-Id: Iab47c0954592981c780a3e9a9afab1d0fe0f6e85
---
 gnu/packages/golang-check.scm | 24 
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 183b11fa5b..958b35f63d 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -119,6 +119,30 @@ value and call @code{t.Fatal()} if the assertion fails.")
 @end itemize")
 (license license:expat)))
 
+(define-public go-github-com-caarlos0-testfs
+  (package
+(name "go-github-com-caarlos0-testfs")
+(version "0.4.4")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/caarlos0/testfs";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0g7acw554f2d4y35qipdz5c627w83jxmq1z32d7nkpchzj0y7rf1"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/caarlos0/testfs"))
+(home-page "https://github.com/caarlos0/testfs";)
+(synopsis "Golang @code{fs.FS} implementation to be used inside tests")
+(description
+ "Package testfs provides a simple @code{fs.FS} which is contained in a
+test (using testing.TB's @code{TempDir}) and with a few helper methods.")
+(license license:expat)))
+
 (define-public go-github-com-cheekybits-is
   (let ((commit "68e9c0620927fb5427fda3708222d0edee89eae9")
 (revision "0"))



104/169: gnu: Add go-github-com-hashicorp-go-retryablehttp.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 8e0670cd65e82b3d009099836ebf64936f403faa
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:06:48 2024 +0100

gnu: Add go-github-com-hashicorp-go-retryablehttp.

* gnu/packages/golang-web.scm (go-github-com-hashicorp-go-retryablehttp): 
New variable.

Change-Id: I60bee5b1ae3cda325cc1be4636766f5ac65a
---
 gnu/packages/golang-web.scm | 29 +
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index a00cd1e0d3..e6a460bdfb 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2436,6 +2436,35 @@ the Go standard library, but returns a client that does 
not share any state
 with other clients.")
 (license license:mpl2.0)))
 
+(define-public go-github-com-hashicorp-go-retryablehttp
+  (package
+(name "go-github-com-hashicorp-go-retryablehttp")
+(version "0.7.7")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/hashicorp/go-retryablehttp";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "11bqzz3244vpa91l5bx8pp5pajbcg4qxrl8ic2x0qgwbrjfz362x"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/hashicorp/go-retryablehttp"))
+(propagated-inputs
+ (list go-github-com-hashicorp-go-hclog
+   go-github-com-hashicorp-go-cleanhttp))
+(home-page "https://github.com/hashicorp/go-retryablehttp";)
+(synopsis "Retryable HTTP client in Golang")
+(description
+ "Package retryablehttp provides a familiar HTTP client interface with
+automatic retries and exponential backoff.  It is a thin wrapper over the
+standard @code{net/http} client library and exposes nearly the same public
+API.")
+(license license:mpl2.0)))
+
 (define-public go-github-com-hjson-hjson-go-v4
   (package
 (name "go-github-com-hjson-hjson-go-v4")



72/169: gnu: go-github-com-google-uuid: Move to golang-build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 892274a268b9787ac8612a0b0703fae5f22f52c7
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 11:56:16 2024 +0100

gnu: go-github-com-google-uuid: Move to golang-build.

* gnu/packages/golang.scm (go-github-com-google-uuid): Move from here ...
* gnu/packages/golang-build.scm: ... to here.

Change-Id: Ie32c2ab29a0b7a1bbb7d63d40338d0a7a0bca988
---
 gnu/packages/golang-build.scm | 24 
 gnu/packages/golang.scm   | 22 --
 2 files changed, 24 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index 5c2f3efbbc..c7bed8133f 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -249,6 +249,30 @@ replace a file or symbolic link.")
  (list
   #:import-path "github.com/google/renameio/v2"
 
+(define-public go-github-com-google-uuid
+  (package
+(name "go-github-com-google-uuid")
+(version "1.6.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/google/uuid";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "131d01minir79dq6d4jq55018343yidl5cs2bfhynx1klnr7ssam"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/google/uuid"))
+(home-page "https://github.com/google/uuid/";)
+(synopsis "Generate and inspect UUIDs based on RFC 4122 and DCE 1.1")
+(description
+ "The uuid package generates and inspects UUIDs based on RFC 4122 and DCE
+1.1: Authentication and Security Services.")
+(license license:bsd-3)))
+
 (define-public go-github-com-yuin-goldmark
   (package
 (name "go-github-com-yuin-goldmark")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4b458dd761..991b80beea 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5263,28 +5263,6 @@ a cron spec parser and job runner.")
"This is a fork of another go-libvterm library for use with aerc.")
   (license license:expat
 
-(define-public go-github-com-google-uuid
-  (package
-(name "go-github-com-google-uuid")
-(version "1.6.0")
-(source (origin
-  (method git-fetch)
-  (uri (git-reference
-(url "https://github.com/google/uuid";)
-(commit (string-append "v" version
-  (file-name (git-file-name name version))
-  (sha256
-   (base32
-"131d01minir79dq6d4jq55018343yidl5cs2bfhynx1klnr7ssam"
-(build-system go-build-system)
-(arguments
- '(#:import-path "github.com/google/uuid"))
-(home-page "https://github.com/google/uuid/";)
-(synopsis "Generate and inspect UUIDs based on RFC 4122 and DCE 1.1")
-(description "The uuid package generates and inspects UUIDs based on RFC
-4122 and DCE 1.1: Authentication and Security Services.")
-(license license:bsd-3)))
-
 (define-public go-github-com-google-gopacket
   (package
 (name "go-github-com-google-gopacket")



141/169: gnu: go-github-com-smartystreets-goconvey: Update to v1.8.1.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit a067029f8886a600f089c06143a35593a35c9264
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 22 20:32:15 2024 +0100

gnu: go-github-com-smartystreets-goconvey: Update to v1.8.1.

* gnu/packages/golang-check.scm (go-github-com-smartystreets-goconvey): 
Update to v1.8.1.
[propagated-inputs]: Remove go-github-com-smartystreets-assertions; add
go-github-com-smarty-assertions and go-golang-org-x-tools.

Change-Id: I6846ee9b29c8f70af342b71a2083dd94442a
---
 gnu/packages/golang-check.scm | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index aa5f12c9e9..f2f25b3838 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1095,7 +1095,7 @@ functions for writing tests in Go.")
 (define-public go-github-com-smartystreets-goconvey
   (package
 (name "go-github-com-smartystreets-goconvey")
-(version "1.6.3")
+(version "v1.8.1")
 (source
  (origin
(method git-fetch)
@@ -1104,13 +1104,14 @@ functions for writing tests in Go.")
  (commit version)))
(file-name (git-file-name name version))
(sha256
-(base32 "1ph18rkl3ns3fgin5i4j54w5a69grrmf3apcsmnpdn1wlrbs3dxh"
+(base32 "0s9s7yd4jfwgirnz46kw1sfhgcgsdzfxlca6q16i6ixaqczfaap9"
 (build-system go-build-system)
 (arguments
  '(#:import-path "github.com/smartystreets/goconvey"))
 (propagated-inputs
  (list go-github-com-jtolds-gls
-   go-github-com-smartystreets-assertions))
+   go-github-com-smarty-assertions
+   go-golang-org-x-tools))
 (home-page "https://github.com/smartystreets/goconvey";)
 (synopsis "Go testing tool with both a web and terminal user interface")
 (description "GoConvey is a testing tool for Go. It integrates with go



57/169: gnu: go-golang-org-x-vuln: Enable tests.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 986ff9213bff2235304e4b211756e7522d7e93ca
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 10:44:40 2024 +0100

gnu: go-golang-org-x-vuln: Enable tests.

* gnu/packages/golang-build.scm (go-golang-org-x-vuln): Enable tests.

Change-Id: I489bbd6505b9bd1d7fe234fa7e361c7839a452f1
---
 gnu/packages/golang-build.scm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index 583b49ec59..79d56a1857 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -973,7 +973,6 @@ Go programming language.")
 (build-system go-build-system)
 (arguments
  (list
-  #:tests? #f ; it tires to download modules from the network
   #:import-path "golang.org/x/vuln"
   #:phases
   #~(modify-phases %standard-phases



25/169: gnu: go-golang-org-x-mod: Update to 0.21.0.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 1ba15529be60292286496fdcd9a61081f54bd94b
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 21:19:50 2024 +0100

gnu: go-golang-org-x-mod: Update to 0.21.0.

* gnu/packages/golang-build.scm (go-golang-org-x-mod): Update to 0.21.0.

Change-Id: Ic1ade4156426e10b2cb26c8b6271f3ff8a5e1631
---
 gnu/packages/golang-build.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index c41b5a3f32..4820a0870f 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -457,7 +457,7 @@ compile does not support generics.")
 (define-public go-golang-org-x-mod
   (package
 (name "go-golang-org-x-mod")
-(version "0.20.0")
+(version "0.21.0")
 (source
  (origin
(method git-fetch)
@@ -466,7 +466,7 @@ compile does not support generics.")
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
-(base32 "0vrzahgr08idiz9g2ksngwsjhyaa0rryn4vh0lm54kkxgv9pcv7f"
+(base32 "1rk4vbdrdmiaacx50a1q31hydidwl9rnlcl7rim3f535vyw01fxk"
 (build-system go-build-system)
 (arguments
  (list



108/169: gnu: Add go-github-com-hashicorp-go-immutable-radix.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 278902ddc4c480c615854fcf92e61c8ada0d379b
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 20:33:38 2024 +0100

gnu: Add go-github-com-hashicorp-go-immutable-radix.

* gnu/packages/golang-xyz.scm (go-github-com-hashicorp-go-immutable-radix,
go-github-com-hashicorp-go-immutable-radix-v2): New variables.

Change-Id: I2c5ed0acdaec49e91720ba71efd45e849855cb2b
---
 gnu/packages/golang-xyz.scm | 53 +
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 6367f13224..8686f3f286 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3535,6 +3535,59 @@ a command-line program @code{hclogvet} that can be used 
to check that the loggin
 methods on @code{hclog.Logger} are used correctly.")
 (license license:expat)))
 
+(define-public go-github-com-hashicorp-go-immutable-radix
+  (package
+(name "go-github-com-hashicorp-go-immutable-radix")
+(version "1.3.1")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/hashicorp/go-immutable-radix";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0s7sf8y5lj8rx4gdymrz29gg6y2xwksfpgniaz32yzcmg3c817zb"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/hashicorp/go-immutable-radix"))
+(propagated-inputs
+ (list go-github-com-hashicorp-golang-lru
+   go-github-com-hashicorp-go-uuid))
+(home-page "https://github.com/hashicorp/go-immutable-radix";)
+(synopsis "Immutable radix tree implementation in Golang")
+(description
+ "This package implements an immutable
+@url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.  It only provides a
+single @code{Tree} implementation, optimized for sparse nodes.")
+(license license:mpl2.0)))
+
+(define-public go-github-com-hashicorp-go-immutable-radix-v2
+  (package
+(inherit go-github-com-hashicorp-go-immutable-radix)
+(name "go-github-com-hashicorp-go-immutable-radix-v2")
+(version "2.1.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/hashicorp/go-immutable-radix";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1sik2rg6xldk87aqzx9dmpg4f2cwkk7ypdwsjqq131npx7jszxzr"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/hashicorp/go-immutable-radix/v2"))
+(propagated-inputs
+ (modify-inputs (package-propagated-inputs
+ go-github-com-hashicorp-go-immutable-radix)
+   (prepend go-golang-org-x-exp)
+   (replace "go-github-com-hashicorp-golang-lru"
+ go-github-com-hashicorp-golang-lru-v2)
+
 (define-public go-github-com-hashicorp-go-multierror
   (package
 (name "go-github-com-hashicorp-go-multierror")



01/169: gnu: go-github-com-lithammer-fuzzysearch: Enable tests.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit caa9b4cbcbdf6ba9db463b46479130d166945143
Author: Sharlatan Hellseher 
AuthorDate: Tue Sep 3 19:32:56 2024 +0100

gnu: go-github-com-lithammer-fuzzysearch: Enable tests.

* gnu/packages/golang.scm (go-github-com-lithammer-fuzzysearch): Enable 
tests.

Change-Id: Ib040db7321d33e2dfdefa37b59bcc095ea96dbb2
---
 gnu/packages/golang.scm | 17 +++--
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9f04b8e423..93ba338c7d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8223,12 +8223,17 @@ terminal.")
 (build-system go-build-system)
 (propagated-inputs (list go-golang-org-x-text))
 (arguments
- (list #:import-path "github.com/lithammer/fuzzysearch"
-   #:tests? #f ; Source-only package.
-   #:phases
-   #~(modify-phases %standard-phases
-   ;; Source-only package.
-   (delete 'build
+ (list
+  #:import-path "github.com/lithammer/fuzzysearch"
+  #:phases
+  #~(modify-phases %standard-phases
+  ;; XXX: Replace when go-build-system supports nested path.
+  (delete 'build)
+  (replace 'check
+(lambda* (#:key import-path tests? #:allow-other-keys)
+  (when tests?
+(with-directory-excursion (string-append "src/" import-path)
+  (invoke "go" "test" "-v" "./..."
 (home-page "https://github.com/lithammer/fuzzysearch";)
 (synopsis "Tiny and fast fuzzy search in Go")
 (description



51/169: gnu: go-github-com-google-go-cmdtest: Fix indentation

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 7fdedfbdee834cef1c43338550de1aba4fb2e96d
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 07:44:24 2024 +0100

gnu: go-github-com-google-go-cmdtest: Fix indentation

* gnu/packages/golang-check.scm (go-github-com-google-go-cmdtest): Fix 
indentation

Change-Id: I078f30d53c867805cbbab416f693ddee2a89d3df
---
 gnu/packages/golang-check.scm | 46 +--
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 73ebb9432e..71c8961e95 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -384,32 +384,32 @@ when comparing complex types like structures and maps.")
 (license license:bsd-3)))
 
 (define-public go-github-com-google-go-cmdtest
-(package
-  (name "go-github-com-google-go-cmdtest")
-  (version "0.4.0")
-  (source
-   (origin
- (method git-fetch)
- (uri (git-reference
-   (url "https://github.com/google/go-cmdtest";)
-   (commit (string-append "v" version
- (file-name (git-file-name name version))
- (sha256
-  (base32
-   "0zkghc60ymxmg19j90r6j7clq3xifh5m9kg1bgr4zpr5sv148x72"
-  (build-system go-build-system)
-  (arguments
-   '(#:import-path "github.com/google/go-cmdtest"))
-  (propagated-inputs
-   (list go-github-com-google-renameio go-github-com-google-go-cmp))
-  (home-page "https://github.com/google/go-cmdtest";)
-  (synopsis "Testing for your CLI")
-  (description
-   "The cmdtest package simplifies testing of command-line interfaces.  It
+  (package
+(name "go-github-com-google-go-cmdtest")
+(version "0.4.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/google/go-cmdtest";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0zkghc60ymxmg19j90r6j7clq3xifh5m9kg1bgr4zpr5sv148x72"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/google/go-cmdtest"))
+(propagated-inputs
+ (list go-github-com-google-renameio go-github-com-google-go-cmp))
+(home-page "https://github.com/google/go-cmdtest";)
+(synopsis "Testing for your CLI")
+(description
+ "The cmdtest package simplifies testing of command-line interfaces.  It
 provides a simple, cross-platform, shell-like language to express command
 execution.  It can compare actual output with the expected output, and can
 also update a file with new \"golden\" output that is deemed correct.")
-  (license license:asl2.0)))
+(license license:asl2.0)))
 
 (define-public go-github-com-google-gofuzz
   (let ((commit "fd52762d25a41827db7ef64c43756fd4b9f7e382")



99/169: gnu: Add go-github-com-gofrs-uuid.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 50402aff766db13ca4333a3d7aa37d760d435fca
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 12:49:02 2024 +0100

gnu: Add go-github-com-gofrs-uuid.

* gnu/packages/golang-xyz.scm (go-github-com-gofrs-uuid,
go-github-com-gofrs-uuid-v5): New variables.

Change-Id: I64e374868195315824348c5581f675d8e0b5c141
---
 gnu/packages/golang-xyz.scm | 43 +++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 4a82d3ecd5..73f0317258 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3301,6 +3301,49 @@ non-blocking @code{TryLock} function to allow locking 
without blocking
 execution.")
 (license license:bsd-3)))
 
+(define-public go-github-com-gofrs-uuid
+  (package
+(name "go-github-com-gofrs-uuid")
+(version "4.4.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/gofrs/uuid";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "13n5q70sdw39f2j9ya5l6n7475fv5b1vns7skv56yjh04chwl7p3"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/gofrs/uuid"))
+(home-page "https://github.com/gofrs/uuid";)
+(synopsis "UUID package for Golang")
+(description
+ "Package uuid provides implementations of the Universally Unique 
Identifier
+(UUID), as specified in RFC-4122 and the Peabody RFC Draft (revision 03).")
+(license license:expat)))
+
+(define-public go-github-com-gofrs-uuid-v5
+  (package
+(inherit go-github-com-gofrs-uuid)
+(name "go-github-com-gofrs-uuid-v5")
+(version "5.3.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/gofrs/uuid";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0fkyclwji4llkpcwwvpn00fc68mawdlz8ssf2x1vrmv33gps4icl"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/gofrs/uuid/v5"
+
 (define-public go-github-com-gogs-chardet
   (package
 (name "go-github-com-gogs-chardet")



53/169: gnu: go-github-com-google-renameio: Move to golang-build.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit d3802a0c019e1e4c00d699fdf87d99f0ef797333
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 10:08:07 2024 +0100

gnu: go-github-com-google-renameio: Move to golang-build.

* gnu/packages/golang-xyz.scm (go-github-com-google-renameio,
go-github-com-google-renameio-v2): Move from here ...
* gnu/packages/golang-build.scm: ... to here.

Change-Id: I0323f61120c42f1e4249a3279576d50789c418d8
---
 gnu/packages/golang-build.scm | 41 +
 gnu/packages/golang-xyz.scm   | 41 -
 2 files changed, 41 insertions(+), 41 deletions(-)

diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index f81da8205c..9d9297029f 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -180,6 +180,47 @@ alternative to @code{reflect.DeepEqual} for comparing 
whether two values are
 semantically equal.")
 (license license:bsd-3)))
 
+(define-public go-github-com-google-renameio
+  (package
+(name "go-github-com-google-renameio")
+(version "1.0.1")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/google/renameio";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1qn84nra9nxqyqg4i496b6ijbhnxvx66hdndwl7qh7r6q8lz2ba5"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/google/renameio"))
+(home-page "https://github.com/google/renameio/";)
+(synopsis "Atomically create or replace a file or symbolic link")
+(description
+ "@code{renameio} Go package provides a way to atomically create or
+replace a file or symbolic link.")
+(license license:asl2.0)))
+
+(define-public go-github-com-google-renameio-v2
+  (package/inherit go-github-com-google-renameio
+(name "go-github-com-google-renameio-v2")
+(version "2.0.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/google/renameio";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "13vc7p43zz5pmgli4k18b15khxpca1zd8v1ga0ryq7ddyz55fg7i"
+(arguments
+ (list
+  #:import-path "github.com/google/renameio/v2"
+
 (define-public go-github-com-yuin-goldmark
   (package
 (name "go-github-com-yuin-goldmark")
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 4dcef8ad8f..35aa71eeb6 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3229,47 +3229,6 @@ execution.")
  "The chardet package ports character set detection from ICU to Go.")
 (license license:expat)))
 
-(define-public go-github-com-google-renameio
-  (package
-(name "go-github-com-google-renameio")
-(version "1.0.1")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/google/renameio";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256
-(base32 "1qn84nra9nxqyqg4i496b6ijbhnxvx66hdndwl7qh7r6q8lz2ba5"
-(build-system go-build-system)
-(arguments
- (list
-  #:import-path "github.com/google/renameio"))
-(home-page "https://github.com/google/renameio/";)
-(synopsis "Atomically create or replace a file or symbolic link")
-(description
- "@code{renameio} Go package provides a way to atomically create or
-replace a file or symbolic link.")
-(license license:asl2.0)))
-
-(define-public go-github-com-google-renameio-v2
-  (package/inherit go-github-com-google-renameio
-(name "go-github-com-google-renameio-v2")
-(version "2.0.0")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/google/renameio";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256
-(base32 "13vc7p43zz5pmgli4k18b15khxpca1zd8v1ga0ryq7ddyz55fg7i"
-(arguments
- (list
-  #:import-path "github.com/google/renameio/v2"
-
 (define-public go-github-com-google-subcommands
   (package
 (name "go-github-com-google-subcommands")



91/169: gnu: Add go-github-com-rs-xid.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 78f95bcf863f099e2bf3875627c2eef945ad7bbc
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 23:23:14 2024 +0100

gnu: Add go-github-com-rs-xid.

* gnu/packages/golang-web.scm (go-github-com-rs-xid): New variable.

Change-Id: I79477d9f5166ff84a9ef957c9bf15506849399aa
---
 gnu/packages/golang-web.scm | 36 
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 01afd2011d..733ed9f5a7 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -4907,6 +4907,42 @@ resource sharing,CORS} related requests as defined by
 @url{http://www.w3.org/TR/cors/,http://www.w3.org/TR/cors/}.";)
 (license license:expat)))
 
+(define-public go-github-com-rs-xid
+  (package
+(name "go-github-com-rs-xid")
+(version "1.6.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/rs/xid";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "0dck1girg54kgwjms0vsizaxasc8rj6pby4rlz7m07xffa3pp45c"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/rs/xid"))
+(home-page "https://github.com/rs/xid";)
+(synopsis "Globally Unique ID Generator")
+(description
+ "Package xid is a globally unique id generator suited for web scale.
+Features:
+@itemize
+@item zize: 12 bytes (96 bits), smaller than UUID, larger than snowflake
+@item base32 hex encoded by default (20 chars when transported as printable
+string, still sortable)
+@item mon configured, you don't need set a unique machine and/or data center
+id
+@item k-ordered
+@item embedded time with 1 second precision
+@item unicity guaranteed for 16,777,216 (24 bits) unique ids per second and
+per host/process
+@item lock-free (i.e.: unlike UUIDv1 and v2)
+@end itemize")
+(license license:expat)))
+
 (define-public go-github-com-sherclockholmes-webpush-go
   (package
 (name "go-github-com-sherclockholmes-webpush-go")



97/169: gnu: go-github-com-go-openapi-loads: Simplify phases.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 866bc948e3d1e52a23bfd261648d3978b1490631
Author: Sharlatan Hellseher 
AuthorDate: Sun Sep 15 11:02:48 2024 +0100

gnu: go-github-com-go-openapi-loads: Simplify phases.

* gnu/packages/golang-web.scm (go-github-com-go-openapi-loads)
[arguments]: <#phases>: Swap 'copy-input-to-vendor-directory and
'remove-vendor-directory to generalized 'fix-embed-files phase.

Change-Id: Id025bdf03b6c2795183d6f6d80d4689b653425d6
---
 gnu/packages/golang-web.scm | 36 +---
 1 file changed, 13 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index c7dcb232e1..9c5f1260cc 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -1550,35 +1550,25 @@ prototyped in 
@url{https://github.com/xeipuuv/gojsonreference}.";)
   #:import-path "github.com/go-openapi/loads"
   #:phases
   #~(modify-phases %standard-phases
-  ;; FIXME: pattern schemas/*.json: cannot embed irregular file
-  ;; schemas/jsonschema-draft-04.json
+  ;; TODO: Implement it in go-build-system.
   ;;
   ;; This happens due to Golang can't determine the valid directory of
-  ;; the module which is sourced during setup environment phase, but
-  ;; easy resolved after coping to expected directory "vendor" within
-  ;; the current package, see details in Golang source:
+  ;; the module of embed file which is symlinked during setup
+  ;; environment phase, but easy resolved after coping file from the
+  ;; store to the build directory of the current package, see details
+  ;; in Golang source:
   ;;
   ;; - URL: 
   ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
   ;; - file: src/cmd/go/internal/load/pkg.go#L2059
-  (add-before 'build 'copy-input-to-vendor-directory
-(lambda* (#:key import-path #:allow-other-keys)
-  (with-directory-excursion (string-append "src/" import-path)
-(mkdir "vendor")
-(copy-recursively
- (string-append
-  #$(this-package-input "go-github-com-go-openapi-spec")
-  "/src/github.com")
- "vendor/github.com")
-(copy-recursively
- (string-append
-  #$(this-package-input "go-github-com-go-openapi-analysis")
-  "/src/github.com")
- "vendor/github.com"
-  (add-before 'install 'remove-vendor-directory
-(lambda* (#:key import-path #:allow-other-keys)
-  (with-directory-excursion (string-append "src/" import-path)
-(delete-file-recursively "vendor")))
+  (add-after 'unpack 'fix-embed-files
+(lambda _
+  (for-each (lambda (file)
+  (let ((file-store-path (readlink file)))
+(delete-file file)
+(copy-recursively file-store-path file)))
+(find-files "src"
+
"^(jsonschema-draft-04|schema)\\.json$")))
 (native-inputs
  (list go-github-com-stretchr-testify))
 (propagated-inputs



86/169: gnu: go-github-com-go-git-go-billy: Rename variable.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 3cce66353586c3f87b1c0a6168f5be5c787fd47e
Author: Sharlatan Hellseher 
AuthorDate: Sat Sep 14 22:30:36 2024 +0100

gnu: go-github-com-go-git-go-billy: Rename variable.

* gnu/packages/golang.scm (go-github-com-go-git-go-billy): Rename
variable to go-github-com-go-git-go-billy-v5 to reflect go.mod import path.

* gnu/packages/golang-xyz.scm (go-github-com-go-git-go-git-fixtures-v4)
[propagated-inputs]: Remove go-github-com-go-git-go-billy; add
go-github-com-go-git-go-billy-v5.
* gnu/packages/version-control.scm (go-github-go-git): Likewise.

Change-Id: I49a776ba4db859bdebc1aa93cdf78e4c4903ed78
---
 gnu/packages/golang-xyz.scm  | 4 ++--
 gnu/packages/golang.scm  | 4 ++--
 gnu/packages/version-control.scm | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c7a9576337..93d91fe8bf 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1821,7 +1821,7 @@ metrics to Graphite.")
  (origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/cyphar/filepath-securejoin";)
+ (url "https://github.com/cyphar/filepatv-securejoin";)
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
@@ -2923,7 +2923,7 @@ Differentiation between text and binary files}.
 (native-inputs
  (list go-github-com-stretchr-testify))
 (propagated-inputs
- (list go-github-com-go-git-go-billy
+ (list go-github-com-go-git-go-billy-v5
go-gopkg-in-check-v1))
 (home-page "https://github.com/go-git/go-git-fixtures/";)
 (synopsis "Fixtures used by @code{go-git}")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ba9971a373..677451c0d9 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6029,9 +6029,9 @@ errors (warnings).")
 (description "Gcfg reads INI-style configuration files into Go structs.")
 (license license:bsd-3)))
 
-(define-public go-github-com-go-git-go-billy
+(define-public go-github-com-go-git-go-billy-v5
   (package
-(name "go-github-com-go-git-go-billy")
+(name "go-github-com-go-git-go-billy-v5")
 (version "5.5.0")
 (source (origin
   (method git-fetch)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 6b6c6c5e15..79f7c17508 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -3866,7 +3866,7 @@ defects faster.")
  (list go-github-com-alcortesm-tgz
go-github-com-emirpasic-gods
go-github-com-go-git-gcfg
-   go-github-com-go-git-go-billy
+   go-github-com-go-git-go-billy-v5
go-github-com-go-git-go-git-fixtures-v4
go-github-com-imdario-mergo
go-github-com-jbenet-go-context



64/169: gnu: go-github-com-google-go-querystring: Move to golang-web.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit 8fe7d7e937c9503304690860afaf8f6d233304f1
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 10:56:51 2024 +0100

gnu: go-github-com-google-go-querystring: Move to golang-web.

* gnu/packages/golang.scm (go-github-com-google-go-querystring): Move
from here ...
* gnu/packages/golang-web.scm: ... to here.

Change-Id: Id2447d337708794bbf1f32791245b0687df5f19d
---
 gnu/packages/golang-web.scm | 27 +++
 gnu/packages/golang.scm | 27 ---
 2 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 71d409b281..e04202ea90 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2000,6 +2000,33 @@ GitHub API v3.")
((#:import-path _ "github.com/google/go-github/v26/github")
 "github.com/google/go-github/v33/github")
 
+(define-public go-github-com-google-go-querystring
+  (package
+(name "go-github-com-google-go-querystring")
+(version "1.1.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/google/go-querystring";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "15k460c23nsmqd1nx3mvrnazws8bpb1gafrmffx7vf91m200mnwa"
+(build-system go-build-system)
+(arguments
+ (list
+  #:import-path "github.com/google/go-querystring/query"
+  #:unpack-path "github.com/google/go-querystring"))
+(native-inputs
+ (list go-github-com-google-go-cmp))
+(home-page "https://github.com/google/go-querystring/";)
+(synopsis "Library for encoding structs into URL query parameters")
+(description
+ "@code{go-querystring} is Go library for encoding structs into URL query
+parameters.")
+(license license:bsd-3)))
+
 (define-public go-github-com-google-safehtml
   (package
 (name "go-github-com-google-safehtml")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5959170fdd..73285e167f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5368,33 +5368,6 @@ attributes.  It also contains some convenience functions 
for colors, SSH to
 and from termios translations, readCh, reading passwords, etc.")
   (license license:bsd-3
 
-(define-public go-github-com-google-go-querystring
-  (package
-(name "go-github-com-google-go-querystring")
-(version "1.1.0")
-(source
- (origin
-   (method git-fetch)
-   (uri (git-reference
- (url "https://github.com/google/go-querystring";)
- (commit (string-append "v" version
-   (file-name (git-file-name name version))
-   (sha256
-(base32 "15k460c23nsmqd1nx3mvrnazws8bpb1gafrmffx7vf91m200mnwa"
-(build-system go-build-system)
-(arguments
- (list
-  #:import-path "github.com/google/go-querystring/query"
-  #:unpack-path "github.com/google/go-querystring"))
-(native-inputs
- (list go-github-com-google-go-cmp))
-(home-page "https://github.com/google/go-querystring/";)
-(synopsis "Library for encoding structs into URL query parameters")
-(description
- "@code{go-querystring} is Go library for encoding structs into URL query
-parameters.")
-(license license:bsd-3)))
-
 (define (go-gotest-tools-source version sha256-base32-hash)
   (origin
 (method git-fetch)



77/169: gnu: go-github-com-xeipuuv-gojsonschema: Fix indentation.

2024-09-26 Thread guix-commits
sharlatan pushed a commit to branch go-team
in repository guix.

commit f24dc3ae071e47001483c7d7d1ac6058c1294c9b
Author: Sharlatan Hellseher 
AuthorDate: Fri Sep 13 12:17:01 2024 +0100

gnu: go-github-com-xeipuuv-gojsonschema: Fix indentation.

* gnu/packages/golang-web.scm (go-github-com-xeipuuv-gojsonschema): Fix 
indentation.

Change-Id: I39e86f04142c8e917cb06c178e6a310b9eef9273
---
 gnu/packages/golang-web.scm | 60 ++---
 1 file changed, 30 insertions(+), 30 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 1ff3e31015..fe65a80d3b 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -5447,37 +5447,37 @@ programming language.")
   (license license:asl2.0
 
 (define-public go-github-com-xeipuuv-gojsonschema
-(package
-  (name "go-github-com-xeipuuv-gojsonschema")
-  (version "1.2.0")
-  (source
-   (origin
- (method git-fetch)
- (uri (git-reference
-   (url "https://github.com/xeipuuv/gojsonschema";)
-   (commit (string-append "v" version
- (file-name (git-file-name name version))
- (sha256
-  (base32 "1mqiq0r8qw4qlfp3ls8073r6514rmzwrmdn4j33rppk3zh942i6l"
-  (build-system go-build-system)
-  (arguments
-   (list
-;; validation of time strings.  only RFC3339 not all of ISO 8601 are
-;; valid.  expects: false, given true Schema: {"format":"time"} Data:
-;; "01:01:01,"
-#:test-flags #~(list "-skip" "TestFormats")
-#:import-path "github.com/xeipuuv/gojsonschema"))
-  (native-inputs
-   (list go-github-com-stretchr-testify))
-  (propagated-inputs
-   (list go-github-com-xeipuuv-gojsonreference
- go-github-com-xeipuuv-gojsonpointer))
-  (home-page "https://github.com/xeipuuv/gojsonschema";)
-  (synopsis "Implementation of JSON Schema for Go")
-  (description
-   "This package provides an implementation of JSON Schema for the Go
+  (package
+(name "go-github-com-xeipuuv-gojsonschema")
+(version "1.2.0")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/xeipuuv/gojsonschema";)
+ (commit (string-append "v" version
+   (file-name (git-file-name name version))
+   (sha256
+(base32 "1mqiq0r8qw4qlfp3ls8073r6514rmzwrmdn4j33rppk3zh942i6l"
+(build-system go-build-system)
+(arguments
+ (list
+  ;; validation of time strings.  only RFC3339 not all of ISO 8601 are
+  ;; valid.  expects: false, given true Schema: {"format":"time"} Data:
+  ;; "01:01:01,"
+  #:test-flags #~(list "-skip" "TestFormats")
+  #:import-path "github.com/xeipuuv/gojsonschema"))
+(native-inputs
+ (list go-github-com-stretchr-testify))
+(propagated-inputs
+ (list go-github-com-xeipuuv-gojsonreference
+   go-github-com-xeipuuv-gojsonpointer))
+(home-page "https://github.com/xeipuuv/gojsonschema";)
+(synopsis "Implementation of JSON Schema for Go")
+(description
+ "This package provides an implementation of JSON Schema for the Go
 programming language, which supports draft-04, draft-06 and draft-07.")
-  (license license:asl2.0)))
+(license license:asl2.0)))
 
 (define-public go-golang-org-x-oauth2
   (package



  1   2   3   4   5   6   7   8   9   10   >