[PATCH 00/18] gnu: Add yq.

  • Done
  • quality assurance status badge
Details
2 participants
  • Hilton Chain
  • Sharlatan Hellseher
Owner
unassigned
Submitted by
Hilton Chain
Severity
normal
H
H
Hilton Chain wrote on 28 Jul 2023 11:05
(address . guix-patches@gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
cover.1690534227.git.hako@ultrarare.space
Hello Guix!

This patchset adds yq[1], a program similar to jq, but also supporting YAML, XML,
properties, CSV and TSV.

Thanks


Hilton Chain (18):
gnu: Add go-github-com-a8m-envsubst.
gnu: Add go-github-com-hexops-gotextdiff.
gnu: go-github-com-alecthomas-repr: Update to 0.2.0.
gnu: Add go-github-com-alecthomas-assert-v2.
gnu: Add go-github-com-alecthomas-participle-v2.
gnu: Add go-github-com-dimchansky-utfbom.
gnu: Add go-github-com-elliotchance-orderedmap.
gnu: go-github-com-mattn-go-isatty: Update to 0.0.17.
gnu: go-github-com-mattn-go-colorable: Update to 0.1.13.
gnu: go-github-com-fatih-color: Update to 1.15.0.
gnu: go-github-com-goccy-go-json: Update to 0.10.2.
gnu: Add go-github-com-jinzhu-copier.
gnu: go-github-com-magiconair-properties: Update to 1.8.7.
gnu: Add go-github-com-pelletier-go-toml-v2.
gnu: go-github-com-spf13-cobra: Update to 1.7.0.
gnu: Add go-gopkg-in-op-go-logging-v1.
gnu: Add go-github-com-mikefarah-yq-v4.
gnu: Add yq.

gnu/packages/golang.scm | 262 ++++++++++++++++++++++++++++++++++------
gnu/packages/web.scm | 62 ++++++++++
2 files changed, 285 insertions(+), 39 deletions(-)


base-commit: 35c8d631d2bd63c64e863b5509f29fdcb7f856e6
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 01/18] gnu: Add go-github-com-a8m-envsubst.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
42d0c0bb6e29956e755a3fb1982eb5c6ae3c2729.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-a8m-envsubst): New variable.
---
gnu/packages/golang.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

Toggle diff (35 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ea6aadbe80..a6b20a5446 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1041,6 +1041,28 @@ (define-public go-0xacab-org-leap-shapeshifter
filtering devices.")
(license license:bsd-2))))
+(define-public go-github-com-a8m-envsubst
+ (package
+ (name "go-github-com-a8m-envsubst")
+ (version "1.4.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/a8m/envsubst")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1mjs729g9nmalx25l4nn3p07amm4vsciqmdf0jbh2jwpy1zymz41"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/a8m/envsubst"))
+ (home-page "https://github.com/a8m/envsubst")
+ (synopsis "Environment variables substitution for Go")
+ (description
+ "This package provides a library for environment variables substitution.")
+ (license license:expat)))
+
(define-public go-github-com-agext-levenshtein
(package
(name "go-github-com-agext-levenshtein")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 02/18] gnu: Add go-github-com-hexops-gotextdiff.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
c6fd011c1dce278f08c11bd80127bf07df5e980d.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-hexops-gotextdiff): New variable.
---
gnu/packages/golang.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)

Toggle diff (34 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a6b20a5446..f81a330697 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3226,6 +3226,27 @@ (define-public go-github-com-hebcal-hebcal-go
and anniversaries.")
(license license:gpl2+))))
+(define-public go-github-com-hexops-gotextdiff
+ (package
+ (name "go-github-com-hexops-gotextdiff")
+ (version "1.0.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/hexops/gotextdiff")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1vgq6w0cfhr76qlczgm5khsj1wnjkva0vhkh3qspaa1nkfw3jny1"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/hexops/gotextdiff"))
+ (home-page "https://github.com/hexops/gotextdiff")
+ (synopsis "Unified text diffing in Go")
+ (description "This package provides library to generate unified diffs.")
+ (license license:bsd-3)))
+
(define-public go-github-com-aws-sdk
(package
(name "go-github-com-aws-sdk")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 03/18] gnu: go-github-com-alecthomas-repr: Update to 0.2.0.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
73f3d56a8f6fdaa8983c2913a04beebe3bb7e43a.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-alecthomas-repr): Update to 0.2.0.
[arguments]<#:go>: Use go-1.18.
---
gnu/packages/golang.scm | 45 ++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 23 deletions(-)

Toggle diff (59 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f81a330697..749f058b79 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9078,30 +9078,29 @@ (define-public go-github-com-alecthomas-colour
(license license:expat)))
(define-public go-github-com-alecthomas-repr
- (let ((commit "4184120f674c8860a5b48142509a2411a0a1766f")
- (revision "1"))
- (package
- (name "go-github-com-alecthomas-repr")
- (version (git-version "0.0.1" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/alecthomas/repr")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1z0gdkjryxg1ps5fh4ybzip27g9lzdldz4hxqp5j7s2frbzaa9s7"))))
- (build-system go-build-system)
- (arguments
- `(#:import-path "github.com/alecthomas/repr"))
- (native-inputs
- (list go-github-com-stretchr-testify))
- (home-page "https://github.com/alecthomas/repr/")
- (synopsis "Represent Go values in an almost direct form")
- (description "This package attempts to represent Go values in a form that
+ (package
+ (name "go-github-com-alecthomas-repr")
+ (version "0.2.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alecthomas/repr")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0pryj28l9rvin58sg5amj8izp613k7pymrmd7pdp7zpl9xjvhyxq"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:go ,go-1.18
+ #:import-path "github.com/alecthomas/repr"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (home-page "https://github.com/alecthomas/repr/")
+ (synopsis "Represent Go values in an almost direct form")
+ (description "This package attempts to represent Go values in a form that
can be used almost directly in Go source code.")
- (license license:expat))))
+ (license license:expat)))
(define-public go-github-com-sergi-go-diff
(package
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 04/18] gnu: Add go-github-com-alecthomas-assert-v2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
1ce981637dff34a6ba25422b3c2caeb97ac46cd3.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-alecthomas-assert-v2): New variable.
---
gnu/packages/golang.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

Toggle diff (35 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 749f058b79..1081827195 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9163,6 +9163,28 @@ (define-public go-github-com-alecthomas-assert
@end itemize\n")
(license license:expat))))
+(define-public go-github-com-alecthomas-assert-v2
+ (package
+ (inherit go-github-com-alecthomas-assert)
+ (name "go-github-com-alecthomas-assert-v2")
+ (version "2.2.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alecthomas/assert")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "055w46gr47rrn5g2hh7z6hj3x2b8advbcph8gs8szrpzlympyyz0"))))
+ (arguments
+ (list #:go go-1.18
+ #:import-path "github.com/alecthomas/assert/v2"))
+ (propagated-inputs
+ (list go-github-com-alecthomas-repr
+ go-github-com-hexops-gotextdiff))
+ (native-inputs '())))
+
(define-public go-github-com-alecthomas-chroma
(package
(name "go-github-com-alecthomas-chroma")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 05/18] gnu: Add go-github-com-alecthomas-participle-v2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
4b67d08cc3f7d1a6fa2d63712e9d35fe3cd15a43.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-alecthomas-participle-v2): New
variable.
---
gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1081827195..0efbf134ad 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9077,6 +9077,30 @@ (define-public go-github-com-alecthomas-colour
stripped.")
(license license:expat)))
+(define-public go-github-com-alecthomas-participle-v2
+ (package
+ (name "go-github-com-alecthomas-participle-v2")
+ (version "2.0.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alecthomas/participle")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "13q58fyh940ybnwadbyn3p023dsjlyv77bmys6dz1v7a7fwg2djw"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:go go-1.18
+ #:import-path "github.com/alecthomas/participle/v2"))
+ (propagated-inputs
+ (list go-github-com-alecthomas-assert-v2))
+ (home-page "https://github.com/alecthomas/participle")
+ (synopsis "Parser library for Go")
+ (description "This package provides a parser library for Go.")
+ (license license:expat)))
+
(define-public go-github-com-alecthomas-repr
(package
(name "go-github-com-alecthomas-repr")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 06/18] gnu: Add go-github-com-dimchansky-utfbom.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
d5b5dfafc207430672236e33f35ce782400021d6.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-dimchansky-utfbom): New variable.
---
gnu/packages/golang.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0efbf134ad..2c0df2af8b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7069,6 +7069,29 @@ (define-public go-github-com-kr-fs
"The fs package provides file-system-related Go functions.")
(license license:bsd-3))))
+(define-public go-github-com-dimchansky-utfbom
+ (package
+ (name "go-github-com-dimchansky-utfbom")
+ (version "1.1.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dimchansky/utfbom")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ll3wqvifmdanfyg6wsvz31c7n4mnczg2yxb65j35qxrnak89hn3"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/dimchansky/utfbom"))
+ (home-page "https://github.com/dimchansky/utfbom")
+ (synopsis "Go Unicode byte order mark detection library")
+ (description
+ "This package provides a library for @acronym{BOM, Unicode Byte Order Mark}
+detection.")
+ (license license:asl2.0)))
+
(define-public go-github-com-direnv-go-dotenv
(let ((commit "4cce6d1a66f7bc8dc730eab85cab6af1b801abed")
(revision "0"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 07/18] gnu: Add go-github-com-elliotchance-orderedmap.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
88f5a58af710912eb17e92c4a7f03e28d306ac2c.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-elliotchance-orderedmap): New
variable.
---
gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 2c0df2af8b..ec3bdbffa1 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2605,6 +2605,31 @@ (define-public go-github-com-apparentlymart-go-openvpn-mgmt
running with its management port enabled.")
(license license:expat))))
+(define-public go-github-com-elliotchance-orderedmap
+ (package
+ (name "go-github-com-elliotchance-orderedmap")
+ (version "1.5.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/elliotchance/orderedmap")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "033phv59hj3nz41jwiya8ma9p4cc1gbw41i14k2krl2c7s6pd3zc"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/elliotchance/orderedmap"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (home-page "https://github.com/elliotchance/orderedmap")
+ (synopsis "Go ordered map library")
+ (description
+ "This package provides a ordered map library that maintains amortized O(1)
+for @code{Set}, @code{Get}, @code{Delete} and @code{Len}.")
+ (license license:expat)))
+
(define-public go-github-com-emersion-go-autostart
(let ((commit "00ed301c8e9ae79e82878c6361c709983ac5dd2c")
(revision "0"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 08/18] gnu: go-github-com-mattn-go-isatty: Update to 0.0.17.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
d81d5ba8e2116aec9fe067d883e1dc87d654e535.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-mattn-go-isatty): Update to 0.0.17.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ec3bdbffa1..125eeeb14e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5595,7 +5595,7 @@ (define-public go-github-com-matrix-org-gomatrix
(define-public go-github-com-mattn-go-isatty
(package
(name "go-github-com-mattn-go-isatty")
- (version "0.0.11")
+ (version "0.0.17")
(source
(origin
(method git-fetch)
@@ -5605,7 +5605,7 @@ (define-public go-github-com-mattn-go-isatty
(file-name (git-file-name name version))
(sha256
(base32
- "0h671sv7hfprja495kavazkalkx7xzaqksjh13brcnwq67ijrali"))))
+ "1dnkvnnrdrg3xlzbs3cw29fwqsln742hj1iajx32gflfsl2b4fag"))))
(build-system go-build-system)
(propagated-inputs
(list go-golang-org-x-sys))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 09/18] gnu: go-github-com-mattn-go-colorable: Update to 0.1.13.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
fed7065adca3bf88b96e7cfc92b5219760078ad2.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-mattn-go-colorable): Update to 0.1.13
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 125eeeb14e..18599f7cfa 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5621,7 +5621,7 @@ (define-public go-github-com-mattn-go-isatty
(define-public go-github-com-mattn-go-colorable
(package
(name "go-github-com-mattn-go-colorable")
- (version "0.1.8")
+ (version "0.1.13")
(home-page "https://github.com/mattn/go-colorable")
(source
(origin
@@ -5632,7 +5632,7 @@ (define-public go-github-com-mattn-go-colorable
(file-name (git-file-name name version))
(sha256
(base32
- "0q34zqwbnls72md8q8mhj368s7p3i4xspvs3rk8fs76s0pn7dr2l"))))
+ "05hl2ddp67p5kj3ix4zzqqjh4fan4ban3vgw8f98simwigs3q41j"))))
(build-system go-build-system)
(native-inputs
(list go-github-com-mattn-go-isatty))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 10/18] gnu: go-github-com-fatih-color: Update to 1.15.0.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
13d238f249efa6f4025db4294d7aba401ed9f0ec.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-fatih-color): Update to 1.15.0.
---
gnu/packages/golang.scm | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

Toggle diff (28 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 18599f7cfa..c7be0407a2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8156,7 +8156,7 @@ (define-public go-github-com-emersion-go-mbox
(define-public go-github-com-fatih-color
(package
(name "go-github-com-fatih-color")
- (version "1.8.0")
+ (version "1.15.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -8165,11 +8165,7 @@ (define-public go-github-com-fatih-color
(file-name (git-file-name name version))
(sha256
(base32
- "1zc0zlilf03h121f9jqq3ar0hfm7706547zysxp2qxbm920pz7h0"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- (delete-file-recursively "vendor")))))
+ "16vbm6y7sc5gikqy20qnr8cbq16s2zghv0ppbll4ay2hamqargzd"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/fatih/color"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 11/18] gnu: go-github-com-goccy-go-json: Update to 0.10.2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
90ee708d6b9891bf4edceeaab1a9b95d47962677.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-goccy-go-json): Update to 0.10.2.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index c7be0407a2..c98974161f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4195,7 +4195,7 @@ (define-public go-github-com-burntsushi-toml
(define-public go-github-com-goccy-go-json
(package
(name "go-github-com-goccy-go-json")
- (version "0.9.10")
+ (version "0.10.2")
(source
(origin
(method git-fetch)
@@ -4204,7 +4204,7 @@ (define-public go-github-com-goccy-go-json
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1bg8p4c6r8r0kixdxv2m8xmdsmb1zl5sd8czswpccldjk3c358wp"))))
+ (base32 "1krid2hlvs808jl9zmv7m6zx92samc60gymhwr2mwwykicwbnks8"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/goccy/go-json"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 12/18] gnu: Add go-github-com-jinzhu-copier.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
90439b2d97a4069605489ff33cb7093fa426638f.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-jinzhu-copier): New variable.
---
gnu/packages/golang.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index c98974161f..98a59b1918 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4296,6 +4296,29 @@ (define-public go-github-com-hashicorp-go-version
increment versions.")
(license license:mpl2.0))))
+(define-public go-github-com-jinzhu-copier
+ (package
+ (name "go-github-com-jinzhu-copier")
+ (version "0.3.5")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jinzhu/copier")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1d52qyky3gbj520v2fak7ri2smx5svynngjplzj7rc419h2pdgk7"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/jinzhu/copier"))
+ (home-page "https://github.com/jinzhu/copier")
+ (synopsis "Go copier library")
+ (description
+ "This package provides a library, which supports copying value from one
+struct to another.")
+ (license license:expat)))
+
(define-public go-github-com-jpillora-backoff
(let ((commit
"06c7a16c845dc8e0bf575fafeeca0f5462f5eb4d")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 13/18] gnu: go-github-com-magiconair-properties: Update to 1.8.7.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
c007287d459382462589c6bc94c8b104143ea29b.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-magiconair-properties): Update to
1.8.7.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 98a59b1918..7670835d10 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5149,7 +5149,7 @@ (define-public go-github-com-nxadm-tail
(define-public go-github-com-magiconair-properties
(package
(name "go-github-com-magiconair-properties")
- (version "1.8.5")
+ (version "1.8.7")
(source
(origin
(method git-fetch)
@@ -5159,7 +5159,7 @@ (define-public go-github-com-magiconair-properties
(file-name (git-file-name name version))
(sha256
(base32
- "0v4agnkhc30fblbmhs0gq2bikhdnnmqmpp4phrnza68m04j5hxbn"))))
+ "0xy5nq7mwhrdcwjlgh4arjn6w5mjla0kni3cvl3z5vxcrnfrn3ax"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/magiconair/properties"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 14/18] gnu: Add go-github-com-pelletier-go-toml-v2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
b02ee81126d2d741e37880466a44e2605fcd6546.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-pelletier-go-toml-v2): New variable.
---
gnu/packages/golang.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)

Toggle diff (33 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 7670835d10..648e04c5ad 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5194,6 +5194,26 @@ (define-public go-github-com-pelletier-go-toml
(description "Go library for the TOML configuration language")
(license license:expat)))
+(define-public go-github-com-pelletier-go-toml-v2
+ (package
+ (inherit go-github-com-pelletier-go-toml)
+ (name "go-github-com-pelletier-go-toml-v2")
+ (version "2.0.8")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pelletier/go-toml")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "04lbwawyvygzzy5w4c9bs8jywr1ypm35zb4cp477gxl1iiqvzk54"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/pelletier/go-toml/v2"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))))
+
(define-public go-github-com-subosito-gotenv
(package
(name "go-github-com-subosito-gotenv")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 15/18] gnu: go-github-com-spf13-cobra: Update to 1.7.0.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
440e1fa6256c82f46639191f48dba277e4147bca.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-spf13-cobra): Update to 1.7.0.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 648e04c5ad..34c987b559 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4950,7 +4950,7 @@ (define-public go-github-com-spf13-cast
(define-public go-github-com-spf13-cobra
(package
(name "go-github-com-spf13-cobra")
- (version "1.5.0")
+ (version "1.7.0")
(source
(origin
(method git-fetch)
@@ -4960,7 +4960,7 @@ (define-public go-github-com-spf13-cobra
(file-name (git-file-name name version))
(sha256
(base32
- "0qavvyljh509w5xb46lfkak670szp6v4jswwar1hx13cpid8gk5d"))))
+ "0fwv0qpb7z0rqdacsx1mahspgmx1h3hif5fjqzq77wgkk5kbv2bf"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/spf13/cobra"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 16/18] gnu: Add go-gopkg-in-op-go-logging-v1.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
3f384b27b340ae5b42a450eecbb7c25295c363b1.1690534227.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-gopkg-in-op-go-logging-v1): New variable.
---
gnu/packages/golang.scm | 9 +++++++++
1 file changed, 9 insertions(+)

Toggle diff (22 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 34c987b559..475c56a8ce 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2256,6 +2256,15 @@ (define-public go-github-com-op-go-logging
levels per backend and logger.")
(license license:bsd-3)))
+(define-public go-gopkg-in-op-go-logging-v1
+ (package
+ (inherit go-github-com-op-go-logging)
+ (name "go-gopkg-in-op-go-logging-v1")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-op-go-logging)
+ ((#:import-path _) "gopkg.in/op/go-logging.v1")))))
+
(define-public go-github-com-operatorfoundation-shapeshifter-ipc
(package
(name "go-github-com-operatorfoundation-shapeshifter-ipc")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 17/18] gnu: Add go-github-com-mikefarah-yq-v4.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
d8b892eeb6cf399a2ea6895e9ab0938daf1e1377.1690534227.git.hako@ultrarare.space
* gnu/packages/web.scm (go-github-com-mikefarah-yq-v4): New variable.
---
gnu/packages/web.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)

Toggle diff (60 lines)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b7be06cd7b..b2aea7940e 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5063,6 +5063,53 @@ (define-public jq
you'd expect.")
(license (list license:expat license:cc-by3.0))))
+(define-public go-github-com-mikefarah-yq-v4
+ (package
+ (name "go-github-com-mikefarah-yq-v4")
+ (version "4.34.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mikefarah/yq")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0y5i0p4fiq0kad9xqihhyclhd9d3l2r5yligdkvsdc90hlqjmql3"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/mikefarah/yq/v4"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'remove-binary
+ (lambda _
+ (delete-file-recursively
+ (string-append #$output "/bin")))))))
+ (propagated-inputs
+ (list go-github-com-a8m-envsubst
+ go-github-com-alecthomas-participle-v2
+ go-github-com-dimchansky-utfbom
+ go-github-com-elliotchance-orderedmap
+ go-github-com-fatih-color
+ go-github-com-goccy-go-json
+ go-github-com-goccy-yaml
+ go-github-com-jinzhu-copier
+ go-github-com-magiconair-properties
+ go-github-com-pelletier-go-toml-v2
+ go-github-com-spf13-cobra
+ go-golang-org-x-net
+ go-golang-org-x-text
+ go-gopkg-in-op-go-logging-v1
+ go-gopkg-in-yaml-v3))
+ (home-page "https://mikefarah.gitbook.io/yq/")
+ (synopsis
+ "Command-line YAML, JSON, XML, CSV, TOML and properties processor")
+ (description
+ "This package provides @code{yq}, a command-line YAML, JSON and XML
+processor. It uses @code{jq}-like syntax but works with YAML files as well as
+JSON, XML, properties, CSV and TSV. ")
+ (license license:expat)))
+
(define-public go-github-com-itchyny-timefmt-go
(package
(name "go-github-com-itchyny-timefmt-go")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 11:07
[PATCH 18/18] gnu: Add yq.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
bd00c1affa28a4f7621d6996ac7855dd6896e34d.1690534227.git.hako@ultrarare.space
* gnu/packages/web.scm (yq): New variable.
---
gnu/packages/web.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)

Toggle diff (28 lines)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b2aea7940e..f3378065be 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5110,6 +5110,21 @@ (define-public go-github-com-mikefarah-yq-v4
JSON, XML, properties, CSV and TSV. ")
(license license:expat)))
+(define-public yq
+ (package
+ (inherit go-github-com-mikefarah-yq-v4)
+ (name "yq")
+ (arguments
+ (list #:install-source? #f
+ #:import-path "github.com/mikefarah/yq/v4"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'rename-binary
+ (rename-file (string-append #$output "/bin/v4")
+ (string-append #$output "/bin/yq"))))))
+ (propagated-inputs '())
+ (inputs (package-propagated-inputs go-github-com-mikefarah-yq-v4))))
+
(define-public go-github-com-itchyny-timefmt-go
(package
(name "go-github-com-itchyny-timefmt-go")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:16
[PATCH v2 00/23] gnu: Add yq.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
cover.1690564476.git.hako@ultrarare.space
v1 -> v2:
1. In the last patch ("gnu: Add yq."), I forgot to write a phase as a procedure,
now make it (lambda _ [...]).
2. Update go-github-com-goccy-yaml as well.

Diff range from v1 to v2 is attached below the base-commit line.

Hilton Chain (23):
gnu: Add go-github-com-a8m-envsubst.
gnu: Add go-github-com-hexops-gotextdiff.
gnu: go-github-com-alecthomas-repr: Update to 0.2.0.
gnu: Add go-github-com-alecthomas-assert-v2.
gnu: Add go-github-com-alecthomas-participle-v2.
gnu: Add go-github-com-dimchansky-utfbom.
gnu: Add go-github-com-elliotchance-orderedmap.
gnu: go-github-com-mattn-go-isatty: Update to 0.0.17.
gnu: go-github-com-mattn-go-colorable: Update to 0.1.13.
gnu: go-github-com-fatih-color: Update to 1.15.0.
gnu: go-github-com-goccy-go-json: Update to 0.10.2.
gnu: go-github-com-go-playground-universal-translator: Update to 0.18.0.
gnu: go-github-com-leodido-go-urn: Update to 1.2.1.
gnu: Add go-github-com-go-playground-assert-v2.
gnu: Add go-github-com-go-playground-validator-v10.
gnu: go-github-com-goccy-yaml: Update to 1.11.0.
gnu: Add go-github-com-jinzhu-copier.
gnu: go-github-com-magiconair-properties: Update to 1.8.7.
gnu: Add go-github-com-pelletier-go-toml-v2.
gnu: go-github-com-spf13-cobra: Update to 1.7.0.
gnu: Add go-gopkg-in-op-go-logging-v1.
gnu: Add go-github-com-mikefarah-yq-v4.
gnu: Add yq.

gnu/packages/golang.scm | 321 ++++++++++++++++++++++++++++++++++------
gnu/packages/web.scm | 63 ++++++++
2 files changed, 337 insertions(+), 47 deletions(-)


base-commit: a11107a3b2964ad4ea1eb8a6e0f065937a112806
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 01/23] gnu: Add go-github-com-a8m-envsubst.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
dbea2677e93024f92166e733eef6ac579c917fbe.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-a8m-envsubst): New variable.
---
gnu/packages/golang.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

Toggle diff (35 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ea6aadbe80..a6b20a5446 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1041,6 +1041,28 @@ (define-public go-0xacab-org-leap-shapeshifter
filtering devices.")
(license license:bsd-2))))
+(define-public go-github-com-a8m-envsubst
+ (package
+ (name "go-github-com-a8m-envsubst")
+ (version "1.4.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/a8m/envsubst")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1mjs729g9nmalx25l4nn3p07amm4vsciqmdf0jbh2jwpy1zymz41"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/a8m/envsubst"))
+ (home-page "https://github.com/a8m/envsubst")
+ (synopsis "Environment variables substitution for Go")
+ (description
+ "This package provides a library for environment variables substitution.")
+ (license license:expat)))
+
(define-public go-github-com-agext-levenshtein
(package
(name "go-github-com-agext-levenshtein")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 02/23] gnu: Add go-github-com-hexops-gotextdiff.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
6ea260fc64bf4dc6b03514f6523d5f164374a78a.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-hexops-gotextdiff): New variable.
---
gnu/packages/golang.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)

Toggle diff (34 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a6b20a5446..f81a330697 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3226,6 +3226,27 @@ (define-public go-github-com-hebcal-hebcal-go
and anniversaries.")
(license license:gpl2+))))
+(define-public go-github-com-hexops-gotextdiff
+ (package
+ (name "go-github-com-hexops-gotextdiff")
+ (version "1.0.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/hexops/gotextdiff")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1vgq6w0cfhr76qlczgm5khsj1wnjkva0vhkh3qspaa1nkfw3jny1"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/hexops/gotextdiff"))
+ (home-page "https://github.com/hexops/gotextdiff")
+ (synopsis "Unified text diffing in Go")
+ (description "This package provides library to generate unified diffs.")
+ (license license:bsd-3)))
+
(define-public go-github-com-aws-sdk
(package
(name "go-github-com-aws-sdk")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 03/23] gnu: go-github-com-alecthomas-repr: Update to 0.2.0.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
9548780f1dcdfc244aa21f25a9f94db229aa31ed.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-alecthomas-repr): Update to 0.2.0.
[arguments]<#:go>: Use go-1.18.
---
gnu/packages/golang.scm | 45 ++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 23 deletions(-)

Toggle diff (59 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f81a330697..749f058b79 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9078,30 +9078,29 @@ (define-public go-github-com-alecthomas-colour
(license license:expat)))
(define-public go-github-com-alecthomas-repr
- (let ((commit "4184120f674c8860a5b48142509a2411a0a1766f")
- (revision "1"))
- (package
- (name "go-github-com-alecthomas-repr")
- (version (git-version "0.0.1" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/alecthomas/repr")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1z0gdkjryxg1ps5fh4ybzip27g9lzdldz4hxqp5j7s2frbzaa9s7"))))
- (build-system go-build-system)
- (arguments
- `(#:import-path "github.com/alecthomas/repr"))
- (native-inputs
- (list go-github-com-stretchr-testify))
- (home-page "https://github.com/alecthomas/repr/")
- (synopsis "Represent Go values in an almost direct form")
- (description "This package attempts to represent Go values in a form that
+ (package
+ (name "go-github-com-alecthomas-repr")
+ (version "0.2.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alecthomas/repr")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0pryj28l9rvin58sg5amj8izp613k7pymrmd7pdp7zpl9xjvhyxq"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:go ,go-1.18
+ #:import-path "github.com/alecthomas/repr"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (home-page "https://github.com/alecthomas/repr/")
+ (synopsis "Represent Go values in an almost direct form")
+ (description "This package attempts to represent Go values in a form that
can be used almost directly in Go source code.")
- (license license:expat))))
+ (license license:expat)))
(define-public go-github-com-sergi-go-diff
(package
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 04/23] gnu: Add go-github-com-alecthomas-assert-v2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
d3bcce7db6b3f6fef11d01c9f06de82f29503543.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-alecthomas-assert-v2): New variable.
---
gnu/packages/golang.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

Toggle diff (35 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 749f058b79..1081827195 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9163,6 +9163,28 @@ (define-public go-github-com-alecthomas-assert
@end itemize\n")
(license license:expat))))
+(define-public go-github-com-alecthomas-assert-v2
+ (package
+ (inherit go-github-com-alecthomas-assert)
+ (name "go-github-com-alecthomas-assert-v2")
+ (version "2.2.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alecthomas/assert")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "055w46gr47rrn5g2hh7z6hj3x2b8advbcph8gs8szrpzlympyyz0"))))
+ (arguments
+ (list #:go go-1.18
+ #:import-path "github.com/alecthomas/assert/v2"))
+ (propagated-inputs
+ (list go-github-com-alecthomas-repr
+ go-github-com-hexops-gotextdiff))
+ (native-inputs '())))
+
(define-public go-github-com-alecthomas-chroma
(package
(name "go-github-com-alecthomas-chroma")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 05/23] gnu: Add go-github-com-alecthomas-participle-v2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
6a998b13efb9d3dfd2c55080a8640a2c5b57ab62.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-alecthomas-participle-v2): New
variable.
---
gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1081827195..0efbf134ad 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9077,6 +9077,30 @@ (define-public go-github-com-alecthomas-colour
stripped.")
(license license:expat)))
+(define-public go-github-com-alecthomas-participle-v2
+ (package
+ (name "go-github-com-alecthomas-participle-v2")
+ (version "2.0.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alecthomas/participle")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "13q58fyh940ybnwadbyn3p023dsjlyv77bmys6dz1v7a7fwg2djw"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:go go-1.18
+ #:import-path "github.com/alecthomas/participle/v2"))
+ (propagated-inputs
+ (list go-github-com-alecthomas-assert-v2))
+ (home-page "https://github.com/alecthomas/participle")
+ (synopsis "Parser library for Go")
+ (description "This package provides a parser library for Go.")
+ (license license:expat)))
+
(define-public go-github-com-alecthomas-repr
(package
(name "go-github-com-alecthomas-repr")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 06/23] gnu: Add go-github-com-dimchansky-utfbom.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
7d3ff80847b93c65bd7ac141dd227b9b6c30f0e1.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-dimchansky-utfbom): New variable.
---
gnu/packages/golang.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0efbf134ad..2c0df2af8b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7069,6 +7069,29 @@ (define-public go-github-com-kr-fs
"The fs package provides file-system-related Go functions.")
(license license:bsd-3))))
+(define-public go-github-com-dimchansky-utfbom
+ (package
+ (name "go-github-com-dimchansky-utfbom")
+ (version "1.1.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dimchansky/utfbom")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ll3wqvifmdanfyg6wsvz31c7n4mnczg2yxb65j35qxrnak89hn3"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/dimchansky/utfbom"))
+ (home-page "https://github.com/dimchansky/utfbom")
+ (synopsis "Go Unicode byte order mark detection library")
+ (description
+ "This package provides a library for @acronym{BOM, Unicode Byte Order Mark}
+detection.")
+ (license license:asl2.0)))
+
(define-public go-github-com-direnv-go-dotenv
(let ((commit "4cce6d1a66f7bc8dc730eab85cab6af1b801abed")
(revision "0"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 07/23] gnu: Add go-github-com-elliotchance-orderedmap.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
f2602bc862de276aeb5781b50744901a81e05fb8.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-elliotchance-orderedmap): New
variable.
---
gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 2c0df2af8b..ec3bdbffa1 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2605,6 +2605,31 @@ (define-public go-github-com-apparentlymart-go-openvpn-mgmt
running with its management port enabled.")
(license license:expat))))
+(define-public go-github-com-elliotchance-orderedmap
+ (package
+ (name "go-github-com-elliotchance-orderedmap")
+ (version "1.5.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/elliotchance/orderedmap")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "033phv59hj3nz41jwiya8ma9p4cc1gbw41i14k2krl2c7s6pd3zc"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/elliotchance/orderedmap"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (home-page "https://github.com/elliotchance/orderedmap")
+ (synopsis "Go ordered map library")
+ (description
+ "This package provides a ordered map library that maintains amortized O(1)
+for @code{Set}, @code{Get}, @code{Delete} and @code{Len}.")
+ (license license:expat)))
+
(define-public go-github-com-emersion-go-autostart
(let ((commit "00ed301c8e9ae79e82878c6361c709983ac5dd2c")
(revision "0"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 08/23] gnu: go-github-com-mattn-go-isatty: Update to 0.0.17.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
15f7167b6dfebd8ba6fabf58fbf62578dbb57ecc.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-mattn-go-isatty): Update to 0.0.17.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ec3bdbffa1..125eeeb14e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5595,7 +5595,7 @@ (define-public go-github-com-matrix-org-gomatrix
(define-public go-github-com-mattn-go-isatty
(package
(name "go-github-com-mattn-go-isatty")
- (version "0.0.11")
+ (version "0.0.17")
(source
(origin
(method git-fetch)
@@ -5605,7 +5605,7 @@ (define-public go-github-com-mattn-go-isatty
(file-name (git-file-name name version))
(sha256
(base32
- "0h671sv7hfprja495kavazkalkx7xzaqksjh13brcnwq67ijrali"))))
+ "1dnkvnnrdrg3xlzbs3cw29fwqsln742hj1iajx32gflfsl2b4fag"))))
(build-system go-build-system)
(propagated-inputs
(list go-golang-org-x-sys))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 09/23] gnu: go-github-com-mattn-go-colorable: Update to 0.1.13.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
b967b20a4713f0bc1f7168e87aa6abac74f4ef5d.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-mattn-go-colorable): Update to 0.1.13
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 125eeeb14e..18599f7cfa 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5621,7 +5621,7 @@ (define-public go-github-com-mattn-go-isatty
(define-public go-github-com-mattn-go-colorable
(package
(name "go-github-com-mattn-go-colorable")
- (version "0.1.8")
+ (version "0.1.13")
(home-page "https://github.com/mattn/go-colorable")
(source
(origin
@@ -5632,7 +5632,7 @@ (define-public go-github-com-mattn-go-colorable
(file-name (git-file-name name version))
(sha256
(base32
- "0q34zqwbnls72md8q8mhj368s7p3i4xspvs3rk8fs76s0pn7dr2l"))))
+ "05hl2ddp67p5kj3ix4zzqqjh4fan4ban3vgw8f98simwigs3q41j"))))
(build-system go-build-system)
(native-inputs
(list go-github-com-mattn-go-isatty))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 10/23] gnu: go-github-com-fatih-color: Update to 1.15.0.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
2b1f19ee914f19bba94f8b51e4fd14ffdb3cc6f9.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-fatih-color): Update to 1.15.0.
---
gnu/packages/golang.scm | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

Toggle diff (28 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 18599f7cfa..c7be0407a2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8156,7 +8156,7 @@ (define-public go-github-com-emersion-go-mbox
(define-public go-github-com-fatih-color
(package
(name "go-github-com-fatih-color")
- (version "1.8.0")
+ (version "1.15.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -8165,11 +8165,7 @@ (define-public go-github-com-fatih-color
(file-name (git-file-name name version))
(sha256
(base32
- "1zc0zlilf03h121f9jqq3ar0hfm7706547zysxp2qxbm920pz7h0"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- (delete-file-recursively "vendor")))))
+ "16vbm6y7sc5gikqy20qnr8cbq16s2zghv0ppbll4ay2hamqargzd"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/fatih/color"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 11/23] gnu: go-github-com-goccy-go-json: Update to 0.10.2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
d756b036452b26e7ac796341e1fdd052589b64f6.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-goccy-go-json): Update to 0.10.2.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index c7be0407a2..c98974161f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4195,7 +4195,7 @@ (define-public go-github-com-burntsushi-toml
(define-public go-github-com-goccy-go-json
(package
(name "go-github-com-goccy-go-json")
- (version "0.9.10")
+ (version "0.10.2")
(source
(origin
(method git-fetch)
@@ -4204,7 +4204,7 @@ (define-public go-github-com-goccy-go-json
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1bg8p4c6r8r0kixdxv2m8xmdsmb1zl5sd8czswpccldjk3c358wp"))))
+ (base32 "1krid2hlvs808jl9zmv7m6zx92samc60gymhwr2mwwykicwbnks8"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/goccy/go-json"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 12/23] gnu: go-github-com-go-playground-universal-translator: Update to 0.18.0.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
5813793084486bd71545cc6df1fe5d8db6aaa4c4.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-go-playground-universal-translator):
Update to 0.18.0.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index c98974161f..da55ad859c 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3074,7 +3074,7 @@ (define-public go-github-com-go-playground-locales
(define-public go-github-com-go-playground-universal-translator
(package
(name "go-github-com-go-playground-universal-translator")
- (version "0.17.0")
+ (version "0.18.0")
(home-page "https://github.com/go-playground/universal-translator")
(source
(origin
@@ -3084,7 +3084,7 @@ (define-public go-github-com-go-playground-universal-translator
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1zdiaisb32iv4x93cpbqrgx8ll7sxh4hcd2iibpswy4bwvjbjlz6"))))
+ (base32 "1mgf42dwmaf8pk3w2yx9hvn3zavfy0vlzj3kf0x4mg1x0wlb9fdi"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/go-playground/universal-translator"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:19
[PATCH v2 13/23] gnu: go-github-com-leodido-go-urn: Update to 1.2.1.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
02af56aed2ad6c0333184391ad5fb6282ce726c1.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-leodido-go-urn): Update to 1.2.1.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index da55ad859c..425afc9a6b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2959,7 +2959,7 @@ (define-public go-github-com-golangplus-testing
(define-public go-github-com-leodido-go-urn
(package
(name "go-github-com-leodido-go-urn")
- (version "1.2.0")
+ (version "1.2.1")
(home-page "https://github.com/leodido/go-urn")
(source
(origin
@@ -2969,7 +2969,7 @@ (define-public go-github-com-leodido-go-urn
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1d4g1vkhc1180l1n7q48vl84b27c7cziywml78cyijbcdz2f8vim"))))
+ (base32 "0n48gfw2gxr4lkxygbx6gcnkgrv0i5l14kl2a6633d8c9k4iyrfk"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/leodido/go-urn"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 14/23] gnu: Add go-github-com-go-playground-assert-v2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
ccf35f8b06e5574c37cb59e9b39186c95d02d89d.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-go-playground-assert-v2): New
variable.
---
gnu/packages/golang.scm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

Toggle diff (30 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 425afc9a6b..6a5f111824 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3037,6 +3037,23 @@ (define-public go-gopkg-in-go-playground-assert-v1
custom assertions to be used alongside native Go testing.")
(license license:expat)))
+(define-public go-github-com-go-playground-assert-v2
+ (package
+ (inherit go-gopkg-in-go-playground-assert-v1)
+ (name "go-github-com-go-playground-assert-v2")
+ (version "2.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/go-playground/assert")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1cl9c4s405zddzrj36hhs0a18g02zscdl46fyipp6k91mhvai8wz"))))
+ (arguments
+ (list #:import-path "github.com/go-playground/assert/v2"))))
+
(define-public go-github-com-go-playground-locales
(package
(name "go-github-com-go-playground-locales")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 15/23] gnu: Add go-github-com-go-playground-validator-v10.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
7fd422533410195ce6af7cb605efc1bccc00efb4.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-go-playground-validator-v10): New
variable.
---
gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 6a5f111824..0dbd94592f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3173,6 +3173,30 @@ (define-public go-gopkg-in-go-playground-validator-v9
@end itemize")
(license license:expat)))
+(define-public go-github-com-go-playground-validator-v10
+ (package
+ (inherit go-gopkg-in-go-playground-validator-v9)
+ (name "go-github-com-go-playground-validator-v10")
+ (version "10.11.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/go-playground/validator")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "03sd3gd3pl2bv07ivrixp3h5hrw1d1llrpjdalh9jbgby0x2f8ig"))))
+ (arguments
+ (list #:import-path "github.com/go-playground/validator/v10"))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs
+ go-gopkg-in-go-playground-validator-v9)
+ (append go-golang-org-x-crypto
+ go-golang-org-x-text)))
+ (native-inputs
+ (list go-github-com-go-playground-assert-v2))))
+
(define-public go-github-com-nathan-osman-go-sunrise
(let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73")
(revision "0"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 16/23] gnu: go-github-com-goccy-yaml: Update to 1.11.0.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
94ed4ffbbe84c2e8ca633ac264d77039c0b32c72.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-goccy-yaml): Update to 1.11.0.
[arguments]<#:go>: Use go-1.18.
[native-inputs]: Add go-github-com-google-go-cmp-cmp.
Replace go-gopkg-in-go-playground-validator-v9 with
go-github-com-go-playground-validator-v10.
---
gnu/packages/golang.scm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

Toggle diff (35 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0dbd94592f..ad9f1b0ecb 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10913,7 +10913,7 @@ (define-public go-github-com-kardianos-minwinsvc
(define-public go-github-com-goccy-yaml
(package
(name "go-github-com-goccy-yaml")
- (version "1.8.0")
+ (version "1.11.0")
(home-page "https://github.com/goccy/go-yaml")
(source
(origin
@@ -10923,14 +10923,16 @@ (define-public go-github-com-goccy-yaml
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1nps58dwkd915mx35h5f0dc05b880b4fdl6dcjxpfmmbzyinvg38"))))
+ (base32 "0mjq856v0340qmrzasfvxbxfxzrasvn74ii0p41dpvahw6p5p8x1"))))
(build-system go-build-system)
(arguments
- `(#:import-path "github.com/goccy/go-yaml"))
+ `(#:go ,go-1.18
+ #:import-path "github.com/goccy/go-yaml"))
(propagated-inputs
(list go-github-com-fatih-color go-golang-org-x-xerrors))
(native-inputs
- (list go-gopkg-in-go-playground-validator-v9))
+ (list go-github-com-go-playground-validator-v10
+ go-github-com-google-go-cmp-cmp))
(synopsis "YAML support for the Go language")
(description
"This package provides features beyond the
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 17/23] gnu: Add go-github-com-jinzhu-copier.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
54b0d247b7bde962bb9a67257031df31f5263e8e.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-jinzhu-copier): New variable.
---
gnu/packages/golang.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ad9f1b0ecb..5053c2dd0b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4337,6 +4337,29 @@ (define-public go-github-com-hashicorp-go-version
increment versions.")
(license license:mpl2.0))))
+(define-public go-github-com-jinzhu-copier
+ (package
+ (name "go-github-com-jinzhu-copier")
+ (version "0.3.5")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jinzhu/copier")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1d52qyky3gbj520v2fak7ri2smx5svynngjplzj7rc419h2pdgk7"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/jinzhu/copier"))
+ (home-page "https://github.com/jinzhu/copier")
+ (synopsis "Go copier library")
+ (description
+ "This package provides a library, which supports copying value from one
+struct to another.")
+ (license license:expat)))
+
(define-public go-github-com-jpillora-backoff
(let ((commit
"06c7a16c845dc8e0bf575fafeeca0f5462f5eb4d")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 18/23] gnu: go-github-com-magiconair-properties: Update to 1.8.7.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
24f8a307f147aeebff22dd539d760e2717e95d8e.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-magiconair-properties): Update to
1.8.7.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5053c2dd0b..60f9d79177 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5190,7 +5190,7 @@ (define-public go-github-com-nxadm-tail
(define-public go-github-com-magiconair-properties
(package
(name "go-github-com-magiconair-properties")
- (version "1.8.5")
+ (version "1.8.7")
(source
(origin
(method git-fetch)
@@ -5200,7 +5200,7 @@ (define-public go-github-com-magiconair-properties
(file-name (git-file-name name version))
(sha256
(base32
- "0v4agnkhc30fblbmhs0gq2bikhdnnmqmpp4phrnza68m04j5hxbn"))))
+ "0xy5nq7mwhrdcwjlgh4arjn6w5mjla0kni3cvl3z5vxcrnfrn3ax"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/magiconair/properties"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 19/23] gnu: Add go-github-com-pelletier-go-toml-v2.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
d87b7e89c0ffcdcb890ed7233dd4bd69995eed12.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-pelletier-go-toml-v2): New variable.
---
gnu/packages/golang.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)

Toggle diff (33 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 60f9d79177..1cb1c8f304 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5235,6 +5235,26 @@ (define-public go-github-com-pelletier-go-toml
(description "Go library for the TOML configuration language")
(license license:expat)))
+(define-public go-github-com-pelletier-go-toml-v2
+ (package
+ (inherit go-github-com-pelletier-go-toml)
+ (name "go-github-com-pelletier-go-toml-v2")
+ (version "2.0.8")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pelletier/go-toml")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "04lbwawyvygzzy5w4c9bs8jywr1ypm35zb4cp477gxl1iiqvzk54"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/pelletier/go-toml/v2"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))))
+
(define-public go-github-com-subosito-gotenv
(package
(name "go-github-com-subosito-gotenv")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 20/23] gnu: go-github-com-spf13-cobra: Update to 1.7.0.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
d791cb9d507bff6aff42d56ef5c65d6e8dc6bb43.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-github-com-spf13-cobra): Update to 1.7.0.
---
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1cb1c8f304..a4b1adeca5 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4991,7 +4991,7 @@ (define-public go-github-com-spf13-cast
(define-public go-github-com-spf13-cobra
(package
(name "go-github-com-spf13-cobra")
- (version "1.5.0")
+ (version "1.7.0")
(source
(origin
(method git-fetch)
@@ -5001,7 +5001,7 @@ (define-public go-github-com-spf13-cobra
(file-name (git-file-name name version))
(sha256
(base32
- "0qavvyljh509w5xb46lfkak670szp6v4jswwar1hx13cpid8gk5d"))))
+ "0fwv0qpb7z0rqdacsx1mahspgmx1h3hif5fjqzq77wgkk5kbv2bf"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/spf13/cobra"))
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 21/23] gnu: Add go-gopkg-in-op-go-logging-v1.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
c129b2ac89f59880a5ce375443ceb6e0747b5a24.1690564476.git.hako@ultrarare.space
* gnu/packages/golang.scm (go-gopkg-in-op-go-logging-v1): New variable.
---
gnu/packages/golang.scm | 9 +++++++++
1 file changed, 9 insertions(+)

Toggle diff (22 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a4b1adeca5..46087ad692 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2256,6 +2256,15 @@ (define-public go-github-com-op-go-logging
levels per backend and logger.")
(license license:bsd-3)))
+(define-public go-gopkg-in-op-go-logging-v1
+ (package
+ (inherit go-github-com-op-go-logging)
+ (name "go-gopkg-in-op-go-logging-v1")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-op-go-logging)
+ ((#:import-path _) "gopkg.in/op/go-logging.v1")))))
+
(define-public go-github-com-operatorfoundation-shapeshifter-ipc
(package
(name "go-github-com-operatorfoundation-shapeshifter-ipc")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 22/23] gnu: Add go-github-com-mikefarah-yq-v4.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
c70cb5a2a9e3c1b5b7f91c436060657c9d313a22.1690564476.git.hako@ultrarare.space
* gnu/packages/web.scm (go-github-com-mikefarah-yq-v4): New variable.
---
gnu/packages/web.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)

Toggle diff (60 lines)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b7be06cd7b..b2aea7940e 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5063,6 +5063,53 @@ (define-public jq
you'd expect.")
(license (list license:expat license:cc-by3.0))))
+(define-public go-github-com-mikefarah-yq-v4
+ (package
+ (name "go-github-com-mikefarah-yq-v4")
+ (version "4.34.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mikefarah/yq")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0y5i0p4fiq0kad9xqihhyclhd9d3l2r5yligdkvsdc90hlqjmql3"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/mikefarah/yq/v4"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'remove-binary
+ (lambda _
+ (delete-file-recursively
+ (string-append #$output "/bin")))))))
+ (propagated-inputs
+ (list go-github-com-a8m-envsubst
+ go-github-com-alecthomas-participle-v2
+ go-github-com-dimchansky-utfbom
+ go-github-com-elliotchance-orderedmap
+ go-github-com-fatih-color
+ go-github-com-goccy-go-json
+ go-github-com-goccy-yaml
+ go-github-com-jinzhu-copier
+ go-github-com-magiconair-properties
+ go-github-com-pelletier-go-toml-v2
+ go-github-com-spf13-cobra
+ go-golang-org-x-net
+ go-golang-org-x-text
+ go-gopkg-in-op-go-logging-v1
+ go-gopkg-in-yaml-v3))
+ (home-page "https://mikefarah.gitbook.io/yq/")
+ (synopsis
+ "Command-line YAML, JSON, XML, CSV, TOML and properties processor")
+ (description
+ "This package provides @code{yq}, a command-line YAML, JSON and XML
+processor. It uses @code{jq}-like syntax but works with YAML files as well as
+JSON, XML, properties, CSV and TSV. ")
+ (license license:expat)))
+
(define-public go-github-com-itchyny-timefmt-go
(package
(name "go-github-com-itchyny-timefmt-go")
--
2.41.0
H
H
Hilton Chain wrote on 28 Jul 2023 19:20
[PATCH v2 23/23] gnu: Add yq.
(address . 64916@debbugs.gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
9d13974c351478e7abb463f6e3e1f58e7e97a9b7.1690564476.git.hako@ultrarare.space
* gnu/packages/web.scm (yq): New variable.
---
gnu/packages/web.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)

Toggle diff (29 lines)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b2aea7940e..f204b39433 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5110,6 +5110,22 @@ (define-public go-github-com-mikefarah-yq-v4
JSON, XML, properties, CSV and TSV. ")
(license license:expat)))
+(define-public yq
+ (package
+ (inherit go-github-com-mikefarah-yq-v4)
+ (name "yq")
+ (arguments
+ (list #:install-source? #f
+ #:import-path "github.com/mikefarah/yq/v4"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'rename-binary
+ (lambda _
+ (rename-file (string-append #$output "/bin/v4")
+ (string-append #$output "/bin/yq")))))))
+ (propagated-inputs '())
+ (inputs (package-propagated-inputs go-github-com-mikefarah-yq-v4))))
+
(define-public go-github-com-itchyny-timefmt-go
(package
(name "go-github-com-itchyny-timefmt-go")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 16 Feb 15:26 +0100
[PATCH 00/18] gnu: Add yq.
(address . 64916-done@debbugs.gnu.org)
877cj4wkmy.fsf@gmail.com
Hi,

Thank you for the nice set of patches!

I've checkouted from a11107a3b2964ad4ea1eb8a6e0f065937a112806 and
rebased to the latest master branch to apply v2.

- Modifications applied [23/23][100%]
- [X] Add go-github-com-a8m-envsubst
- [X] move to golang-xyz
- [X] Add go-github-com-alecthomas-assert-v2
- [X] move to golang-check
- [X] Add go-github-com-alecthomas-participle-v2
- [X] move to golang-xyz
- [X] gnu/packages/golang-xyz.scm:81:13:
go-github-com-alecthomas-participle-v2@2.0.0: can be upgraded to
2.1.1
- [X] move go-github-com-alecthomas-assert-v2 to native inputs
- [X] Add go-github-com-dimchansky-utfbom
- [X] move to golang-xyz
- [X] Add go-github-com-elliotchance-orderedmap
- [X] move golang-xyz
- [X] update to 1.5.1
- [X] Add go-github-com-go-playground-assert-v2
- [X] move to golang-check
- [X] gnu/packages/golang-check.scm:762:13:
go-github-com-go-playground-assert-v2@2.0.1: can be upgraded to
2.2.0
- [X] Add go-github-com-go-playground-validator-v10
- [X] gnu/packages/golang.scm:2992:13:
go-github-com-go-playground-validator-v10@10.11.1: can be upgraded
to 10.18.0
- [X] add go-github-com-gabriel-vasile-mimetype to propagated-inputs
- [X] Add go-github-com-hexops-gotextdiff
- [X] move to golang-check
- [X] Add go-github-com-jinzhu-copier
- [X] move to golang-xyz
- [X] gnu/packages/golang-xyz.scm:545:13:
go-github-com-jinzhu-copier@0.3.5: can be upgraded to 0.4.0
- [X] Add go-github-com-mikefarah-yq-v4
- [X] Add go-github-com-pelletier-go-toml-v2
- [X] gnu/packages/golang.scm:4034:13:
go-github-com-pelletier-go-toml-v2@2.0.8: can be upgraded to 2.1.1
- [X] Add go-gopkg-in-op-go-logging-v1
- [X] move to golang-xyz
- [X] Add yq
- [X] Update go-github-com-alecthomas-repr
- [X] gnu/packages/golang.scm:7570:13:
go-github-com-alecthomas-repr@0.2.0: can be upgraded to 0.3.0
- [X] Update go-github-com-fatih-color
- [X] fix gnu/packages/golang.scm:6636:15:
go-github-com-fatih-color@1.15.0: permanent redirect from
- [X] gnu/packages/golang.scm:6617:13:
go-github-com-fatih-color@1.15.0: can be upgraded to 1.16.0
- [X] Update go-github-com-goccy-go-json
- [X] Update go-github-com-goccy-yaml
- [X] gnu/packages/golang.scm:8896:13:
go-github-com-goccy-yaml@1.11.0: can be upgraded to 1.11.3
- [X] Update go-github-com-go-playground-universal-translator
- [X] gnu/packages/golang.scm:2906:13:
go-github-com-go-playground-universal-translator@0.18.0: can be
upgraded to 0.18.1
- [X] Update go-github-com-leodido-go-urn
- [X] gnu/packages/golang.scm:2812:13:
go-github-com-leodido-go-urn@1.2.1: can be upgraded to 1.4.0
- [X] Update go-github-com-magiconair-properties
- [X] Update go-github-com-mattn-go-colorable
- [X] Update go-github-com-mattn-go-isatty
- [X] gnu/packages/golang.scm:4488:13:
go-github-com-mattn-go-isatty@0.0.17: can be upgraded to 0.0.20
- [X] Update go-github-com-spf13-cobra
- [X] fix gnu/packages/golang.scm:3826:5:
go-github-com-spf13-cobra@1.7.0: label 'github.com/spf13/pflag'
does not match package name 'go-github-com-spf13-pflag'
- [X] gnu/packages/golang.scm:3811:13:
go-github-com-spf13-cobra@1.7.0: can be upgraded to 1.8.0

The upgrade for yq to the latest version requires more packaging work
and may be scheduled for the next update cycle.
- gnu/packages/web.scm:5207:13: go-github-com-mikefarah-yq-v4@4.34.2:
can be upgraded to 4.41.1
- gnu/packages/web.scm:5252:2: yq@4.34.2: can be upgraded to 4.41.1

I've checked whether dependent packages are still buildable:
Toggle snippet (12 lines)
go-gopkg-in-go-playground-validator-v9@9.31.0 fdroidcl@0.7.0 tz@0.6.1
edirect@13.3.20200128 actionlint@1.6.26 r-biocdockermanager@1.11.0
gron@0.7.1 go-github-com-google-go-jsonnet@0.18.0 kubo@0.19.0
aerc@0.15.2 demlo@3.8-0.fe9ec4c yggdrasil@0.5.5 kappanhang@1.3
emacs-envrc@0.6 emacs-direnv@2.2.0 go-github-com-junegunn-fzf@0.41.0
emacs-fzf@0.2-0.21912eb ytfzf@2.6.2 ani-cli@4.8 wego@2.1
go-github-com-itchyny-gojq@0.12.11 gojq@0.12.11 bitmask@0.21.11
restic-rest-server@0.11.0 exercism@3.1.0
go-github-com-wraparound-wrap@0.3.1 csvdiff@1.4.0 hut@0.4.0 lfs-s3@0.1.5
go-github-com-mikefarah-yq-v4@4.34.2 yq@4.34.2

Succeeded:
Toggle snippet (33 lines)
/gnu/store/qlfdg52q5pas3amk8n8gbhwljbdhyvdn-yq-4.34.2
/gnu/store/f6scnwq5x83hs5vayy9ijxg71jpgl9yg-go-github-com-mikefarah-yq-v4-4.34.2
/gnu/store/d9v4l5knzy10mlzzikyfawykw0drc1h3-lfs-s3-0.1.5
/gnu/store/vgwg2djmbj48dfi9liwq1nk9ppsjp8nq-hut-0.4.0
/gnu/store/fi61351qvsypyw5imk2r6ym0aakshs6y-csvdiff-1.4.0
/gnu/store/lxki4506dxq1640xpqapi13533jv6id8-go-github-com-wraparound-wrap-0.3.1
/gnu/store/lr3ccx44dhs4ymhkdvqrcdxssxyndx2k-exercism-3.1.0
/gnu/store/3r1fkrb7hj9c5fbygci21k9n317p1bvn-restic-rest-server-0.11.0
/gnu/store/aiwasa5ns9wbpw124m8v4qfql7d7vs2y-bitmask-0.21.11
/gnu/store/kgsjzdxhavjahcqpb1zi7l303hxf3p8n-gojq-0.12.11
/gnu/store/riyzyl2skiqsn41132z6bqjaf6n0l0kj-go-github-com-itchyny-gojq-0.12.11
/gnu/store/spdak3my2blzk96nv4crf6qj9dnqr7n6-wego-2.1
/gnu/store/bv5sprr5584v1yfrw77pgm9p8lwqd2b2-ani-cli-4.8
/gnu/store/gr4xbp3xvpq5f1i3sz1pzzhhqi7iy8bl-ytfzf-2.6.2
/gnu/store/v5z78964k83avqwc0h4w9xn2yrq72qrb-emacs-fzf-0.2-0.21912eb
/gnu/store/ja521cm656pfxdx1ijyx09i4j5qs6sd9-go-github-com-junegunn-fzf-0.41.0
/gnu/store/64qlj41abjg64nb3kr24ffhn6cvc6j91-emacs-direnv-2.2.0
/gnu/store/k5y6d1vxxk1c0d51nhhkij5kvid4v9yk-emacs-envrc-0.6
/gnu/store/bw6584ha6wybg76r7lnvdbkrcbnnmfnj-kappanhang-1.3
/gnu/store/pqaghkkyvr6yq62mn1bhbbwcxr9z9650-yggdrasil-0.5.5
/gnu/store/8m35frnsdkslplqqpvd04844rsx5wvi5-demlo-3.8-0.fe9ec4c
/gnu/store/77q7r65cpln59x3b34va398307c4rdyf-aerc-0.15.2
/gnu/store/fbzhvwj1dvazn01r69jylmjskyqhc1pk-kubo-0.19.0
/gnu/store/770nxqpxj0h3np5f5qr3nrjwahk23f54-go-github-com-google-go-jsonnet-0.18.0
/gnu/store/bf0frjxvncd6lkzr3gdycibhsjv16dnv-gron-0.7.1
/gnu/store/wqy0dhlz7206250x3y5r0dn9alvy88f9-r-biocdockermanager-1.11.0
/gnu/store/zj9wh9vplshsd6dp54k33wfnhlajx2x9-actionlint-1.6.26
/gnu/store/3f1qy0jm918nm4h1gnjy6icdi7dwp63r-edirect-13.3.20200128
/gnu/store/5ssnljgksh6lwrwkq4x91pni3i4mzpcp-tz-0.6.1
/gnu/store/7xi5h1gwq6flghhh3qxi66vjw779frj9-fdroidcl-0.7.0
/gnu/store/nfbrqgbld338kgls66fm49jh2hp5hp50-go-gopkg-in-go-playground-validator-v9-9.31.0

Failed:
- chezmoi@1.8.1 :: Failed for a long time, fix is queued
- emacs-ghq@0.2.0 :: Failed due to go-github-com-songmu-gitconfig, the
update requires 11 packages because of a new dependence in version
0.2.0 - github.com/cli/go-gh v0.1.0. The update may be covered after

Pushed as cf842e9b20..5e556a19d2 to master.

--
Oleg
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmXPcIUACgkQdtcnv/Ys
0rXujg/9GAwAhtnHntgj3chxaKMY0rz+SZo6ZPzgibOqlUj2nNhzjUAipRopFkxX
8IZFusSa5wumzJQU3HDXDrRpLeDx8h5KvTg5BKyRM1A34O9Sx+ARyTJLC2l4EhLM
nX1fiVxHc1UPK5+PJ9UU3O7hKFG9UVzrzG84PLhAz1WLF2Ei1u5FtINcYDN/vejy
aCXpC3f+LggmJO+MKxbzOe6A8N2eQjTQwLMmMfD12oxq3byEOxKO3hVzsRL/v4Y2
6bNHhmrxB8ExzJVq8O4jANKNcSOeENlDnisuxB/LX3eEJFYAUWb01STZL703cEoP
VO5FcsYEUeh8vwzipAwxVGjkL3l2Xm9C3IudTuj4ZHAytbp2Uj2Dq0xzXxi93Cr3
61Sct3wuhHzMxa0nGYLJpaVlZ2D+SRkYeNeUibbi5PcnQLMu7PPuVY2r7OXlcuV0
c7i6xEPpdYmzZdLuFzHfSJ//zuJzhSten4dM6AbiBj9iU44ejcjrXE4VGRm2TXyT
YRZOH9W9fvHc/yrMUhx+aR8TItN6JrDFcwUJqfey1zwwv5VKu5D/aeydp5OOUjb+
7Oj7O1xLnSn58IJlEvgio/KfxFaDs6aegO7UbS/9k9idl5WuJerVtBM6RYD5w2z7
8LUM0hXANNXH0cTpXAcpaVnRZCQVbBy4YAeSkx6BWmLijAU2q6c=
=McAk
-----END PGP SIGNATURE-----

Closed
?