public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-tree-sitter-cli] rawhide: Update dialoguer to 0.12
Date: Fri, 10 Jul 2026 05:49:10 GMT	[thread overview]
Message-ID: <178366255035.1.7765027909240759008.rpms-rust-tree-sitter-cli-197c1904540c@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-tree-sitter-cli
Branch : rawhide
Commit : 197c1904540c91b609e96a0a4112ae2f6dcfc47c
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-07-08T17:04:23+01:00
Stats  : +53/-1 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-tree-sitter-cli/c/197c1904540c91b609e96a0a4112ae2f6dcfc47c?branch=rawhide

Log:
Update dialoguer to 0.12

---
diff --git a/rust-tree-sitter-cli.spec b/rust-tree-sitter-cli.spec
index 63bdbd3..fb18b55 100644
--- a/rust-tree-sitter-cli.spec
+++ b/rust-tree-sitter-cli.spec
@@ -14,7 +14,13 @@ URL:            https://crates.io/crates/tree-sitter-cli
 Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
 # * Disable features 'wasm' and 'qjs-rt'
+# * Update dialoguer to 0.12:
+#   https://github.com/tree-sitter/tree-sitter/commit/b8fcf276615c4a979067161b89e1c014e451dae2;
+#   requires an accompanying source-code patch excerpted from the same commit.
 Patch:          tree-sitter-cli-fix-metadata.diff
+# * Source-code patch for dialoguer 0.12, excerpted from
+#   https://github.com/tree-sitter/tree-sitter/commit/b8fcf276615c4a979067161b89e1c014e451dae2
+Patch10:        tree-sitter-cli-0.26.9-dialoguer-0.12.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 

diff --git a/rust2rpm.toml b/rust2rpm.toml
index cdc381e..bda03d9 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -8,6 +8,21 @@ Recommends:     nodejs
 """
 cargo-toml-patch-comments = [
     "Disable features 'wasm' and 'qjs-rt'",
+    """\
+Update dialoguer to 0.12: \
+https://github.com/tree-sitter/tree-sitter/commit/b8fcf276615c4a979067161b89e1c014e451dae2; \
+requires an accompanying source-code patch excerpted from the same commit.\
+""",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "tree-sitter-cli-0.26.9-dialoguer-0.12.patch"
+comments = [
+    """\
+Source-code patch for dialoguer 0.12, excerpted from \
+https://github.com/tree-sitter/tree-sitter/commit/b8fcf276615c4a979067161b89e1c014e451dae2\
+""",
 ]
 
 [tests]

diff --git a/tree-sitter-cli-0.26.9-dialoguer-0.12.patch b/tree-sitter-cli-0.26.9-dialoguer-0.12.patch
new file mode 100644
index 0000000..1c4665e
--- /dev/null
+++ b/tree-sitter-cli-0.26.9-dialoguer-0.12.patch
@@ -0,0 +1,22 @@
+diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs
+index 5dd7883f27..898895646b 100644
+--- a/src/main.rs
++++ b/src/main.rs
+@@ -806,7 +806,7 @@ impl Init {
+ 
+                 let enabled = MultiSelect::new()
+                     .with_prompt("Bindings")
+-                    .items_checked(&languages)
++                    .items_checked(languages.iter().copied())
+                     .interact()?
+                     .into_iter()
+                     .map(|i| languages[i].0);
+@@ -880,7 +880,7 @@ impl Init {
+ 
+                 let idx = FuzzySelect::with_theme(&ColorfulTheme::default())
+                     .with_prompt("Which field would you like to change?")
+-                    .items(&choices)
++                    .items(choices)
+                     .interact()?;
+ 
+                 set_choice!(choices[idx]);

diff --git a/tree-sitter-cli-fix-metadata.diff b/tree-sitter-cli-fix-metadata.diff
index e4d0e6a..676c2fb 100644
--- a/tree-sitter-cli-fix-metadata.diff
+++ b/tree-sitter-cli-fix-metadata.diff
@@ -1,5 +1,5 @@
 --- tree-sitter-cli-0.26.9/Cargo.toml	2006-07-24T01:21:28+00:00
-+++ tree-sitter-cli-0.26.9/Cargo.toml	2026-05-29T06:42:48.541241+00:00
++++ tree-sitter-cli-0.26.9/Cargo.toml	2026-07-08T16:02:58.744455+00:00
 @@ -80,12 +80,7 @@
  pkg-url = "{ repo }/releases/download/v{ version }/{ name }-macos-x64{ archive-suffix }"
  
@@ -14,3 +14,12 @@
  
  [lib]
  name = "tree_sitter_cli"
+@@ -141,7 +136,7 @@
+ features = ["termination"]
+ 
+ [dependencies.dialoguer]
+-version = "0.11.0"
++version = "0.12.0"
+ features = ["fuzzy-select"]
+ 
+ [dependencies.glob]

                 reply	other threads:[~2026-07-10  5:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=178366255035.1.7765027909240759008.rpms-rust-tree-sitter-cli-197c1904540c@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox