unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#65074] [PATCH 00/13] Add scc
@ 2023-08-05  7:00 Fries via Guix-patches via
  2023-08-05  7:00 ` [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
                   ` (14 more replies)
  0 siblings, 15 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65074; +Cc: Fries

This patch series adds the scc command line tool which is a fast Go
based code counter can calculate the COCOMO cost estimation model for
your codebase and the complexity of your codebase.

I added the various go packages that scc depends on to the golang.scm
module and scc to code.scm.

Fries (13):
  gnu: Add go-github-com-chyzer-logex
  gnu: Add go-github-com-chyzer-test
  gnu: Add go-github-com-chyzer-readline
  gnu: Add go-github-com-ianlancetaylor-demangle
  gnu: Add go-github-com-google-pprof
  gnu: Add go-github-com-felixge-fgprof
  gnu: Add go-github-com-pkg-profile
  gnu: Add go-github-com-karrick-godirwalk
  gnu: Add go-github-com-dbaggerman-cuba
  gnu: Add go-github-com-modern-go-concurrent
  gnu: Add go-github-com-modern-go-reflect2
  gnu: Add go-github-com-json-iterator-go
  gnu: Add scc

 gnu/packages/code.scm                         |  36 ++
 gnu/packages/golang.scm                       | 320 ++++++++++++++++++
 ...go-github-com-chzyer-logex-fix-tests.patch |  28 ++
 3 files changed, 384 insertions(+)
 create mode 100644 gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch


base-commit: 42ae42cf41e8f5e88422e30d801251a3427d7f3b
-- 
2.41.0






^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:08   ` ( via Guix-patches via
  2024-04-06 15:55   ` Sharlatan Hellseher
  2023-08-05  7:00 ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
                   ` (13 subsequent siblings)
  14 siblings, 2 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65075; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-chyzer-logex): New variable.
* gnu/packages/patches/go-github-com-chyzer-logex-fix-tests.patch: New file.
---
 gnu/packages/golang.scm                       | 28 +++++++++++++++++++
 ...go-github-com-chzyer-logex-fix-tests.patch | 28 +++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ea6aadbe80..d99f76dc7d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -41,6 +41,7 @@
 ;;; Copyright © 2022 Christopher Howard <christopher@librehacker.com>
 ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
 ;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
+;;; Copyright © 2023 Fries <fries1234@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2112,6 +2113,33 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-chzyer-logex
+  (package
+    (name "go-github-com-chzyer-logex")
+    (version "1.2.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/logex")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0c9yr3r7dl3lcs22cvmh9iknihi9568wzmdywmc2irkjdrn8bpxw"))
+              (patches (search-patches
+                        "go-github-com-chzyer-logex-fix-tests.patch"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/chzyer/logex"
+       #:phases (modify-phases %standard-phases
+                  ;; Tests are completely broken on this package.
+                  (delete 'check))))
+    (home-page "https://github.com/chzyer/logex")
+    (synopsis "Golang log library")
+    (description "A Golang log library that supports tracing and log levels
+that works by wrapping the standard log library.")
+    (license license:expat)))
+
 (define-public go-github-com-blanu-dust
   (package
     (name "go-github-com-blanu-dust")
diff --git a/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch
new file mode 100644
index 0000000000..2a9b7a228b
--- /dev/null
+++ b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch
@@ -0,0 +1,28 @@
+From bb4921ff5ab77a047ae46d3da0f35abbe3f01f41 Mon Sep 17 00:00:00 2001
+From: Fries <fries1234@protonmail.com>
+Date: Fri, 4 Aug 2023 20:06:20 -0700
+Subject: [PATCH] fix logex tests
+
+---
+ logex_test.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/logex_test.go b/logex_test.go
+index e6027f2..4c07d45 100644
+--- a/logex_test.go
++++ b/logex_test.go
+@@ -46,9 +46,9 @@ func TestLogex(t *testing.T) {
+ 
+ 	except := []string{
+ 		".test:logex_test.go:19]aa",
+-		".test:logex_test.go:20][INFO] b",
++		".TestLogex:logex_test.go:42][INFO] b",
+ 		".test:logex_test.go:21][INFO] c",
+-		".test:logex_test.go:22][ERROR] ec",
++		".TestLogex:logex_test.go:42][ERROR] ec",
+ 		".(*S).hello:logex_test.go:11][WARN] warn in hello",
+ 	}
+ 
+-- 
+2.41.0
+
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
  2023-08-05  7:00 ` [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:14   ` ( via Guix-patches via
                     ` (3 more replies)
  2023-08-05  7:00 ` [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
                   ` (12 subsequent siblings)
  14 siblings, 4 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65072; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-chyzer-test): New variable.
---
 gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index d99f76dc7d..ef82f0aa1b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,32 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-chzyer-test
+  (package
+    (name "go-github-com-chzyer-test")
+    (version "1.0.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/test")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1axdlcnx2qjsn5wsr2pr1m0w0a8k4nk5kkrngh742fgh81vzzy8s"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/chzyer/test"
+       #:phases
+       ;; Tests relating to a in-memory disk fail due to a Segfault.
+       (modify-phases %standard-phases
+         (delete 'check))))
+    (propagated-inputs `(("go-github-com-chzyer-logex" ,go-github-com-chzyer-logex)))
+    (home-page "https://github.com/chzyer/test")
+    (synopsis "Testing")
+    (description "Testing library.")
+    (license license:expat)))
+
 (define-public go-github-com-chzyer-logex
   (package
     (name "go-github-com-chzyer-logex")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
  2023-08-05  7:00 ` [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
  2023-08-05  7:00 ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:15   ` ( via Guix-patches via
  2024-04-06 15:56   ` Sharlatan Hellseher
  2023-08-05  7:00 ` [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
                   ` (11 subsequent siblings)
  14 siblings, 2 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65076; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-chyzer-readline): New variable.
---
 gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ef82f0aa1b..1a6d64de23 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,31 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-chzyer-readline
+  (package
+    (name "go-github-com-chzyer-readline")
+    (version "1.5.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/readline")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1msh9qcm7l1idpmfj4nradyprsr86yhk9ch42yxz7xsrybmrs0pb"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/chzyer/readline"))
+    (propagated-inputs `(("go-github-com-chzyer-logex" ,go-github-com-chzyer-logex)
+                         ("go-golang-org-x-sys" ,go-golang-org-x-sys)
+                         ("go-github-com-chzyer-test" ,go-github-com-chzyer-test)))
+    (home-page "https://github.com/chzyer/readline")
+    (synopsis "Pure Go readline library")
+    (description
+     "Readline is a pure Go implementation of a GNU-Readline like library.")
+    (license license:expat)))
+
 (define-public go-github-com-chzyer-test
   (package
     (name "go-github-com-chzyer-test")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (2 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:16   ` ( via Guix-patches via
  2024-04-06 15:53   ` Sharlatan Hellseher
  2023-08-05  7:00 ` [bug#65078] [PATCH 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
                   ` (10 subsequent siblings)
  14 siblings, 2 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65073; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-ianlancetaylor-demangle): New variable.
---
 gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1a6d64de23..5df38a02e5 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,31 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-ianlancetaylor-demangle
+  (package
+    (name "go-github-com-ianlancetaylor-demangle")
+    (version "0.0.0-20230524184225-eabc099b10ab")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ianlancetaylor/demangle")
+                    (commit (go-version->git-ref version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1pvlg1adp50hnw8dz7il473xb197ixirg26cy5hj3ngb4qlajwvc"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/ianlancetaylor/demangle"))
+    (home-page "https://github.com/ianlancetaylor/demangle")
+    (synopsis "Symbol name demangler written in Go")
+    (description
+     "Package demangle defines functions that demangle GCC/LLVM C++ and Rust symbol
+names.  This package recognizes names that were mangled according to the C++ ABI
+defined at https://codesourcery.com/cxx-abi/ and the Rust ABI defined at
+https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html.")
+    (license license:bsd-3)))
+
 (define-public go-github-com-chzyer-readline
   (package
     (name "go-github-com-chzyer-readline")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65078] [PATCH 05/13] gnu: Add go-github-com-google-pprof
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (3 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:18   ` ( via Guix-patches via
  2023-08-05  7:00 ` [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
                   ` (9 subsequent siblings)
  14 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65078; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-google-pprof): Add variable.
---
 gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5df38a02e5..9f5ef95b82 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,34 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-google-pprof
+  (package
+    (name "go-github-com-google-pprof")
+    (version "0.0.0-20230728192033-2ba5b33183c6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/google/pprof")
+                    (commit (go-version->git-ref version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1c5hh0b5cqlhm888lwlf713vv572562x56dpyijs9bzjdy5y54jg"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/google/pprof"))
+    (propagated-inputs
+     `(("go-golang-org-x-sys" ,go-golang-org-x-sys)
+       ("go-github-com-ianlancetaylor-demangle" ,go-github-com-ianlancetaylor-demangle)
+       ("go-github-com-chzyer-readline" ,go-github-com-chzyer-readline)))
+    (home-page "https://github.com/google/pprof")
+    (synopsis
+     "PProf is a tool for visualization and analysis of profiling data")
+    (description
+     "PProf is a tool for collection, manipulation and visualization of performance
+profiles.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-ianlancetaylor-demangle
   (package
     (name "go-github-com-ianlancetaylor-demangle")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (4 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65078] [PATCH 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:18   ` ( via Guix-patches via
  2023-08-05  7:00 ` [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
                   ` (8 subsequent siblings)
  14 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65077; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-felixge-fgprof): Add variable.
---
 gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9f5ef95b82..208b88d934 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,36 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-felixge-fgprof
+  (package
+    (name "go-github-com-felixge-fgprof")
+    (version "0.9.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/felixge/fgprof")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "03q3vnjd13r944y2qvfncs21lfkgmg0y8z14zz0xda1hz490wha3"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/felixge/fgprof"
+       #:phases (modify-phases %standard-phases
+                  ;; The tests fails randomly.
+                  (delete 'check))))
+    (propagated-inputs
+     `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
+       ("go-github-com-google-pprof" ,go-github-com-google-pprof)))
+    (home-page "https://github.com/felixge/fgprof")
+    (synopsis "The Full Go Profiler")
+    (description
+     "Fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as
+@uref{https://www.brendangregg.com/offcpuanalysis.html,Off-CPU} (e.g. I/O) time
+together.")
+    (license license:expat)))
+
 (define-public go-github-com-google-pprof
   (package
     (name "go-github-com-google-pprof")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (5 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:19   ` ( via Guix-patches via
  2023-08-05  7:00 ` [bug#65082] [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
                   ` (7 subsequent siblings)
  14 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65079; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-pkg-profile): New variable.
---
 gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 208b88d934..daa811a5dc 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,36 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-pkg-profile
+  (package
+    (name "go-github-com-pkg-profile")
+    (version "1.7.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/pkg/profile")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0ifr9gnycjwh7dbvsb5vgs9kzlr548cb4m45zvl8i8lgd3qhppy1"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/pkg/profile"
+       #:phases (modify-phases %standard-phases
+                  ;; profile drops a cpu.pprof file inside its source directory
+                  ;; after tests which makes it unreproducable so we remove it.
+                  (add-after 'check 'delete-test-file
+                    (lambda _
+                      (delete-file "src/github.com/pkg/profile/cpu.pprof"))))))
+    (propagated-inputs `(("go-github-com-felixge-fgprof" ,go-github-com-felixge-fgprof)))
+    (home-page "https://github.com/pkg/profile")
+    (synopsis "Simple profiling for Go")
+    (description
+     "Profile provides a simple way to manage runtime/pprof profiling of your
+Go application.")
+    (license license:bsd-2)))
+
 (define-public go-github-com-felixge-fgprof
   (package
     (name "go-github-com-felixge-fgprof")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65082] [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (6 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:21   ` ( via Guix-patches via
  2023-08-05  7:00 ` [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
                   ` (6 subsequent siblings)
  14 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65082; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-karrick-godirwalk): Add variable.
---
 gnu/packages/golang.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index daa811a5dc..69700d50b1 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,28 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-karrick-godirwalk
+  (package
+    (name "go-github-com-karrick-godirwalk")
+    (version "1.17.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/karrick/godirwalk")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0jyvai5vpmx86l71hg9j6lxc2b4v32ajvcmjlz40zimfb9ip11q9"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/karrick/godirwalk"))
+    (home-page "https://github.com/karrick/godirwalk")
+    (synopsis "Fast directory traversal for Golang")
+    (description
+     "Package godirwalk provides functions to read and traverse directory trees.")
+    (license license:bsd-2)))
+
 (define-public go-github-com-pkg-profile
   (package
     (name "go-github-com-pkg-profile")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (7 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65082] [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:22   ` ( via Guix-patches via
  2023-08-05  7:00 ` [bug#65081] [PATCH 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
                   ` (5 subsequent siblings)
  14 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65080; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-dbaggerman-cuba): Add variable.
---
 gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 69700d50b1..fd138c1566 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,32 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-dbaggerman-cuba
+  (package
+    (name "go-github-com-dbaggerman-cuba")
+    (version "0.3.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/dbaggerman/cuba")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1sbria32fh2bzc8agnm9p5id5z15mrqj4fyxhnkq05bh2qjkrwc7"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/dbaggerman/cuba"))
+    (propagated-inputs
+     `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
+       ("go-github-com-pkg-profile" ,go-github-com-pkg-profile)
+       ("go-github-com-karrick-godirwalk" ,go-github-com-karrick-godirwalk)))
+    (home-page "https://github.com/dbaggerman/cuba")
+    (synopsis "Project Cuba")
+    (description
+     "Experiment in allowing workers to own the means of production.")
+    (license license:expat)))
+
 (define-public go-github-com-karrick-godirwalk
   (package
     (name "go-github-com-karrick-godirwalk")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65081] [PATCH 10/13] gnu: Add go-github-com-modern-go-concurrent
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (8 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:24   ` ( via Guix-patches via
  2023-08-05  7:00 ` [bug#65084] [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
                   ` (4 subsequent siblings)
  14 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65081; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-modern-go-concurrent): Add variable.
---
 gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index fd138c1566..72dfc51507 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6773,6 +6773,30 @@ (define-public go-github-com-mitchellh-reflectwalk
 unknown structures such as those decoded from JSON.")
     (license license:expat)))
 
+(define-public go-github-com-modern-go-concurrent
+  (package
+    (name "go-github-com-modern-go-concurrent")
+    (version "0.0.0-20180306012644-bacd9c7ef1dd")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/modern-go/concurrent")
+                    (commit (go-version->git-ref version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0s0fxccsyb8icjmiym5k7prcqx36hvgdwl588y0491gi18k5i4zs"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/modern-go/concurrent"))
+    (home-page "https://github.com/modern-go/concurrent")
+    (synopsis "Concurrency utilities")
+    (description
+     "A Go library providing various concurrency utilities including a backport
+of sync.Map to Go versions below 1.9 and a cancellable Goroutine with explicit
+ownership.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-mitchellh-copystructure
   (package
     (name "go-github-com-mitchellh-copystructure")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65084] [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (9 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65081] [PATCH 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
@ 2023-08-05  7:00 ` Fries via Guix-patches via
  2023-08-05  9:24   ` ( via Guix-patches via
  2023-08-05  7:01 ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
                   ` (3 subsequent siblings)
  14 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:00 UTC (permalink / raw)
  To: 65084; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-modern-go-reflect2): Add variable.
---
 gnu/packages/golang.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 72dfc51507..9b38ed4daf 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6773,6 +6773,29 @@ (define-public go-github-com-mitchellh-reflectwalk
 unknown structures such as those decoded from JSON.")
     (license license:expat)))
 
+(define-public go-github-com-modern-go-reflect2
+  (package
+    (name "go-github-com-modern-go-reflect2")
+    (version "1.0.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/modern-go/reflect2")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "05a89f9j4nj8v1bchfkv2sy8piz746ikj831ilbp54g8dqhl8vzr"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/modern-go/reflect2"))
+    (home-page "https://github.com/modern-go/reflect2")
+    (synopsis "Cheaper reflect API")
+    (description
+     "This library provides a reflect api for Go programs
+without the runtime cost of the standard library reflect.Value.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-modern-go-concurrent
   (package
     (name "go-github-com-modern-go-concurrent")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (10 preceding siblings ...)
  2023-08-05  7:00 ` [bug#65084] [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
@ 2023-08-05  7:01 ` Fries via Guix-patches via
  2023-08-05  9:25   ` ( via Guix-patches via
  2023-08-05  7:01 ` [bug#65083] [PATCH 13/13] gnu: Add scc Fries via Guix-patches via
                   ` (2 subsequent siblings)
  14 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:01 UTC (permalink / raw)
  To: 65085; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-json-iterator-go): Add variable.
---
 gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9b38ed4daf..b08e7060fc 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4386,6 +4386,39 @@ (define-public go-github-com-goccy-go-json
      "Fast JSON encoder/decoder compatible with encoding/json for Go.")
     (license license:expat)))
 
+(define-public go-github-com-json-iterator-go
+  (package
+    (name "go-github-com-json-iterator-go")
+    (version "1.1.12")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/json-iterator/go")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1c8f0hxm18wivx31bs615x3vxs2j3ba0v6vxchsjhldc8kl311bz"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/json-iterator/go"))
+    (propagated-inputs
+     `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
+       ("go-github-com-modern-go-reflect2" ,go-github-com-modern-go-reflect2)
+       ("go-github-com-modern-go-concurrent" ,go-github-com-modern-go-concurrent)
+       ("go-github-com-google-gofuzz" ,go-github-com-google-gofuzz)
+       ("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew)))
+    (home-page "https://github.com/json-iterator/go")
+    (synopsis "High-performance, 100% compatible drop-in replacement of encoding/json")
+    (description
+     "Package jsoniter implements encoding and decoding of JSON as defined in
+@uref{https://rfc-editor.org/rfc/rfc4627.html,RFC 4627} and provides interfaces
+with identical syntax of standard lib encoding/json.  Converting from
+encoding/json to jsoniter is no more than replacing the package with jsoniter
+and variable type declarations (if any).  jsoniter interfaces gives 100%
+compatibility with code using standard lib.")
+    (license license:expat)))
+
 (define-public go-github-com-getsentry-raven-go
   (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92")
         (revision "0"))
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65083] [PATCH 13/13] gnu: Add scc
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (11 preceding siblings ...)
  2023-08-05  7:01 ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
@ 2023-08-05  7:01 ` Fries via Guix-patches via
  2023-08-05  9:26   ` ( via Guix-patches via
       [not found]   ` <5f2cbbcab7bffce62f537af2912233c1b30c58a89092d9c56bdbb27a90879851@mu.id>
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
  2024-04-06 15:50 ` bug#65074: [PATCH 00/13] " Sharlatan Hellseher
  14 siblings, 2 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05  7:01 UTC (permalink / raw)
  To: 65083; +Cc: Fries

* gnu/packages/code.scm (scc): New variable.
---
 gnu/packages/code.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 9cdda2b751..6a74d1a9ca 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -44,6 +44,7 @@ (define-module (gnu packages code)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
+  #:use-module (guix build-system go)
   #:use-module (gnu packages)
   #:use-module (gnu packages autogen)
   #:use-module (gnu packages autotools)
@@ -373,6 +374,41 @@ (define-public cloc
 cloc can handle a greater variety of programming languages.")
     (license license:gpl2+)))
 
+(define-public scc
+  (package
+    (name "scc")
+    (version "3.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/boyter/scc")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1rkkfg6jimlc2rkajk6ypd5v0m3zai25ga5idz2pmkmzakv82n21"))))
+    (build-system go-build-system)
+    (native-inputs (list go-github-com-dbaggerman-cuba
+                         go-github-com-json-iterator-go
+                         go-github-com-mattn-go-runewidth
+                         go-github-com-minio-blake2b-simd
+                         go-github-com-spf13-cobra
+                         go-golang-org-x-text
+                         go-gopkg-in-yaml-v2))
+    (arguments
+     `(#:import-path "github.com/boyter/scc"))
+    (home-page "https://github.com/boyter/scc")
+    (synopsis "Very fast accurate code counter written in pure Go")
+    (description
+     "A tool similar to cloc, sloccount and tokei.
+For counting the lines of code, blank lines, comment lines, and
+physical lines of source code in many programming languages.
+
+Goal is to be the fastest code counter possible, but also
+perform COCOMO calculation like sloccount and to estimate
+code complexity similar to cyclomatic complexity calculators.")
+    (license license:expat)))
+
 (define-public the-silver-searcher
   (package
     (name "the-silver-searcher")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex
  2023-08-05  7:00 ` [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
@ 2023-08-05  9:08   ` ( via Guix-patches via
  2024-04-06 15:55   ` Sharlatan Hellseher
  1 sibling, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:08 UTC (permalink / raw)
  To: Fries; +Cc: 65075

Hi!

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/chzyer/logex"
> +       #:phases (modify-phases %standard-phases
> +                  ;; Tests are completely broken on this package.
> +                  (delete 'check))))

Generally this should look like this now:

  (arguments
   (list #:import-path "github.com/chzyer/logex"
         #:phases
         #~(modify-phases %standard-phases
             (delete 'check))))

Also, generally, you'd use ``#:tests? #f'' rather than
``(delete 'check)'' to disable tests.

> --- /dev/null
> +++ b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch

Doesn't this effectively do nothing, since you disabled tests?

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test
  2023-08-05  7:00 ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
@ 2023-08-05  9:14   ` ( via Guix-patches via
  2023-09-01 12:08   ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Maxim Cournoyer
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:14 UTC (permalink / raw)
  To: Fries; +Cc: 65072

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/chzyer/test"
> +       #:phases
> +       ;; Tests relating to a in-memory disk fail due to a Segfault.
> +       (modify-phases %standard-phases
> +         (delete 'check))))

Same as before: use LIST, #~, and #:TESTS?.

> +    (propagated-inputs `(("go-github-com-chzyer-logex" ,go-github-com-chzyer-logex)))

Inputs are now written like this:

  (propagated-inputs
   (list go-github-com-chzyer-logex))

> +    (synopsis "Testing")
> +    (description "Testing library.")

Please provide a more thorough synopsis and description.

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline
  2023-08-05  7:00 ` [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
@ 2023-08-05  9:15   ` ( via Guix-patches via
  2024-04-06 15:56   ` Sharlatan Hellseher
  1 sibling, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:15 UTC (permalink / raw)
  To: Fries; +Cc: 65076

Hi,

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/chzyer/readline"))

Again, use LIST here.

> +    (propagated-inputs `(("go-github-com-chzyer-logex" ,go-github-com-chzyer-logex)
> +                         ("go-golang-org-x-sys" ,go-golang-org-x-sys)
> +                         ("go-github-com-chzyer-test" ,go-github-com-chzyer-test)))

  (propagated-inputs
   (list go-github-com-chzyer-logex
         go-github-com-chzyer-test
         go-golang-org-x-sys))

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle
  2023-08-05  7:00 ` [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
@ 2023-08-05  9:16   ` ( via Guix-patches via
  2024-04-06 15:53   ` Sharlatan Hellseher
  1 sibling, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:16 UTC (permalink / raw)
  To: Fries; +Cc: 65073

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (build-system go-build-system)
> +    (arguments
> +     '(#:import-path "github.com/ianlancetaylor/demangle"))

  LIST

> +    (home-page "https://github.com/ianlancetaylor/demangle")
> +    (synopsis "Symbol name demangler written in Go")
> +    (description
> +     "Package demangle defines functions that demangle GCC/LLVM C++ and Rust symbol

s/Package demangle/This package/

Go developers no know much of grammars.

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65078] [PATCH 05/13] gnu: Add go-github-com-google-pprof
  2023-08-05  7:00 ` [bug#65078] [PATCH 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
@ 2023-08-05  9:18   ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:18 UTC (permalink / raw)
  To: Fries; +Cc: 65078

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/google/pprof"))

LIST etc.

> +    (propagated-inputs
> +     `(("go-golang-org-x-sys" ,go-golang-org-x-sys)
> +       ("go-github-com-ianlancetaylor-demangle" ,go-github-com-ianlancetaylor-demangle)
> +       ("go-github-com-chzyer-readline" ,go-github-com-chzyer-readline)))

LIST here too.




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof
  2023-08-05  7:00 ` [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
@ 2023-08-05  9:18   ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:18 UTC (permalink / raw)
  To: Fries; +Cc: 65077

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/felixge/fgprof"
> +       #:phases (modify-phases %standard-phases
> +                  ;; The tests fails randomly.
> +                  (delete 'check))))

#:TESTS? #F and LIST.

> +    (propagated-inputs
> +     `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
> +       ("go-github-com-google-pprof" ,go-github-com-google-pprof)))

LIST.

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile
  2023-08-05  7:00 ` [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
@ 2023-08-05  9:19   ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:19 UTC (permalink / raw)
  To: Fries; +Cc: 65079

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (build-system go-build-system)
> +    (arguments
> +     '(#:import-path "github.com/pkg/profile"

Use LIST and #~.

> +       #:phases (modify-phases %standard-phases
> +                  ;; profile drops a cpu.pprof file inside its source directory
> +                  ;; after tests which makes it unreproducable so we remove it.

s/unreproducable/unreproducible/

> +                  (add-after 'check 'delete-test-file
> +                    (lambda _
> +                      (delete-file "src/github.com/pkg/profile/cpu.pprof"))))))

You can make this neater like so:

  (add-after 'check 'delete-test-file
    (lambda* (#:key import-path #:allow-other-keys)
      (delete-file (string-append "src/" import-path "/cpu.pprof"))))

> +    (propagated-inputs `(("go-github-com-felixge-fgprof" ,go-github-com-felixge-fgprof)))

LIST here too.

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65082] [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk
  2023-08-05  7:00 ` [bug#65082] [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
@ 2023-08-05  9:21   ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:21 UTC (permalink / raw)
  To: Fries; +Cc: 65082

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/karrick/godirwalk"))

LIST.

> +    (description
> +     "Package godirwalk provides functions to read and traverse directory trees.")

s/Package godirwalk/This package/

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba
  2023-08-05  7:00 ` [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
@ 2023-08-05  9:22   ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:22 UTC (permalink / raw)
  To: Fries; +Cc: 65080

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/dbaggerman/cuba"))

LIST.

> +    (propagated-inputs
> +     `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
> +       ("go-github-com-pkg-profile" ,go-github-com-pkg-profile)
> +       ("go-github-com-karrick-godirwalk" ,go-github-com-karrick-godirwalk)))

LIST again.

> +    (synopsis "Project Cuba")
> +    (description
> +     "Experiment in allowing workers to own the means of production.")

Heh.  Reluctantly, I have to suggest a more technical description :)

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65081] [PATCH 10/13] gnu: Add go-github-com-modern-go-concurrent
  2023-08-05  7:00 ` [bug#65081] [PATCH 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
@ 2023-08-05  9:24   ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:24 UTC (permalink / raw)
  To: Fries; +Cc: 65081

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/modern-go/concurrent"))

LIST.

> +    (synopsis "Concurrency utilities")

s/utilities/utilities for Go/, perhaps?

> +    (description
> +     "A Go library providing various concurrency utilities including a backport
> +of sync.Map to Go versions below 1.9 and a cancellable Goroutine with explicit
> +ownership.")

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65084] [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2
  2023-08-05  7:00 ` [bug#65084] [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
@ 2023-08-05  9:24   ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:24 UTC (permalink / raw)
  To: Fries; +Cc: 65084

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/modern-go/reflect2"))

LIST.

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go
  2023-08-05  7:01 ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
@ 2023-08-05  9:25   ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:25 UTC (permalink / raw)
  To: Fries; +Cc: 65085

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/json-iterator/go"))

LIST.

> +    (propagated-inputs
> +     `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
> +       ("go-github-com-modern-go-reflect2" ,go-github-com-modern-go-reflect2)
> +       ("go-github-com-modern-go-concurrent" ,go-github-com-modern-go-concurrent)
> +       ("go-github-com-google-gofuzz" ,go-github-com-google-gofuzz)
> +       ("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew)))

LIST.

> +    (home-page "https://github.com/json-iterator/go")
> +    (synopsis "High-performance, 100% compatible drop-in replacement of encoding/json")

s/of/for/

> +    (description
> +     "Package jsoniter implements encoding and decoding of JSON as defined in

s/Package jsoniter/This package/

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65083] [PATCH 13/13] gnu: Add scc
  2023-08-05  7:01 ` [bug#65083] [PATCH 13/13] gnu: Add scc Fries via Guix-patches via
@ 2023-08-05  9:26   ` ( via Guix-patches via
       [not found]   ` <5f2cbbcab7bffce62f537af2912233c1b30c58a89092d9c56bdbb27a90879851@mu.id>
  1 sibling, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05  9:26 UTC (permalink / raw)
  To: Fries; +Cc: 65083

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> +    (native-inputs (list go-github-com-dbaggerman-cuba
> +                         go-github-com-json-iterator-go
> +                         go-github-com-mattn-go-runewidth
> +                         go-github-com-minio-blake2b-simd
> +                         go-github-com-spf13-cobra
> +                         go-golang-org-x-text
> +                         go-gopkg-in-yaml-v2))

s/native-inputs/inputs/, except for the packages used in tests, if any.

> +    (arguments
> +     `(#:import-path "github.com/boyter/scc"))

LIST.

> +    (home-page "https://github.com/boyter/scc")
> +    (synopsis "Very fast accurate code counter written in pure Go")

Maybe:

  (synopsis "Fast code counter written in Go")

> +    (description
> +     "A tool similar to cloc, sloccount and tokei.
> +For counting the lines of code, blank lines, comment lines, and
> +physical lines of source code in many programming languages.
> +
> +Goal is to be the fastest code counter possible, but also
> +perform COCOMO calculation like sloccount and to estimate
> +code complexity similar to cyclomatic complexity calculators.")

  (description
   "@command{scc} provides a lines-of-code counter similar to tools like
@command{cloc} and @command{sloccount}.  It aims to be as fast as
possible while supporting @acronym{COCOMO,Constructive Cost Model}
calculation and estimation of code complexity.")




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65083] [PATCH 13/13] gnu: Add scc
       [not found]   ` <5f2cbbcab7bffce62f537af2912233c1b30c58a89092d9c56bdbb27a90879851@mu.id>
@ 2023-08-05 10:01     ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05 10:01 UTC (permalink / raw)
  To: (; +Cc: 65083, fries1234

"(" <paren@disroot.org> writes:
>   (description
>    "@command{scc} provides a lines-of-code counter similar to tools like
> @command{cloc} and @command{sloccount}.  It aims to be as fast as
> possible while 

Agh. Should be:

  (description
   "@command{scc} provides a lines-of-code counter similar to tools like
  @command{cloc} and @command{sloccount}.  It aims to be as fast as
  possible while supporting @acronym{COCOMO,Constructive Cost Model}
  calculation and code complexity estimation.")

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 00/13] Add scc
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (12 preceding siblings ...)
  2023-08-05  7:01 ` [bug#65083] [PATCH 13/13] gnu: Add scc Fries via Guix-patches via
@ 2023-08-05 11:01 ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
                     ` (12 more replies)
  2024-04-06 15:50 ` bug#65074: [PATCH 00/13] " Sharlatan Hellseher
  14 siblings, 13 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

This revision of the scc patch series fixes some bad practices. scc has
been confirmed to build on x86-64-linux, aarch64-linux, and
riscv64-linux system targets.

Fries (13):
  gnu: Add go-github-com-chyzer-logex
  gnu: Add go-github-com-chyzer-test
  gnu: Add go-github-com-chyzer-readline
  gnu: Add go-github-com-ianlancetaylor-demangle
  gnu: Add go-github-com-google-pprof
  gnu: Add go-github-com-felixge-fgprof
  gnu: Add go-github-com-pkg-profile
  gnu: Add go-github-com-karrick-godirwalk
  gnu: Add go-github-com-dbaggerman-cuba
  gnu: Add go-github-com-modern-go-concurrent
  gnu: Add go-github-com-modern-go-reflect2
  gnu: Add go-github-com-json-iterator-go
  gnu: Add scc

 gnu/packages/code.scm                         |  35 ++
 gnu/packages/golang.scm                       | 311 ++++++++++++++++++
 ...go-github-com-chzyer-logex-fix-tests.patch |  28 ++
 3 files changed, 374 insertions(+)
 create mode 100644 gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch


base-commit: 42ae42cf41e8f5e88422e30d801251a3427d7f3b
-- 
2.41.0






^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 01/13] gnu: Add go-github-com-chyzer-logex
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
                     ` (11 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-chyzer-logex): New variable.
* gnu/packages/patches/go-github-com-chyzer-logex-fix-tests.patch: New file.
---
 gnu/packages/golang.scm                       | 25 +++++++++++++++++
 ...go-github-com-chzyer-logex-fix-tests.patch | 28 +++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ea6aadbe80..7005515bb2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -41,6 +41,7 @@
 ;;; Copyright © 2022 Christopher Howard <christopher@librehacker.com>
 ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
 ;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
+;;; Copyright © 2023 Fries <fries1234@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2112,6 +2113,30 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-chzyer-logex
+  (package
+    (name "go-github-com-chzyer-logex")
+    (version "1.2.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/logex")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0c9yr3r7dl3lcs22cvmh9iknihi9568wzmdywmc2irkjdrn8bpxw"))
+              (patches (search-patches
+                        "go-github-com-chzyer-logex-fix-tests.patch"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/chzyer/logex"))
+    (home-page "https://github.com/chzyer/logex")
+    (synopsis "Golang log library")
+    (description "A Golang log library that supports tracing and log levels
+that works by wrapping the standard log library.")
+    (license license:expat)))
+
 (define-public go-github-com-blanu-dust
   (package
     (name "go-github-com-blanu-dust")
diff --git a/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch
new file mode 100644
index 0000000000..2a9b7a228b
--- /dev/null
+++ b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch
@@ -0,0 +1,28 @@
+From bb4921ff5ab77a047ae46d3da0f35abbe3f01f41 Mon Sep 17 00:00:00 2001
+From: Fries <fries1234@protonmail.com>
+Date: Fri, 4 Aug 2023 20:06:20 -0700
+Subject: [PATCH] fix logex tests
+
+---
+ logex_test.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/logex_test.go b/logex_test.go
+index e6027f2..4c07d45 100644
+--- a/logex_test.go
++++ b/logex_test.go
+@@ -46,9 +46,9 @@ func TestLogex(t *testing.T) {
+ 
+ 	except := []string{
+ 		".test:logex_test.go:19]aa",
+-		".test:logex_test.go:20][INFO] b",
++		".TestLogex:logex_test.go:42][INFO] b",
+ 		".test:logex_test.go:21][INFO] c",
+-		".test:logex_test.go:22][ERROR] ec",
++		".TestLogex:logex_test.go:42][ERROR] ec",
+ 		".(*S).hello:logex_test.go:11][WARN] warn in hello",
+ 	}
+ 
+-- 
+2.41.0
+
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 02/13] gnu: Add go-github-com-chyzer-test
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
                     ` (10 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-chyzer-test): New variable.
---
 gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 7005515bb2..171bd3bdb5 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,30 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-chzyer-test
+  (package
+    (name "go-github-com-chzyer-test")
+    (version "1.0.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/test")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1axdlcnx2qjsn5wsr2pr1m0w0a8k4nk5kkrngh742fgh81vzzy8s"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:tests? #f ;; Tests relating to a in-memory disk fail due to a Segfault.
+           #:import-path "github.com/chzyer/test"))
+    (propagated-inputs
+     (list go-github-com-chzyer-logex))
+    (home-page "https://github.com/chzyer/test")
+    (synopsis "Testing library for Go")
+    (description "A testing library for Go programs.")
+    (license license:expat)))
+
 (define-public go-github-com-chzyer-logex
   (package
     (name "go-github-com-chzyer-logex")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 03/13] gnu: Add go-github-com-chyzer-readline
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
                     ` (9 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-chyzer-readline): New variable.
---
 gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 171bd3bdb5..cc8c2357b6 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,30 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-chzyer-readline
+  (package
+    (name "go-github-com-chzyer-readline")
+    (version "1.5.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/readline")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1msh9qcm7l1idpmfj4nradyprsr86yhk9ch42yxz7xsrybmrs0pb"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/chzyer/readline"))
+    (propagated-inputs (list go-github-com-chzyer-logex go-golang-org-x-sys
+                             go-github-com-chzyer-test))
+    (home-page "https://github.com/chzyer/readline")
+    (synopsis "Pure Go readline library")
+    (description
+     "Readline is a pure Go implementation of a GNU-Readline like library.")
+    (license license:expat)))
+
 (define-public go-github-com-chzyer-test
   (package
     (name "go-github-com-chzyer-test")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 04/13] gnu: Add go-github-com-ianlancetaylor-demangle
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (2 preceding siblings ...)
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
                     ` (8 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-ianlancetaylor-demangle): New variable.
---
 gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index cc8c2357b6..81e2a12305 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,31 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-ianlancetaylor-demangle
+  (package
+    (name "go-github-com-ianlancetaylor-demangle")
+    (version "0.0.0-20230524184225-eabc099b10ab")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ianlancetaylor/demangle")
+                    (commit (go-version->git-ref version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1pvlg1adp50hnw8dz7il473xb197ixirg26cy5hj3ngb4qlajwvc"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/ianlancetaylor/demangle"))
+    (home-page "https://github.com/ianlancetaylor/demangle")
+    (synopsis "Symbol name demangler written in Go")
+    (description
+     "This package defines functions that demangle GCC/LLVM C++ and Rust symbol
+names.  This package recognizes names that were mangled according to the C++ ABI
+defined at https://codesourcery.com/cxx-abi/ and the Rust ABI defined at
+https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html.")
+    (license license:bsd-3)))
+
 (define-public go-github-com-chzyer-readline
   (package
     (name "go-github-com-chzyer-readline")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 05/13] gnu: Add go-github-com-google-pprof
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (3 preceding siblings ...)
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
                     ` (7 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-google-pprof): Add variable.
---
 gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 81e2a12305..eb5379b540 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,33 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-google-pprof
+  (package
+    (name "go-github-com-google-pprof")
+    (version "0.0.0-20230728192033-2ba5b33183c6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/google/pprof")
+                    (commit (go-version->git-ref version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1c5hh0b5cqlhm888lwlf713vv572562x56dpyijs9bzjdy5y54jg"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/google/pprof"))
+    (propagated-inputs (list go-golang-org-x-sys
+                             go-github-com-ianlancetaylor-demangle
+                             go-github-com-chzyer-readline))
+    (home-page "https://github.com/google/pprof")
+    (synopsis
+     "PProf is a tool for visualization and analysis of profiling data")
+    (description
+     "PProf is a tool for collection, manipulation and visualization of performance
+profiles.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-ianlancetaylor-demangle
   (package
     (name "go-github-com-ianlancetaylor-demangle")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 06/13] gnu: Add go-github-com-felixge-fgprof
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (4 preceding siblings ...)
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
                     ` (6 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-felixge-fgprof): Add variable.
---
 gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index eb5379b540..ab03812125 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,33 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-felixge-fgprof
+  (package
+    (name "go-github-com-felixge-fgprof")
+    (version "0.9.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/felixge/fgprof")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "03q3vnjd13r944y2qvfncs21lfkgmg0y8z14zz0xda1hz490wha3"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:tests? #f
+           #:import-path "github.com/felixge/fgprof"))
+    (propagated-inputs (list go-github-com-stretchr-testify
+                             go-github-com-google-pprof))
+    (home-page "https://github.com/felixge/fgprof")
+    (synopsis "The Full Go Profiler")
+    (description
+     "Fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as
+@uref{https://www.brendangregg.com/offcpuanalysis.html,Off-CPU} (e.g. I/O) time
+together.")
+    (license license:expat)))
+
 (define-public go-github-com-google-pprof
   (package
     (name "go-github-com-google-pprof")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 07/13] gnu: Add go-github-com-pkg-profile
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (5 preceding siblings ...)
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
                     ` (5 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-pkg-profile): New variable.
---
 gnu/packages/golang.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ab03812125..c8bc3040d9 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,37 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-pkg-profile
+  (package
+    (name "go-github-com-pkg-profile")
+    (version "1.7.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/pkg/profile")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0ifr9gnycjwh7dbvsb5vgs9kzlr548cb4m45zvl8i8lgd3qhppy1"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/pkg/profile"
+           #:phases #~(modify-phases %standard-phases
+                        ;; profile drops a cpu.pprof file inside its source directory
+                        ;; after tests which makes it unreproducible so we remove it.
+                        (add-after 'check 'delete-test-file
+                          (lambda* (#:key import-path #:allow-other-keys)
+                            (delete-file (string-append "src/" import-path
+                                                        "/cpu.pprof")))))))
+    (propagated-inputs (list go-github-com-felixge-fgprof))
+    (home-page "https://github.com/pkg/profile")
+    (synopsis "Simple profiling for Go")
+    (description
+     "Profile provides a simple way to manage runtime/pprof profiling of your
+Go application.")
+    (license license:bsd-2)))
+
 (define-public go-github-com-felixge-fgprof
   (package
     (name "go-github-com-felixge-fgprof")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 08/13] gnu: Add go-github-com-karrick-godirwalk
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (6 preceding siblings ...)
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
                     ` (4 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-karrick-godirwalk): Add variable.
---
 gnu/packages/golang.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index c8bc3040d9..7c981b29c3 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,28 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-karrick-godirwalk
+  (package
+    (name "go-github-com-karrick-godirwalk")
+    (version "1.17.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/karrick/godirwalk")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0jyvai5vpmx86l71hg9j6lxc2b4v32ajvcmjlz40zimfb9ip11q9"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/karrick/godirwalk"))
+    (home-page "https://github.com/karrick/godirwalk")
+    (synopsis "Fast directory traversal library for Go")
+    (description
+     "This package provides functions to read and traverse directory trees.")
+    (license license:bsd-2)))
+
 (define-public go-github-com-pkg-profile
   (package
     (name "go-github-com-pkg-profile")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 09/13] gnu: Add go-github-com-dbaggerman-cuba
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (7 preceding siblings ...)
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
@ 2023-08-05 11:01   ` Fries via Guix-patches via
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
                     ` (3 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:01 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-dbaggerman-cuba): Add variable.
---
 gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 7c981b29c3..803ff2a3b5 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,32 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-dbaggerman-cuba
+  (package
+    (name "go-github-com-dbaggerman-cuba")
+    (version "0.3.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/dbaggerman/cuba")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1sbria32fh2bzc8agnm9p5id5z15mrqj4fyxhnkq05bh2qjkrwc7"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/dbaggerman/cuba"))
+    (propagated-inputs (list go-github-com-stretchr-testify
+                             go-github-com-pkg-profile
+                             go-github-com-karrick-godirwalk))
+    (home-page "https://github.com/dbaggerman/cuba")
+    (synopsis "Goroutine parallelism library")
+    (description
+     "A library for Goroutines that helps to implement more complicated
+parallel cases.")
+    (license license:expat)))
+
 (define-public go-github-com-karrick-godirwalk
   (package
     (name "go-github-com-karrick-godirwalk")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 10/13] gnu: Add go-github-com-modern-go-concurrent
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (8 preceding siblings ...)
  2023-08-05 11:01   ` [bug#65074] [PATCH v2 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
@ 2023-08-05 11:02   ` Fries via Guix-patches via
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
                     ` (2 subsequent siblings)
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:02 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-modern-go-concurrent): Add variable.
---
 gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 803ff2a3b5..f38cd334a3 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6764,6 +6764,30 @@ (define-public go-github-com-mitchellh-reflectwalk
 unknown structures such as those decoded from JSON.")
     (license license:expat)))
 
+(define-public go-github-com-modern-go-concurrent
+  (package
+    (name "go-github-com-modern-go-concurrent")
+    (version "0.0.0-20180306012644-bacd9c7ef1dd")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/modern-go/concurrent")
+                    (commit (go-version->git-ref version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0s0fxccsyb8icjmiym5k7prcqx36hvgdwl588y0491gi18k5i4zs"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/modern-go/concurrent"))
+    (home-page "https://github.com/modern-go/concurrent")
+    (synopsis "Concurrency utilities for Go")
+    (description
+     "A Go library providing various concurrency utilities including a backport
+of @code{sync.Map} to Go versions below 1.9 and a cancellable Goroutine with
+explicit ownership.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-mitchellh-copystructure
   (package
     (name "go-github-com-mitchellh-copystructure")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 11/13] gnu: Add go-github-com-modern-go-reflect2
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (9 preceding siblings ...)
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
@ 2023-08-05 11:02   ` Fries via Guix-patches via
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 13/13] gnu: Add scc Fries via Guix-patches via
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:02 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-modern-go-reflect2): Add variable.
---
 gnu/packages/golang.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f38cd334a3..1eb0eae3ec 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6764,6 +6764,29 @@ (define-public go-github-com-mitchellh-reflectwalk
 unknown structures such as those decoded from JSON.")
     (license license:expat)))
 
+(define-public go-github-com-modern-go-reflect2
+  (package
+    (name "go-github-com-modern-go-reflect2")
+    (version "1.0.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/modern-go/reflect2")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "05a89f9j4nj8v1bchfkv2sy8piz746ikj831ilbp54g8dqhl8vzr"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/modern-go/reflect2"))
+    (home-page "https://github.com/modern-go/reflect2")
+    (synopsis "Cheaper reflect API")
+    (description
+     "This library provides a reflect api for Go programs
+without the runtime cost of the standard library reflect.Value.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-modern-go-concurrent
   (package
     (name "go-github-com-modern-go-concurrent")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 12/13] gnu: Add go-github-com-json-iterator-go
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (10 preceding siblings ...)
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
@ 2023-08-05 11:02   ` Fries via Guix-patches via
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 13/13] gnu: Add scc Fries via Guix-patches via
  12 siblings, 0 replies; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:02 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/golang.scm (go-github-com-json-iterator-go): Add variable.
---
 gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1eb0eae3ec..a5f3542c78 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4377,6 +4377,39 @@ (define-public go-github-com-goccy-go-json
      "Fast JSON encoder/decoder compatible with encoding/json for Go.")
     (license license:expat)))
 
+(define-public go-github-com-json-iterator-go
+  (package
+    (name "go-github-com-json-iterator-go")
+    (version "1.1.12")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/json-iterator/go")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1c8f0hxm18wivx31bs615x3vxs2j3ba0v6vxchsjhldc8kl311bz"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/json-iterator/go"))
+    (propagated-inputs (list go-github-com-stretchr-testify
+                             go-github-com-modern-go-reflect2
+                             go-github-com-modern-go-concurrent
+                             go-github-com-google-gofuzz
+                             go-github-com-davecgh-go-spew))
+    (home-page "https://github.com/json-iterator/go")
+    (synopsis
+     "High-performance, 100% compatible drop-in replacement for encoding/json")
+    (description
+     "This package implements encoding and decoding of JSON as defined in
+@uref{https://rfc-editor.org/rfc/rfc4627.html,RFC 4627} and provides interfaces
+with identical syntax of standard lib encoding/json.  Converting from
+encoding/json to jsoniter is no more than replacing the package with jsoniter
+and variable type declarations (if any).  jsoniter interfaces gives 100%
+compatibility with code using standard lib.")
+    (license license:expat)))
+
 (define-public go-github-com-getsentry-raven-go
   (let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92")
         (revision "0"))
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 13/13] gnu: Add scc
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
                     ` (11 preceding siblings ...)
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
@ 2023-08-05 11:02   ` Fries via Guix-patches via
  2023-08-05 11:53     ` ( via Guix-patches via
  12 siblings, 1 reply; 50+ messages in thread
From: Fries via Guix-patches via @ 2023-08-05 11:02 UTC (permalink / raw)
  To: 65074; +Cc: Fries

* gnu/packages/code.scm (scc): New variable.
---
 gnu/packages/code.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 9cdda2b751..3b95bb3664 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2021 lu hui <luhuins@163.com>
 ;;; Copyright © 2021, 2022 Foo Chuan Wei <chuanwei.foo@hotmail.com>
 ;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2023 Fries <fries1234@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -44,6 +45,7 @@ (define-module (gnu packages code)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
+  #:use-module (guix build-system go)
   #:use-module (gnu packages)
   #:use-module (gnu packages autogen)
   #:use-module (gnu packages autotools)
@@ -373,6 +375,39 @@ (define-public cloc
 cloc can handle a greater variety of programming languages.")
     (license license:gpl2+)))
 
+(define-public scc
+  (package
+    (name "scc")
+    (version "3.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/boyter/scc")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1rkkfg6jimlc2rkajk6ypd5v0m3zai25ga5idz2pmkmzakv82n21"))))
+    (build-system go-build-system)
+    (inputs (list go-github-com-dbaggerman-cuba
+                  go-github-com-json-iterator-go
+                  go-github-com-mattn-go-runewidth
+                  go-github-com-minio-blake2b-simd
+                  go-github-com-spf13-cobra
+                  go-golang-org-x-text
+                  go-gopkg-in-yaml-v2))
+    (arguments
+     (list #:import-path "github.com/boyter/scc"))
+    (home-page "https://github.com/boyter/scc")
+    (synopsis "Fast code counter written in Go")
+    (description
+     "@command{scc} provides a lines-of-code counter similar to tools
+like @command{cloc} and @command{sloccount}.
+
+It aims to be fast as possible while supporting
+@acronym{COCOMO,Constructive Cost Model} calculation and code complexity estimation.")
+    (license license:expat)))
+
 (define-public the-silver-searcher
   (package
     (name "the-silver-searcher")
-- 
2.41.0






^ permalink raw reply related	[flat|nested] 50+ messages in thread

* [bug#65074] [PATCH v2 13/13] gnu: Add scc
  2023-08-05 11:02   ` [bug#65074] [PATCH v2 13/13] gnu: Add scc Fries via Guix-patches via
@ 2023-08-05 11:53     ` ( via Guix-patches via
  0 siblings, 0 replies; 50+ messages in thread
From: ( via Guix-patches via @ 2023-08-05 11:53 UTC (permalink / raw)
  To: Fries; +Cc: 65074

Hi,

Fries via Guix-patches via <guix-patches@gnu.org> writes:
> * gnu/packages/code.scm (scc): New variable.

All looks good to me :)

  -- (




^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go
  2023-08-05  7:00 ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
  2023-08-05  9:14   ` ( via Guix-patches via
@ 2023-09-01 12:08   ` Maxim Cournoyer
  2024-04-06 15:52   ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Sharlatan Hellseher
  2024-04-06 15:53   ` Sharlatan Hellseher
  3 siblings, 0 replies; 50+ messages in thread
From: Maxim Cournoyer @ 2023-09-01 12:08 UTC (permalink / raw)
  To: Fries; +Cc: GNU Debbugs, 65072, 65085

tags 65072 + moreinfo
quit

Hi Fries,

Thank you for your contribution.

Fries <fries1234@protonmail.com> writes:

> * gnu/packages/golang.scm (go-github-com-chyzer-test): New variable.
> ---
>  gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
> index d99f76dc7d..ef82f0aa1b 100644
> --- a/gnu/packages/golang.scm
> +++ b/gnu/packages/golang.scm
> @@ -2113,6 +2113,32 @@ (define-public go-github-com-dhowett-go-plist
>  types.")
>        (license license:giftware))))
>  
> +(define-public go-github-com-chzyer-test
> +  (package
> +    (name "go-github-com-chzyer-test")
> +    (version "1.0.0")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/chzyer/test")
> +                    (commit (string-append "v" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "1axdlcnx2qjsn5wsr2pr1m0w0a8k4nk5kkrngh742fgh81vzzy8s"))))
> +    (build-system go-build-system)
> +    (arguments
> +     '(#:import-path "github.com/chzyer/test"
> +       #:phases
> +       ;; Tests relating to a in-memory disk fail due to a Segfault.
> +       (modify-phases %standard-phases
> +         (delete 'check))))

This should be minimally investigated, and ideally an issue created on
upstream issue tracker and an URL added next to the comment to track its
resolution, e.g:

;; Tests relating to a in-memory disk fail due to a segfault (see:
;; $URL).

Also taking the comments from parens into account, could you please send
a v2 to this same issue (65072@debbugs.gnu.org) ?

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 50+ messages in thread

* bug#65074: [PATCH 00/13] Add scc
  2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
                   ` (13 preceding siblings ...)
  2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
@ 2024-04-06 15:50 ` Sharlatan Hellseher
  14 siblings, 0 replies; 50+ messages in thread
From: Sharlatan Hellseher @ 2024-04-06 15:50 UTC (permalink / raw)
  To: 65074-done

[-- Attachment #1: Type: text/plain, Size: 3672 bytes --]


Hi,

Thank you for the patches.

I've shift them into dedicated local golang-* modules and apply some
modifications.


- accepted-patches [13/13]
  - [X] [PATCH v2 01/13] gnu: Add go-github-com-chzyer-logex
    - Place to golang-xyz
    - Tests disabled, upstream informed
      - https://github.com/chzyer/logex/pull/7
      - https://github.com/chzyer/logex/issues/4
    - referred-in
      - [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
  - [X] [PATCH v2 02/13] gnu: Add go-github-com-chzyer-test
    - Place to golang-check
    - Add links to issues
    - referred-in
      - [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
  - [X] [PATCH v2 03/13] gnu: Add go-github-com-chzyer-readline
    - Place to golang-xyz
    - referred-in
      - [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
  - [X] [PATCH v2 04/13] gnu: Add go-github-com-ianlancetaylor-demangle
    - Place to golang-xyz
    - Add issue on version tag or release
      https://github.com/ianlancetaylor/demangle/issues/21
    - referred-in
      - [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle
        https://issues.guix.gnu.org/65073
      - [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
  - [X] [PATCH v2 05/13] gnu: Add go-github-com-google-pprof
    - Place to golang-check, Add go-pprof build, as end-user program
    - Add all license, some code in third party may be unbundled when we have more Node packages
    - Extend description
    - Update to the latest commit
    - referred-in
      - [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
  - [X] [PATCH v2 06/13] gnu: Add go-github-com-felixge-fgprof
    - Place to golang-check
    - Update to 0.9.4
    - Enable tests
    - referred-in
      - [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof https://issues.guix.gnu.org/65077
      - [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
  - [X] [PATCH v2 07/13] gnu: Add go-github-com-pkg-profile
    - Place to golang-check
    - Disable tests, issue is open https://github.com/pkg/profile/issues/68
    - referred-in
      - [PATCH 07/13] gnu: Add go-github-com-pkg-profile https://issues.guix.gnu.org/65079
      - [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
  - [X] [PATCH v2 08/13] gnu: Add go-github-com-karrick-godirwalk
    - Place to golang-xyz
    - referred-in
      - [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk https://issues.guix.gnu.org/65082
  - [X] [PATCH v2 09/13] gnu: Add go-github-com-dbaggerman-cuba
    - Place to golang-xyz
    - Remove github.com/pkg/profile as it's indirect dependence
    - referred-in
      - [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba https://issues.guix.gnu.org/65080
  - [X] [PATCH v2 10/13] gnu: Add go-github-com-modern-go-concurrent
    - Place to golang-xyz
    - Use available version tag 1.0.3
    - referred-in
      - [PATCH 00/47] gnu: Add go-github-com-prometheus-prometheus. https://issues.guix.gnu.org/54560
  - [X] [PATCH v2 11/13] gnu: Add go-github-com-modern-go-reflect2
    - Place to golang-xyz
    - referred-in
      - [PATCH 00/47] gnu: Add go-github-com-prometheus-prometheus.
        https://issues.guix.gnu.org/54560
      - [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2 https://issues.guix.gnu.org/65084
  - [X] [PATCH v2 12/13] gnu: Add go-github-com-json-iterator-go
    - referred-in
      - [PATCH 12/13] gnu: Add go-github-com-json-iterator-go https://issues.guix.gnu.org/65085
      - [PATCH 00/47] gnu: Add go-github-com-prometheus-prometheus. https://issues.guix.gnu.org/54560
  - [X] [PATCH v2 13/13] gnu: Add scc

Pushed as c28b319640..cf4f87986a to master.

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test
  2023-08-05  7:00 ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
  2023-08-05  9:14   ` ( via Guix-patches via
  2023-09-01 12:08   ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Maxim Cournoyer
@ 2024-04-06 15:52   ` Sharlatan Hellseher
  2024-04-06 15:53   ` Sharlatan Hellseher
  3 siblings, 0 replies; 50+ messages in thread
From: Sharlatan Hellseher @ 2024-04-06 15:52 UTC (permalink / raw)
  To: 65072-done

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]


Pushed as c28b319640..cf4f87986a to master by closing
<https://issues.guix.gnu.org/65074>.

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test
  2023-08-05  7:00 ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
                     ` (2 preceding siblings ...)
  2024-04-06 15:52   ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Sharlatan Hellseher
@ 2024-04-06 15:53   ` Sharlatan Hellseher
  3 siblings, 0 replies; 50+ messages in thread
From: Sharlatan Hellseher @ 2024-04-06 15:53 UTC (permalink / raw)
  To: 65072-done

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]


Pushed as c28b319640..cf4f87986a to master by closing
<https://issues.guix.gnu.org/65074>.

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle
  2023-08-05  7:00 ` [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
  2023-08-05  9:16   ` ( via Guix-patches via
@ 2024-04-06 15:53   ` Sharlatan Hellseher
  1 sibling, 0 replies; 50+ messages in thread
From: Sharlatan Hellseher @ 2024-04-06 15:53 UTC (permalink / raw)
  To: 65073-done

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]


Pushed as c28b319640..cf4f87986a to master by closing
<https://issues.guix.gnu.org/65074>.

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex
  2023-08-05  7:00 ` [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
  2023-08-05  9:08   ` ( via Guix-patches via
@ 2024-04-06 15:55   ` Sharlatan Hellseher
  1 sibling, 0 replies; 50+ messages in thread
From: Sharlatan Hellseher @ 2024-04-06 15:55 UTC (permalink / raw)
  To: 65075-done

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]



Pushed as c28b319640..cf4f87986a to master by closing
<https://issues.guix.gnu.org/65074>.

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline
  2023-08-05  7:00 ` [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
  2023-08-05  9:15   ` ( via Guix-patches via
@ 2024-04-06 15:56   ` Sharlatan Hellseher
  1 sibling, 0 replies; 50+ messages in thread
From: Sharlatan Hellseher @ 2024-04-06 15:56 UTC (permalink / raw)
  To: 65076-done

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]


Pushed as c28b319640..cf4f87986a to master by closing
<https://issues.guix.gnu.org/65074>.

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

end of thread, other threads:[~2024-04-06 15:57 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
2023-08-05  7:00 ` [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
2023-08-05  9:08   ` ( via Guix-patches via
2024-04-06 15:55   ` Sharlatan Hellseher
2023-08-05  7:00 ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
2023-08-05  9:14   ` ( via Guix-patches via
2023-09-01 12:08   ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Maxim Cournoyer
2024-04-06 15:52   ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Sharlatan Hellseher
2024-04-06 15:53   ` Sharlatan Hellseher
2023-08-05  7:00 ` [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
2023-08-05  9:15   ` ( via Guix-patches via
2024-04-06 15:56   ` Sharlatan Hellseher
2023-08-05  7:00 ` [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
2023-08-05  9:16   ` ( via Guix-patches via
2024-04-06 15:53   ` Sharlatan Hellseher
2023-08-05  7:00 ` [bug#65078] [PATCH 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
2023-08-05  9:18   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
2023-08-05  9:18   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
2023-08-05  9:19   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65082] [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
2023-08-05  9:21   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
2023-08-05  9:22   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65081] [PATCH 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
2023-08-05  9:24   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65084] [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
2023-08-05  9:24   ` ( via Guix-patches via
2023-08-05  7:01 ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
2023-08-05  9:25   ` ( via Guix-patches via
2023-08-05  7:01 ` [bug#65083] [PATCH 13/13] gnu: Add scc Fries via Guix-patches via
2023-08-05  9:26   ` ( via Guix-patches via
     [not found]   ` <5f2cbbcab7bffce62f537af2912233c1b30c58a89092d9c56bdbb27a90879851@mu.id>
2023-08-05 10:01     ` ( via Guix-patches via
2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
2023-08-05 11:02   ` [bug#65074] [PATCH v2 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
2023-08-05 11:02   ` [bug#65074] [PATCH v2 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
2023-08-05 11:02   ` [bug#65074] [PATCH v2 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
2023-08-05 11:02   ` [bug#65074] [PATCH v2 13/13] gnu: Add scc Fries via Guix-patches via
2023-08-05 11:53     ` ( via Guix-patches via
2024-04-06 15:50 ` bug#65074: [PATCH 00/13] " Sharlatan Hellseher

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).