[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/15: gnu: Add go-github-com-charmbracelet-x-exp-golden.
From: |
guix-commits |
Subject: |
07/15: gnu: Add go-github-com-charmbracelet-x-exp-golden. |
Date: |
Sun, 1 Dec 2024 02:28:17 -0500 (EST) |
avp pushed a commit to branch master
in repository guix.
commit 4fe2cb289fc545e7fc19cc87fcac8d2d047201d4
Author: Artyom V. Poptsov <poptsov.artyom@gmail.com>
AuthorDate: Thu Nov 28 23:49:01 2024 +0000
gnu: Add go-github-com-charmbracelet-x-exp-golden.
* 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 @@ tools.")
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")
- branch master updated (1fb40a5b92 -> aa40c94446), guix-commits, 2024/12/01
- 04/15: gnu: Add go-github-com-kylelemons-godebug-pretty., guix-commits, 2024/12/01
- 05/15: gnu: Add go-github-com-sahilm-fuzzy., guix-commits, 2024/12/01
- 10/15: gnu: Add go-github-com-charmbracelet-bubbles., guix-commits, 2024/12/01
- 13/15: gnu: gojq: Adjust import and unpack paths., guix-commits, 2024/12/01
- 01/15: gnu: Add go-github-com-atotto-clipboard., guix-commits, 2024/12/01
- 03/15: gnu: Add go-github-com-makenowjust-heredoc., guix-commits, 2024/12/01
- 02/15: gnu: Add go-github-com-aymanbagabas-go-udiff., guix-commits, 2024/12/01
- 08/15: gnu: Add go-github-com-charmbracelet-x-term., guix-commits, 2024/12/01
- 12/15: gnu: go-github-com-itchyny-gojq: Install the library., guix-commits, 2024/12/01
- 07/15: gnu: Add go-github-com-charmbracelet-x-exp-golden.,
guix-commits <=
- 06/15: gnu: Add go-github-com-charmbracelet-x-ansi., guix-commits, 2024/12/01
- 11/15: gnu: Add go-github-com-muesli-ansi., guix-commits, 2024/12/01
- 09/15: gnu: Add go-github-com-charmbracelet-lipgloss., guix-commits, 2024/12/01
- 14/15: gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3., guix-commits, 2024/12/01
- 15/15: gnu: Add go-jqp., guix-commits, 2024/12/01