unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Fries via Guix-patches via <guix-patches@gnu.org>
To: 65075@debbugs.gnu.org
Cc: Fries <fries1234@protonmail.com>
Subject: [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex
Date: Sat, 05 Aug 2023 07:00:06 +0000	[thread overview]
Message-ID: <2d85819290ef06485588ac5f4ba8a79c69d5e196.1691218710.git.fries1234@protonmail.com> (raw)
In-Reply-To: <cover.1691218710.git.fries1234@protonmail.com>

* 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






  reply	other threads:[~2023-08-05  8:54 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2023-08-05  9:08   ` [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex ( 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2d85819290ef06485588ac5f4ba8a79c69d5e196.1691218710.git.fries1234@protonmail.com \
    --to=guix-patches@gnu.org \
    --cc=65075@debbugs.gnu.org \
    --cc=fries1234@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).