rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwoodc4b652f7a3e85f1f4c821e1e9963a7c5b7da28f8
{
"request": "trigger",
"version": 1,
"event_type": "patch",
"repository": {
"id": "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
"name": "heartwood",
"description": "Radicle Heartwood Protocol & Stack",
"private": false,
"default_branch": "master",
"delegates": [
"did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Created",
"patch": {
"id": "af3292c47ec93d906ccda8d9382f711c2201e678",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"title": "radicle-cli: Build on Windows",
"state": {
"status": "merged",
"conflicts": []
},
"before": "010d5134e8fae35e9e4f179d2929e41a20a93d30",
"after": "c4b652f7a3e85f1f4c821e1e9963a7c5b7da28f8",
"commits": [
"c4b652f7a3e85f1f4c821e1e9963a7c5b7da28f8",
"ef39c37440b3f8e363ef84d13f1f44fefd68215e",
"08f46dfa124d1618a239479e45e5f5412e67414b",
"1dd693f4d1dc5259a31a70cc3ec1acc3a1eab072",
"b86d27a4c000d491a73f0c179fea1ceb798151e0",
"eb791a3a925ee7eb940fb01cd23b3f4f2709413e",
"17c31bce370e0d83fcbf125c8e5632c813719c2d",
"2d6fc7e3d71f161114dea589244432975b581683",
"d4bdcf08e8af25cf38de3d6e22b188b72504c03a",
"2fa4015d639314dd3315ed45d4e00a0d50c2f2ee",
"b07eea9c981e31221bfe685b0f4749c506760fc9",
"accf443bbd4f860d0a479b93a17a6542afefd54c",
"0fa3e88c5697692878d030583f26639e7baa5f9b",
"4705dbc96cfbf15c40829fc157ff0ab9771e4f6b"
],
"target": "3fc92f83fe089263c470b328414d923227cf0e4a",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "af3292c47ec93d906ccda8d9382f711c2201e678",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "This patch contains a number of changes, with the main goal of getting `radicle-cli` to build on Windows.\n\nIn order to achieve this, I removed some features:\n\n 1. The spinner in `radicle-term` does not react to signals on Windows, of course it still reacts to signals on Unix-like platforms.\n 2. In `radicle` file limits are not set on Windows, the implementation always errors. Of course, file limits are still set on Unix-like platforms.\n\nOne feature was added: `radicle` and `radicle-ssh` now support not only Unix Domain Socket on Unix-like platforms but also Named Pipes on Windows, via the `winpipe` crate.\nThe (useless?) implementation for connecting to SSH agents via TCP streams was removed.\n\nSome behaviour was changed in `radicle-term` so that it does not depend on `libc` and raw file descriptors (which are only available on Unix-like platforms).",
"base": "fe6a11d0db4e8547c0bbfeadd91f7563f5098f2b",
"oid": "aee3975bddafd95577393cf6ded50c2a0980c58b",
"timestamp": 1752531081
},
{
"id": "7f73d22db0d7cef1fcedf8dbeaa0483850203ca7",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Rebase",
"base": "010d5134e8fae35e9e4f179d2929e41a20a93d30",
"oid": "beb5ee6d0f39d49b990720847a9805390d62306a",
"timestamp": 1752741497
},
{
"id": "aa872fea76b3ce1fbfebb708b8fab54b167245fd",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Improve SSH encoding",
"base": "010d5134e8fae35e9e4f179d2929e41a20a93d30",
"oid": "8a9c846b8d2396f86b800e2db05361b712236f29",
"timestamp": 1752744318
},
{
"id": "982bd2f72146900e540da66699f4b5a30edf3ffc",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Refactor home detection to not require any mutable variables and limit scope of variables.",
"base": "010d5134e8fae35e9e4f179d2929e41a20a93d30",
"oid": "08f46dfa124d1618a239479e45e5f5412e67414b",
"timestamp": 1752760018
},
{
"id": "35317900f2b04513a3adabe815c364ee7a95d0c7",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Changes\n-------\n\nssh: provide path on connect error\n\nProvide the path that is being used for connecting to the SSH agent, when an I/O\nerror occurs.\n\n---\n\nterm: provide default HELP message\n\nProvide a default message that informs the user of the `(e)`, `(enter)`, and\n`(esc)` functionality.\n\nUnfortunately, it is not possible to provide any message that is better\ncustomised to each case, due to `inquire` requiring a `'a` lifetime on all its\ninputs \u2013 this rules out providing any kind of `String` input.\n\nThe first paramter of `Editor::new` can already be used to provide more\ncontextual information. The second parameter is left configurable, but for now\n`Editor::HELP` is used everywhere.",
"base": "010d5134e8fae35e9e4f179d2929e41a20a93d30",
"oid": "c4b652f7a3e85f1f4c821e1e9963a7c5b7da28f8",
"timestamp": 1752928820
},
{
"id": "51c3735c7dd6a8c6d3421186b217fa5c3712f347",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Rebase",
"base": "37ea81766ec8a008420c43091364130bd61016f1",
"oid": "2a47bc0c7dd6238ce3416e19d2ba57f3a7626f64",
"timestamp": 1753259723
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "d96ff937-aedf-4f4d-accf-e9c4980b50c3"
},
"info_url": "https://cci.rad.levitte.org//d96ff937-aedf-4f4d-accf-e9c4980b50c3.html"
}
Started at: 2026-09-08 02:31:27.973085+02:00
Commands:
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 .
✓ Creating checkout in ./...
✓ Remote cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT added
✓ Remote-tracking branch cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/master created for z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
✓ Remote fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM added
✓ Remote-tracking branch fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/master created for z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM
✓ Remote lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz added
✓ Remote-tracking branch lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz/master created for z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz
✓ Repository successfully cloned under /opt/radcis/ci.rad.levitte.org/cci/state/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 38 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout af3292c47ec93d906ccda8d9382f711c2201e678
✓ Switched to branch patch/af3292c at revision 51c3735
✓ Branch patch/af3292c setup to track rad/patches/af3292c47ec93d906ccda8d9382f711c2201e678
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout c4b652f7a3e85f1f4c821e1e9963a7c5b7da28f8
HEAD is now at c4b652f7 term: provide default HELP message
Exit code: 0
$ rad patch show af3292c47ec93d906ccda8d9382f711c2201e678 -p
╭──────────────────────────────────────────────────────────────────────────────────╮
│ Title radicle-cli: Build on Windows │
│ Patch af3292c47ec93d906ccda8d9382f711c2201e678 │
│ Author lorenz z6MkkPv…WX5sTEz │
│ Head 2a47bc0c7dd6238ce3416e19d2ba57f3a7626f64 │
│ Base 37ea81766ec8a008420c43091364130bd61016f1 │
│ Target master │
│ Branches patch/af3292c │
│ Commits ahead 0, behind 957 │
│ Status merged │
│ │
│ This patch contains a number of changes, with the main goal of getting │
│ `radicle-cli` to build on Windows. │
│ │
│ In order to achieve this, I removed some features: │
│ │
│ 1. The spinner in `radicle-term` does not react to signals on Windows, of cour… │
│ 2. In `radicle` file limits are not set on Windows, the implementation always … │
│ │
│ One feature was added: `radicle` and `radicle-ssh` now support not only Unix │
│ Domain Socket on Unix-like platforms but also Named Pipes on Windows, via the │
│ `winpipe` crate. │
│ The (useless?) implementation for connecting to SSH agents via TCP streams was │
│ removed. │
│ │
│ Some behaviour was changed in `radicle-term` so that it does not depend on │
│ `libc` and raw file descriptors (which are only available on Unix-like │
│ platforms). │
├──────────────────────────────────────────────────────────────────────────────────┤
│ 2a47bc0 term: provide default HELP message │
│ a998ce6 ssh: provide path on connect error │
│ 8224819 radicle/profile: Enable home detection on Windows │
│ 1e0a14d ssh: Remove dependency on log │
│ 8e6279a ssh: Remove dependency on byteorder │
│ 95b3303 term: Remove unused dependency shlex │
│ 009436e ssh: Use winpipe for SSH agent on Windows │
│ 0705501 radicle: Depend on winpipe for Windows support │
│ 08b535d radicle: Only set file limits on Unix │
│ e7fb564 term: Remove dependency on libc │
│ 70fb0d3 term: Use inquire for spawning the editor │
│ a28fd65 term/ansi: Remove unused Windows module │
│ d46d36e term/spinner: Only handle signals on Unix │
│ 92d77f9 crypto/ssh/keystore: Reduce scope of DirBuilderExt │
├──────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision af3292c @ fe6a11d..aee3975 by lorenz z6MkkPv…WX5sTEz 1 year ago │
│ ↑ Revision 7f73d22 @ 010d513..beb5ee6 by lorenz z6MkkPv…WX5sTEz 1 year ago │
│ ↑ Revision aa872fe @ 010d513..8a9c846 by lorenz z6MkkPv…WX5sTEz 1 year ago │
│ ↑ Revision 982bd2f @ 010d513..08f46df by lorenz z6MkkPv…WX5sTEz 1 year ago │
│ ↑ Revision 3531790 @ 010d513..c4b652f by fintohaps z6Mkire…SQZ3voM 1 year ago │
│ ↑ Revision 51c3735 @ 37ea817..2a47bc0 by lorenz z6MkkPv…WX5sTEz 1 year ago │
│ └─ ✓ merged by lorenz z6MkkPv…WX5sTEz │
╰──────────────────────────────────────────────────────────────────────────────────╯
commit 2a47bc0c7dd6238ce3416e19d2ba57f3a7626f64
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Fri Jul 18 15:23:30 2025 +0100
term: provide default HELP message
Provide a default message that informs the user of the `(e)`, `(enter)`, and
`(esc)` functionality.
Unfortunately, it is not possible to provide any message that is better
customised to each case, due to `inquire` requiring a `'a` lifetime on all its
inputs – this rules out providing any kind of `String` input.
The first paramter of `Editor::new` can already be used to provide more
contextual information. The second parameter is left configurable, but for now
`Editor::HELP` is used everywhere.
diff --git a/crates/radicle-cli/src/commands/config.rs b/crates/radicle-cli/src/commands/config.rs
index 402e5a462..33fe70331 100644
--- a/crates/radicle-cli/src/commands/config.rs
+++ b/crates/radicle-cli/src/commands/config.rs
@@ -188,15 +188,16 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
Operation::Edit => {
let config = std::fs::read_to_string(&path)?;
- match term::editor::Editor::new("Change configuration.", "You may change the Radicle configuration using your editor. Pressing (e) will open the editor. Save the file and exit the editor to submit your changes.")
- .editor(term::editor::default_editor_command().as_ref())
- .extension(".json")
- .initial(&config)
- .edit()? {
+ match term::editor::Editor::new("Edit configuration", term::editor::Editor::HELP)
+ .editor(term::editor::default_editor_command().as_ref())
+ .extension(".json")
+ .initial(&config)
+ .edit()?
+ {
Some(edited) => {
std::fs::write(&path, edited)?;
term::success!("Successfully made changes to the configuration at {path:?}");
- },
+ }
None => {
term::info!("No changes were made to the configuration at {path:?}")
}
diff --git a/crates/radicle-term/src/editor.rs b/crates/radicle-term/src/editor.rs
index 9a1ba68c7..de96e74ca 100644
--- a/crates/radicle-term/src/editor.rs
+++ b/crates/radicle-term/src/editor.rs
@@ -12,10 +12,12 @@ pub struct Editor<'a>(pub inquire::Editor<'a>);
#[error(transparent)]
pub struct Error(#[from] InquireError);
-impl Editor<'_> {
+impl<'a> Editor<'a> {
+ pub const HELP: &'a str = "(e) to edit. (enter) to save and exit. (esc) to cancel and quit.";
+
/// Create a new editor for editing a comment.
pub fn comment() -> Self {
- Self::new("Enter comment.", "You may enter your comment using your editor. Pressing (e) will open the editor. Save the file and exit the editor to submit your comment.")
+ Self::new("Enter comment.", Self::HELP)
}
/// Open the editor and return the edited text.
commit a998ce691d6962ea75d861b25532f4c042c36f1a
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Fri Jul 18 11:41:08 2025 +0100
ssh: provide path on connect error
Provide the path that is being used for connecting to the SSH agent, when an I/O
error occurs.
diff --git a/crates/radicle-ssh/src/agent/client.rs b/crates/radicle-ssh/src/agent/client.rs
index 66a69153d..6cc2c8eb8 100644
--- a/crates/radicle-ssh/src/agent/client.rs
+++ b/crates/radicle-ssh/src/agent/client.rs
@@ -40,6 +40,12 @@ pub enum Error {
var: String,
source: std::env::VarError,
},
+ #[error("Unable to connect SSH agent using the path '{path}': {source}")]
+ Connect {
+ path: String,
+ #[source]
+ source: std::io::Error,
+ },
#[error("I/O error while communicating with SSH agent: {0}")]
Io(#[from] std::io::Error),
}
@@ -80,7 +86,12 @@ impl AgentClient<Stream> {
source: err,
})
}
- Err(err) => return Err(Error::Io(err)),
+ Err(err) => {
+ return Err(Error::Connect {
+ path: path.display().to_string(),
+ source: err,
+ })
+ }
Ok(stream) => stream,
};
commit 8224819fedc74f81aff018b5afbe51f0248f2c85
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Wed Jul 16 10:58:08 2025 +0200
radicle/profile: Enable home detection on Windows
To avoid that users on Windows have to explcitly set `HOME`, also accept
`USERPROFILE` which is considered equivalent.
To avoid repeating to join `.radicle`, split the logic up into two
phases. Also take care to provide a good error message, as this error is
fatal and user-facing.
diff --git a/crates/radicle/src/profile.rs b/crates/radicle/src/profile.rs
index 5ce922466..eefef59ce 100644
--- a/crates/radicle/src/profile.rs
+++ b/crates/radicle/src/profile.rs
@@ -450,15 +450,62 @@ impl AliasStore for Aliases {
/// Get the path to the radicle home folder.
pub fn home() -> Result<Home, io::Error> {
- if let Some(home) = env::var_os(env::RAD_HOME) {
- Ok(Home::new(PathBuf::from(home))?)
- } else if let Some(home) = env::var_os("HOME") {
- Ok(Home::new(PathBuf::from(home).join(".radicle"))?)
- } else {
- Err(io::Error::new(
+ #[cfg(unix)]
+ const ERROR_MESSAGE_UNSET: &str =
+ "Environment variables `RAD_HOME` and `HOME` are both unset or not valid Unicode.";
+
+ #[cfg(windows)]
+ const ERROR_MESSAGE_UNSET: &str =
+ "Environment variables `RAD_HOME`, `HOME`, and `USERPROFILE` are all unset or not valid Unicode.";
+
+ struct DetectedHome {
+ path: String,
+
+ /// Depending on the detection method, we may need to join `.radicle` to the detected path.
+ join_dot_radicle: bool,
+ }
+
+ let detected = {
+ match env::var(env::RAD_HOME).ok() {
+ Some(path) => Some(DetectedHome {
+ path,
+ join_dot_radicle: false,
+ }),
+ None => env::var("HOME")
+ .ok()
+ .or_else(|| {
+ cfg!(windows)
+ .then(|| env::var("USERPROFILE").ok())
+ .flatten()
+ })
+ .map(|path| DetectedHome {
+ path,
+ join_dot_radicle: true,
+ }),
+ }
+ };
+
+ match detected {
+ Some(DetectedHome {
+ path,
+ join_dot_radicle,
+ }) => {
+ let home = {
+ let path = PathBuf::from(path);
+
+ if join_dot_radicle {
+ path.join(".radicle")
+ } else {
+ path
+ }
+ };
+
+ Ok(Home::new(home)?)
+ }
+ None => Err(io::Error::new(
io::ErrorKind::NotFound,
- "Neither `RAD_HOME` nor `HOME` are set",
- ))
+ ERROR_MESSAGE_UNSET.to_string(),
+ )),
}
}
commit 1e0a14ddcf2ac8cdbddd3d25f5e378f533157563
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Tue Jul 15 22:48:27 2025 +0200
ssh: Remove dependency on log
diff --git a/Cargo.lock b/Cargo.lock
index 2f7b41374..94509a692 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2749,7 +2749,6 @@ dependencies = [
name = "radicle-ssh"
version = "0.9.0"
dependencies = [
- "log",
"thiserror 1.0.69",
"winpipe",
"zeroize",
diff --git a/crates/radicle-ssh/Cargo.toml b/crates/radicle-ssh/Cargo.toml
index cb4a3d49a..b192e14b2 100644
--- a/crates/radicle-ssh/Cargo.toml
+++ b/crates/radicle-ssh/Cargo.toml
@@ -14,7 +14,6 @@ edition.workspace = true
rust-version.workspace = true
[dependencies]
-log = { workspace = true }
thiserror = { workspace = true }
zeroize = { workspace = true }
diff --git a/crates/radicle-ssh/src/agent/client.rs b/crates/radicle-ssh/src/agent/client.rs
index df8074985..66a69153d 100644
--- a/crates/radicle-ssh/src/agent/client.rs
+++ b/crates/radicle-ssh/src/agent/client.rs
@@ -8,7 +8,6 @@ pub use std::os::unix::net::UnixStream as Stream;
#[cfg(windows)]
pub use winpipe::WinStream as Stream;
-use log::*;
use thiserror::Error;
use zeroize::Zeroize as _;
commit 8e6279a3828dfc59c4f5e43d9a16bd30421c6660
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Tue Jul 15 22:46:44 2025 +0200
ssh: Remove dependency on byteorder
diff --git a/Cargo.lock b/Cargo.lock
index 06da29bfd..2f7b41374 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2749,7 +2749,6 @@ dependencies = [
name = "radicle-ssh"
version = "0.9.0"
dependencies = [
- "byteorder",
"log",
"thiserror 1.0.69",
"winpipe",
diff --git a/crates/radicle-ssh/Cargo.toml b/crates/radicle-ssh/Cargo.toml
index 9b6d147b4..cb4a3d49a 100644
--- a/crates/radicle-ssh/Cargo.toml
+++ b/crates/radicle-ssh/Cargo.toml
@@ -14,10 +14,9 @@ edition.workspace = true
rust-version.workspace = true
[dependencies]
-byteorder = "1.4"
log = { workspace = true }
thiserror = { workspace = true }
zeroize = { workspace = true }
[target.'cfg(windows)'.dependencies]
-winpipe = { workspace = true }
\ No newline at end of file
+winpipe = { workspace = true }
diff --git a/crates/radicle-ssh/src/agent/client.rs b/crates/radicle-ssh/src/agent/client.rs
index 462f889fe..df8074985 100644
--- a/crates/radicle-ssh/src/agent/client.rs
+++ b/crates/radicle-ssh/src/agent/client.rs
@@ -1,6 +1,5 @@
use std::fmt;
use std::io::{Read, Write};
-use std::ops::DerefMut;
use std::path::{Path, PathBuf};
#[cfg(unix)]
@@ -9,7 +8,6 @@ pub use std::os::unix::net::UnixStream as Stream;
#[cfg(windows)]
pub use winpipe::WinStream as Stream;
-use byteorder::{BigEndian, ByteOrder as _, WriteBytesExt};
use log::*;
use thiserror::Error;
use zeroize::Zeroize as _;
@@ -145,7 +143,7 @@ impl<Stream: ClientStream> AgentClient<Stream> {
match *cons {
Constraint::KeyLifetime { seconds } => {
buf.push(msg::CONSTRAIN_LIFETIME);
- buf.deref_mut().write_u32::<BigEndian>(seconds)?
+ buf.extend_u32(seconds);
}
Constraint::Confirm => buf.push(msg::CONSTRAIN_CONFIRM),
Constraint::Extensions {
@@ -186,13 +184,12 @@ impl<Stream: ClientStream> AgentClient<Stream> {
buf.extend_ssh_string(pin);
if !constraints.is_empty() {
- buf.deref_mut()
- .write_u32::<BigEndian>(constraints.len() as u32)?;
+ buf.extend_usize(constraints.len());
for cons in constraints {
match *cons {
Constraint::KeyLifetime { seconds } => {
buf.push(msg::CONSTRAIN_LIFETIME);
- buf.deref_mut().write_u32::<BigEndian>(seconds)?;
+ buf.extend_u32(seconds);
}
Constraint::Confirm => buf.push(msg::CONSTRAIN_CONFIRM),
Constraint::Extensions {
@@ -304,14 +301,13 @@ impl<Stream: ClientStream> AgentClient<Stream> {
let total = 1 + pk.len() + 4 + data.len() + 4;
let mut buf = Buffer::default();
- buf.write_u32::<BigEndian>(total as u32)
- .expect("Writing to a vector never fails");
+ buf.extend_usize(total);
buf.push(msg::SIGN_REQUEST);
buf.extend_from_slice(&pk);
buf.extend_ssh_string(data);
// Signature flags should be zero for ed25519.
- buf.write_u32::<BigEndian>(0).unwrap();
+ buf.extend_u32(0);
buf
}
@@ -338,7 +334,7 @@ impl<Stream: ClientStream> AgentClient<Stream> {
let total = 1 + pk.len();
let mut buf = Buffer::default();
- buf.write_u32::<BigEndian>(total as u32)?;
+ buf.extend_usize(total);
buf.push(msg::REMOVE_IDENTITY);
buf.extend_from_slice(&pk);
@@ -422,7 +418,8 @@ impl<S: Read + Write + Sized + Send + Sync> ClientStream for S {
self.read_exact(&mut resp)?;
// Read the rest of the buffer
- let len = BigEndian::read_u32(&resp) as usize;
+ let len = u32::from_be_bytes(resp.as_slice().try_into().unwrap()) as usize;
+
resp.zeroize();
resp.resize(len, 0);
self.read_exact(&mut resp)?;
diff --git a/crates/radicle-ssh/src/encoding.rs b/crates/radicle-ssh/src/encoding.rs
index 8342eefaa..a45994378 100644
--- a/crates/radicle-ssh/src/encoding.rs
+++ b/crates/radicle-ssh/src/encoding.rs
@@ -12,9 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
-use std::ops::DerefMut;
+use std::ops::DerefMut as _;
-use byteorder::{BigEndian, ByteOrder, WriteBytesExt};
use thiserror::Error;
use zeroize::Zeroizing;
@@ -53,6 +52,16 @@ pub trait Encoding {
fn write_empty_list(&mut self);
/// Write the buffer length at the beginning of the buffer.
fn write_len(&mut self);
+ /// Push a [`usize`] as an SSH-encoded unsiged 32-bit integer.
+ /// May panic if the argument is greater than [`u32::MAX`].
+ /// This is a convience method, to spare callers casting or converting
+ /// [`usize`] to [`u32`]. If callers end up in a situation where they
+ /// need to push a 32-bit unisgned integer, but the value they would
+ /// like to push does not fit 32 bits, then the implementation will not
+ /// comply with the SSH format anyway.
+ fn extend_usize(&mut self, u: usize) {
+ self.extend_u32(u.try_into().unwrap())
+ }
}
/// Encoding length of the given mpint.
@@ -66,12 +75,12 @@ pub fn mpint_len(s: &[u8]) -> usize {
impl Encoding for Vec<u8> {
fn extend_ssh_string(&mut self, s: &[u8]) {
- self.write_u32::<BigEndian>(s.len() as u32).unwrap();
+ self.extend_usize(s.len());
self.extend(s);
}
fn extend_ssh_string_blank(&mut self, len: usize) -> &mut [u8] {
- self.write_u32::<BigEndian>(len as u32).unwrap();
+ self.extend_usize(len);
let current = self.len();
self.resize(current + len, 0u8);
@@ -86,24 +95,20 @@ impl Encoding for Vec<u8> {
}
// If the first non-zero is >= 128, write its length (u32, BE), followed by 0.
if s[i] & 0x80 != 0 {
- self.write_u32::<BigEndian>((s.len() - i + 1) as u32)
- .unwrap();
+ self.extend_usize(s.len() - i + 1);
self.push(0)
} else {
- self.write_u32::<BigEndian>((s.len() - i) as u32).unwrap();
+ self.extend_usize(s.len() - i);
}
self.extend(&s[i..]);
}
fn extend_u32(&mut self, s: u32) {
- let mut buf = [0x0; 4];
- BigEndian::write_u32(&mut buf, s);
- self.extend(buf);
+ self.extend(s.to_be_bytes());
}
fn extend_list<'a, I: Iterator<Item = &'a [u8]>>(&mut self, list: I) {
let len0 = self.len();
- self.extend([0, 0, 0, 0]);
let mut first = true;
for i in list {
@@ -116,7 +121,7 @@ impl Encoding for Vec<u8> {
}
let len = (self.len() - len0 - 4) as u32;
- BigEndian::write_u32(&mut self[len0..], len);
+ self.splice(len0..len0, len.to_be_bytes());
}
fn write_empty_list(&mut self) {
@@ -125,7 +130,7 @@ impl Encoding for Vec<u8> {
fn write_len(&mut self) {
let len = self.len() - 4;
- BigEndian::write_u32(&mut self[..], len as u32);
+ self[..4].copy_from_slice((len as u32).to_be_bytes().as_slice());
}
}
@@ -207,7 +212,8 @@ impl<'a> Cursor<'a> {
/// Read a `u32` from this reader.
pub fn read_u32(&mut self) -> Result<u32, Error> {
if self.position + 4 <= self.s.len() {
- let u = BigEndian::read_u32(&self.s[self.position..]);
+ let u =
+ u32::from_be_bytes(self.s[self.position..self.position + 4].try_into().unwrap());
self.position += 4;
Ok(u)
} else {
commit 95b3303eb91609e9e959f4d873e424170c385d88
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Tue Jul 15 17:58:51 2025 +0200
term: Remove unused dependency shlex
diff --git a/Cargo.lock b/Cargo.lock
index f01ce4a5c..06da29bfd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2797,7 +2797,6 @@ dependencies = [
"inquire",
"pretty_assertions",
"radicle-signals",
- "shlex",
"tempfile",
"thiserror 1.0.69",
"unicode-display-width",
diff --git a/crates/radicle-term/Cargo.toml b/crates/radicle-term/Cargo.toml
index c2653eb9b..1f39823c5 100644
--- a/crates/radicle-term/Cargo.toml
+++ b/crates/radicle-term/Cargo.toml
@@ -17,7 +17,6 @@ anyhow = { workspace = true }
anstyle-query = "1.0.0"
crossterm = "0.29.0"
inquire = { version = "0.7.4", default-features = false, features = ["crossterm", "editor"] }
-shlex = { workspace = true }
thiserror = { workspace = true }
unicode-display-width = "0.3.0"
unicode-segmentation = "1.7.1"
commit 009436efac8cd5b9a59cfe92688cda6f17d9531f
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Mon Jul 14 16:04:20 2025 +0200
ssh: Use winpipe for SSH agent on Windows
The trait `radicle_ssh::agent::client::ClientStream` trait was
simplified, because `winpipe::WinStream` is so similar to
`std::os::unix::net::UnixStream` that we can just use the same
implementation for both platforms.
However, obtaining the process identifier of the SSH agent process is
not common on Windows, so we instead track the path that we used to
connect to the agent. This is also helpful on Unix. In some cases, the
path will even contain the process identifier. The path is printed by
`rad self`.
Errors are cleaned up, and error messages are improved.
diff --git a/crates/radicle-cli/src/commands/self.rs b/crates/radicle-cli/src/commands/self.rs
index aad6768a8..79de897ca 100644
--- a/crates/radicle-cli/src/commands/self.rs
+++ b/crates/radicle-cli/src/commands/self.rs
@@ -146,7 +146,9 @@ fn all(profile: &Profile) -> anyhow::Result<()> {
let ssh_agent = match ssh::agent::Agent::connect() {
Ok(c) => term::format::positive(format!(
"running ({})",
- c.pid().map(|p| p.to_string()).unwrap_or(String::from("?"))
+ c.path()
+ .map(|p| p.display().to_string())
+ .unwrap_or(String::from("?"))
)),
Err(e) if e.is_not_running() => term::format::yellow(String::from("not running")),
Err(e) => term::format::negative(format!("error: {e}")),
diff --git a/crates/radicle-crypto/src/ssh.rs b/crates/radicle-crypto/src/ssh.rs
index 474ac92b7..d1d045b58 100644
--- a/crates/radicle-crypto/src/ssh.rs
+++ b/crates/radicle-crypto/src/ssh.rs
@@ -261,13 +261,6 @@ mod test {
}
impl ClientStream for DummyStream {
- fn connect<P>(_path: P) -> Result<AgentClient<Self>, Error>
- where
- P: AsRef<std::path::Path> + Send,
- {
- panic!("This function should never be called!")
- }
-
fn request(&mut self, buf: &[u8]) -> Result<Buffer, Error> {
*self.incoming.lock().unwrap() = buf.to_vec();
@@ -304,7 +297,7 @@ mod test {
];
let stream = DummyStream::default();
- let mut agent = AgentClient::connect(stream.clone());
+ let mut agent = AgentClient::new(None, stream.clone());
agent.remove_identity(&pk).unwrap();
@@ -334,7 +327,7 @@ mod test {
];
let stream = DummyStream::default();
- let mut agent = AgentClient::connect(stream.clone());
+ let mut agent = AgentClient::new(None, stream.clone());
let data: Vec<u8> = vec![1, 2, 3, 4, 5, 6, 7, 8, 9];
agent.sign(&pk, &data).ok();
diff --git a/crates/radicle-crypto/src/ssh/agent.rs b/crates/radicle-crypto/src/ssh/agent.rs
index 804191408..05a6f9567 100644
--- a/crates/radicle-crypto/src/ssh/agent.rs
+++ b/crates/radicle-crypto/src/ssh/agent.rs
@@ -1,26 +1,23 @@
use std::cell::RefCell;
+use std::path::Path;
-pub use radicle_ssh::agent::client::AgentClient;
-pub use radicle_ssh::agent::client::Error;
-pub use radicle_ssh::{self as ssh, agent::client::ClientStream};
+pub use radicle_ssh as ssh;
+pub use ssh::agent::client::{AgentClient, Error};
use crate::{PublicKey, SecretKey, Signature, Signer, SignerError};
-#[cfg(not(unix))]
-pub use std::net::TcpStream as Stream;
-#[cfg(unix)]
-pub use std::os::unix::net::UnixStream as Stream;
-
use super::ExtendedSignature;
pub struct Agent {
- client: AgentClient<Stream>,
+ client: AgentClient,
}
impl Agent {
/// Connect to a running SSH agent.
- pub fn connect() -> Result<Self, ssh::agent::client::Error> {
- Stream::connect_env().map(|client| Self { client })
+ pub fn connect() -> Result<Self, Error> {
+ Ok(Self {
+ client: AgentClient::connect_env()?,
+ })
}
/// Register a key with the agent.
@@ -45,8 +42,8 @@ impl Agent {
AgentSigner::new(self, key)
}
- pub fn pid(&self) -> Option<u32> {
- self.client.pid()
+ pub fn path(&self) -> Option<&Path> {
+ self.client.path()
}
pub fn request_identities(&mut self) -> Result<Vec<PublicKey>, ssh::agent::client::Error> {
diff --git a/crates/radicle-ssh/Cargo.toml b/crates/radicle-ssh/Cargo.toml
index a5a9d60fb..9b6d147b4 100644
--- a/crates/radicle-ssh/Cargo.toml
+++ b/crates/radicle-ssh/Cargo.toml
@@ -18,3 +18,6 @@ byteorder = "1.4"
log = { workspace = true }
thiserror = { workspace = true }
zeroize = { workspace = true }
+
+[target.'cfg(windows)'.dependencies]
+winpipe = { workspace = true }
\ No newline at end of file
diff --git a/crates/radicle-ssh/src/agent/client.rs b/crates/radicle-ssh/src/agent/client.rs
index 881c16fc6..462f889fe 100644
--- a/crates/radicle-ssh/src/agent/client.rs
+++ b/crates/radicle-ssh/src/agent/client.rs
@@ -1,11 +1,15 @@
use std::fmt;
use std::io::{Read, Write};
use std::ops::DerefMut;
-use std::os::unix::net::UnixStream;
-use std::path::Path;
-use std::str::FromStr;
+use std::path::{Path, PathBuf};
-use byteorder::{BigEndian, ByteOrder, WriteBytesExt};
+#[cfg(unix)]
+pub use std::os::unix::net::UnixStream as Stream;
+
+#[cfg(windows)]
+pub use winpipe::WinStream as Stream;
+
+use byteorder::{BigEndian, ByteOrder as _, WriteBytesExt};
use log::*;
use thiserror::Error;
use zeroize::Zeroize as _;
@@ -21,74 +25,103 @@ pub type Signature = [u8; 64];
#[derive(Debug, Error)]
pub enum Error {
/// Agent protocol error.
- #[error("Agent protocol error")]
+ #[error("SSH agent replied with unexpected data, violating the SSH agent protocol.")]
AgentProtocolError,
- #[error("Agent failure")]
+ #[error(
+ "SSH agent replied with failure (protocol message number 5), which could not be handled."
+ )]
AgentFailure,
- #[error("Unable to connect to ssh-agent. The environment variable `SSH_AUTH_SOCK` was set, but it points to a nonexistent file or directory.")]
- BadAuthSock,
- #[error(transparent)]
+ #[error("Unable to connect to SSH agent because '{path}' was not found: {source}")]
+ BadAuthSock {
+ path: String,
+ source: std::io::Error,
+ },
+ #[error("Encoding error while communicating with SSH agent: {0}")]
Encoding(#[from] encoding::Error),
- #[error("Environment variable `{0}` not found")]
- EnvVar(&'static str),
- #[error(transparent)]
+ #[error("Unable to read environment variable '{var}': {source}")]
+ EnvVar {
+ var: String,
+ source: std::env::VarError,
+ },
+ #[error("I/O error while communicating with SSH agent: {0}")]
Io(#[from] std::io::Error),
- #[error(transparent)]
- Private(Box<dyn std::error::Error + Send + Sync + 'static>),
- #[error(transparent)]
- Public(Box<dyn std::error::Error + Send + Sync + 'static>),
- #[error(transparent)]
- Signature(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl Error {
pub fn is_not_running(&self) -> bool {
- matches!(self, Self::EnvVar("SSH_AUTH_SOCK"))
+ matches!(self, Self::EnvVar { .. } | Self::BadAuthSock { .. })
}
}
/// SSH agent client.
-pub struct AgentClient<S> {
+pub struct AgentClient<S = Stream> {
+ /// The path that was originally used to connect to the agent.
+ path: Option<PathBuf>,
+
+ /// The underlying stream to the SSH agent.
stream: S,
}
impl<S> AgentClient<S> {
- /// Connect to an SSH agent via the provided stream (on Unix, usually a Unix-domain socket).
- pub fn connect(stream: S) -> Self {
- AgentClient { stream }
- }
-
- /// Get the agent PID.
- pub fn pid(&self) -> Option<u32> {
- std::env::var("SSH_AGENT_PID")
- .ok()
- .and_then(|v| u32::from_str(&v).ok())
+ pub fn path(&self) -> Option<&Path> {
+ self.path.as_deref()
}
}
-pub trait ClientStream: Sized + Send + Sync {
- /// Send an agent request through the stream and read the response.
- fn request(&mut self, req: &[u8]) -> Result<Buffer, Error>;
-
- /// How to connect the streaming socket
- fn connect<P>(path: P) -> Result<AgentClient<Self>, Error>
+impl AgentClient<Stream> {
+ /// Connect to an SSH agent at the provided path.
+ pub fn connect<P>(path: P) -> Result<Self, Error>
where
- P: AsRef<Path> + Send;
-
- fn connect_env() -> Result<AgentClient<Self>, Error> {
- let Ok(var) = std::env::var("SSH_AUTH_SOCK") else {
- return Err(Error::EnvVar("SSH_AUTH_SOCK"));
+ P: AsRef<Path>,
+ {
+ let path = path.as_ref().to_owned();
+
+ let stream = match Stream::connect(&path) {
+ Err(err) if err.kind() == std::io::ErrorKind::NotFound => {
+ return Err(Error::BadAuthSock {
+ path: path.display().to_string(),
+ source: err,
+ })
+ }
+ Err(err) => return Err(Error::Io(err)),
+ Ok(stream) => stream,
};
- match Self::connect(var) {
- Err(Error::Io(io_err)) if io_err.kind() == std::io::ErrorKind::NotFound => {
- Err(Error::BadAuthSock)
+
+ Ok(Self {
+ path: Some(path),
+ stream,
+ })
+ }
+
+ pub fn connect_env() -> Result<Self, Error> {
+ const SSH_AUTH_SOCK: &str = "SSH_AUTH_SOCK";
+
+ let path = match std::env::var(SSH_AUTH_SOCK) {
+ Ok(var) => var,
+ Err(err) => {
+ if cfg!(windows) {
+ // Windows uses a named pipe for the SSH agent, which
+ // we fall back to in case reading the environment
+ // variable fails.
+ "\\\\.\\pipe\\openssh-ssh-agent".to_string()
+ } else {
+ return Err(Error::EnvVar {
+ var: SSH_AUTH_SOCK.to_string(),
+ source: err,
+ });
+ }
}
- other => other,
- }
+ };
+
+ Self::connect(path)
}
}
-impl<S: ClientStream> AgentClient<S> {
+impl<Stream: ClientStream> AgentClient<Stream> {
+ pub fn new(path: Option<PathBuf>, stream: Stream) -> Self {
+ Self { path, stream }
+ }
+
/// Send a key to the agent, with a (possibly empty) slice of constraints
/// to apply when using the key to sign.
pub fn add_identity<K>(&mut self, key: &K, constraints: &[Constraint]) -> Result<(), Error>
@@ -372,35 +405,11 @@ impl<S: ClientStream> AgentClient<S> {
}
}
-#[cfg(not(unix))]
-impl ClientStream for TcpStream {
- fn connect_uds<P>(_: P) -> Result<AgentClient<Self>, Error>
- where
- P: AsRef<Path> + Send,
- {
- Err(Error::AgentFailure)
- }
-
- fn read_response(&mut self, _: &mut Buffer) -> Result<(), Error> {
- Err(Error::AgentFailure)
- }
-
- fn connect_env() -> Result<AgentClient<Self>, Error> {
- Err(Error::AgentFailure)
- }
+pub trait ClientStream: Sized + Send + Sync {
+ fn request(&mut self, msg: &[u8]) -> Result<Buffer, Error>;
}
-#[cfg(unix)]
-impl ClientStream for UnixStream {
- fn connect<P>(path: P) -> Result<AgentClient<Self>, Error>
- where
- P: AsRef<Path> + Send,
- {
- let stream = UnixStream::connect(path)?;
-
- Ok(AgentClient { stream })
- }
-
+impl<S: Read + Write + Sized + Send + Sync> ClientStream for S {
fn request(&mut self, msg: &[u8]) -> Result<Buffer, Error> {
let mut resp = Buffer::default();
commit 0705501537d52d4bf1bf1a7480c3f25d98f164ad
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Mon Jul 14 23:16:19 2025 +0200
radicle: Depend on winpipe for Windows support
diff --git a/Cargo.lock b/Cargo.lock
index 76682e240..f01ce4a5c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -650,6 +650,12 @@ dependencies = [
"syn 1.0.109",
]
+[[package]]
+name = "defer-heavy"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5053691e3e6c0e5979cfb55503b7eb4b06531897b5c15b0f617110096b05a0e1"
+
[[package]]
name = "der"
version = "0.7.9"
@@ -1560,7 +1566,7 @@ dependencies = [
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
- "windows-core",
+ "windows-core 0.52.0",
]
[[package]]
@@ -1946,9 +1952,9 @@ dependencies = [
[[package]]
name = "log"
-version = "0.4.21"
+version = "0.4.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
+checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
[[package]]
name = "maybe-async"
@@ -2503,6 +2509,7 @@ dependencies = [
"tempfile",
"thiserror 1.0.69",
"unicode-normalization",
+ "winpipe",
]
[[package]]
@@ -2745,6 +2752,7 @@ dependencies = [
"byteorder",
"log",
"thiserror 1.0.69",
+ "winpipe",
"zeroize",
]
@@ -3408,6 +3416,12 @@ dependencies = [
"unicode-ident",
]
+[[package]]
+name = "sync-ptr"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b115b4cc742d11625f50e0e48ab15baf6fa548c2ec33a8d4113711886316a4f"
+
[[package]]
name = "synstructure"
version = "0.13.1"
@@ -3892,6 +3906,16 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+[[package]]
+name = "windows"
+version = "0.58.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"
+dependencies = [
+ "windows-core 0.58.0",
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "windows-core"
version = "0.52.0"
@@ -3901,6 +3925,60 @@ dependencies = [
"windows-targets 0.52.6",
]
+[[package]]
+name = "windows-core"
+version = "0.58.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"
+dependencies = [
+ "windows-implement",
+ "windows-interface",
+ "windows-result",
+ "windows-strings",
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.58.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.89",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.58.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.89",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
+dependencies = [
+ "windows-result",
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "windows-sys"
version = "0.48.0"
@@ -4058,6 +4136,19 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "winpipe"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ccf671d62d1bd0c913d9059e69bb4a6b51f7a4c899ab83c62d921e35f206053"
+dependencies = [
+ "defer-heavy",
+ "log",
+ "rand",
+ "sync-ptr",
+ "windows",
+]
+
[[package]]
name = "write16"
version = "1.0.0"
diff --git a/Cargo.toml b/Cargo.toml
index 60697ad0d..fc84637f7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -61,6 +61,7 @@ snapbox = "0.4.3"
sqlite = "0.32.0"
tempfile = "3.3.0"
thiserror = "1.0"
+winpipe = "0.1.1"
zeroize = "1.5.7"
[workspace.lints]
diff --git a/crates/radicle/Cargo.toml b/crates/radicle/Cargo.toml
index 8ec5a9b92..b5cd8a731 100644
--- a/crates/radicle/Cargo.toml
+++ b/crates/radicle/Cargo.toml
@@ -48,6 +48,9 @@ unicode-normalization = { version = "0.1" }
[target.'cfg(unix)'.dependencies]
libc = { workspace = true }
+[target.'cfg(windows)'.dependencies]
+winpipe = { workspace = true }
+
[dev-dependencies]
emojis = "0.6"
jsonschema = { version = "0.30", default-features = false }
diff --git a/crates/radicle/src/node.rs b/crates/radicle/src/node.rs
index 93939aff4..620b14d4a 100644
--- a/crates/radicle/src/node.rs
+++ b/crates/radicle/src/node.rs
@@ -19,11 +19,15 @@ use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecDeque};
use std::io::{BufRead, BufReader};
use std::marker::PhantomData;
use std::ops::{ControlFlow, Deref};
-use std::os::unix::net::UnixStream;
use std::path::{Path, PathBuf};
use std::str::FromStr;
use std::{fmt, io, net, thread, time};
+#[cfg(unix)]
+use std::os::unix::net::UnixStream as Stream;
+#[cfg(windows)]
+use winpipe::WinStream as Stream;
+
use amplify::WrapperMut;
use cyphernet::addr::NetAddr;
use localtime::{LocalDuration, LocalTime};
@@ -1140,7 +1144,7 @@ pub trait Handle: Clone + Sync + Send {
/// The iterator blocks for a `timeout` duration, returning [`Error::TimedOut`]
/// if the duration is reached.
pub struct LineIter<T> {
- stream: BufReader<UnixStream>,
+ stream: BufReader<Stream>,
timeout: time::Duration,
witness: PhantomData<T>,
}
@@ -1204,9 +1208,9 @@ impl Node {
cmd: Command,
timeout: time::Duration,
) -> Result<LineIter<T>, Error> {
- let stream = UnixStream::connect(&self.socket)
+ let mut stream = Stream::connect(&self.socket)
.map_err(|e| Error::Connect(self.socket.clone(), e.kind()))?;
- cmd.to_writer(&stream)?;
+ cmd.to_writer(&mut stream)?;
Ok(LineIter {
stream: BufReader::new(stream),
timeout,
commit 08b535d56794bd378a73e491147c934550ac2d45
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Mon Jul 14 23:35:39 2025 +0200
radicle: Only set file limits on Unix
diff --git a/crates/radicle/Cargo.toml b/crates/radicle/Cargo.toml
index 052c536a0..8ec5a9b92 100644
--- a/crates/radicle/Cargo.toml
+++ b/crates/radicle/Cargo.toml
@@ -26,7 +26,6 @@ fast-glob = { version = "0.3.2" }
fastrand = { workspace = true }
git2 = { workspace = true, features = ["vendored-libgit2"] }
indexmap = { version = "2", features = ["serde"] }
-libc = { workspace = true }
localtime = { workspace = true, features = ["serde"] }
log = { workspace = true, features = ["std"] }
multibase = { workspace = true }
@@ -46,6 +45,9 @@ tempfile = { workspace = true }
thiserror = { workspace = true }
unicode-normalization = { version = "0.1" }
+[target.'cfg(unix)'.dependencies]
+libc = { workspace = true }
+
[dev-dependencies]
emojis = "0.6"
jsonschema = { version = "0.30", default-features = false }
@@ -53,4 +55,4 @@ pretty_assertions = { workspace = true }
qcheck = { workspace = true }
qcheck-macros = { workspace = true }
radicle-cob = { workspace = true, features = ["stable-commit-ids"] }
-radicle-crypto = { workspace = true, features = ["test"] }
\ No newline at end of file
+radicle-crypto = { workspace = true, features = ["test"] }
diff --git a/crates/radicle/src/io.rs b/crates/radicle/src/io.rs
index 7e319ef41..a446f834d 100644
--- a/crates/radicle/src/io.rs
+++ b/crates/radicle/src/io.rs
@@ -1,14 +1,25 @@
-use std::fmt;
use std::io;
+#[cfg(unix)]
use libc::{getrlimit, rlim_t, rlimit, setrlimit, RLIMIT_NOFILE};
+#[cfg(unix)]
type Int = rlim_t;
+#[cfg(not(unix))]
+#[inline]
+pub fn set_file_limit<T>(_: T) -> io::Result<()> {
+ Err(io::Error::new(
+ io::ErrorKind::Unsupported,
+ "setting file limits is not supported on this platform",
+ ))
+}
+
/// Sets the open file limit to the given value, or the maximum allowed value.
+#[cfg(unix)]
pub fn set_file_limit<N>(n: N) -> io::Result<Int>
where
- N: Copy + fmt::Display,
+ N: Copy + std::fmt::Display,
Int: TryFrom<N>,
{
let Ok(n) = Int::try_from(n) else {
commit e7fb5647ac0fe39e04c51e1e19ac030637aa0011
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Mon Jul 14 18:14:59 2025 +0200
term: Remove dependency on libc
Introducing the new enum `TerminalFile` to model which standard stream
stream the terminal uses allows us to remove the dependency on `libc`
which does not build on Windows.
diff --git a/Cargo.lock b/Cargo.lock
index be2d6970d..76682e240 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2787,7 +2787,6 @@ dependencies = [
"crossterm 0.29.0",
"git2",
"inquire",
- "libc",
"pretty_assertions",
"radicle-signals",
"shlex",
diff --git a/crates/radicle-remote-helper/src/lib.rs b/crates/radicle-remote-helper/src/lib.rs
index b24a4ed07..bdc541b21 100644
--- a/crates/radicle-remote-helper/src/lib.rs
+++ b/crates/radicle-remote-helper/src/lib.rs
@@ -90,7 +90,7 @@ pub struct Options {
pub fn run(profile: radicle::Profile) -> Result<(), Error> {
// Since we're going to be writing user output to `stderr`, make sure the paint
// module is aware of that.
- cli::Paint::set_terminal(io::stderr());
+ cli::Paint::set_terminal(cli::TerminalFile::Stderr);
let (remote, url): (Option<git::RefString>, Url) = {
let args = env::args().skip(1).take(2).collect::<Vec<_>>();
diff --git a/crates/radicle-term/Cargo.toml b/crates/radicle-term/Cargo.toml
index 2de7e2a9a..c2653eb9b 100644
--- a/crates/radicle-term/Cargo.toml
+++ b/crates/radicle-term/Cargo.toml
@@ -17,7 +17,6 @@ anyhow = { workspace = true }
anstyle-query = "1.0.0"
crossterm = "0.29.0"
inquire = { version = "0.7.4", default-features = false, features = ["crossterm", "editor"] }
-libc = { workspace = true }
shlex = { workspace = true }
thiserror = { workspace = true }
unicode-display-width = "0.3.0"
diff --git a/crates/radicle-term/src/ansi.rs b/crates/radicle-term/src/ansi.rs
index e3e168ff0..00ea7d7d9 100644
--- a/crates/radicle-term/src/ansi.rs
+++ b/crates/radicle-term/src/ansi.rs
@@ -13,4 +13,5 @@ pub use color::Color;
pub use paint::paint;
pub use paint::Filled;
pub use paint::Paint;
+pub use paint::TerminalFile;
pub use style::Style;
diff --git a/crates/radicle-term/src/ansi/paint.rs b/crates/radicle-term/src/ansi/paint.rs
index 0926abb3f..5ed8a11be 100644
--- a/crates/radicle-term/src/ansi/paint.rs
+++ b/crates/radicle-term/src/ansi/paint.rs
@@ -1,5 +1,4 @@
use std::io::IsTerminal as _;
-use std::os::fd::{AsRawFd, BorrowedFd};
use std::sync::atomic::{AtomicBool, AtomicI32};
use std::sync::LazyLock;
use std::{fmt, sync};
@@ -7,8 +6,36 @@ use std::{fmt, sync};
use super::color::Color;
use super::style::{Property, Style};
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
+#[repr(i32)]
+pub enum TerminalFile {
+ Stdout = 1,
+ Stderr = 2,
+}
+
+impl TryFrom<i32> for TerminalFile {
+ type Error = ();
+
+ fn try_from(value: i32) -> Result<Self, Self::Error> {
+ match value {
+ 1 => Ok(TerminalFile::Stdout),
+ 2 => Ok(TerminalFile::Stderr),
+ _ => Err(()),
+ }
+ }
+}
+
+impl TerminalFile {
+ fn is_terminal(&self) -> bool {
+ match self {
+ TerminalFile::Stdout => std::io::stdout().is_terminal(),
+ TerminalFile::Stderr => std::io::stderr().is_terminal(),
+ }
+ }
+}
+
/// What file is used for text output.
-static TERMINAL: AtomicI32 = AtomicI32::new(libc::STDOUT_FILENO);
+static TERMINAL: AtomicI32 = AtomicI32::new(TerminalFile::Stdout as i32);
/// Whether paint styling is enabled or not.
static ENABLED: AtomicBool = AtomicBool::new(true);
/// Whether paint styling should be forced.
@@ -263,7 +290,7 @@ impl Paint<()> {
let clicolor_enabled = clicolor.unwrap_or(false);
let clicolor_disabled = !clicolor.unwrap_or(true);
let terminal = TERMINAL.load(sync::atomic::Ordering::SeqCst);
- let is_terminal = unsafe { BorrowedFd::borrow_raw(terminal).is_terminal() };
+ let is_terminal = TerminalFile::try_from(terminal).is_ok_and(|tf| tf.is_terminal());
let is_enabled = ENABLED.load(sync::atomic::Ordering::SeqCst);
is_terminal
@@ -287,8 +314,8 @@ impl Paint<()> {
/// Set the terminal we are writing to. This influences the logic that checks whether or not to
/// include colors.
- pub fn set_terminal(fd: impl AsRawFd) {
- TERMINAL.store(fd.as_raw_fd(), sync::atomic::Ordering::SeqCst);
+ pub fn set_terminal(tf: TerminalFile) {
+ TERMINAL.store(tf as i32, sync::atomic::Ordering::SeqCst);
}
/// Force paint styling.
diff --git a/crates/radicle-term/src/lib.rs b/crates/radicle-term/src/lib.rs
index 7102da487..80f93f99e 100644
--- a/crates/radicle-term/src/lib.rs
+++ b/crates/radicle-term/src/lib.rs
@@ -17,7 +17,7 @@ use std::fmt;
use std::io::IsTerminal;
pub use ansi::Color;
-pub use ansi::{paint, Filled, Paint, Style};
+pub use ansi::{paint, Filled, Paint, Style, TerminalFile};
pub use editor::Editor;
pub use element::{Constraint, Element, Line, Size};
pub use hstack::HStack;
commit 70fb0d3fef0bec250bdccd58bcb6f4601adbe065
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Tue Jul 15 16:40:52 2025 +0200
term: Use inquire for spawning the editor
`radicle-term` includes quite a lot of rather "low-level" logic to spawn
the preferred editor of the user. In particular, this logic is
platform-dependent and only works on Unix-like platforms.
Also, `radicle-term` already depends on `inquire` which features an
editor prompt. It is a cross-platform solution to spawn the editor.
This commit changes the implementation of `Editor` to be a wrapper of
`inquire::Editor`, keeping the interface mostly intact.
Downsides:
- We cannot edit a file "in place" this way, instead we have to read
it, as `inquire` only supports editing temporary files. This can also
be viewed as a benefit, as we lessen the risk of corruption of these
files.
- `inquire::Editor` contains borrows, so it is quite cumbersome to
extend it with a custom mechanism for looking up the preferred
editor. The lookup logic was kept, but needs to be invoked by the
caller. In the future we might consider just using the logic provided
by `inquire` or requesting a change to `inquire`.
- The prompt is a bit strange. It does not show the current state of
the output, see <https://github.com/mikaelmello/inquire/issues/280>
and <https://github.com/mikaelmello/inquire/pull/271>.
diff --git a/crates/radicle-cli/src/commands/config.rs b/crates/radicle-cli/src/commands/config.rs
index cfd325319..402e5a462 100644
--- a/crates/radicle-cli/src/commands/config.rs
+++ b/crates/radicle-cli/src/commands/config.rs
@@ -185,12 +185,23 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
path.display()
);
}
- Operation::Edit => match term::editor::Editor::new(&path)?.extension("json").edit()? {
- Some(_) => {
- term::success!("Successfully made changes to the configuration at {path:?}")
+ Operation::Edit => {
+ let config = std::fs::read_to_string(&path)?;
+
+ match term::editor::Editor::new("Change configuration.", "You may change the Radicle configuration using your editor. Pressing (e) will open the editor. Save the file and exit the editor to submit your changes.")
+ .editor(term::editor::default_editor_command().as_ref())
+ .extension(".json")
+ .initial(&config)
+ .edit()? {
+ Some(edited) => {
+ std::fs::write(&path, edited)?;
+ term::success!("Successfully made changes to the configuration at {path:?}");
+ },
+ None => {
+ term::info!("No changes were made to the configuration at {path:?}")
+ }
}
- None => term::info!("No changes were made to the configuration at {path:?}"),
- },
+ }
}
Ok(())
diff --git a/crates/radicle-cli/src/commands/id.rs b/crates/radicle-cli/src/commands/id.rs
index 2690454e8..a01ce3227 100644
--- a/crates/radicle-cli/src/commands/id.rs
+++ b/crates/radicle-cli/src/commands/id.rs
@@ -412,8 +412,9 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
// If `--edit` is specified, the document can also be edited via a text edit.
let proposal = if edit {
match term::editor::Editor::comment()
- .extension("json")
- .initial(serde_json::to_string_pretty(¤t.doc)?)?
+ .editor(term::editor::default_editor_command().as_ref())
+ .extension(".json")
+ .initial(&serde_json::to_string_pretty(¤t.doc)?)
.edit()?
{
Some(proposal) => serde_json::from_str::<RawDoc>(&proposal)?,
diff --git a/crates/radicle-cli/src/commands/patch/review/builder.rs b/crates/radicle-cli/src/commands/patch/review/builder.rs
index fe7f24484..dbbd7df94 100644
--- a/crates/radicle-cli/src/commands/patch/review/builder.rs
+++ b/crates/radicle-cli/src/commands/patch/review/builder.rs
@@ -836,6 +836,8 @@ enum Error {
Format(#[from] std::fmt::Error),
#[error(transparent)]
Git(#[from] git::raw::Error),
+ #[error("editor error: {0}")]
+ Editor(#[from] term::editor::Error),
}
#[derive(Debug)]
@@ -860,8 +862,9 @@ impl CommentBuilder {
writeln!(&mut input, "> {line}")?;
}
let output = term::Editor::comment()
- .extension("diff")
- .initial(input)?
+ .editor(term::editor::default_editor_command().as_ref())
+ .extension(".diff")
+ .initial(&input)
.edit()?;
if let Some(output) = output {
diff --git a/crates/radicle-cli/src/terminal/issue.rs b/crates/radicle-cli/src/terminal/issue.rs
index 518608ad2..d2857e845 100644
--- a/crates/radicle-cli/src/terminal/issue.rs
+++ b/crates/radicle-cli/src/terminal/issue.rs
@@ -1,5 +1,3 @@
-use std::io;
-
use radicle_term::table::TableOptions;
use radicle_term::{Table, VStack};
@@ -34,7 +32,7 @@ pub enum Format {
pub fn get_title_description(
title: Option<String>,
description: Option<String>,
-) -> io::Result<Option<(String, String)>> {
+) -> Result<Option<(String, String)>, term::patch::Error> {
term::patch::Message::edit_title_description(title, description, OPEN_MSG)
}
diff --git a/crates/radicle-cli/src/terminal/patch.rs b/crates/radicle-cli/src/terminal/patch.rs
index 3a40bb372..7a2e1f9cf 100644
--- a/crates/radicle-cli/src/terminal/patch.rs
+++ b/crates/radicle-cli/src/terminal/patch.rs
@@ -31,6 +31,10 @@ pub enum Error {
Io(#[from] io::Error),
#[error("invalid utf-8 string")]
InvalidUtf8,
+ #[error("editor error: {0}")]
+ Editor(#[from] term::editor::Error),
+ #[error("a patch title must be provided")]
+ PatchTitleMissing,
}
/// The user supplied `Patch` description.
@@ -47,13 +51,14 @@ pub enum Message {
impl Message {
/// Get the `Message` as a string according to the method.
- pub fn get(self, help: &str) -> std::io::Result<String> {
+ pub fn get(self, help: &str) -> Result<String, term::editor::Error> {
let comment = match self {
Message::Edit => {
if io::stderr().is_terminal() {
term::Editor::comment()
- .extension("markdown")
- .initial(help)?
+ .editor(term::editor::default_editor_command().as_ref())
+ .extension(".md")
+ .initial(help)
.edit()?
} else {
Some(help.to_owned())
@@ -75,7 +80,7 @@ impl Message {
title: Option<String>,
description: Option<String>,
help: &str,
- ) -> std::io::Result<Option<(String, String)>> {
+ ) -> Result<Option<(String, String)>, Error> {
let mut placeholder = String::new();
if let Some(title) = title {
@@ -228,11 +233,7 @@ pub fn get_create_message(
let (title, description) = (title.trim().to_string(), description.trim().to_string());
if title.is_empty() {
- return Err(io::Error::new(
- io::ErrorKind::InvalidInput,
- "a patch title must be provided",
- )
- .into());
+ return Err(Error::PatchTitleMissing);
}
Ok((title, description))
@@ -249,7 +250,7 @@ fn edit_display_message(title: &str, description: &str) -> String {
pub fn get_edit_message(
patch_message: term::patch::Message,
patch: &cob::patch::Patch,
-) -> io::Result<(String, String)> {
+) -> Result<(String, String), Error> {
let display_msg = edit_display_message(patch.title(), patch.description());
let patch_message = patch_message.get(&display_msg)?;
let patch_message = patch_message.replace(PATCH_MSG.trim(), ""); // Delete help message.
@@ -260,10 +261,7 @@ pub fn get_edit_message(
let (title, description) = (title.trim().to_string(), description.trim().to_string());
if title.is_empty() {
- return Err(io::Error::new(
- io::ErrorKind::InvalidInput,
- "a patch title must be provided",
- ));
+ return Err(Error::PatchTitleMissing);
}
Ok((title, description))
diff --git a/crates/radicle-term/src/editor.rs b/crates/radicle-term/src/editor.rs
index d62610a19..9a1ba68c7 100644
--- a/crates/radicle-term/src/editor.rs
+++ b/crates/radicle-term/src/editor.rs
@@ -1,184 +1,67 @@
+use std::env;
use std::ffi::OsString;
-use std::io::IsTerminal;
-use std::io::Write;
-use std::os::fd::{AsRawFd, FromRawFd};
-use std::path::{Path, PathBuf};
-use std::process;
-use std::{env, fs, io};
+use std::path::Path;
-pub const COMMENT_FILE: &str = "RAD_COMMENT";
-/// Some common paths where system-installed binaries are found.
-pub const PATHS: &[&str] = &["/usr/local/bin", "/usr/bin", "/bin"];
+use inquire::InquireError;
+use thiserror::Error;
/// Allows for text input in the configured editor.
-pub struct Editor {
- path: PathBuf,
- truncate: bool,
- cleanup: bool,
-}
+pub struct Editor<'a>(pub inquire::Editor<'a>);
+
+#[derive(Debug, Error)]
+#[error(transparent)]
+pub struct Error(#[from] InquireError);
-impl Default for Editor {
- fn default() -> Self {
- Self::comment()
+impl Editor<'_> {
+ /// Create a new editor for editing a comment.
+ pub fn comment() -> Self {
+ Self::new("Enter comment.", "You may enter your comment using your editor. Pressing (e) will open the editor. Save the file and exit the editor to submit your comment.")
}
-}
-impl Drop for Editor {
- fn drop(&mut self) {
- if self.cleanup {
- fs::remove_file(&self.path).ok();
+ /// Open the editor and return the edited text.
+ ///
+ /// If the text hasn't changed from the initial contents of the editor,
+ /// return `None`.
+ pub fn edit(self) -> Result<Option<String>, Error> {
+ match self.0.prompt() {
+ Err(InquireError::OperationCanceled | InquireError::OperationInterrupted) => Ok(None),
+ Err(e) => Err(Error::from(e)),
+ Ok(s) => Ok(Some(s)),
}
}
}
-impl Editor {
+impl<'a> Editor<'a> {
/// Create a new editor.
- pub fn new(path: impl AsRef<Path>) -> io::Result<Self> {
- let path = path.as_ref();
- if path.try_exists()? {
- let meta = fs::metadata(path)?;
- if !meta.is_file() {
- return Err(io::Error::new(
- io::ErrorKind::InvalidInput,
- "must be used to edit a file",
- ));
- }
- }
- Ok(Self {
- path: path.to_path_buf(),
- truncate: false,
- cleanup: false,
- })
- }
-
- pub fn comment() -> Self {
- let path = env::temp_dir().join(COMMENT_FILE);
-
- Self {
- path,
- truncate: true,
- cleanup: true,
- }
+ pub fn new(message: &'a str, help_message: &'a str) -> Self {
+ Self(inquire::Editor::new(message).with_help_message(help_message))
}
/// Set the file extension.
- pub fn extension(mut self, ext: &str) -> Self {
- let ext = ext.trim_start_matches('.');
-
- self.path.set_extension(ext);
- self
- }
-
- /// Truncate the file to length 0 when opening
- pub fn truncate(mut self, truncate: bool) -> Self {
- self.truncate = truncate;
- self
- }
-
- /// Clean up the file after the [`Editor`] is dropped.
- pub fn cleanup(mut self, cleanup: bool) -> Self {
- self.cleanup = cleanup;
- self
+ pub fn extension(self, ext: &'a str) -> Self {
+ debug_assert!(
+ ext.starts_with('.'),
+ "File extension should start with a dot."
+ );
+ Self(self.0.with_file_extension(ext))
}
/// Initialize the file with the provided `content`, as long as the file
/// does not already contain anything.
- #[allow(clippy::byte_char_slices)]
- pub fn initial(self, content: impl AsRef<[u8]>) -> io::Result<Self> {
- let content = content.as_ref();
- let mut file = fs::OpenOptions::new()
- .write(true)
- .create(true)
- .truncate(self.truncate)
- .open(&self.path)?;
-
- if file.metadata()?.len() == 0 {
- file.write_all(content)?;
- if !content.ends_with(&[b'\n']) {
- file.write_all(b"\n")?;
- }
- file.flush()?;
- }
- Ok(self)
+ pub fn initial(self, content: &'a str) -> Self {
+ Self(self.0.with_predefined_text(content))
}
- /// Open the editor and return the edited text.
- ///
- /// If the text hasn't changed from the initial contents of the editor,
- /// return `None`.
- pub fn edit(&mut self) -> io::Result<Option<String>> {
- let Some(cmd) = self::default_editor() else {
- return Err(io::Error::new(
- io::ErrorKind::NotFound,
- "editor not configured: the `EDITOR` environment variable is not set",
- ));
- };
- let Some(parts) = shlex::split(cmd.to_string_lossy().as_ref()) else {
- return Err(io::Error::new(
- io::ErrorKind::InvalidInput,
- format!("invalid editor command {cmd:?}"),
- ));
- };
- let Some((program, args)) = parts.split_first() else {
- return Err(io::Error::new(
- io::ErrorKind::InvalidInput,
- format!("invalid editor command {cmd:?}"),
- ));
- };
-
- // We duplicate the stderr file descriptor to pass it to the child process, otherwise, if
- // we simply pass the `RawFd` of our stderr, `Command` will close our stderr when the
- // child exits.
- let stderr = io::stderr().as_raw_fd();
- let stderr = unsafe { libc::dup(stderr) };
- let stdin = if io::stdin().is_terminal() {
- process::Stdio::inherit()
- } else if cfg!(unix) {
- // If standard input is not a terminal device, the editor won't work correctly.
- // In that case, we use the terminal device, eg. `/dev/tty` as standard input.
- let tty = fs::OpenOptions::new()
- .read(true)
- .write(true)
- .open("/dev/tty")?;
- process::Stdio::from(tty)
- } else {
- return Err(io::Error::new(
- io::ErrorKind::Unsupported,
- format!("standard input is not a terminal, refusing to execute editor {cmd:?}"),
- ));
- };
-
- process::Command::new(program)
- .stdout(unsafe { process::Stdio::from_raw_fd(stderr) })
- .stderr(process::Stdio::inherit())
- .stdin(stdin)
- .args(args)
- .arg(&self.path)
- .spawn()
- .map_err(|e| {
- io::Error::new(
- e.kind(),
- format!("failed to spawn editor command {cmd:?}: {e}"),
- )
- })?
- .wait()
- .map_err(|e| {
- io::Error::new(
- e.kind(),
- format!("editor command {cmd:?} didn't spawn: {e}"),
- )
- })?;
-
- let text = fs::read_to_string(&self.path)?;
- if text.trim().is_empty() {
- return Ok(None);
+ pub fn editor(self, editor: Option<&'a OsString>) -> Self {
+ match editor {
+ Some(editor_command) => Self(self.0.with_editor_command(editor_command)),
+ None => self,
}
- Ok(Some(text))
}
}
/// Get the default editor command.
-fn default_editor() -> Option<OsString> {
+pub fn default_editor_command() -> Option<OsString> {
// First check the standard environment variables.
if let Ok(visual) = env::var("VISUAL") {
if !visual.is_empty() {
@@ -211,6 +94,9 @@ fn default_editor() -> Option<OsString> {
/// We don't bother checking the $PATH variable, as we're only looking for very standard tools
/// and prefer not to make this too complex.
fn exists(cmd: &str) -> bool {
+ // Some common paths where system-installed binaries are found.
+ const PATHS: &[&str] = &["/usr/local/bin", "/usr/bin", "/bin"];
+
for dir in PATHS {
if Path::new(dir).join(cmd).exists() {
return true;
commit a28fd65e890e3f2088f8c8c06b165621e3bf9cc7
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Tue Jul 15 11:14:17 2025 +0200
term/ansi: Remove unused Windows module
diff --git a/crates/radicle-term/src/ansi.rs b/crates/radicle-term/src/ansi.rs
index 1b6f594e5..e3e168ff0 100644
--- a/crates/radicle-term/src/ansi.rs
+++ b/crates/radicle-term/src/ansi.rs
@@ -8,7 +8,6 @@ mod paint;
mod style;
#[cfg(test)]
mod tests;
-mod windows;
pub use color::Color;
pub use paint::paint;
diff --git a/crates/radicle-term/src/ansi/windows.rs b/crates/radicle-term/src/ansi/windows.rs
deleted file mode 100644
index 711e6d5f2..000000000
--- a/crates/radicle-term/src/ansi/windows.rs
+++ /dev/null
@@ -1,64 +0,0 @@
-#[cfg(windows)]
-mod windows_console {
- use std::os::raw::c_void;
-
- #[allow(non_camel_case_types)]
- type c_ulong = u32;
- #[allow(non_camel_case_types)]
- type c_int = i32;
- type DWORD = c_ulong;
- type LPDWORD = *mut DWORD;
- type HANDLE = *mut c_void;
- type BOOL = c_int;
-
- const ENABLE_VIRTUAL_TERMINAL_PROCESSING: DWORD = 0x0004;
- const STD_OUTPUT_HANDLE: DWORD = 0xFFFFFFF5;
- const STD_ERROR_HANDLE: DWORD = 0xFFFFFFF4;
- const INVALID_HANDLE_VALUE: HANDLE = -1isize as HANDLE;
- const FALSE: BOOL = 0;
- const TRUE: BOOL = 1;
-
- // This is the win32 console API, taken from the 'winapi' crate.
- extern "system" {
- fn GetStdHandle(nStdHandle: DWORD) -> HANDLE;
- fn GetConsoleMode(hConsoleHandle: HANDLE, lpMode: LPDWORD) -> BOOL;
- fn SetConsoleMode(hConsoleHandle: HANDLE, dwMode: DWORD) -> BOOL;
- }
-
- unsafe fn get_handle(handle_num: DWORD) -> Result<HANDLE, ()> {
- match GetStdHandle(handle_num) {
- handle if handle == INVALID_HANDLE_VALUE => Err(()),
- handle => Ok(handle),
- }
- }
-
- unsafe fn enable_vt(handle: HANDLE) -> Result<(), ()> {
- let mut dw_mode: DWORD = 0;
- if GetConsoleMode(handle, &mut dw_mode) == FALSE {
- return Err(());
- }
-
- dw_mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
- match SetConsoleMode(handle, dw_mode) {
- result if result == TRUE => Ok(()),
- _ => Err(()),
- }
- }
-
- unsafe fn enable_ansi_colors_raw() -> Result<bool, ()> {
- let stdout_handle = get_handle(STD_OUTPUT_HANDLE)?;
- let stderr_handle = get_handle(STD_ERROR_HANDLE)?;
-
- enable_vt(stdout_handle)?;
- if stdout_handle != stderr_handle {
- enable_vt(stderr_handle)?;
- }
-
- Ok(true)
- }
-
- #[inline]
- pub fn enable_ansi_colors() -> bool {
- unsafe { enable_ansi_colors_raw().unwrap_or(false) }
- }
-}
commit d46d36ecee7cbfcbd100d6970266269af87f6f0e
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Mon Jul 14 16:38:58 2025 +0200
term/spinner: Only handle signals on Unix
The `radicle-signals` crate only supports Unix, so using it prevents
`radicle-term` to build on Windows.
Of course, this means that non-Unix platforms will not support any
signal handling at all, but at least we can build.
diff --git a/crates/radicle-term/Cargo.toml b/crates/radicle-term/Cargo.toml
index 7588c935b..2de7e2a9a 100644
--- a/crates/radicle-term/Cargo.toml
+++ b/crates/radicle-term/Cargo.toml
@@ -15,7 +15,6 @@ default = ["git2"]
[dependencies]
anyhow = { workspace = true }
anstyle-query = "1.0.0"
-crossbeam-channel = { workspace = true }
crossterm = "0.29.0"
inquire = { version = "0.7.4", default-features = false, features = ["crossterm", "editor"] }
libc = { workspace = true }
@@ -25,6 +24,9 @@ unicode-display-width = "0.3.0"
unicode-segmentation = "1.7.1"
zeroize = { workspace = true }
git2 = { workspace = true, features = ["vendored-libgit2"], optional = true }
+
+[target.'cfg(unix)'.dependencies]
+crossbeam-channel = { workspace = true }
radicle-signals = { workspace = true }
[dev-dependencies]
diff --git a/crates/radicle-term/src/spinner.rs b/crates/radicle-term/src/spinner.rs
index c3c16e2b6..a92d0e8d3 100644
--- a/crates/radicle-term/src/spinner.rs
+++ b/crates/radicle-term/src/spinner.rs
@@ -3,11 +3,6 @@ use std::mem::ManuallyDrop;
use std::sync::{Arc, Mutex};
use std::{fmt, io, thread, time};
-use crossbeam_channel as chan;
-
-use radicle_signals as signals;
-use signals::Signal;
-
use crate::io::{ERROR_PREFIX, WARNING_PREFIX};
use crate::Paint;
@@ -136,8 +131,13 @@ pub fn spinner_to(
) -> Spinner {
let message = message.to_string();
let progress = Arc::new(Mutex::new(Progress::new(Paint::new(message))));
- let (sig_tx, sig_rx) = chan::unbounded();
- let sig_result = signals::install(sig_tx);
+
+ #[cfg(unix)]
+ let (sig_tx, sig_rx) = crossbeam_channel::unbounded();
+
+ #[cfg(unix)]
+ let sig_result = radicle_signals::install(sig_tx);
+
let handle = thread::Builder::new()
.name(String::from("spinner"))
.spawn({
@@ -151,9 +151,13 @@ pub fn spinner_to(
break;
};
// If were unable to install handles, skip signal processing entirely.
+ #[cfg(unix)]
if sig_result.is_ok() {
match sig_rx.try_recv() {
- Ok(sig) if sig == Signal::Interrupt || sig == Signal::Terminate => {
+ Ok(sig)
+ if sig == radicle_signals::Signal::Interrupt
+ || sig == radicle_signals::Signal::Terminate =>
+ {
write!(animation, "\r{CLEAR_UNTIL_NEWLINE}").ok();
writeln!(
completion,
@@ -225,8 +229,9 @@ pub fn spinner_to(
write!(animation, "{}", crossterm::cursor::Show).ok();
+ #[cfg(unix)]
if sig_result.is_ok() {
- let _ = signals::uninstall();
+ let _ = radicle_signals::uninstall();
}
}
})
commit 92d77f9ec373261d91a65e68c95baaaa9fc9b95e
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Mon Jul 14 23:30:37 2025 +0200
crypto/ssh/keystore: Reduce scope of DirBuilderExt
Directory builder extensions are platform specific and only available on
Unix. Move their use into a conditionally compiled block, so that we can
build on Windows.
diff --git a/crates/radicle-crypto/src/ssh/keystore.rs b/crates/radicle-crypto/src/ssh/keystore.rs
index ab5f2d1a7..75e26b65a 100644
--- a/crates/radicle-crypto/src/ssh/keystore.rs
+++ b/crates/radicle-crypto/src/ssh/keystore.rs
@@ -1,5 +1,4 @@
use std::ops::Deref;
-use std::os::unix::fs::DirBuilderExt;
use std::path::{Path, PathBuf};
use std::{fs, io};
@@ -94,10 +93,18 @@ impl Keystore {
return Err(Error::AlreadyInitialized);
}
- fs::DirBuilder::new()
- .recursive(true)
- .mode(0o700)
- .create(&self.path)?;
+ {
+ let mut builder = fs::DirBuilder::new();
+ builder.recursive(true);
+
+ #[cfg(unix)]
+ {
+ use std::os::unix::fs::DirBuilderExt as _;
+ builder.mode(0o700);
+ }
+
+ builder.create(&self.path)?;
+ }
secret.write_openssh_file(&path, ssh_key::LineEnding::default())?;
public.write_openssh_file(&path.with_extension("pub"))?;
Exit code: 0
shell: 'cargo --version rustc --version cargo fmt --check cargo clippy --all-targets --workspace -- --deny warnings cargo build --all-targets --workspace cargo doc --workspace --no-deps cargo test --workspace --no-fail-fast '
Commands:
$ podman run --name d96ff937-aedf-4f4d-accf-e9c4980b50c3 -v /opt/radcis/ci.rad.levitte.org/cci/state/d96ff937-aedf-4f4d-accf-e9c4980b50c3/s:/d96ff937-aedf-4f4d-accf-e9c4980b50c3/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w:/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w -w /d96ff937-aedf-4f4d-accf-e9c4980b50c3/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /d96ff937-aedf-4f4d-accf-e9c4980b50c3/s/script.sh
+ cargo --version
info: syncing channel updates for '1.85-x86_64-unknown-linux-gnu'
info: latest update on 2025-03-18, rust version 1.85.1 (4eb161250 2025-03-15)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-src'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-src'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
cargo 1.85.1 (d73d2caf9 2024-12-31)
+ rustc --version
rustc 1.85.1 (4eb161250 2025-03-15)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- --deny warnings
Updating crates.io index
Downloading crates ...
Downloaded aead v0.5.2
Downloaded ahash v0.8.11
Downloaded amplify_derive v4.0.0
Downloaded adler2 v2.0.0
Downloaded amplify v4.6.0
Downloaded pbkdf2 v0.12.2
Downloaded autocfg v1.2.0
Downloaded parking_lot v0.12.3
Downloaded pem-rfc7468 v0.7.0
Downloaded percent-encoding v2.3.1
Downloaded scopeguard v1.2.0
Downloaded p384 v0.13.0
Downloaded sha1_smol v1.0.0
Downloaded signature v2.2.0
Downloaded siphasher v0.3.11
Downloaded subtle v2.5.0
Downloaded ssh-encoding v0.2.0
Downloaded thiserror-impl v1.0.69
Downloaded inout v0.1.3
Downloaded ref-cast-impl v1.0.24
Downloaded timeago v0.4.2
Downloaded sqlite v0.32.0
Downloaded ssh-cipher v0.2.0
Downloaded snapbox-macros v0.3.8
Downloaded thiserror v1.0.69
Downloaded tree-sitter-highlight v0.24.4
Downloaded gix-chunk v0.4.11
Downloaded thiserror-impl v2.0.12
Downloaded newline-converter v0.3.0
Downloaded socket2 v0.5.7
Downloaded gix-shallow v0.1.0
Downloaded thiserror v2.0.12
Downloaded git-ref-format-core v0.3.1
Downloaded icu_provider_macros v1.5.0
Downloaded num-rational v0.4.2
Downloaded localtime v1.3.1
Downloaded yoke-derive v0.7.5
Downloaded tree-sitter-language v0.1.2
Downloaded displaydoc v0.2.5
Downloaded idna_adapter v1.2.0
Downloaded gix-trace v0.1.12
Downloaded maybe-async v0.2.10
Downloaded zerofrom v0.1.6
Downloaded pretty_assertions v1.4.0
Downloaded yoke v0.7.5
Downloaded num-iter v0.1.45
Downloaded anstream v0.6.13
Downloaded gix-quote v0.4.15
Downloaded itoa v1.0.11
Downloaded write16 v1.0.0
Downloaded xattr v1.3.1
Downloaded num v0.4.3
Downloaded num-complex v0.4.6
Downloaded gix-credentials v0.26.0
Downloaded gix-features v0.39.1
Downloaded gix-utils v0.1.14
Downloaded group v0.13.0
Downloaded gix-hashtable v0.6.0
Downloaded home v0.5.9
Downloaded diff v0.1.13
Downloaded gix-diff v0.49.0
Downloaded once_cell v1.21.3
Downloaded gix-traverse v0.43.1
Downloaded tree-sitter-go v0.23.4
Downloaded gix-object v0.46.1
Downloaded icu_locid_transform v1.5.0
Downloaded gix-transport v0.44.0
Downloaded icu_collections v1.5.0
Downloaded litemap v0.7.5
Downloaded jobserver v0.1.31
Downloaded mio v1.0.4
Downloaded litrs v0.4.1
Downloaded zerocopy v0.7.35
Downloaded hashbrown v0.14.3
Downloaded num-bigint-dig v0.8.4
Downloaded gix-pack v0.56.0
Downloaded icu_properties_data v1.5.1
Downloaded num-bigint v0.4.6
Downloaded vcpkg v0.2.15
Downloaded regex-syntax v0.8.5
Downloaded unicode-normalization v0.1.23
Downloaded rustix v1.0.7
Downloaded tree-sitter-python v0.23.4
Downloaded chrono v0.4.38
Downloaded tree-sitter-c v0.23.2
Downloaded zerovec v0.10.4
Downloaded bloomy v1.2.0
Downloaded jsonschema v0.30.0
Downloaded bstr v1.9.1
Downloaded tree-sitter-md v0.3.2
Downloaded tree-sitter-rust v0.23.2
Downloaded cyphernet v0.5.2
Downloaded crossterm v0.29.0
Downloaded libm v0.2.8
Downloaded tree-sitter-bash v0.23.3
Downloaded regex-automata v0.4.9
Downloaded unicode-segmentation v1.11.0
Downloaded emojis v0.6.4
Downloaded syn v2.0.89
Downloaded tree-sitter-ruby v0.23.1
Downloaded crossterm v0.25.0
Downloaded jiff v0.2.1
Downloaded url v2.5.4
Downloaded inquire v0.7.5
Downloaded syn v1.0.109
Downloaded tree-sitter-typescript v0.23.2
Downloaded sha3 v0.10.8
Downloaded libc v0.2.174
Downloaded regex v1.11.1
Downloaded der v0.7.9
Downloaded base64 v0.21.7
Downloaded winnow v0.6.26
Downloaded gix-ref v0.49.1
Downloaded fraction v0.15.3
Downloaded fancy-regex v0.14.0
Downloaded crypto-bigint v0.5.5
Downloaded crossbeam-channel v0.5.15
Downloaded crc32fast v1.4.0
Downloaded cc v1.2.2
Downloaded icu_normalizer_data v1.5.1
Downloaded icu_normalizer v1.5.0
Downloaded icu_properties v1.5.1
Downloaded derive_more-impl v2.0.1
Downloaded bytes v1.10.1
Downloaded tree-sitter v0.24.4
Downloaded git2 v0.19.0
Downloaded derive_more v2.0.1
Downloaded chacha20poly1305 v0.10.1
Downloaded base64 v0.13.1
Downloaded unicode-ident v1.0.12
Downloaded idna v1.0.3
Downloaded icu_locid_transform_data v1.5.1
Downloaded tree-sitter-css v0.23.1
Downloaded flate2 v1.1.1
Downloaded arc-swap v1.7.1
Downloaded iana-time-zone v0.1.60
Downloaded gix-protocol v0.47.0
Downloaded radicle-surf v0.22.0
Downloaded fluent-uri v0.3.2
Downloaded email_address v0.2.9
Downloaded elliptic-curve v0.13.8
Downloaded memmap2 v0.9.4
Downloaded gix-commitgraph v0.25.1
Downloaded indexmap v2.2.6
Downloaded memchr v2.7.2
Downloaded getrandom v0.2.15
Downloaded icu_locid v1.5.0
Downloaded yansi v0.5.1
Downloaded writeable v0.5.5
Downloaded convert_case v0.7.1
Downloaded base64 v0.22.1
Downloaded crossbeam-utils v0.8.19
Downloaded linux-raw-sys v0.4.13
Downloaded io-reactor v0.5.2
Downloaded zerovec-derive v0.10.3
Downloaded zeroize v1.7.0
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded walkdir v2.5.0
Downloaded lexopt v0.3.0
Downloaded const-oid v0.9.6
Downloaded cipher v0.4.4
Downloaded gix-url v0.28.2
Downloaded gix-negotiate v0.17.0
Downloaded gix-lock v15.0.1
Downloaded gix-command v0.4.1
Downloaded hmac v0.12.1
Downloaded mio v0.8.11
Downloaded rand v0.8.5
Downloaded vsimd v0.8.0
Downloaded libgit2-sys v0.17.0+1.8.1
Downloaded outref v0.5.2
Downloaded ssh-key v0.6.6
Downloaded unicode-width v0.1.11
Downloaded log v0.4.27
Downloaded icu_provider v1.5.0
Downloaded nonempty v0.9.0
Downloaded gix-hash v0.15.1
Downloaded opaque-debug v0.3.1
Downloaded num-cmp v0.1.0
Downloaded gix-validate v0.9.4
Downloaded lock_api v0.4.11
Downloaded prodash v29.0.2
Downloaded num-traits v0.2.19
Downloaded uuid v1.16.0
Downloaded miniz_oxide v0.8.8
Downloaded chacha20 v0.9.1
Downloaded bitflags v2.9.1
Downloaded nonempty v0.5.0
Downloaded noise-framework v0.4.0
Downloaded multibase v0.9.1
Downloaded gix-fs v0.12.1
Downloaded gix-date v0.9.4
Downloaded gix-config-value v0.14.12
Downloaded zerofrom-derive v0.1.6
Downloaded linux-raw-sys v0.9.4
Downloaded version_check v0.9.4
Downloaded uuid-simd v0.8.0
Downloaded tree-sitter-html v0.23.2
Downloaded ecdsa v0.16.9
Downloaded data-encoding v2.5.0
Downloaded typenum v1.17.0
Downloaded gix-odb v0.66.0
Downloaded digest v0.10.7
Downloaded amplify_syn v2.0.1
Downloaded gix-prompt v0.9.1
Downloaded gix-path v0.10.15
Downloaded gix-packetline v0.18.4
Downloaded tar v0.4.40
Downloaded ff v0.13.0
Downloaded either v1.11.0
Downloaded sqlite3-src v0.5.1
Downloaded bit-vec v0.8.0
Downloaded colored v2.1.0
Downloaded tree-sitter-json v0.24.8
Downloaded gix-tempfile v15.0.0
Downloaded proc-macro2 v1.0.92
Downloaded escargot v0.5.10
Downloaded ec25519 v0.1.0
Downloaded netservices v0.8.0
Downloaded signal-hook v0.3.18
Downloaded keccak v0.1.5
Downloaded utf16_iter v1.0.5
Downloaded universal-hash v0.5.1
Downloaded spin v0.9.8
Downloaded referencing v0.30.0
Downloaded proc-macro-error v1.0.4
Downloaded primeorder v0.13.6
Downloaded pkcs1 v0.7.5
Downloaded anyhow v1.0.82
Downloaded aes-gcm v0.10.3
Downloaded unicode-display-width v0.3.0
Downloaded typeid v1.0.3
Downloaded gix-revision v0.31.1
Downloaded gix-refspec v0.27.0
Downloaded git-ref-format-macro v0.3.1
Downloaded normalize-line-endings v0.3.0
Downloaded lazy_static v1.5.0
Downloaded tinyvec v1.6.0
Downloaded tempfile v3.10.1
Downloaded smallvec v1.13.2
Downloaded signals_receipts v0.2.0
Downloaded signal-hook-registry v1.4.5
Downloaded schemars v1.0.4
Downloaded ctr v0.9.2
Downloaded bytesize v2.0.1
Downloaded blowfish v0.9.1
Downloaded ppv-lite86 v0.2.17
Downloaded fast-glob v0.3.3
Downloaded gix-sec v0.10.12
Downloaded num-integer v0.1.46
Downloaded quote v1.0.36
Downloaded snapbox v0.4.17
Downloaded pkg-config v0.3.30
Downloaded gix-revwalk v0.17.0
Downloaded spki v0.7.3
Downloaded rand_core v0.6.4
Downloaded pkcs8 v0.10.2
Downloaded document-features v0.2.11
Downloaded block-padding v0.3.3
Downloaded streaming-iterator v0.1.9
Downloaded polyval v0.6.2
Downloaded phf v0.11.3
Downloaded erased-serde v0.4.6
Downloaded ed25519 v1.5.3
Downloaded gix-actor v0.33.2
Downloaded utf8parse v0.2.1
Downloaded utf8_iter v1.0.4
Downloaded ref-cast v1.0.24
Downloaded qcheck-macros v1.0.0
Downloaded ascii v1.1.0
Downloaded anstyle-parse v0.2.3
Downloaded tinystr v0.7.6
Downloaded stable_deref_trait v1.2.0
Downloaded sqlite3-sys v0.15.2
Downloaded shell-words v1.1.0
Downloaded serde v1.0.219
Downloaded rustix v0.38.34
Downloaded rsa v0.9.6
Downloaded poly1305 v0.8.0
Downloaded filetime v0.2.23
Downloaded faster-hex v0.9.0
Downloaded dyn-clone v1.0.17
Downloaded cypheraddr v0.4.0
Downloaded crypto-common v0.1.6
Downloaded colorchoice v1.0.0
Downloaded bytecount v0.6.8
Downloaded shlex v1.3.0
Downloaded phf_shared v0.11.3
Downloaded generic-array v0.14.7
Downloaded equivalent v1.0.1
Downloaded data-encoding-macro v0.1.14
Downloaded cyphergraphy v0.3.0
Downloaded rand_chacha v0.3.1
Downloaded libz-sys v1.1.16
Downloaded radicle-git-ext v0.8.1
Downloaded form_urlencoded v1.2.1
Downloaded fastrand v2.1.0
Downloaded bcrypt-pbkdf v0.10.0
Downloaded base32 v0.4.0
Downloaded signature v1.6.4
Downloaded signal-hook-mio v0.2.4
Downloaded serde_derive v1.0.219
Downloaded synstructure v0.13.1
Downloaded similar v2.5.0
Downloaded serde-untagged v0.1.7
Downloaded radicle-std-ext v0.1.0
Downloaded popol v3.0.0
Downloaded data-encoding-macro-internal v0.1.12
Downloaded tinyvec_macros v0.1.1
Downloaded socks5-client v0.4.1
Downloaded siphasher v1.0.1
Downloaded ryu v1.0.17
Downloaded fxhash v0.2.1
Downloaded cfg-if v1.0.0
Downloaded borrow-or-share v0.2.2
Downloaded sha2 v0.10.8
Downloaded qcheck v1.0.0
Downloaded proc-macro-error-attr v1.0.4
Downloaded block-buffer v0.10.4
Downloaded anstyle-query v1.0.2
Downloaded schemars_derive v1.0.4
Downloaded byteorder v1.5.0
Downloaded same-file v1.0.6
Downloaded ghash v0.5.1
Downloaded errno v0.3.13
Downloaded base16ct v0.2.0
Downloaded serde_json v1.0.140
Downloaded serde_derive_internals v0.29.1
Downloaded sem_safe v0.2.0
Downloaded sec1 v0.7.3
Downloaded scrypt v0.11.0
Downloaded ct-codecs v1.1.1
Downloaded cpufeatures v0.2.12
Downloaded base-x v0.2.11
Downloaded salsa20 v0.10.2
Downloaded rfc6979 v0.4.0
Downloaded aho-corasick v1.1.3
Downloaded p521 v0.13.3
Downloaded p256 v0.13.2
Downloaded cbc v0.1.2
Downloaded bitflags v1.3.2
Downloaded base64ct v1.6.0
Downloaded parking_lot_core v0.9.9
Downloaded bit-set v0.8.0
Downloaded amplify_num v0.5.2
Downloaded aes v0.8.4
Downloaded anstyle v1.0.6
Downloaded git-ref-format v0.3.1
Compiling libc v0.2.174
Compiling proc-macro2 v1.0.92
Compiling unicode-ident v1.0.12
Checking cfg-if v1.0.0
Compiling shlex v1.3.0
Compiling version_check v0.9.4
Compiling serde v1.0.219
Checking memchr v2.7.2
Compiling quote v1.0.36
Compiling jobserver v0.1.31
Compiling syn v2.0.89
Compiling autocfg v1.2.0
Checking getrandom v0.2.15
Compiling cc v1.2.2
Checking smallvec v1.13.2
Checking aho-corasick v1.1.3
Checking regex-syntax v0.8.5
Compiling typenum v1.17.0
Compiling generic-array v0.14.7
Checking rand_core v0.6.4
Checking regex-automata v0.4.9
Checking log v0.4.27
Checking fastrand v2.1.0
Compiling lock_api v0.4.11
Checking bitflags v2.9.1
Compiling parking_lot_core v0.9.9
Checking crypto-common v0.1.6
Checking scopeguard v1.2.0
Checking stable_deref_trait v1.2.0
Checking subtle v2.5.0
Checking parking_lot v0.12.3
Compiling syn v1.0.109
Checking once_cell v1.21.3
Checking tinyvec_macros v0.1.1
Compiling synstructure v0.13.1
Checking tinyvec v1.6.0
Checking zeroize v1.7.0
Checking bstr v1.9.1
Checking unicode-normalization v0.1.23
Checking cpufeatures v0.2.12
Checking litemap v0.7.5
Compiling thiserror v2.0.12
Compiling icu_locid_transform_data v1.5.1
Compiling serde_derive v1.0.219
Compiling zerofrom-derive v0.1.6
Compiling yoke-derive v0.7.5
Compiling zerovec-derive v0.10.3
Checking zerofrom v0.1.6
Checking yoke v0.7.5
Compiling displaydoc v0.2.5
Compiling crc32fast v1.4.0
Checking zerovec v0.10.4
Checking writeable v0.5.5
Compiling icu_provider_macros v1.5.0
Compiling thiserror-impl v2.0.12
Checking tinystr v0.7.6
Checking block-padding v0.3.3
Checking icu_locid v1.5.0
Compiling icu_properties_data v1.5.1
Checking inout v0.1.3
Checking icu_provider v1.5.0
Checking block-buffer v0.10.4
Checking hashbrown v0.14.3
Checking itoa v1.0.11
Compiling icu_normalizer_data v1.5.1
Compiling pkg-config v0.3.30
Checking digest v0.10.7
Checking icu_locid_transform v1.5.0
Checking cipher v0.4.4
Checking icu_collections v1.5.0
Checking utf16_iter v1.0.5
Checking utf8_iter v1.0.4
Compiling thiserror v1.0.69
Checking write16 v1.0.0
Checking icu_properties v1.5.1
Compiling thiserror-impl v1.0.69
Checking percent-encoding v2.3.1
Compiling rustix v0.38.34
Checking linux-raw-sys v0.4.13
Checking sha2 v0.10.8
Checking form_urlencoded v1.2.1
Checking universal-hash v0.5.1
Checking opaque-debug v0.3.1
Compiling vcpkg v0.2.15
Compiling amplify_syn v2.0.1
Checking icu_normalizer v1.5.0
Checking idna_adapter v1.2.0
Checking idna v1.0.3
Compiling libz-sys v1.1.16
Compiling data-encoding v2.5.0
Checking url v2.5.4
Checking gix-trace v0.1.12
Checking tempfile v3.10.1
Compiling amplify_derive v4.0.0
Checking amplify_num v0.5.2
Compiling data-encoding-macro-internal v0.1.12
Checking signature v1.6.4
Checking ascii v1.1.0
Checking data-encoding-macro v0.1.14
Checking ed25519 v1.5.3
Checking faster-hex v0.9.0
Compiling libgit2-sys v0.17.0+1.8.1
Checking aead v0.5.2
Compiling num-traits v0.2.19
Compiling proc-macro-error-attr v1.0.4
Checking base-x v0.2.11
Checking byteorder v1.5.0
Checking ct-codecs v1.1.1
Checking multibase v0.9.1
Checking ec25519 v0.1.0
Checking poly1305 v0.8.0
Checking chacha20 v0.9.1
Checking amplify v4.6.0
Checking gix-utils v0.1.14
Compiling proc-macro-error v1.0.4
Checking adler2 v2.0.0
Checking miniz_oxide v0.8.8
Checking cyphergraphy v0.3.0
Checking gix-hash v0.15.1
Checking same-file v1.0.6
Compiling crossbeam-utils v0.8.19
Checking keccak v0.1.5
Checking sha3 v0.10.8
Checking walkdir v2.5.0
Checking flate2 v1.1.1
Compiling git-ref-format-core v0.3.1
Checking polyval v0.6.2
Compiling sqlite3-src v0.5.1
Checking hmac v0.12.1
Checking prodash v29.0.2
Checking sha1_smol v1.0.0
Checking equivalent v1.0.1
Compiling serde_json v1.0.140
Checking ppv-lite86 v0.2.17
Checking base64ct v1.6.0
Checking base32 v0.4.0
Checking rand_chacha v0.3.1
Checking cypheraddr v0.4.0
Checking pem-rfc7468 v0.7.0
Checking gix-features v0.39.1
Checking indexmap v2.2.6
Checking pbkdf2 v0.12.2
Compiling git-ref-format-macro v0.3.1
Checking ghash v0.5.1
Checking chacha20poly1305 v0.10.1
Checking ctr v0.9.2
Checking aes v0.8.4
Checking ryu v1.0.17
Checking aes-gcm v0.10.3
Checking git-ref-format v0.3.1
Checking noise-framework v0.4.0
Checking crossbeam-channel v0.5.15
Checking ssh-encoding v0.2.0
Checking socks5-client v0.4.1
Checking rand v0.8.5
Checking blowfish v0.9.1
Checking cbc v0.1.2
Checking home v0.5.9
Compiling ref-cast v1.0.24
Checking radicle-std-ext v0.1.0
Checking gix-path v0.10.15
Checking ssh-cipher v0.2.0
Checking bcrypt-pbkdf v0.10.0
Checking cyphernet v0.5.2
Compiling ref-cast-impl v1.0.24
Checking signature v2.2.0
Checking ssh-key v0.6.6
Checking qcheck v1.0.0
Checking radicle-ssh v0.9.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-ssh)
Checking lazy_static v1.5.0
Compiling typeid v1.0.3
Checking dyn-clone v1.0.17
Checking siphasher v1.0.1
Checking nonempty v0.9.0
Compiling serde_derive_internals v0.29.1
Checking radicle-dag v0.10.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-dag)
Checking erased-serde v0.4.6
Checking jiff v0.2.1
Compiling schemars_derive v1.0.4
Checking iana-time-zone v0.1.60
Checking chrono v0.4.38
Checking gix-date v0.9.4
Checking schemars v1.0.4
Checking serde-untagged v0.1.7
Checking colored v2.1.0
Checking localtime v1.3.1
Checking bytesize v2.0.1
Checking winnow v0.6.26
Checking base64 v0.21.7
Checking tree-sitter-language v0.1.2
Checking fast-glob v0.3.3
Checking gix-hashtable v0.6.0
Checking gix-validate v0.9.4
Checking memmap2 v0.9.4
Compiling anyhow v1.0.82
Checking gix-chunk v0.4.11
Checking anstyle-query v1.0.2
Checking gix-commitgraph v0.25.1
Checking gix-actor v0.33.2
Checking gix-fs v0.12.1
Checking gix-object v0.46.1
Checking sem_safe v0.2.0
Checking errno v0.3.13
Checking signals_receipts v0.2.0
Checking gix-tempfile v15.0.0
Compiling signal-hook v0.3.18
Checking gix-revwalk v0.17.0
Checking signal-hook-registry v1.4.5
Checking shell-words v1.1.0
Checking gix-command v0.4.1
Checking radicle-signals v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-signals)
Checking mio v0.8.11
Checking mio v1.0.4
Compiling tree-sitter v0.24.4
Compiling unicode-segmentation v1.11.0
Compiling convert_case v0.7.1
Checking signal-hook-mio v0.2.4
Checking gix-lock v15.0.1
Checking gix-url v0.28.2
Checking gix-config-value v0.14.12
Checking gix-quote v0.4.15
Checking regex v1.11.1
Checking gix-sec v0.10.12
Compiling rustix v1.0.7
Checking gix-prompt v0.9.1
Compiling xattr v1.3.1
Compiling derive_more-impl v2.0.1
Compiling filetime v0.2.23
Checking gix-revision v0.31.1
Checking gix-traverse v0.43.1
Checking gix-diff v0.49.0
Checking gix-packetline v0.18.4
Checking linux-raw-sys v0.9.4
Compiling litrs v0.4.1
Checking utf8parse v0.2.1
Checking bitflags v1.3.2
Checking lexopt v0.3.0
Checking crossterm v0.25.0
Compiling document-features v0.2.11
Checking anstyle-parse v0.2.3
Checking gix-transport v0.44.0
Checking gix-pack v0.56.0
Checking derive_more v2.0.1
Checking gix-refspec v0.27.0
Compiling tar v0.4.40
Checking gix-credentials v0.26.0
Checking newline-converter v0.3.0
Checking gix-ref v0.49.1
Checking gix-shallow v0.1.0
Checking gix-negotiate v0.17.0
Checking fxhash v0.2.1
Compiling maybe-async v0.2.10
Checking anstyle v1.0.6
Checking colorchoice v1.0.0
Checking arc-swap v1.7.1
Checking unicode-width v0.1.11
Checking streaming-iterator v0.1.9
Checking gix-protocol v0.47.0
Checking inquire v0.7.5
Checking gix-odb v0.66.0
Checking anstream v0.6.13
Compiling radicle-surf v0.22.0
Checking crossterm v0.29.0
Checking unicode-display-width v0.3.0
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-css v0.23.1
Compiling tree-sitter-rust v0.23.2
Compiling tree-sitter-c v0.23.2
Compiling tree-sitter-python v0.23.4
Compiling tree-sitter-bash v0.23.3
Checking sqlite3-sys v0.15.2
Compiling tree-sitter-html v0.23.2
Checking sqlite v0.32.0
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-md v0.3.2
Checking either v1.11.0
Checking snapbox-macros v0.3.8
Checking salsa20 v0.10.2
Compiling radicle-cli v0.14.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cli)
Checking base64 v0.13.1
Checking normalize-line-endings v0.3.0
Checking siphasher v0.3.11
Checking similar v2.5.0
Checking nonempty v0.5.0
Checking bloomy v1.2.0
Checking scrypt v0.11.0
Checking snapbox v0.4.17
Checking tree-sitter-highlight v0.24.4
Checking popol v3.0.0
Checking bytes v1.10.1
Checking timeago v0.4.2
Checking io-reactor v0.5.2
Checking socket2 v0.5.7
Checking diff v0.1.13
Checking yansi v0.5.1
Compiling radicle-node v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-node)
Checking netservices v0.8.0
Checking pretty_assertions v1.4.0
Checking num-integer v0.1.46
Compiling escargot v0.5.10
Checking radicle-systemd v0.9.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-systemd)
Compiling qcheck-macros v1.0.0
Checking num-bigint v0.4.6
Compiling ahash v0.8.11
Compiling radicle-remote-helper v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-remote-helper)
Checking num-iter v0.1.45
Checking num-complex v0.4.6
Checking bit-vec v0.8.0
Checking num-rational v0.4.2
Checking zerocopy v0.7.35
Checking borrow-or-share v0.2.2
Checking fluent-uri v0.3.2
Checking num v0.4.3
Checking bit-set v0.8.0
Checking phf_shared v0.11.3
Checking vsimd v0.8.0
Checking uuid v1.16.0
Checking outref v0.5.2
Checking referencing v0.30.0
Checking phf v0.11.3
Checking uuid-simd v0.8.0
Checking fancy-regex v0.14.0
Checking fraction v0.15.3
Checking email_address v0.2.9
Checking base64 v0.22.1
Checking num-cmp v0.1.0
Checking bytecount v0.6.8
Checking emojis v0.6.4
Checking jsonschema v0.30.0
Checking git2 v0.19.0
Checking radicle-git-ext v0.8.1
Checking radicle-term v0.13.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-term)
Checking radicle-crypto v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-crypto)
Checking radicle-cob v0.14.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cob)
Checking radicle v0.16.1 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle)
Checking radicle-fetch v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-fetch)
Checking radicle-cli-test v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cli-test)
Checking radicle-protocol v0.1.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-protocol)
Checking radicle-schemars v0.1.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.24s
+ cargo build --all-targets --workspace
Compiling cfg-if v1.0.0
Compiling libc v0.2.174
Compiling shlex v1.3.0
Compiling memchr v2.7.2
Compiling serde v1.0.219
Compiling smallvec v1.13.2
Compiling regex-syntax v0.8.5
Compiling jobserver v0.1.31
Compiling cc v1.2.2
Compiling getrandom v0.2.15
Compiling aho-corasick v1.1.3
Compiling regex-automata v0.4.9
Compiling typenum v1.17.0
Compiling generic-array v0.14.7
Compiling rand_core v0.6.4
Compiling log v0.4.27
Compiling crypto-common v0.1.6
Compiling fastrand v2.1.0
Compiling bitflags v2.9.1
Compiling scopeguard v1.2.0
Compiling lock_api v0.4.11
Compiling zerofrom v0.1.6
Compiling parking_lot_core v0.9.9
Compiling stable_deref_trait v1.2.0
Compiling subtle v2.5.0
Compiling yoke v0.7.5
Compiling tinyvec_macros v0.1.1
Compiling parking_lot v0.12.3
Compiling once_cell v1.21.3
Compiling zerovec v0.10.4
Compiling tinyvec v1.6.0
Compiling zeroize v1.7.0
Compiling cpufeatures v0.2.12
Compiling writeable v0.5.5
Compiling bstr v1.9.1
Compiling tinystr v0.7.6
Compiling unicode-normalization v0.1.23
Compiling litemap v0.7.5
Compiling block-padding v0.3.3
Compiling icu_locid v1.5.0
Compiling thiserror v2.0.12
Compiling inout v0.1.3
Compiling icu_locid_transform_data v1.5.1
Compiling block-buffer v0.10.4
Compiling adler2 v2.0.0
Compiling itoa v1.0.11
Compiling hashbrown v0.14.3
Compiling miniz_oxide v0.8.8
Compiling icu_provider v1.5.0
Compiling digest v0.10.7
Compiling icu_locid_transform v1.5.0
Compiling cipher v0.4.4
Compiling crc32fast v1.4.0
Compiling icu_properties_data v1.5.1
Compiling icu_collections v1.5.0
Compiling icu_normalizer_data v1.5.1
Compiling write16 v1.0.0
Compiling utf8_iter v1.0.4
Compiling utf16_iter v1.0.5
Compiling percent-encoding v2.3.1
Compiling icu_properties v1.5.1
Compiling linux-raw-sys v0.4.13
Compiling thiserror v1.0.69
Compiling sha2 v0.10.8
Compiling form_urlencoded v1.2.1
Compiling rustix v0.38.34
Compiling universal-hash v0.5.1
Compiling opaque-debug v0.3.1
Compiling libz-sys v1.1.16
Compiling gix-trace v0.1.12
Compiling amplify_num v0.5.2
Compiling ascii v1.1.0
Compiling data-encoding v2.5.0
Compiling icu_normalizer v1.5.0
Compiling tempfile v3.10.1
Compiling signature v1.6.4
Compiling ed25519 v1.5.3
Compiling idna_adapter v1.2.0
Compiling idna v1.0.3
Compiling amplify v4.6.0
Compiling data-encoding-macro v0.1.14
Compiling libgit2-sys v0.17.0+1.8.1
Compiling url v2.5.4
Compiling aead v0.5.2
Compiling faster-hex v0.9.0
Compiling ct-codecs v1.1.1
Compiling byteorder v1.5.0
Compiling base-x v0.2.11
Compiling multibase v0.9.1
Compiling ec25519 v0.1.0
Compiling poly1305 v0.8.0
Compiling chacha20 v0.9.1
Compiling gix-utils v0.1.14
Compiling cyphergraphy v0.3.0
Compiling num-traits v0.2.19
Compiling gix-hash v0.15.1
Compiling keccak v0.1.5
Compiling same-file v1.0.6
Compiling walkdir v2.5.0
Compiling sha3 v0.10.8
Compiling polyval v0.6.2
Compiling git-ref-format-core v0.3.1
Compiling flate2 v1.1.1
Compiling hmac v0.12.1
Compiling sqlite3-src v0.5.1
Compiling prodash v29.0.2
Compiling ppv-lite86 v0.2.17
Compiling base32 v0.4.0
Compiling sha1_smol v1.0.0
Compiling base64ct v1.6.0
Compiling equivalent v1.0.1
Compiling indexmap v2.2.6
Compiling pem-rfc7468 v0.7.0
Compiling gix-features v0.39.1
Compiling rand_chacha v0.3.1
Compiling cypheraddr v0.4.0
Compiling git-ref-format-macro v0.3.1
Compiling pbkdf2 v0.12.2
Compiling ghash v0.5.1
Compiling crossbeam-utils v0.8.19
Compiling chacha20poly1305 v0.10.1
Compiling aes v0.8.4
Compiling ctr v0.9.2
Compiling ryu v1.0.17
Compiling serde_json v1.0.140
Compiling aes-gcm v0.10.3
Compiling git-ref-format v0.3.1
Compiling crossbeam-channel v0.5.15
Compiling noise-framework v0.4.0
Compiling socks5-client v0.4.1
Compiling rand v0.8.5
Compiling ssh-encoding v0.2.0
Compiling blowfish v0.9.1
Compiling cbc v0.1.2
Compiling home v0.5.9
Compiling radicle-std-ext v0.1.0
Compiling gix-path v0.10.15
Compiling ssh-cipher v0.2.0
Compiling bcrypt-pbkdf v0.10.0
Compiling cyphernet v0.5.2
Compiling signature v2.2.0
Compiling ref-cast v1.0.24
Compiling ssh-key v0.6.6
Compiling qcheck v1.0.0
Compiling radicle-ssh v0.9.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-ssh)
Compiling dyn-clone v1.0.17
Compiling lazy_static v1.5.0
Compiling siphasher v1.0.1
Compiling typeid v1.0.3
Compiling radicle-dag v0.10.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-dag)
Compiling nonempty v0.9.0
Compiling erased-serde v0.4.6
Compiling jiff v0.2.1
Compiling iana-time-zone v0.1.60
Compiling chrono v0.4.38
Compiling serde-untagged v0.1.7
Compiling schemars v1.0.4
Compiling gix-date v0.9.4
Compiling colored v2.1.0
Compiling localtime v1.3.1
Compiling bytesize v2.0.1
Compiling winnow v0.6.26
Compiling base64 v0.21.7
Compiling fast-glob v0.3.3
Compiling tree-sitter-language v0.1.2
Compiling gix-hashtable v0.6.0
Compiling gix-validate v0.9.4
Compiling gix-actor v0.33.2
Compiling gix-object v0.46.1
Compiling memmap2 v0.9.4
Compiling gix-chunk v0.4.11
Compiling anstyle-query v1.0.2
Compiling gix-commitgraph v0.25.1
Compiling anyhow v1.0.82
Compiling gix-revwalk v0.17.0
Compiling gix-fs v0.12.1
Compiling errno v0.3.13
Compiling sem_safe v0.2.0
Compiling unicode-segmentation v1.11.0
Compiling signals_receipts v0.2.0
Compiling gix-tempfile v15.0.0
Compiling signal-hook-registry v1.4.5
Compiling shell-words v1.1.0
Compiling signal-hook v0.3.18
Compiling gix-command v0.4.1
Compiling radicle-signals v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-signals)
Compiling mio v0.8.11
Compiling mio v1.0.4
Compiling tree-sitter v0.24.4
Compiling signal-hook-mio v0.2.4
Compiling gix-lock v15.0.1
Compiling convert_case v0.7.1
Compiling gix-config-value v0.14.12
Compiling gix-url v0.28.2
Compiling gix-quote v0.4.15
Compiling regex v1.11.1
Compiling gix-sec v0.10.12
Compiling gix-prompt v0.9.1
Compiling derive_more-impl v2.0.1
Compiling xattr v1.3.1
Compiling gix-revision v0.31.1
Compiling sqlite3-sys v0.15.2
Compiling sqlite v0.32.0
Compiling gix-traverse v0.43.1
Compiling gix-diff v0.49.0
Compiling gix-packetline v0.18.4
Compiling filetime v0.2.23
Compiling utf8parse v0.2.1
Compiling linux-raw-sys v0.9.4
Compiling bitflags v1.3.2
Compiling lexopt v0.3.0
Compiling crossterm v0.25.0
Compiling rustix v1.0.7
Compiling tar v0.4.40
Compiling anstyle-parse v0.2.3
Compiling gix-transport v0.44.0
Compiling derive_more v2.0.1
Compiling gix-pack v0.56.0
Compiling gix-refspec v0.27.0
Compiling gix-credentials v0.26.0
Compiling gix-shallow v0.1.0
Compiling gix-ref v0.49.1
Compiling newline-converter v0.3.0
Compiling gix-negotiate v0.17.0
Compiling fxhash v0.2.1
Compiling unicode-width v0.1.11
Compiling anstyle v1.0.6
Compiling streaming-iterator v0.1.9
Compiling arc-swap v1.7.1
Compiling colorchoice v1.0.0
Compiling anstream v0.6.13
Compiling gix-odb v0.66.0
Compiling inquire v0.7.5
Compiling gix-protocol v0.47.0
Compiling radicle-surf v0.22.0
Compiling crossterm v0.29.0
Compiling unicode-display-width v0.3.0
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-rust v0.23.2
Compiling tree-sitter-css v0.23.1
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-c v0.23.2
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-python v0.23.4
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-json v0.24.8
Compiling either v1.11.0
Compiling snapbox-macros v0.3.8
Compiling salsa20 v0.10.2
Compiling nonempty v0.5.0
Compiling normalize-line-endings v0.3.0
Compiling radicle-cli v0.14.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cli)
Compiling base64 v0.13.1
Compiling similar v2.5.0
Compiling siphasher v0.3.11
Compiling bloomy v1.2.0
Compiling scrypt v0.11.0
Compiling snapbox v0.4.17
Compiling tree-sitter-highlight v0.24.4
Compiling popol v3.0.0
Compiling timeago v0.4.2
Compiling bytes v1.10.1
Compiling io-reactor v0.5.2
Compiling socket2 v0.5.7
Compiling yansi v0.5.1
Compiling diff v0.1.13
Compiling radicle-node v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-node)
Compiling pretty_assertions v1.4.0
Compiling netservices v0.8.0
Compiling num-integer v0.1.46
Compiling radicle-systemd v0.9.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-systemd)
Compiling escargot v0.5.10
Compiling num-bigint v0.4.6
Compiling radicle-remote-helper v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-remote-helper)
Compiling num-iter v0.1.45
Compiling num-complex v0.4.6
Compiling num-rational v0.4.2
Compiling borrow-or-share v0.2.2
Compiling zerocopy v0.7.35
Compiling bit-vec v0.8.0
Compiling ahash v0.8.11
Compiling bit-set v0.8.0
Compiling num v0.4.3
Compiling fluent-uri v0.3.2
Compiling phf_shared v0.11.3
Compiling uuid v1.16.0
Compiling outref v0.5.2
Compiling vsimd v0.8.0
Compiling referencing v0.30.0
Compiling uuid-simd v0.8.0
Compiling phf v0.11.3
Compiling fraction v0.15.3
Compiling fancy-regex v0.14.0
Compiling email_address v0.2.9
Compiling num-cmp v0.1.0
Compiling bytecount v0.6.8
Compiling base64 v0.22.1
Compiling emojis v0.6.4
Compiling jsonschema v0.30.0
Compiling git2 v0.19.0
Compiling radicle-git-ext v0.8.1
Compiling radicle-term v0.13.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-term)
Compiling radicle-crypto v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-crypto)
Compiling radicle-cob v0.14.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cob)
Compiling radicle v0.16.1 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle)
Compiling radicle-fetch v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-fetch)
Compiling radicle-protocol v0.1.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-protocol)
Compiling radicle-cli-test v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cli-test)
Compiling radicle-schemars v0.1.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 10s
+ cargo doc --workspace --no-deps
Checking regex-automata v0.4.9
Compiling syn v1.0.109
Checking idna v1.0.3
Checking radicle-ssh v0.9.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-ssh)
Compiling num-traits v0.2.19
Checking url v2.5.4
Checking radicle-dag v0.10.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-dag)
Checking git2 v0.19.0
Checking chrono v0.4.38
Checking bstr v1.9.1
Compiling amplify_syn v2.0.1
Compiling proc-macro-error v1.0.4
Checking git-ref-format-core v0.3.1
Checking gix-path v0.10.15
Checking gix-date v0.9.4
Checking gix-validate v0.9.4
Checking gix-commitgraph v0.25.1
Compiling data-encoding-macro-internal v0.1.12
Compiling amplify_derive v4.0.0
Compiling git-ref-format-macro v0.3.1
Checking gix-actor v0.33.2
Checking data-encoding-macro v0.1.14
Checking gix-object v0.46.1
Checking multibase v0.9.1
Checking gix-command v0.4.1
Checking git-ref-format v0.3.1
Checking radicle-signals v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-signals)
Checking radicle-git-ext v0.8.1
Checking regex v1.11.1
Checking gix-url v0.28.2
Checking gix-revwalk v0.17.0
Checking gix-config-value v0.14.12
Checking tree-sitter v0.24.4
Checking gix-quote v0.4.15
Checking gix-prompt v0.9.1
Checking gix-traverse v0.43.1
Checking gix-revision v0.31.1
Checking gix-diff v0.49.0
Checking gix-packetline v0.18.4
Checking radicle-surf v0.22.0
Checking gix-refspec v0.27.0
Compiling radicle-cli v0.14.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cli)
Checking gix-pack v0.56.0
Checking gix-transport v0.44.0
Checking amplify v4.6.0
Checking gix-credentials v0.26.0
Checking tree-sitter-toml-ng v0.6.0
Checking tree-sitter-highlight v0.24.4
Checking cyphergraphy v0.3.0
Checking gix-negotiate v0.17.0
Checking gix-ref v0.49.1
Checking cypheraddr v0.4.0
Checking noise-framework v0.4.0
Checking socks5-client v0.4.1
Checking gix-shallow v0.1.0
Checking radicle-term v0.13.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-term)
Checking cyphernet v0.5.2
Checking radicle-crypto v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-crypto)
Checking gix-odb v0.66.0
Checking gix-protocol v0.47.0
Checking io-reactor v0.5.2
Checking radicle-cob v0.14.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cob)
Compiling radicle-node v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-node)
Checking netservices v0.8.0
Checking radicle-systemd v0.9.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-systemd)
Documenting radicle-cob v0.14.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cob)
Documenting radicle-crypto v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-crypto)
Checking radicle v0.16.1 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle)
Documenting radicle v0.16.1 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle)
Documenting radicle-term v0.13.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-term)
Documenting radicle-signals v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-signals)
Documenting radicle-ssh v0.9.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-ssh)
Documenting radicle-dag v0.10.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-dag)
Documenting radicle-systemd v0.9.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-systemd)
Checking radicle-fetch v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-fetch)
Documenting radicle-cli v0.14.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cli)
Documenting radicle-cli-test v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cli-test)
Checking radicle-protocol v0.1.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-protocol)
Documenting radicle-protocol v0.1.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-protocol)
Documenting radicle-schemars v0.1.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-schemars)
Documenting radicle-node v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-node)
Documenting radicle-fetch v0.12.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-fetch)
Checking radicle-remote-helper v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-remote-helper)
Documenting radicle-remote-helper v0.11.0 (/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-remote-helper)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.34s
Generated /d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/target/doc/radicle/index.html and 16 other files
+ cargo test --workspace --no-fail-fast
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s
Running unittests src/lib.rs (target/debug/deps/radicle-7342044029baf2c0)
running 205 tests
test canonical::formatter::test::ascii_control_characters ... ok
test canonical::formatter::test::securesystemslib_asserts ... ok
test canonical::formatter::test::ordered_nested_object ... ok
test cob::cache::migrations::_2::tests::test_patch_json_deserialization ... ok
test cob::common::test::test_color ... ok
test cob::cache::tests::test_check_version ... ok
test cob::common::test::test_emojis ... ok
test cob::cache::tests::test_migrate_to ... ok
test cob::cache::migrations::_2::tests::test_migration_2 ... ok
test cob::identity::test::prop_json_eq_str ... ok
test cob::identity::test::test_identity_reject_concurrent ... ok
test cob::identity::test::test_identity_redact_revision ... ok
test cob::identity::test::test_identity_remove_delegate_concurrent ... ok
test cob::identity::test::test_identity_update_rejected ... ok
test cob::identity::test::test_identity_updates ... ok
test cob::issue::cache::tests::test_counts ... ok
test cob::issue::cache::tests::test_get ... ok
test cob::issue::cache::tests::test_is_empty ... ok
test cob::issue::cache::tests::test_list ... ok
test cob::issue::cache::tests::test_list_by_status ... ok
test cob::issue::cache::tests::test_remove ... ok
test cob::identity::test::test_valid_identity ... ok
test cob::identity::test::test_identity_updates_concurrent ... ok
test cob::issue::test::test_embeds ... ok
test cob::issue::test::test_embeds_edit ... ok
test cob::issue::test::test_invalid_actions ... ok
test cob::identity::test::test_identity_updates_concurrent_outdated ... ok
test cob::issue::test::test_invalid_tx ... ok
test cob::issue::test::test_concurrency ... ok
test cob::issue::test::test_invalid_tx_reference ... ok
test cob::issue::test::test_invalid_cob ... ok
test cob::issue::test::test_issue_all ... ok
test cob::issue::test::test_issue_comment ... ok
test cob::issue::test::test_issue_comment_redact ... ok
test cob::issue::test::test_issue_create_and_assign ... ok
test cob::issue::test::test_issue_create_and_get ... ok
test cob::issue::test::test_issue_create_and_change_state ... ok
test cob::issue::test::test_issue_create_and_unassign ... ok
test cob::issue::test::test_issue_create_and_reassign ... ok
test cob::issue::test::test_issue_multilines ... ok
test cob::issue::test::test_issue_edit ... ok
test cob::issue::test::test_issue_edit_description ... ok
test cob::issue::test::test_issue_state_serde ... ok
test cob::issue::test::test_ordering ... ok
test cob::patch::actions::test::test_review_edit ... ok
test cob::issue::test::test_issue_react ... ok
test cob::issue::test::test_issue_label ... ok
test cob::issue::test::test_issue_reply ... ok
test cob::patch::cache::tests::test_is_empty ... ok
test cob::patch::cache::tests::test_list ... ok
test cob::patch::cache::tests::test_list_by_status ... ok
test cob::patch::cache::tests::test_remove ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_null_summary ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_with_summary ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_without_summary ... ok
test cob::patch::cache::tests::test_counts ... ok
test cob::patch::encoding::review::test::test_review_summary ... ok
test cob::patch::test::test_json ... ok
test cob::patch::test::test_json_serialization ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_v2 ... ok
test cob::patch::cache::tests::test_get ... ok
test cob::patch::test::test_patch_create_and_get ... ok
test cob::patch::test::test_patch_discussion ... ok
test cob::patch::test::test_patch_merge ... ok
test cob::patch::test::test_patch_redact ... ok
test cob::patch::test::test_patch_review ... ok
test cob::patch::test::test_patch_review_comment ... ok
test cob::patch::cache::tests::test_find_by_revision ... ok
test cob::patch::test::test_patch_review_duplicate ... ok
test cob::patch::test::test_patch_review_edit ... ok
test cob::patch::test::test_patch_review_remove_summary ... ok
test cob::patch::test::test_reactions_json_serialization ... ok
test cob::patch::test::test_patch_review_edit_comment ... ok
test cob::patch::test::test_revision_edit_redact ... ok
test cob::patch::test::test_revision_reaction ... ok
test cob::patch::test::test_revision_review_merge_redacted ... ok
test cob::thread::tests::test_comment_edit_missing ... ok
test cob::thread::tests::test_comment_edit_redacted ... ok
test cob::thread::tests::test_comment_redact_missing ... ok
test cob::thread::tests::test_duplicate_comments ... ok
test cob::thread::tests::test_edit_comment ... ok
test cob::thread::tests::test_redact_comment ... ok
test cob::thread::tests::test_timeline ... ok
test cob::patch::test::test_patch_review_revision_redact ... ok
test git::canonical::rules::tests::test_deserialization ... ok
test git::canonical::rules::tests::test_deserialize_extensions ... ok
test git::canonical::rules::tests::test_order ... ok
test git::canonical::rules::tests::test_roundtrip ... ok
test git::canonical::rules::tests::test_canonical ... ok
test cob::patch::test::test_patch_update ... ok
test git::canonical::rules::tests::test_rule_validate_success ... ok
test git::canonical::rules::tests::test_special_branches ... ok
test git::canonical::tests::test_quorum_merges ... ok
test git::canonical::rules::tests::test_rule_validate_failures ... ok
test git::test::test_version_from_str ... ok
test git::test::test_version_ord ... ok
test identity::did::test::test_did_encode_decode ... ok
test identity::did::test::test_did_vectors ... ok
test identity::doc::id::test::prop_from_str ... ok
test git::canonical::tests::test_quorum ... ok
test identity::doc::test::test_canonical_doc ... ok
test identity::doc::test::test_canonical_example ... ok
test identity::doc::test::test_duplicate_dids ... ok
test identity::doc::test::test_future_version_error ... ok
test identity::doc::test::test_is_valid_version ... ok
test git::canonical::tests::test_quorum_properties ... ok
test identity::doc::test::test_not_found ... ok
test identity::doc::test::test_parse_version ... ok
test identity::doc::test::test_visibility_json ... ok
test identity::doc::update::test::test_can_update_crefs ... ok
test identity::doc::update::test::test_cannot_include_default_branch_rule ... ok
test identity::doc::update::test::test_default_branch_rule_exists_after_verification ... ok
test identity::project::test::test_project_name ... ok
test node::address::store::test::test_alias ... ok
test node::address::store::test::test_disconnected ... ok
test cob::thread::tests::prop_ordering ... ok
test node::address::store::test::test_disconnected_ban ... ok
test node::address::store::test::test_entries ... ok
test node::address::store::test::test_get_none ... ok
test node::address::store::test::test_insert_and_get ... ok
test node::address::store::test::test_insert_and_remove ... ok
test node::address::store::test::test_insert_and_update ... ok
test node::address::store::test::test_insert_duplicate ... ok
test node::address::store::test::test_node_aliases ... ok
test node::address::store::test::test_remove_nothing ... ok
test node::db::test::test_version ... ok
test node::features::test::test_operations ... ok
test node::notifications::store::test::test_branch_notifications ... ok
test node::notifications::store::test::test_clear ... ok
test node::notifications::store::test::test_cob_notifications ... ok
test node::notifications::store::test::test_counts_by_repo ... ok
test node::notifications::store::test::test_duplicate_notifications ... ok
test node::notifications::store::test::test_notification_status ... ok
test node::policy::store::test::test_follow_and_unfollow_node ... ok
test node::policy::store::test::test_node_aliases ... ok
test node::policy::store::test::test_node_policies ... ok
test identity::doc::test::test_max_delegates ... ok
test node::policy::store::test::test_node_policy ... ok
test node::policy::store::test::test_repo_policies ... ok
test node::policy::store::test::test_repo_policy ... ok
test node::policy::store::test::test_seed_and_unseed_repo ... ok
test node::policy::store::test::test_update_scope ... ok
test node::policy::store::test::test_update_alias ... ok
test node::refs::store::test::test_count ... ok
test node::address::store::test::test_empty ... ok
test node::refs::store::test::test_set_and_get ... ok
test node::routing::test::test_count ... ok
test node::refs::store::test::test_set_and_delete ... ok
test node::routing::test::test_entries ... ok
test node::routing::test::test_insert_and_get_resources ... ok
test node::routing::test::test_insert_and_get ... ok
test node::routing::test::test_insert_existing_updated_time ... ok
test node::routing::test::test_insert_duplicate ... ok
test node::routing::test::test_len ... ok
test node::routing::test::test_remove_many ... ok
test node::routing::test::test_remove_redundant ... ok
test node::routing::test::test_insert_and_remove ... ok
test node::routing::test::test_update_existing_multi ... ok
test node::sync::announce::test::announcer_reached_max_replication_target ... ok
test node::sync::announce::test::announcer_reached_min_replication_target ... ok
test node::sync::announce::test::announcer_must_reach_preferred_seeds ... ok
test node::sync::announce::test::announcer_timed_out ... ok
test node::sync::announce::test::cannot_construct_announcer ... ok
test node::sync::announce::test::announcer_will_minimise_replication_factor ... ok
test node::sync::fetch::test::all_nodes_are_candidates ... ok
test node::routing::test::test_prune ... ok
test node::sync::fetch::test::could_not_reach_target ... ok
test node::sync::fetch::test::ignores_duplicates_and_local_node ... ok
test node::sync::fetch::test::preferred_seeds_target_returned_over_replicas ... ok
test node::sync::fetch::test::all_nodes_are_fetchable ... ok
test node::sync::fetch::test::reaches_target_of_max_replicas ... ok
test node::sync::fetch::test::reaches_target_of_preferred_seeds ... ok
test node::sync::test::replicas_constrain_to ... ok
test node::test::test_alias ... ok
test node::test::test_command_result ... ok
test node::sync::test::ensure_replicas_construction ... ok
test node::timestamp::tests::test_timestamp_max ... ok
test node::test::test_user_agent ... ok
test profile::test::canonicalize_home ... ok
test profile::test::test_config ... ok
test node::sync::fetch::test::reaches_target_of_replicas ... ok
test rad::tests::test_checkout ... ok
test rad::tests::test_fork ... ok
test serde_ext::test::test_localtime ... ok
test serde_ext::test::test_localtime_ext ... ok
test rad::tests::test_init ... ok
test storage::git::tests::test_references_of ... ok
test profile::config::test::schema ... ok
test storage::git::transport::local::url::test::test_url_parse ... ok
test storage::git::transport::local::url::test::test_url_to_string ... ok
test storage::git::transport::remote::url::test::test_url_parse ... ok
test storage::refs::tests::prop_canonical_roundtrip ... ok
test storage::git::tests::test_sign_refs ... ok
test storage::tests::test_storage ... ok
test test::assert::test::assert_with_message ... ok
test test::assert::test::test_assert_no_move ... ok
test test::assert::test::test_assert_panic_0 - should panic ... ok
test test::assert::test::test_assert_panic_1 - should panic ... ok
test test::assert::test::test_assert_panic_2 - should panic ... ok
test test::assert::test::test_assert_succeed ... ok
test test::assert::test::test_panic_message ... ok
test version::test::test_version ... ok
test storage::git::tests::test_remote_refs ... ok
test storage::refs::tests::test_rid_verification ... ok
test identity::doc::test::prop_encode_decode ... ok
test result: ok. 205 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.11s
Running unittests src/lib.rs (target/debug/deps/radicle_cli-f9590da7e1e5db5d)
running 14 tests
test commands::rad_patch::review::builder::tests::test_review_comments_basic ... ok
test commands::rad_inspect::test::test_tree ... ok
test commands::rad_patch::review::builder::tests::test_review_comments_before ... ok
test git::pretty_diff::test::test_pretty ... ignored
test commands::rad_patch::review::builder::tests::test_review_comments_multiline ... ok
test commands::rad_patch::review::builder::tests::test_review_comments_split_hunk ... ok
test git::unified_diff::test::test_diff_content_encode_decode_content ... ok
test git::ddiff::tests::diff_encode_decode_ddiff_hunk ... ok
test terminal::format::test::test_bytes ... ok
test git::unified_diff::test::test_diff_encode_decode_diff ... ok
test terminal::format::test::test_strip_comments ... ok
test terminal::patch::test::test_edit_display_message ... ok
test terminal::patch::test::test_create_display_message ... ok
test terminal::patch::test::test_update_display_message ... ok
test result: ok. 13 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running unittests src/main.rs (target/debug/deps/rad-e24c8a4c20e09236)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/commands.rs (target/debug/deps/commands-99b5df4e5ebba417)
running 98 tests
test framework_home ... ok
test git_push_amend ... ok
test git_push_and_fetch ... ok
test git_push_canonical_tags ... ok
test git_push_diverge ... ok
test git_push_rollback ... ok
test rad_auth_errors ... ok
test rad_block ... ok
test rad_auth ... ok
test git_push_converge ... ok
test rad_checkout ... ok
test git_tag ... ok
test rad_clone ... ok
test rad_clean ... ok
test rad_clone_connect ... ok
test rad_clone_unknown ... ok
test rad_clone_directory ... ok
test rad_clone_all ... ok
test rad_cob_multiset ... ok
test rad_cob_log ... ok
test rad_cob_migrate ... ok
test rad_cob_show ... ok
test rad_cob_update ... ok
test rad_clone_partial_fail ... ok
test rad_config ... ok
test rad_cob_update_identity ... ok
test rad_diff ... ok
test rad_id_collaboration ... ignored, slow
test rad_id ... ok
test rad_id_conflict ... ok
test rad_id_private ... ok
test rad_id_multi_delegate ... ok
test rad_id_threshold ... ok
test rad_id_unknown_field ... ok
test rad_id_update_delete_field ... ok
test rad_id_threshold_soft_fork ... ok
test rad_init ... ignored, part of many other tests
test rad_init_existing ... ok
test rad_init_no_git ... ok
test rad_init_no_seed ... ok
test rad_init_private ... ok
test rad_init_private_clone ... ok
test rad_inbox ... ok
test rad_init_private_no_seed ... ok
test rad_init_private_clone_seed ... ok
test rad_init_private_seed ... ok
test rad_fetch ... ok
test rad_fork ... ok
test rad_init_sync_not_connected ... ok
test rad_init_with_existing_remote ... ok
test rad_init_sync_preferred ... ok
test rad_inspect ... ok
test rad_issue ... ok
test rad_merge_after_update ... ok
test rad_merge_no_ff ... ok
test rad_merge_via_push ... ok
test rad_node_connect ... ok
test rad_node_connect_without_address ... ok
test rad_patch ... ok
test rad_node ... ok
test rad_patch_ahead_behind ... ok
test rad_patch_change_base ... ok
test rad_patch_checkout ... ok
test rad_patch_checkout_revision ... ok
test rad_patch_checkout_force ... ok
test rad_patch_detached_head ... ok
test rad_patch_diff ... ok
test rad_init_sync_and_clone ... ok
test rad_patch_draft ... ok
test rad_init_sync_timeout ... ok
test rad_patch_edit ... ok
test rad_patch_fetch_2 ... ok
test rad_patch_merge_draft ... ok
test rad_patch_fetch_1 ... ok
test rad_patch_delete ... ok
test rad_patch_revert_merge ... ok
test rad_patch_update ... ok
test rad_publish ... ok
test rad_patch_via_push ... ok
test rad_patch_open_explore ... ok
test rad_review_by_hunk ... ok
test rad_seed_and_follow ... ok
test rad_remote ... ok
test rad_seed_many ... ok
test rad_self ... ok
test rad_sync_without_node ... ok
test rad_unseed ... ok
test rad_push_and_pull_patches ... ok
test rad_warn_old_nodes ... FAILED
test rad_unseed_many ... ok
test rad_sync ... ok
test rad_watch ... ok
test test_clone_without_seeds ... ok
test test_cob_deletion ... ok
test test_cob_replication ... ok
test rad_workflow ... ok
test rad_patch_pull_update ... ok
test test_replication_via_seed ... ok
failures:
---- rad_warn_old_nodes stdout ----
1788827694 test: Using PATH ["/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/crates/radicle-cli/target/debug", "/usr/local/cargo/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/tmp/radicle-WHhNfx/work/alice"]
1788827694 test: rad-warn-old-nodes.md: Running `/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/target/debug/rad` with ["config", "push", "preferredSeeds", "z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7@seed.radicle.garden:8776"] in `/tmp/radicle-WHhNfx/work/alice`..
1788827694 test: rad-warn-old-nodes.md: Running `/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/target/debug/rad` with ["config", "push", "node.connect", "z6Mkmqogy2qEM2ummccUthFEaaHvyYmYBYh3dbe9W4ebScxo@ash.radicle.garden:8776"] in `/tmp/radicle-WHhNfx/work/alice`..
1788827694 test: rad-warn-old-nodes.md: Running `/d96ff937-aedf-4f4d-accf-e9c4980b50c3/w/target/debug/rad` with ["debug"] in `/tmp/radicle-WHhNfx/work/alice`..
thread 'rad_warn_old_nodes' panicked at crates/radicle-cli-test/src/lib.rs:487:36:
--- Expected
++++ actual: stdout
1 1 | {
2 2 | "radExe": "[..]",
3 3 | "radVersion": "[..]",
4 - "radicleNodeVersion": "radicle-node [..]",
5 - "gitRemoteRadVersion": "git-remote-rad [..]",
6 - "gitVersion": "git version [..]",
7 - "sshVersion": "[..]",
8 - "gitHead": "[..]",
4 + "radicleNodeVersion": "<unknown>",
5 + "gitRemoteRadVersion": "git-remote-rad pre-release (c4b652f7)",
6 + "gitVersion": "git version 2.47.3",
7 + "sshVersion": "OpenSSH_10.0p2 Debian-7, OpenSSL 3.5.4 30 Sep 2025",
8 + "gitHead": "c4b652f7",
9 9 | "log": {
10 10 | "filename": "[..]",
11 11 | "exists": false,
12 12 | "len": null
13 13 | },
⋮
29 29 | "warnings": [
30 30 | "Value of configuration option `node.connect` at index 0 mentions node with address 'ash.radicle.garden:8776', which has been renamed to 'rosa.radicle.xyz:8776'. Please update your configuration.",
31 31 | "Value of configuration option `preferred_seeds` at index 0 mentions node with address 'seed.radicle.garden:8776', which has been renamed to 'iris.radicle.xyz:8776'. Please update your configuration."
32 32 | ]
33 33 | }
Exit status: 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
rad_warn_old_nodes
test result: FAILED. 95 passed; 1 failed; 2 ignored; 0 measured; 0 filtered out; finished in 72.91s
error: test failed, to rerun pass `-p radicle-cli --test commands`
Running unittests src/lib.rs (target/debug/deps/radicle_cli_test-2708bf2023816961)
running 3 tests
test tests::test_parse ... ok
test tests::test_run ... ok
test tests::test_example_spaced_brackets ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running unittests src/lib.rs (target/debug/deps/radicle_cob-f17f94e06c0f641f)
running 8 tests
test object::tests::test_serde ... ok
test tests::invalid_parse_refstr ... ok
test tests::parse_refstr ... ok
test tests::roundtrip ... ok
test tests::list_cobs ... ok
test type_name::test::valid_typenames ... ok
test tests::traverse_cobs ... ok
test tests::update_cob ... ok
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
Running unittests src/lib.rs (target/debug/deps/radicle_crypto-53df22f2e7b1cb5a)
running 12 tests
test ssh::fmt::test::test_fingerprint ... ok
test ssh::keystore::tests::test_init_no_passphrase ... ok
test ssh::fmt::test::test_key ... ok
test ssh::test::prop_encode_decode_sk ... ok
test ssh::test::test_agent_encoding_remove ... ok
test ssh::test::test_agent_encoding_sign ... ok
test tests::prop_encode_decode ... ok
test tests::test_e25519_dh ... ok
test tests::test_encode_decode ... ok
test tests::prop_key_equality ... ok
test ssh::keystore::tests::test_signer ... ok
test ssh::keystore::tests::test_init_passphrase ... ok
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.82s
Running unittests src/lib.rs (target/debug/deps/radicle_dag-20ca1aca3d76c348)
running 20 tests
test tests::test_contains ... ok
test tests::test_dependencies ... ok
test tests::test_cycle ... ok
test tests::test_diamond ... ok
test tests::test_complex ... ok
test tests::test_fold_diamond ... ok
test tests::test_fold_multiple_roots ... ok
test tests::test_fold_reject ... ok
test tests::test_fold_sorting_1 ... ok
test tests::test_fold_sorting_2 ... ok
test tests::test_get ... ok
test tests::test_is_empty ... ok
test tests::test_len ... ok
test tests::test_merge_1 ... ok
test tests::test_merge_2 ... ok
test tests::test_prune_1 ... ok
test tests::test_prune_2 ... ok
test tests::test_prune_by_sorting ... ok
test tests::test_siblings ... ok
test tests::test_remove ... ok
test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_fetch-6e22a3c6342b1f1b)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_node-3ee6a5daa27d652f)
running 69 tests
test control::tests::test_control_socket ... ok
test control::tests::test_seed_unseed ... ok
test tests::e2e::missing_default_branch ... ok
test tests::e2e::missing_delegate_default_branch ... ok
test tests::e2e::test_catchup_on_refs_announcements ... ok
test tests::e2e::test_background_foreground_fetch ... ok
test tests::e2e::test_channel_reader_limit ... ok
test tests::e2e::test_clone ... ok
test tests::e2e::test_dont_fetch_owned_refs ... ok
test tests::e2e::test_fetch_followed_remotes ... ok
test tests::e2e::test_connection_crossing ... FAILED
test tests::e2e::test_fetch_preserve_owned_refs ... ok
test tests::e2e::test_fetch_unseeded ... ok
test tests::e2e::test_concurrent_fetches ... ok
test tests::e2e::test_fetch_up_to_date ... ok
test tests::e2e::test_inventory_sync_basic ... ok
test tests::e2e::test_large_fetch ... ok
test tests::e2e::test_migrated_clone ... ok
test tests::e2e::test_missing_remote ... ok
test tests::e2e::test_multiple_offline_inits ... ok
test tests::e2e::test_non_fastforward_sigrefs ... ok
test tests::e2e::test_outdated_delegate_sigrefs ... ok
test tests::e2e::test_outdated_sigrefs ... ok
test tests::e2e::test_replication ... ok
test tests::e2e::test_replication_invalid ... ok
test tests::e2e::test_replication_ref_in_sigrefs ... ok
test tests::e2e::test_inventory_sync_bridge ... ok
test tests::e2e::test_inventory_sync_ring ... ok
test tests::e2e::test_inventory_sync_star ... ok
test tests::test_announcement_rebroadcast ... ok
test tests::test_announcement_rebroadcast_duplicates ... ok
test tests::test_announcement_rebroadcast_timestamp_filtered ... ok
test tests::test_announcement_relay ... ok
test tests::test_connection_kept_alive ... ok
test tests::test_disconnecting_unresponsive_peer ... ok
test tests::test_fetch_missing_inventory_on_gossip ... ok
test tests::test_fetch_missing_inventory_on_schedule ... ok
test tests::test_inbound_connection ... ok
test tests::test_inventory_decode ... ok
test tests::test_init_and_seed ... ok
test tests::test_inventory_relay ... ok
test tests::test_inventory_relay_bad_timestamp ... ok
test tests::test_inventory_sync ... ok
test tests::test_maintain_connections ... ok
test tests::test_maintain_connections_failed_attempt ... ok
test tests::test_maintain_connections_transient ... ok
test tests::test_outbound_connection ... ok
test tests::test_inventory_pruning ... ok
test tests::test_persistent_peer_connect ... ok
test tests::test_persistent_peer_reconnect_success ... ok
test tests::test_persistent_peer_reconnect_attempt ... ok
test tests::test_ping_response ... ok
test tests::test_queued_fetch_from_command_same_rid ... ok
test tests::test_queued_fetch_from_ann_same_rid ... ok
test tests::test_redundant_connect ... ok
test tests::test_queued_fetch_max_capacity ... ok
test tests::test_refs_announcement_followed ... ok
test tests::test_refs_announcement_fetch_trusted_no_inventory ... ok
test tests::test_refs_announcement_no_subscribe ... ok
test tests::test_refs_announcement_offline ... ok
test tests::test_refs_announcement_relay_private ... ok
test tests::test_refs_announcement_relay_public ... ok
test tests::test_seed_repo_subscribe ... ok
test tests::test_seeding ... ok
test wire::test::test_inventory_ann_with_extension ... ok
test wire::test::test_pong_message_with_extension ... ok
test tests::test_refs_synced_event ... ok
test tests::prop_inventory_exchange_dense ... ok
test tests::test_announcement_message_amplification ... ok
failures:
---- tests::e2e::test_connection_crossing stdout ----
1788827704 test: Node::init alice: z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio
1788827705 test: Node::init bob: z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM
1788827705 tests::e2e::test_connection_crossing node: Opening policy database..
1788827705 tests::e2e::test_connection_crossing node: Migrating COBs cache..
1788827705 tests::e2e::test_connection_crossing node: Migration of COBs cache complete (version=2)..
1788827705 tests::e2e::test_connection_crossing node: Default seeding policy set to 'block (all)'
1788827705 tests::e2e::test_connection_crossing node: Initializing service (Test)..
1788827705 tests::e2e::test_connection_crossing node: Opening node database..
1788827705 tests::e2e::test_connection_crossing node: Address book is empty. Adding bootstrap nodes..
1788827705 tests::e2e::test_connection_crossing node: 0 nodes added to address book
1788827705 tests::e2e::test_connection_crossing service: Init @1788827705019
1788827705 tests::e2e::test_connection_crossing service: Empty refs database, populating from storage..
1788827705 tests::e2e::test_connection_crossing service: Not enough available peers to connect to (available=0, wanted=8)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> node: Listening on 0.0.0.0:39517..
1788827705 tests::e2e::test_connection_crossing node: Binding control socket /tmp/.tmpMxjoz3/NoGZRBYJ/node/control.sock..
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <runtime> node: Running node z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio in /tmp/.tmpMxjoz3/NoGZRBYJ..
1788827705 tests::e2e::test_connection_crossing node: Opening policy database..
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <control> control: Control thread listening on socket..
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <signals> node: Signal notifications channel error: receiving on an empty and disconnected channel
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Received command QueryState(..)
1788827705 tests::e2e::test_connection_crossing node: Migrating COBs cache..
1788827705 tests::e2e::test_connection_crossing node: Migration of COBs cache complete (version=2)..
1788827705 tests::e2e::test_connection_crossing node: Default seeding policy set to 'block (all)'
1788827705 tests::e2e::test_connection_crossing node: Initializing service (Test)..
1788827705 tests::e2e::test_connection_crossing node: Opening node database..
1788827705 tests::e2e::test_connection_crossing node: Address book is empty. Adding bootstrap nodes..
1788827705 tests::e2e::test_connection_crossing node: 0 nodes added to address book
1788827705 tests::e2e::test_connection_crossing service: Init @1788827705062
1788827705 tests::e2e::test_connection_crossing service: Empty refs database, populating from storage..
1788827705 tests::e2e::test_connection_crossing service: Not enough available peers to connect to (available=0, wanted=8)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> node: Listening on 0.0.0.0:35833..
1788827705 tests::e2e::test_connection_crossing node: Binding control socket /tmp/.tmpMxjoz3/6rnl1xz8/node/control.sock..
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <runtime> node: Running node z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM in /tmp/.tmpMxjoz3/6rnl1xz8..
1788827705 test: Preferred peer is z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <control> control: Control thread listening on socket..
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <signals> node: Signal notifications channel error: receiving on an empty and disconnected channel
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Received command QueryState(..)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Received command QueryState(..)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Received command Connect(z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio, 0.0.0.0:39517, ConnectOptions { persistent: false, timeout: 30s })
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Connecting to z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio (0.0.0.0:39517)..
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Attempted connection to z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio (0.0.0.0:39517)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> wire: Registering outbound transport for z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio (fd=61)..
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> wire: Outbound peer resource registered for z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio with id=2 (fd=61)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> wire: Inbound connection from 127.0.0.1:34736 (fd=167)..
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> wire: Accepted inbound connection from 127.0.0.1:34736 (fd=167)..
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Received command QueryState(..)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> wire: Inbound peer resource registered with id=2 (fd=167)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> wire: Session established with z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio (id=2) (fd=61) (outbound)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Connected to z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio (0.0.0.0:39517) (Outbound)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Subscribing to messages since timestamp 1788741305090..
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> wire: Session established with z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM (id=2) (fd=167) (inbound)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Connected to z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM (127.0.0.1:34736) (Inbound)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Subscribing to messages since timestamp 1788741305091..
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Received command Connect(z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM, 0.0.0.0:35833, ConnectOptions { persistent: false, timeout: 30s })
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Connecting to z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM (0.0.0.0:35833)..
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Received node announcement of z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM with 0 address(es) from z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM (t=1788827705062)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Received node announcement of z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio with 0 address(es) from z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio (t=1788827705019)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Stored announcement from z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM to be broadcast in 0 millisecond(s) (t=1788827705062)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Stored announcement from z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio to be broadcast in 0 millisecond(s) (t=1788827705019)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Address store entry for node z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM updated at 1788827705062
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Received inventory announcement of z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM with 0 item(s) from z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM (t=1788827705063)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Address store entry for node z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio updated at 1788827705019
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Received inventory announcement of z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio with 0 item(s) from z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio (t=1788827705020)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Stored announcement from z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM to be broadcast in 0 millisecond(s) (t=1788827705063)
1788827705 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Received subscription filter from z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Stored announcement from z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio to be broadcast in 0 millisecond(s) (t=1788827705020)
1788827705 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Received subscription filter from z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Received command QueryState(..)
1788827706 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Received command QueryState(..)
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Received command QueryState(..)
1788827706 test: Ok([Session { nid: PublicKey(z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM), link: Inbound, addr: Address(NetAddr { host: Ip(127.0.0.1), port: 34736 }), state: Connected { since: LocalTime { millis: 1788827705091 }, ping: None, fetching: {}, latencies: [], stable: false } }])
1788827706 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <service> service: Received command QueryState(..)
1788827706 test: Ok([Session { nid: PublicKey(z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio), link: Outbound, addr: Address(NetAddr { host: Ip(0.0.0.0), port: 39517 }), state: Connected { since: LocalTime { millis: 1788827705090 }, ping: None, fetching: {}, latencies: [], stable: false } }])
thread 'tests::e2e::test_connection_crossing' panicked at crates/radicle-node/src/tests/e2e.rs:866:9:
assertion `left == right` failed
left: Inbound
right: Outbound
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1788827706 test: Node z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM shutting down..
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> wire: Disconnecting peer with id=2: connection reset
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> wire: Transport handover for disconnecting peer with id=2 (fd=167)
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Disconnected from z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM (connection reset)
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <service> service: Dropping peer z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM..
1788827706 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <control> control: Received `{"command":"shutdown"}` on control socket
1788827706 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <control> control: Shutdown requested..
1788827706 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <runtime> pool: Worker pool shutting down..
1788827706 z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM <runtime> node: Node shutdown completed for z6MkmQY1c3vkvHrRUqBSeMNgs9EFVPiExJxSwsKcwkuin7vM
1788827706 test: Node z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio shutting down..
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <control> control: Received `{"command":"shutdown"}` on control socket
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <control> control: Shutdown requested..
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <runtime> pool: Worker pool shutting down..
1788827706 z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio <runtime> node: Node shutdown completed for z6MksitPA5YZ67qPfhUcrYEiZR8S4RFduQt6ydXnrnBKdxio
failures:
tests::e2e::test_connection_crossing
test result: FAILED. 68 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 16.27s
error: test failed, to rerun pass `-p radicle-node --lib`
Running unittests src/main.rs (target/debug/deps/radicle_node-54719885b0654284)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_protocol-6b264a5728e4528b)
running 45 tests
test deserializer::test::test_decode_next ... ok
test service::filter::test::test_parameters ... ok
test deserializer::test::prop_decode_next ... ok
test deserializer::test::test_unparsed ... ok
test service::limiter::test::test_limitter_different_rates ... ok
test service::limiter::test::test_limitter_multi ... ok
test service::limiter::test::test_limitter_refill ... ok
test service::gossip::store::test::test_announced ... ok
test service::filter::test::test_sizes ... ok
test service::message::tests::test_inventory_limit ... ok
test wire::frame::test::test_stream_id ... ok
test service::message::tests::test_ref_remote_limit ... ok
test wire::message::tests::prop_addr ... ok
test service::message::tests::prop_refs_announcement_signing ... ok
test wire::message::tests::prop_zero_bytes_encode_decode ... ok
test wire::message::tests::test_inv_ann_max_size ... ok
test wire::message::tests::test_node_ann_max_size ... ok
test wire::message::tests::test_ping_encode_size_overflow - should panic ... ok
test wire::message::tests::prop_message_encode_decode ... ok
test wire::message::tests::test_pingpong_encode_max_size ... ok
test wire::message::tests::test_pong_encode_size_overflow - should panic ... ok
test wire::tests::prop_filter ... ok
test wire::tests::prop_id ... ok
test wire::tests::prop_oid ... ok
test wire::tests::prop_pubkey ... ok
test wire::tests::prop_refs ... ok
test wire::tests::prop_signature ... ok
test wire::tests::prop_signed_refs ... ok
test wire::tests::prop_string ... ok
test wire::tests::prop_tuple ... ok
test wire::tests::prop_u16 ... ok
test wire::tests::prop_u32 ... ok
test wire::tests::prop_u64 ... ok
test wire::tests::prop_u8 ... ok
test wire::tests::prop_vec ... ok
test wire::tests::test_alias ... ok
test wire::tests::test_bounded_vec_limit ... ok
test wire::tests::test_filter_invalid ... ok
test wire::tests::test_string ... ok
test wire::varint::test::prop_encode_decode ... ok
test wire::varint::test::test_encode_overflow - should panic ... ok
test wire::varint::test::test_encoding ... ok
test wire::message::tests::prop_message_decoder ... ok
test wire::message::tests::test_refs_ann_max_size ... ok
test service::message::tests::test_node_announcement_validate ... ok
test result: ok. 45 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.80s
Running unittests src/lib.rs (target/debug/deps/radicle_remote_helper-2e8a250eff5b6a8f)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/git-remote-rad.rs (target/debug/deps/git_remote_rad-8e84f5daae6690d3)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/main.rs (target/debug/deps/radicle_schemars-b5257370f9ac9e02)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_signals-ad41f42c3d3e47ce)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_ssh-0a612ae4f7514ee0)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_systemd-28e02dc067eac38d)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_term-a183e76cc571a795)
running 20 tests
test cell::test::test_width ... ok
test ansi::tests::colors_disabled ... ok
test ansi::tests::colors_enabled ... ok
test ansi::tests::wrapping ... ok
test element::test::test_truncate ... ok
test element::test::test_width ... ok
test table::test::test_table ... ok
test table::test::test_table_border ... ok
test table::test::test_table_border_maximized ... ok
test table::test::test_table_truncate ... ok
test table::test::test_truncate ... ok
test table::test::test_table_unicode_truncate ... ok
test table::test::test_table_unicode ... ok
test table::test::test_table_border_truncated ... ok
test textarea::test::test_wrapping_code_block ... ok
test textarea::test::test_wrapping ... ok
test textarea::test::test_wrapping_fenced_block ... ok
test vstack::test::test_vstack ... ok
test vstack::test::test_vstack_maximize ... ok
test textarea::test::test_wrapping_paragraphs ... ok
test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle
running 1 test
test crates/radicle/src/cob/patch/encoding/review.rs - cob::patch::encoding::review::Review (line 23) ... ignored
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cli
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cli_test
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cob
running 1 test
test crates/radicle-cob/src/backend/git/stable.rs - backend::git::stable::with_advanced_timestamp (line 56) ... ignored
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_crypto
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_dag
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_fetch
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_node
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_protocol
running 6 tests
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::max (line 96) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::collect_from (line 30) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::truncate (line 50) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::with_capacity (line 66) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::unbound (line 149) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::push (line 122) ... ok
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.63s
Doc-tests radicle_remote_helper
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_signals
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_ssh
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_systemd
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_term
running 1 test
test crates/radicle-term/src/table.rs - table (line 4) ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.44s
error: 2 targets failed:
`-p radicle-cli --test commands`
`-p radicle-node --lib`
Exit code: 101
{
"response": "finished",
"result": "failure"
}