public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-tree-sitter-cli] rawhide: Update dialoguer to 0.12
@ 2026-07-10  5:49 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-10  5:49 UTC (permalink / raw)
  To: git-commits

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]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-10  5:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-10  5:49 [rpms/rust-tree-sitter-cli] rawhide: Update dialoguer to 0.12 Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox