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-nu-lsp] f44: Bump lsp-server dependency to 0.10
Date: Sun, 16 Aug 2026 06:57:38 GMT [thread overview]
Message-ID: <178686345893.1.8822450969177076417.rpms-rust-nu-lsp-1d2c0b7e2fbe@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-nu-lsp
Branch : f44
Commit : 1d2c0b7e2fbeacdb587c8de7544fa589fa31e507
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-03T08:43:00+01:00
Stats : +75/-5 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust-nu-lsp/c/1d2c0b7e2fbeacdb587c8de7544fa589fa31e507?branch=f44
Log:
Bump lsp-server dependency to 0.10
---
diff --git a/nu-lsp-0.99.1-port-to-lsp-server-0.10.diff b/nu-lsp-0.99.1-port-to-lsp-server-0.10.diff
new file mode 100644
index 0000000..a56d2fa
--- /dev/null
+++ b/nu-lsp-0.99.1-port-to-lsp-server-0.10.diff
@@ -0,0 +1,63 @@
+diff -Naur a/src/lib.rs b/src/lib.rs
+--- a/src/lib.rs 2024-10-20 03:45:05.000000000 +0100
++++ b/src/lib.rs 2026-08-03 08:18:15.573107997 +0100
+@@ -154,18 +154,16 @@
+ match serde_json::from_value::<P>(req.params) {
+ Ok(params) => Response {
+ id: req.id,
+- result: Some(
++ response_result: Ok(
+ param_handler(engine_state, ¶ms)
+ .and_then(|response| serde_json::to_value(response).ok())
+ .unwrap_or(serde_json::Value::Null),
+ ),
+- error: None,
+ },
+
+ Err(err) => Response {
+ id: req.id,
+- result: None,
+- error: Some(ResponseError {
++ response_result: Err(ResponseError {
+ code: 1,
+ message: err.to_string(),
+ data: None,
+@@ -717,7 +715,7 @@
+ .recv_timeout(std::time::Duration::from_secs(2))
+ .unwrap();
+ let result = if let Message::Response(response) = resp {
+- response.result
++ response.response_result
+ } else {
+ panic!()
+ };
+diff -Naur a/src/notification.rs b/src/notification.rs
+--- a/src/notification.rs 2024-10-20 03:45:05.000000000 +0100
++++ b/src/notification.rs 2026-08-03 08:19:47.069828245 +0100
+@@ -111,7 +111,7 @@
+
+ let resp = hover(&client_connection, script.clone(), 0, 0);
+ let result = if let Message::Response(response) = resp {
+- response.result
++ response.response_result
+ } else {
+ panic!()
+ };
+@@ -152,7 +152,7 @@
+
+ let resp = hover(&client_connection, script.clone(), 3, 0);
+ let result = if let Message::Response(response) = resp {
+- response.result
++ response.response_result
+ } else {
+ panic!()
+ };
+@@ -197,7 +197,7 @@
+
+ let resp = hover(&client_connection, script.clone(), 3, 0);
+ let result = if let Message::Response(response) = resp {
+- response.result
++ response.response_result
+ } else {
+ panic!()
+ };
diff --git a/nu-lsp-fix-metadata.diff b/nu-lsp-fix-metadata.diff
index 72a2cea..f2f598e 100644
--- a/nu-lsp-fix-metadata.diff
+++ b/nu-lsp-fix-metadata.diff
@@ -1,11 +1,11 @@
--- nu-lsp-0.99.1/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ nu-lsp-0.99.1/Cargo.toml 2026-07-10T05:02:29.812516+00:00
++++ nu-lsp-0.99.1/Cargo.toml 2026-08-03T07:37:38.376589+00:00
@@ -23,7 +23,7 @@
version = "0.5.8"
[dependencies.lsp-server]
-version = "0.7.5"
-+version = "0.8.0"
++version = "0.10.0"
[dependencies.lsp-types]
version = "0.95.0"
diff --git a/rust-nu-lsp.spec b/rust-nu-lsp.spec
index 3f8abbc..4d650ae 100644
--- a/rust-nu-lsp.spec
+++ b/rust-nu-lsp.spec
@@ -15,9 +15,11 @@ URL: https://crates.io/crates/nu-lsp
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * temporarily bump reedline from 0.36.0 to 0.37.0
-# * bump lsp-server from 0.7 to 0.8:
+# * bump lsp-server from 0.7 to 0.10:
# https://github.com/nushell/nushell/commit/96cb2126ab9b8ac7ce1291046f854328bb77de7b
+# https://github.com/nushell/nushell/commit/bcc69ebd4dc54f751b5567c28912258bc9c53131
Patch: nu-lsp-fix-metadata.diff
+Patch10: nu-lsp-0.99.1-port-to-lsp-server-0.10.diff
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index d52a3e8..3dab654 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -2,11 +2,16 @@
cargo-toml-patch-comments = [
"temporarily bump reedline from 0.36.0 to 0.37.0",
"""\
-bump lsp-server from 0.7 to 0.8: \
-https://github.com/nushell/nushell/commit/96cb2126ab9b8ac7ce1291046f854328bb77de7b\
+bump lsp-server from 0.7 to 0.10: \
+https://github.com/nushell/nushell/commit/96cb2126ab9b8ac7ce1291046f854328bb77de7b \
+https://github.com/nushell/nushell/commit/bcc69ebd4dc54f751b5567c28912258bc9c53131\
""",
]
+[[package.extra-patches]]
+number = 10
+file = "nu-lsp-0.99.1-port-to-lsp-server-0.10.diff"
+
[tests]
run = false
comments = ["tests depend on unshipped fixtures"]
reply other threads:[~2026-08-16 6:57 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=178686345893.1.8822450969177076417.rpms-rust-nu-lsp-1d2c0b7e2fbe@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