From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 74495@debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>,
Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: [bug#74495] [PATCH v3 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden.
Date: Sun, 1 Dec 2024 10:23:43 +0300 [thread overview]
Message-ID: <504f3e3851a5ea1bf844aba32ff18ba1f2b5f1a9.1733037809.git.poptsov.artyom@gmail.com> (raw)
In-Reply-To: <70fd8cbea4aa384418b66083166f78acc2774182.1733037809.git.poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-exp-golden): New variable.
Change-Id: I7fa815433d9a83e4562bdc769312dd05e0a298da
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 729d4020b9..3002144ffd 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1612,6 +1612,48 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-exp-golden
+ (package
+ (name "go-github-com-charmbracelet-x-exp-golden")
+ (version "0.0.0-20241121171228-5bc00623ea2f")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "exp/golden"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/exp/golden"
+ #:unpack-path "github.com/charmbracelet/x/"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key import-path #:allow-other-keys)
+ ;; Tests need to write to that files.
+ (with-directory-excursion (string-append "src/" import-path)
+ (make-file-writable "testdata/TestRequireEqualUpdate.golden")
+ (make-file-writable "testdata/TestRequireEqualNoUpdate.golden"))))
+ (add-after 'check 'post-check
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ ;; Remove modified testdata just in case.
+ (delete-file-recursively "testdata")))))))
+ (propagated-inputs
+ (list go-github-com-aymanbagabas-go-udiff))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Verify @code{.golden} file equality")
+ (description
+ "Golden files (@code{.golden}) contain the raw expected output of
+tests,which can contain control codes and escape sequences. @code{golden}
+package provides an API for comparing Golden files.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
next prev parent reply other threads:[~2024-12-01 7:26 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 03/16] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 05/16] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 06/16] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 08/16] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 09/16] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 10/16] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 11/16] gnu: gojq: Install the binary only Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 13/16] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 14/16] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 16/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-11-23 22:32 ` [bug#74495] [PATCH 00/16] " Sharlatan Hellseher
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 03/16] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 05/16] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 06/16] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 08/16] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 09/16] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 10/16] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 11/16] gnu: gojq: Install the binary only Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 13/16] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 14/16] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 16/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-11-26 19:09 ` [bug#74495] [PATCH 00/16] " Artyom V. Poptsov
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 01/15] gnu: Add go-github-com-atotto-clipboard Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 03/15] gnu: Add go-github-com-makenowjust-heredoc Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 05/15] gnu: Add go-github-com-sahilm-fuzzy Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 06/15] gnu: Add go-github-com-charmbracelet-x-ansi Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 08/15] gnu: Add go-github-com-charmbracelet-x-term Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 09/15] gnu: Add go-github-com-charmbracelet-lipgloss Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 10/15] gnu: Add go-github-com-charmbracelet-bubbles Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 11/15] gnu: Add go-github-com-muesli-ansi Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 12/15] gnu: go-github-com-itchyny-gojq: Install the library Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 13/15] gnu: gojq: Adjust import path Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 15/15] gnu: Add go-jqp Sharlatan Hellseher
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 03/15] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 05/15] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 06/15] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
2024-12-01 7:23 ` Artyom V. Poptsov [this message]
2024-12-01 7:23 ` [bug#74495] [PATCH v3 08/15] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 09/15] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 10/15] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 11/15] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 12/15] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 13/15] gnu: gojq: Adjust import and unpack paths Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 15/15] gnu: Add go-jqp Artyom V. Poptsov
2024-12-01 7:34 ` [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-12-02 19:01 ` bug#74495: [PATCH v2 16/16] " Artyom V. Poptsov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=504f3e3851a5ea1bf844aba32ff18ba1f2b5f1a9.1733037809.git.poptsov.artyom@gmail.com \
--to=poptsov.artyom@gmail.com \
--cc=74495@debbugs.gnu.org \
--cc=sharlatanus@gmail.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.