unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 74495@debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Subject: [bug#74495] [PATCH 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
Date: Sat, 23 Nov 2024 21:28:41 +0300	[thread overview]
Message-ID: <955413e87a58bb79ad108f0df2da786168377d84.1732386154.git.poptsov.artyom@gmail.com> (raw)
In-Reply-To: <cover.1732386154.git.poptsov.artyom@gmail.com>

* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Update to 1.2.3.
[propagated-inputs]: Add go-github-com-muesli-ansi, go-github-com-muesli-cancelreader,
go-github-com-charmbracelet-lipgloss,
go-github-com-charmbracelet-x-term,
go-github-com-charmbracelet-x-ansi, and go-golang-org-x-sync.
[arguments] <phases>: Fix tests that are failing due to newer version of
"go-github-com-charmbracelet-x-ansi" package.

Change-Id: Ifdb3074f342b34c07c0e7ab47341b159d1eea0c2
---
 gnu/packages/golang.scm | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 84b797e1ff..322bd4224a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7030,7 +7030,7 @@ (define-public go-github-com-rivo-uniseg
 (define-public go-github-com-charmbracelet-bubbletea
   (package
     (name "go-github-com-charmbracelet-bubbletea")
-    (version "0.13.2")
+    (version "1.2.3")
     (source
      (origin
        (method git-fetch)
@@ -7040,7 +7040,7 @@ (define-public go-github-com-charmbracelet-bubbletea
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "1105cggi5fwqx69m0vrhgwx6kaw82w4ahn58sj0a81603c4yvrk0"))))
+         "0ggkl29qixgin5av1mbnwfbb31kmwpczh8pgpjsx9z277fs55mph"))))
     (build-system go-build-system)
     (arguments
      (list
@@ -7050,17 +7050,35 @@ (define-public go-github-com-charmbracelet-bubbletea
                      (lambda* (#:key import-path #:allow-other-keys)
                        (with-directory-excursion (string-append "src/" import-path)
                          (for-each delete-file-recursively
-                                   '("examples" "tutorials"))))))))
+                                   '("examples" "tutorials")))))
+                   (add-before 'check 'fix-tests
+                     (lambda _
+                       ;; XXX: The package requires
+                       ;; "go-github-com-charmbracelet-x-ansi" version 0.4.5; with
+                       ;; the newer version of "ansi", some "bubbletea" screen tests
+                       ;; fail as "ansi" 0.5.2 handles escape sequences a little bit
+                       ;; differently.
+                       (substitute* "src/github.com/charmbracelet/bubbletea/screen_test.go"
+                         (("x1b\\[0K")
+                          "x1b[K")
+                         (("x1b\\[2;0H")
+                          "x1b[2;H")))))))
     (propagated-inputs
      (list go-github-com-mattn-go-isatty
            go-github-com-muesli-termenv
            go-github-com-mattn-go-runewidth
+           go-github-com-muesli-ansi
+           go-github-com-muesli-cancelreader
            go-github-com-muesli-reflow
            go-github-com-lucasb-eyer-go-colorful
+           go-github-com-charmbracelet-lipgloss
+           go-github-com-charmbracelet-x-term
+           go-github-com-charmbracelet-x-ansi
            go-github-com-containerd-console
            go-golang-org-x-crypto
            go-golang-org-x-sys
            go-golang-org-x-term
+           go-golang-org-x-sync
            go-github-com-mattn-go-isatty))
     (home-page "https://github.com/charmbracelet/bubbletea")
     (synopsis "Powerful little TUI framework")
-- 
2.46.0





  parent reply	other threads:[~2024-11-23 18:32 UTC|newest]

Thread overview: 18+ 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 ` Artyom V. Poptsov [this message]
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

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=955413e87a58bb79ad108f0df2da786168377d84.1732386154.git.poptsov.artyom@gmail.com \
    --to=poptsov.artyom@gmail.com \
    --cc=74495@debbugs.gnu.org \
    /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).