rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwoodea562215eaa163568c3f1061e4cbbd907e9913db
{
"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": "a1b9d9c92737f12b5b24405042e2432cc9730a5e",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"title": "Revisit `radicle::git::raw`",
"state": {
"status": "merged",
"conflicts": []
},
"before": "633059040cf1aae705172e7dac24c1fd863d44e9",
"after": "ea562215eaa163568c3f1061e4cbbd907e9913db",
"commits": [
"ea562215eaa163568c3f1061e4cbbd907e9913db",
"837f4694df48df27ae92966329b6a26ef9e902fc",
"880634acd4d5bf6f0182d5718f2af912cbda17c0"
],
"target": "7e1cb406bb935c3de008d2171e8961f57b4336ea",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "a1b9d9c92737f12b5b24405042e2432cc9730a5e",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "### Capture all `git2` re-exports\n\nA refactoring internal to the `radicle` crate, with the goal of\nmaking dependency on `git2` clearer and more controlled.\n`radicle::git::raw` is changed from a complete re-export of `git2`\nto a module that selectively re-exports (many) members of `git2`.\n\nIn the future, no more `use git2::\u2026` statements should be added\noutside of `crates/radicle/src/git/raw.rs`. This is in an effort to\ndecrease dependence on `git2` in the future.\n\n\n### Introduce `trait ErrorExt`\n\nThis extension trait is more ergonomic than what `radicle-git-ext`\nprovides.",
"base": "ac572e64e5029cb1db16f05158915b6ef55ab7e7",
"oid": "8a4da32e918c77c0e2db5518dc0edc0e8e2d8158",
"timestamp": 1760044451
},
{
"id": "d09327bc78d3de1cd5d6fe87e4f60b1112c2340b",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "Improve commit message.",
"base": "ac572e64e5029cb1db16f05158915b6ef55ab7e7",
"oid": "4facd78316d892d27a926f11c274ef2f2cf6fbc9",
"timestamp": 1760045465
},
{
"id": "8755d3417638ec7ceb0662245c8d1e05555575f5",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "REVIEW\n\nI've moved the ErrorExt introduction from the first commit to the second, as the second commit said it is being introduced there. This was safe, since it wasn't being used in the first commit.\n\nI added a review commit to fix up some small sections of code.",
"base": "ac572e64e5029cb1db16f05158915b6ef55ab7e7",
"oid": "eff8cbbef6fe9a76f17bf81f6bee29e130c12f74",
"timestamp": 1760085672
},
{
"id": "cbdfd36d80b9a24f21193f1d19e45adf50b8b87d",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "Rebase",
"base": "633059040cf1aae705172e7dac24c1fd863d44e9",
"oid": "ea562215eaa163568c3f1061e4cbbd907e9913db",
"timestamp": 1760088579
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "954238a4-45e1-411d-b26c-81a5132cc6e0"
},
"info_url": "https://cci.rad.levitte.org//954238a4-45e1-411d-b26c-81a5132cc6e0.html"
}
Started at: 2026-09-08 16:34:10.526465+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/954238a4-45e1-411d-b26c-81a5132cc6e0/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 39 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout a1b9d9c92737f12b5b24405042e2432cc9730a5e
✓ Switched to branch patch/a1b9d9c at revision cbdfd36
✓ Branch patch/a1b9d9c setup to track rad/patches/a1b9d9c92737f12b5b24405042e2432cc9730a5e
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout ea562215eaa163568c3f1061e4cbbd907e9913db
HEAD is now at ea562215 radicle/git/raw: Introduce `trait ErrorExt`
Exit code: 0
$ rad patch show a1b9d9c92737f12b5b24405042e2432cc9730a5e -p
╭──────────────────────────────────────────────────────────────────────────────────╮
│ Title Revisit `radicle::git::raw` │
│ Patch a1b9d9c92737f12b5b24405042e2432cc9730a5e │
│ Author lorenz z6MkkPv…WX5sTEz │
│ Head ea562215eaa163568c3f1061e4cbbd907e9913db │
│ Base 633059040cf1aae705172e7dac24c1fd863d44e9 │
│ Target master │
│ Branches patch/a1b9d9c │
│ Commits ahead 0, behind 736 │
│ Status merged │
│ │
│ ### Capture all `git2` re-exports │
│ │
│ A refactoring internal to the `radicle` crate, with the goal of │
│ making dependency on `git2` clearer and more controlled. │
│ `radicle::git::raw` is changed from a complete re-export of `git2` │
│ to a module that selectively re-exports (many) members of `git2`. │
│ │
│ In the future, no more `use git2::…` statements should be added │
│ outside of `crates/radicle/src/git/raw.rs`. This is in an effort to │
│ decrease dependence on `git2` in the future. │
│ │
│ │
│ ### Introduce `trait ErrorExt` │
│ │
│ This extension trait is more ergonomic than what `radicle-git-ext` │
│ provides. │
├──────────────────────────────────────────────────────────────────────────────────┤
│ ea56221 radicle/git/raw: Introduce `trait ErrorExt` │
│ 837f469 hook: Add check for `git2` in `radicle` │
│ 880634a radicle/git/raw: Capture all `git2` re-exports │
├──────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision a1b9d9c @ ac572e6..8a4da32 by lorenz z6MkkPv…WX5sTEz 10 months ago │
│ ↑ Revision d09327b @ ac572e6..4facd78 by lorenz z6MkkPv…WX5sTEz 10 months ago │
│ ↑ Revision 8755d34 @ ac572e6..eff8cbb by fintohaps z6Mkire…SQZ3voM 10 months ago │
│ ↑ Revision cbdfd36 @ 6330590..ea56221 by lorenz z6MkkPv…WX5sTEz 10 months ago │
│ └─ ✓ merged by fintohaps z6Mkire…SQZ3voM │
╰──────────────────────────────────────────────────────────────────────────────────╯
commit ea562215eaa163568c3f1061e4cbbd907e9913db
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Sat Oct 4 11:59:26 2025 +0200
radicle/git/raw: Introduce `trait ErrorExt`
This extension trait is more ergonomic than what `radicle-git-ext`
provides.
diff --git a/crates/radicle-cli/src/commands/init.rs b/crates/radicle-cli/src/commands/init.rs
index a68ea8dad3..f79d004b52 100644
--- a/crates/radicle-cli/src/commands/init.rs
+++ b/crates/radicle-cli/src/commands/init.rs
@@ -13,6 +13,7 @@ use serde_json as json;
use radicle::crypto::ssh;
use radicle::explorer::ExplorerUrl;
use radicle::git::raw;
+use radicle::git::raw::ErrorExt as _;
use radicle::git::RefString;
use radicle::identity::project::ProjectName;
use radicle::identity::{Doc, RepoId, Visibility};
@@ -189,7 +190,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
let path = options.path.as_deref().unwrap_or(cwd.as_path());
let repo = match git::Repository::open(path) {
Ok(r) => r,
- Err(e) if radicle::git::ext::is_not_found_err(&e) => {
+ Err(e) if e.is_not_found() => {
anyhow::bail!("a Git repository was not found at the given path")
}
Err(e) => return Err(e.into()),
diff --git a/crates/radicle-cli/src/commands/patch/checkout.rs b/crates/radicle-cli/src/commands/patch/checkout.rs
index 5ea1a630dc..9fdec248a8 100644
--- a/crates/radicle-cli/src/commands/patch/checkout.rs
+++ b/crates/radicle-cli/src/commands/patch/checkout.rs
@@ -3,6 +3,7 @@ use anyhow::anyhow;
use git_ref_format::Qualified;
use radicle::cob::patch;
use radicle::cob::patch::RevisionId;
+use radicle::git::raw::ErrorExt as _;
use radicle::git::RefString;
use radicle::patch::cache::Patches as _;
use radicle::patch::PatchId;
@@ -73,7 +74,7 @@ pub fn run(
}
head
}
- Err(e) if radicle::git::is_not_found_err(&e) => {
+ Err(e) if e.is_not_found() => {
let commit = find_patch_commit(revision, stored, working)?;
// Create patch branch and switch to it.
working.branch(patch_branch.as_str(), &commit, true)?;
@@ -128,7 +129,7 @@ fn find_patch_commit<'a>(
match working.find_commit(head) {
Ok(commit) => Ok(commit),
- Err(e) if git::ext::is_not_found_err(&e) => {
+ Err(e) if e.is_not_found() => {
let output = git::process::fetch_pack(
Some(working.path()),
stored,
diff --git a/crates/radicle-cli/src/commands/watch.rs b/crates/radicle-cli/src/commands/watch.rs
index 6f2b13caa8..c854ccb9d6 100644
--- a/crates/radicle-cli/src/commands/watch.rs
+++ b/crates/radicle-cli/src/commands/watch.rs
@@ -4,6 +4,7 @@ use std::{thread, time};
use anyhow::{anyhow, Context as _};
use radicle::git;
+use radicle::git::raw::ErrorExt as _;
use radicle::prelude::{NodeId, RepoId};
use radicle::storage::{ReadRepository, ReadStorage};
@@ -169,7 +170,7 @@ fn reference<R: ReadRepository>(
) -> Result<Option<git::Oid>, git::raw::Error> {
match repo.reference_oid(nid, qual) {
Ok(oid) => Ok(Some(oid)),
- Err(e) if git::ext::is_not_found_err(&e) => Ok(None),
+ Err(e) if e.is_not_found() => Ok(None),
Err(e) => Err(e),
}
}
diff --git a/crates/radicle-fetch/src/git/repository.rs b/crates/radicle-fetch/src/git/repository.rs
index 8c32f5e06e..e4e8ca8fed 100644
--- a/crates/radicle-fetch/src/git/repository.rs
+++ b/crates/radicle-fetch/src/git/repository.rs
@@ -1,6 +1,7 @@
pub mod error;
use either::Either;
+use radicle::git::raw::ErrorExt as _;
use radicle::git::{self, Namespaced, Oid, Qualified};
use radicle::storage::git::Repository;
@@ -53,7 +54,7 @@ fn find_and_peel(repo: &Repository, oid: Oid) -> Result<Oid, error::Ancestry> {
.map_err(|err| error::Ancestry::Peel { oid, err })?
.id()
.into()),
- Err(e) if git::is_not_found_err(&e) => Err(error::Ancestry::Missing { oid }),
+ Err(e) if e.is_not_found() => Err(error::Ancestry::Missing { oid }),
Err(err) => Err(error::Ancestry::Object { oid, err }),
}
}
diff --git a/crates/radicle/src/git.rs b/crates/radicle/src/git.rs
index 9b70c81d0d..676e990fd9 100644
--- a/crates/radicle/src/git.rs
+++ b/crates/radicle/src/git.rs
@@ -17,7 +17,6 @@ use crate::storage;
use crate::storage::refs::Refs;
use crate::storage::RemoteId;
-pub use ext::is_not_found_err;
pub use ext::Error;
pub use ext::NotFound;
pub use ext::Oid;
@@ -31,6 +30,8 @@ pub use radicle_git_ext as ext;
pub use storage::git::transport::local::Url;
pub use storage::BranchName;
+use raw::ErrorExt as _;
+
/// Default port of the `git` transport protocol.
pub const PROTOCOL_PORT: u16 = 9418;
/// Minimum required git version.
@@ -733,14 +734,14 @@ pub fn set_upstream(
let branch_merge = format!("branch.{branch}.merge");
config.remove_multivar(&branch_remote, ".*").or_else(|e| {
- if ext::is_not_found_err(&e) {
+ if e.is_not_found() {
Ok(())
} else {
Err(e)
}
})?;
config.remove_multivar(&branch_merge, ".*").or_else(|e| {
- if ext::is_not_found_err(&e) {
+ if e.is_not_found() {
Ok(())
} else {
Err(e)
diff --git a/crates/radicle/src/git/canonical/effects.rs b/crates/radicle/src/git/canonical/effects.rs
index 65c95beae3..54ca20d578 100644
--- a/crates/radicle/src/git/canonical/effects.rs
+++ b/crates/radicle/src/git/canonical/effects.rs
@@ -1,6 +1,7 @@
use std::collections::{BTreeMap, BTreeSet};
use crate::git;
+use crate::git::raw::ErrorExt as _;
use crate::git::{Oid, Qualified};
use crate::prelude::Did;
@@ -215,7 +216,7 @@ impl FindObjects for git::raw::Repository {
let name = &refname.with_namespace(did.as_key().into());
let reference = match self.find_reference(name.as_str()) {
Ok(reference) => reference,
- Err(e) if git::ext::is_not_found_err(&e) => {
+ Err(e) if e.is_not_found() => {
missing_refs.insert(name.to_owned());
continue;
}
@@ -235,7 +236,7 @@ impl FindObjects for git::raw::Repository {
object.kind().map(|kind| kind.to_string()),
)
}),
- Err(err) if git::ext::is_not_found_err(&err) => {
+ Err(err) if err.is_not_found() => {
missing_objects.insert(*did, oid);
continue;
}
diff --git a/crates/radicle/src/git/raw.rs b/crates/radicle/src/git/raw.rs
index 3a9c0522e9..fdeb96b108 100644
--- a/crates/radicle/src/git/raw.rs
+++ b/crates/radicle/src/git/raw.rs
@@ -32,3 +32,27 @@ pub(crate) mod transport {
register, Service, SmartSubtransport, SmartSubtransportStream, Transport,
};
}
+
+/// An extension trait for [`git2::Error`] to more conveniently handle
+/// errors with the code [`git2::ErrorCode::NotFound`].
+pub trait ErrorExt {
+ /// Returns `true` if the error associated with this error is [`git2::ErrorCode::NotFound`].
+ fn is_not_found(&self) -> bool;
+}
+
+impl ErrorExt for git2::Error {
+ fn is_not_found(&self) -> bool {
+ self.code() == git2::ErrorCode::NotFound
+ }
+}
+
+impl ErrorExt for git_ext::Error {
+ fn is_not_found(&self) -> bool {
+ use git_ext::Error::*;
+ match self {
+ Git(e) => e.is_not_found(),
+ NotFound(_) => true,
+ _ => false,
+ }
+ }
+}
diff --git a/crates/radicle/src/identity/doc.rs b/crates/radicle/src/identity/doc.rs
index 305766c248..6617265e80 100644
--- a/crates/radicle/src/identity/doc.rs
+++ b/crates/radicle/src/identity/doc.rs
@@ -22,6 +22,7 @@ use crate::crypto;
use crate::crypto::Signature;
use crate::git;
use crate::git::canonical::rules;
+use crate::git::raw::ErrorExt as _;
use crate::identity::{project::Project, Did};
use crate::node::device::Device;
use crate::storage;
@@ -71,9 +72,8 @@ impl DocError {
/// Whether this error is caused by the document not being found.
pub fn is_not_found(&self) -> bool {
match self {
- Self::GitExt(git::Error::NotFound(_)) => true,
- Self::GitExt(git::Error::Git(e)) if git::is_not_found_err(e) => true,
- Self::Git(err) if git::is_not_found_err(err) => true,
+ Self::GitExt(e) => e.is_not_found(),
+ Self::Git(e) => e.is_not_found(),
_ => false,
}
}
@@ -1160,7 +1160,10 @@ mod test {
let oid = git::raw::Oid::from_str("2d52a53ce5e4f141148a5f770cfd3ead2d6a45b8").unwrap();
let err = repo.identity_head_of(&remote).unwrap_err();
- matches!(err, git::ext::Error::NotFound(_));
+ {
+ use crate::git::raw::ErrorExt as _;
+ assert!(err.is_not_found());
+ }
let err = Doc::load_at(oid.into(), &repo).unwrap_err();
assert!(err.is_not_found());
diff --git a/crates/radicle/src/storage.rs b/crates/radicle/src/storage.rs
index 7fbe5e13a3..3e9a830f6a 100644
--- a/crates/radicle/src/storage.rs
+++ b/crates/radicle/src/storage.rs
@@ -16,6 +16,7 @@ pub use radicle_git_ext::Oid;
use crate::cob;
use crate::collections::RandomMap;
+use crate::git::raw::ErrorExt as _;
use crate::git::{canonical, ext as git_ext};
use crate::git::{refspec::Refspec, PatternString, Qualified, RefError, RefStr, RefString};
use crate::identity::{doc, Did, PayloadError};
@@ -133,9 +134,9 @@ pub enum RepositoryError {
impl RepositoryError {
pub fn is_not_found(&self) -> bool {
match self {
- Self::Storage(e) if e.is_not_found() => true,
- Self::Git(e) if git_ext::is_not_found_err(e) => true,
- Self::GitExt(git_ext::Error::NotFound(_)) => true,
+ Self::Storage(e) => e.is_not_found(),
+ Self::GitExt(e) => e.is_not_found(),
+ Self::Git(e) => e.is_not_found(),
_ => false,
}
}
@@ -167,7 +168,7 @@ impl Error {
pub fn is_not_found(&self) -> bool {
match self {
Self::Io(e) if e.kind() == io::ErrorKind::NotFound => true,
- Self::Git(e) if git::ext::is_not_found_err(e) => true,
+ Self::Git(e) if e.is_not_found() => true,
Self::Doc(e) if e.is_not_found() => true,
_ => false,
}
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index 2e11130af9..bdfea41e39 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -14,6 +14,7 @@ use std::{fs, io};
use crypto::Verified;
use crate::git::canonical::Quorum;
+use crate::git::raw::ErrorExt as _;
use crate::identity::crefs::GetCanonicalRefs as _;
use crate::identity::doc::DocError;
use crate::identity::{CanonicalRefs, Doc, DocAt, RepoId};
@@ -817,7 +818,7 @@ impl ReadRepository for Repository {
match result {
Ok(oid) => Ok(oid),
- Err(err) if git::ext::is_not_found_err(&err) => self.canonical_identity_head(),
+ Err(err) if err.is_not_found() => self.canonical_identity_head(),
Err(err) => Err(err.into()),
}
}
diff --git a/crates/radicle/src/storage/refs.rs b/crates/radicle/src/storage/refs.rs
index 74ac32c6f2..9a109d71a2 100644
--- a/crates/radicle/src/storage/refs.rs
+++ b/crates/radicle/src/storage/refs.rs
@@ -14,6 +14,7 @@ use thiserror::Error;
use crate::git;
use crate::git::ext as git_ext;
+use crate::git::raw::ErrorExt as _;
use crate::git::Oid;
use crate::node::device::Device;
use crate::profile::env;
@@ -64,9 +65,8 @@ impl Error {
/// Whether this error is caused by a reference not being found.
pub fn is_not_found(&self) -> bool {
match self {
- Self::GitExt(git::Error::NotFound(_)) => true,
- Self::GitExt(git::Error::Git(e)) if git::is_not_found_err(e) => true,
- Self::Git(e) if git::is_not_found_err(e) => true,
+ Self::GitExt(e) => e.is_not_found(),
+ Self::Git(e) => e.is_not_found(),
_ => false,
}
}
@@ -430,7 +430,7 @@ impl SignedRefsAt {
{
let at = match RefsAt::new(repo, remote) {
Ok(RefsAt { at, .. }) => at,
- Err(e) if git::is_not_found_err(&e) => return Ok(None),
+ Err(e) if e.is_not_found() => return Ok(None),
Err(e) => return Err(e.into()),
};
Self::load_at(at, remote, repo).map(Some)
commit 837f4694df48df27ae92966329b6a26ef9e902fc
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Fri Oct 10 11:22:33 2025 +0200
hook: Add check for `git2` in `radicle`
Extend facilities for `rg` based hook generation to also cover includes
and excludes, then add a hook that helps catch usage of `git2` in the
`radicle` crate, *with the exception of* `…/raw.rs`.
At the same time, these hooks are also enabled to run pre-push, as they
are very quick, just for convenience of Jujutsu users, because Jujutsu
currently does not support Git's commit hooks.
diff --git a/flake.nix b/flake.nix
index 306d71dcfa..becd8b9abc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -176,25 +176,46 @@
// {
pre-commit-check = let
grep = rec {
- words = ["radicle.xyz" "radicle.zulipchat.com"];
- after = map id words;
+ generators = [
+ {
+ word = "radicle.xyz";
+ files = "\\.rs$";
+ excludes = [];
+ }
+ {
+ word = "radicle.zulipchat.com";
+ files = "\\.rs$";
+ excludes = [];
+ }
+ {
+ word = "git2::";
+ files = "^crates/radicle/.*\\.rs$";
+ excludes = ["crates/radicle/src/git/raw.rs"];
+ }
+ ];
+ after = map id generators;
prefix = "grep-";
- id = word: prefix + word;
- hooks = builtins.listToAttrs (map (word: {
+ id = {word, ...}: prefix + word;
+ hooks = builtins.listToAttrs (map (generator: {
# "," is problematic, as this is used to split
# lists of hook names, when skipping, see:
# https://pre-commit.com/#temporarily-disabling-hooks
- name = assert !lib.hasInfix "," word; id word;
- value = hook word;
+ name = assert !lib.hasInfix "," generator.word; id generator;
+ value = hook generator;
})
- words);
- hook = word: {
+ generators);
+ hook = {
+ word,
+ files,
+ excludes,
+ }: {
+ inherit files excludes;
enable = true;
entry = builtins.toString (pkgs.writeShellScript
"grep-${word}"
"! ${lib.getExe pkgs.ripgrep} --context=3 --fixed-strings '${word}' $@");
- name = "Avoid '${word}' in Rust code";
- files = "\\.rs$";
+ name = "Avoid '${word}' in '${files}'";
+ stages = ["pre-commit" "pre-push"];
pass_filenames = true;
};
};
commit 880634acd4d5bf6f0182d5718f2af912cbda17c0
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Sat Oct 4 11:59:26 2025 +0200
radicle/git/raw: Capture all `git2` re-exports
A refactoring internal to the `radicle` crate, with the goal of
making dependency on `git2` clearer and more controlled.
`radicle::git::raw` is changed from a complete re-export of `git2`
to a module that selectively re-exports (many) members of `git2`.
required to build the workspace (potentially breaking dependents
outside the workspace, but given just how many types are
re-exported, this seems unlikely).
In the future, no more `use git2::…` statements should be added
outside of `crates/radicle/src/git/raw.rs`. This is in an effort to
decrease dependence on `git2` in the future.
diff --git a/crates/radicle/src/cob/identity.rs b/crates/radicle/src/cob/identity.rs
index 938936fd51..549a1ae58e 100644
--- a/crates/radicle/src/cob/identity.rs
+++ b/crates/radicle/src/cob/identity.rs
@@ -126,7 +126,7 @@ pub enum ApplyError {
#[error("document does not contain any changes to current identity")]
DocUnchanged,
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] crate::git::raw::Error),
#[error("git: {0}")]
GitExt(#[from] git_ext::Error),
#[error("identity document error: {0}")]
diff --git a/crates/radicle/src/cob/op.rs b/crates/radicle/src/cob/op.rs
index c253e94c79..bd6cd02eb1 100644
--- a/crates/radicle/src/cob/op.rs
+++ b/crates/radicle/src/cob/op.rs
@@ -21,7 +21,7 @@ pub enum OpEncodingError {
#[error("encoding failed: {0}")]
Encoding(#[from] serde_json::Error),
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
}
#[derive(Error, Debug)]
diff --git a/crates/radicle/src/cob/stream.rs b/crates/radicle/src/cob/stream.rs
index 2e0a434565..8772b142ee 100644
--- a/crates/radicle/src/cob/stream.rs
+++ b/crates/radicle/src/cob/stream.rs
@@ -8,6 +8,7 @@ use std::marker::PhantomData;
use serde::Deserialize;
+use crate::git;
use crate::git::Oid;
use super::{ObjectId, Op, TypeName};
@@ -92,7 +93,7 @@ impl HasRoot for CobRange {
///
/// To construct a `Stream`, use [`Stream::new`].
pub struct Stream<'a, A> {
- repo: &'a git2::Repository,
+ repo: &'a git::raw::Repository,
range: CobRange,
typename: TypeName,
marker: PhantomData<A>,
@@ -101,7 +102,7 @@ pub struct Stream<'a, A> {
impl<'a, A> Stream<'a, A> {
/// Construct a new stream providing the underlying `repo`, a [`CobRange`],
/// and the [`TypeName`] of the COB that is being streamed.
- pub fn new(repo: &'a git2::Repository, range: CobRange, typename: TypeName) -> Self {
+ pub fn new(repo: &'a git::raw::Repository, range: CobRange, typename: TypeName) -> Self {
Self {
repo,
range,
@@ -185,7 +186,7 @@ mod tests {
"xyz.radicle.test".parse::<TypeName>().unwrap()
}
- fn gen_ops(repo: &git2::Repository, signer: &MockSigner) -> Vec<cob::Entry> {
+ fn gen_ops(repo: &git::raw::Repository, signer: &MockSigner) -> Vec<cob::Entry> {
// Number of ops
let n = gen::<u8>(1).clamp(1, 10);
let mut entries = Vec::with_capacity(n.into());
@@ -213,7 +214,7 @@ mod tests {
}
fn create_entry(
- repo: &git2::Repository,
+ repo: &git::raw::Repository,
signer: &MockSigner,
contents: NonEmpty<Vec<u8>>,
parent: Option<Oid>,
diff --git a/crates/radicle/src/cob/stream/error.rs b/crates/radicle/src/cob/stream/error.rs
index 3cea5bb5a6..0ac15c71a2 100644
--- a/crates/radicle/src/cob/stream/error.rs
+++ b/crates/radicle/src/cob/stream/error.rs
@@ -22,7 +22,7 @@ impl Stream {
#[derive(Debug, Error)]
pub enum Ops {
#[error("failed to get a commit while iterating over stream: {source}")]
- Commit { source: git2::Error },
+ Commit { source: crate::git::raw::Error },
#[error("failed to load COB operation: {source}")]
Load { source: op::LoadError },
#[error("failed to load COB manifest: {source}")]
diff --git a/crates/radicle/src/cob/stream/iter.rs b/crates/radicle/src/cob/stream/iter.rs
index 6f986e4c8c..66d3d7ae74 100644
--- a/crates/radicle/src/cob/stream/iter.rs
+++ b/crates/radicle/src/cob/stream/iter.rs
@@ -39,7 +39,7 @@ impl From<PatternString> for Until {
/// from.
pub(super) struct WalkIter<'a> {
/// Git repository for looking up the commit object during the revwalk.
- repo: &'a git2::Repository,
+ repo: &'a git::raw::Repository,
/// The root commit that is being walked from.
///
/// N.b. This is required since ranges are non-inclusive in Git, and if the
@@ -47,7 +47,7 @@ pub(super) struct WalkIter<'a> {
/// error.
from: Option<Oid>,
/// The revwalk that is being iterated over.
- inner: git2::Revwalk<'a>,
+ inner: git::raw::Revwalk<'a>,
}
impl From<CobRange> for Walk {
@@ -76,10 +76,10 @@ impl Walk {
}
/// Get the iterator for the walk.
- pub(super) fn iter(self, repo: &git2::Repository) -> Result<WalkIter<'_>, git2::Error> {
+ pub(super) fn iter(self, repo: &git::raw::Repository) -> Result<WalkIter<'_>, git::raw::Error> {
let mut walk = repo.revwalk()?;
// N.b. ensure that we start from the `self.from` commit.
- walk.set_sorting(git2::Sort::TOPOLOGICAL.union(git2::Sort::REVERSE))?;
+ walk.set_sorting(git::raw::Sort::TOPOLOGICAL.union(git::raw::Sort::REVERSE))?;
match self.until {
Until::Tip(tip) => walk.push_range(&format!("{}..{}", self.from, tip))?,
Until::Glob(glob) => {
@@ -97,7 +97,7 @@ impl Walk {
}
impl<'a> Iterator for WalkIter<'a> {
- type Item = Result<git2::Commit<'a>, git2::Error>;
+ type Item = Result<git::raw::Commit<'a>, git::raw::Error>;
fn next(&mut self) -> Option<Self::Item> {
// N.b. ensure that we start using the `from` commit and use the revwalk
diff --git a/crates/radicle/src/git.rs b/crates/radicle/src/git.rs
index 9c1769dc4b..9b70c81d0d 100644
--- a/crates/radicle/src/git.rs
+++ b/crates/radicle/src/git.rs
@@ -1,4 +1,5 @@
pub mod canonical;
+pub mod raw;
use std::io;
use std::path::Path;
@@ -20,7 +21,6 @@ pub use ext::is_not_found_err;
pub use ext::Error;
pub use ext::NotFound;
pub use ext::Oid;
-pub use git2 as raw;
pub use git_ext::ref_format as fmt;
pub use git_ext::ref_format::{
component, lit, name, qualified, refname, refspec,
@@ -173,13 +173,13 @@ pub enum RefError {
err: Box<dyn std::error::Error + Send + Sync + 'static>,
},
#[error(transparent)]
- Other(#[from] git2::Error),
+ Other(#[from] raw::Error),
}
#[derive(thiserror::Error, Debug)]
pub enum ListRefsError {
#[error("git error: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] raw::Error),
#[error("invalid ref: {0}")]
InvalidRef(#[from] RefError),
}
@@ -189,7 +189,7 @@ pub mod refs {
use radicle_cob as cob;
/// Try to get a qualified reference from a generic reference.
- pub fn qualified_from<'a>(r: &'a git2::Reference) -> Result<(Qualified<'a>, Oid), RefError> {
+ pub fn qualified_from<'a>(r: &'a raw::Reference) -> Result<(Qualified<'a>, Oid), RefError> {
let name = r.name().ok_or(RefError::InvalidName)?;
let refstr = RefStr::try_from_str(name)?;
let target = r.resolve()?.target().ok_or(RefError::NoTarget)?;
@@ -462,9 +462,9 @@ pub mod refs {
pub fn remote_refs(url: &Url) -> Result<RandomMap<RemoteId, Refs>, ListRefsError> {
let url = url.to_string();
let mut remotes = RandomMap::default();
- let mut remote = git2::Remote::create_detached(url)?;
+ let mut remote = raw::Remote::create_detached(url)?;
- remote.connect(git2::Direction::Fetch)?;
+ remote.connect(raw::Direction::Fetch)?;
let refs = remote.list()?;
for r in refs {
@@ -557,9 +557,9 @@ where
/// Create an initial empty commit.
pub fn initial_commit<'a>(
- repo: &'a git2::Repository,
- sig: &git2::Signature,
-) -> Result<git2::Commit<'a>, git2::Error> {
+ repo: &'a raw::Repository,
+ sig: &raw::Signature,
+) -> Result<raw::Commit<'a>, raw::Error> {
let tree_id = repo.index()?.write_tree()?;
let tree = repo.find_tree(tree_id)?;
let oid = repo.commit(None, sig, sig, "Initial commit", &tree, &[])?;
@@ -570,13 +570,13 @@ pub fn initial_commit<'a>(
/// Create a commit and update the given ref to it.
pub fn commit<'a>(
- repo: &'a git2::Repository,
- parent: &'a git2::Commit,
+ repo: &'a raw::Repository,
+ parent: &'a raw::Commit,
target: &RefStr,
message: &str,
- sig: &git2::Signature,
- tree: &git2::Tree,
-) -> Result<git2::Commit<'a>, git2::Error> {
+ sig: &raw::Signature,
+ tree: &raw::Tree,
+) -> Result<raw::Commit<'a>, raw::Error> {
let oid = repo.commit(Some(target.as_str()), sig, sig, message, tree, &[parent])?;
let commit = repo.find_commit(oid)?;
@@ -585,12 +585,12 @@ pub fn commit<'a>(
/// Create an empty commit on top of the parent.
pub fn empty_commit<'a>(
- repo: &'a git2::Repository,
- parent: &'a git2::Commit,
+ repo: &'a raw::Repository,
+ parent: &'a raw::Commit,
target: &RefStr,
message: &str,
- sig: &git2::Signature,
-) -> Result<git2::Commit<'a>, git2::Error> {
+ sig: &raw::Signature,
+) -> Result<raw::Commit<'a>, raw::Error> {
let tree = parent.tree()?;
let oid = repo.commit(Some(target.as_str()), sig, sig, message, &tree, &[parent])?;
let commit = repo.find_commit(oid)?;
@@ -599,7 +599,7 @@ pub fn empty_commit<'a>(
}
/// Get the repository head.
-pub fn head(repo: &git2::Repository) -> Result<git2::Commit, git2::Error> {
+pub fn head(repo: &raw::Repository) -> Result<raw::Commit, raw::Error> {
let head = repo.head()?.peel_to_commit()?;
Ok(head)
@@ -609,8 +609,8 @@ pub fn head(repo: &git2::Repository) -> Result<git2::Commit, git2::Error> {
pub fn write_tree<'r>(
path: &Path,
bytes: &[u8],
- repo: &'r git2::Repository,
-) -> Result<git2::Tree<'r>, Error> {
+ repo: &'r raw::Repository,
+) -> Result<raw::Tree<'r>, Error> {
let blob_id = repo.blob(bytes)?;
let mut builder = repo.treebuilder(None)?;
builder.insert(path, blob_id, 0o100_644)?;
@@ -624,7 +624,7 @@ pub fn write_tree<'r>(
/// Configure a radicle repository.
///
/// * Sets `push.default = upstream`.
-pub fn configure_repository(repo: &git2::Repository) -> Result<(), git2::Error> {
+pub fn configure_repository(repo: &raw::Repository) -> Result<(), raw::Error> {
let mut cfg = repo.config()?;
cfg.set_str("push.default", "upstream")?;
@@ -652,11 +652,11 @@ pub fn configure_repository(repo: &git2::Repository) -> Result<(), git2::Error>
/// 2. `tagOpt = --no-tags` to ensure that tags are not fetched and stored
/// under `refs/tags`, again, because these are fetched by the `rad` remote.
pub fn configure_remote<'r>(
- repo: &'r git2::Repository,
+ repo: &'r raw::Repository,
name: &str,
fetch: &Url,
push: &Url,
-) -> Result<git2::Remote<'r>, git2::Error> {
+) -> Result<raw::Remote<'r>, raw::Error> {
let fetchspec = format!("+refs/heads/*:refs/remotes/{name}/*");
let remote = repo.remote_with_fetch(name, fetch.to_string().as_str(), &fetchspec)?;
@@ -679,14 +679,14 @@ pub fn configure_remote<'r>(
}
/// Fetch from the given `remote`.
-pub fn fetch(repo: &git2::Repository, remote: &str) -> Result<(), git2::Error> {
+pub fn fetch(repo: &raw::Repository, remote: &str) -> Result<(), raw::Error> {
repo.find_remote(remote)?.fetch::<&str>(
&[],
Some(
- git2::FetchOptions::new()
+ raw::FetchOptions::new()
.update_fetchhead(false)
- .prune(git2::FetchPrune::On)
- .download_tags(git2::AutotagOption::None),
+ .prune(raw::FetchPrune::On)
+ .download_tags(raw::AutotagOption::None),
),
None,
)
@@ -694,10 +694,10 @@ pub fn fetch(repo: &git2::Repository, remote: &str) -> Result<(), git2::Error> {
/// Push `refspecs` to the given `remote` using the provided `namespace`.
pub fn push<'a>(
- repo: &git2::Repository,
+ repo: &raw::Repository,
remote: &str,
refspecs: impl IntoIterator<Item = (&'a Qualified<'a>, &'a Qualified<'a>)>,
-) -> Result<(), git2::Error> {
+) -> Result<(), raw::Error> {
let refspecs = refspecs
.into_iter()
.map(|(src, dst)| format!("{src}:{dst}"));
@@ -719,11 +719,11 @@ pub fn push<'a>(
/// merge = refs/heads/main
/// ```
pub fn set_upstream(
- repo: &git2::Repository,
+ repo: &raw::Repository,
remote: impl AsRef<str>,
branch: impl AsRef<str>,
merge: impl AsRef<str>,
-) -> Result<(), git2::Error> {
+) -> Result<(), raw::Error> {
let remote = remote.as_ref();
let branch = branch.as_ref();
let merge = merge.as_ref();
@@ -752,14 +752,14 @@ pub fn set_upstream(
Ok(())
}
-pub fn init_default_branch(repo: &git2::Repository) -> Result<Option<String>, git2::Error> {
+pub fn init_default_branch(repo: &raw::Repository) -> Result<Option<String>, raw::Error> {
let config = repo.config().and_then(|mut c| c.snapshot())?;
let default_branch = config.get_str("init.defaultbranch")?;
- let branch = repo.find_branch(default_branch, git2::BranchType::Local)?;
+ let branch = repo.find_branch(default_branch, raw::BranchType::Local)?;
Ok(branch.into_reference().shorthand().map(ToOwned::to_owned))
}
-pub fn head_refname(repo: &git2::Repository) -> Result<Option<String>, git2::Error> {
+pub fn head_refname(repo: &raw::Repository) -> Result<Option<String>, raw::Error> {
let head = repo.head()?;
match head.shorthand() {
Some("HEAD") => Ok(None),
diff --git a/crates/radicle/src/git/canonical/effects.rs b/crates/radicle/src/git/canonical/effects.rs
index c985f7c68b..65c95beae3 100644
--- a/crates/radicle/src/git/canonical/effects.rs
+++ b/crates/radicle/src/git/canonical/effects.rs
@@ -167,7 +167,7 @@ pub struct GraphDescendant {
// `git2` implementations of the above effects
// ===========================================
-impl FindMergeBase for git2::Repository {
+impl FindMergeBase for git::raw::Repository {
fn merge_base(&self, a: Oid, b: Oid) -> Result<MergeBase, MergeBaseError> {
self.merge_base(*a, *b)
.map_err(|err| MergeBaseError {
@@ -183,7 +183,7 @@ impl FindMergeBase for git2::Repository {
}
}
-impl Ancestry for git2::Repository {
+impl Ancestry for git::raw::Repository {
fn graph_ahead_behind(
&self,
commit: Oid,
@@ -199,7 +199,7 @@ impl Ancestry for git2::Repository {
}
}
-impl FindObjects for git2::Repository {
+impl FindObjects for git::raw::Repository {
fn find_objects<'a, 'b, I>(
&self,
refname: &Qualified,
diff --git a/crates/radicle/src/git/canonical/rules.rs b/crates/radicle/src/git/canonical/rules.rs
index ae0a2ed3cd..abfbb12a22 100644
--- a/crates/radicle/src/git/canonical/rules.rs
+++ b/crates/radicle/src/git/canonical/rules.rs
@@ -780,7 +780,7 @@ mod tests {
doc.delegates().clone()
}
- fn tag(name: RefString, head: git2::Oid, repo: &git2::Repository) -> git::Oid {
+ fn tag(name: RefString, head: git::raw::Oid, repo: &git::raw::Repository) -> git::Oid {
let commit = fixtures::commit(name.as_str(), &[head], repo);
let target = repo.find_object(*commit, None).unwrap();
let tagger = repo.signature().unwrap();
diff --git a/crates/radicle/src/git/raw.rs b/crates/radicle/src/git/raw.rs
new file mode 100644
index 0000000000..3a9c0522e9
--- /dev/null
+++ b/crates/radicle/src/git/raw.rs
@@ -0,0 +1,34 @@
+//! This module re-exports selected items from the [`git2`] crate and provides
+//! an extension trait for its [`git2::Error`] type to more conveniently handle
+//! errors associated with the code [`git2::ErrorCode::NotFound`].
+//!
+// Re-exports created by manually scanning the `heartwood` workspace on 2025-10-04.
+
+// Re-exports that are only used within this crate.
+pub(crate) use git2::{
+ message_trailers_strs, AutotagOption, Blob, Config, FetchOptions, FetchPrune, Object,
+ RemoteCallbacks, Revwalk, Sort,
+};
+
+// Re-exports that are used by other crates in the workspace, including this crate.
+pub use git2::{
+ Branch, BranchType, Commit, Direction, Error, ErrorClass, ErrorCode, FileMode, ObjectType, Oid,
+ Reference, Remote, Repository, RepositoryInitOptions, RepositoryOpenFlags, Signature, Time,
+ Tree,
+};
+
+// Re-exports that are used by other crates in the workspace, but *not* this crate.
+pub use git2::{
+ AnnotatedCommit, Diff, DiffFindOptions, DiffOptions, DiffStats, MergeAnalysis, MergeOptions,
+};
+
+// Re-exports for `radicle-cli`.
+pub mod build {
+ pub use git2::build::CheckoutBuilder;
+}
+
+pub(crate) mod transport {
+ pub use git2::transport::{
+ register, Service, SmartSubtransport, SmartSubtransportStream, Transport,
+ };
+}
diff --git a/crates/radicle/src/identity/doc.rs b/crates/radicle/src/identity/doc.rs
index db27c47d69..305766c248 100644
--- a/crates/radicle/src/identity/doc.rs
+++ b/crates/radicle/src/identity/doc.rs
@@ -54,7 +54,7 @@ pub enum DocError {
#[error("git: {0}")]
GitExt(#[from] git::Error),
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error("missing identity document")]
Missing,
}
@@ -687,7 +687,7 @@ impl Doc {
}
/// Construct a [`Doc`] contained in the provided Git blob.
- pub fn from_blob(blob: &git2::Blob) -> Result<Self, DocError> {
+ pub fn from_blob(blob: &git::raw::Blob) -> Result<Self, DocError> {
RawDoc::from_json(blob.content())?.verified()
}
@@ -830,7 +830,7 @@ impl Doc {
pub(crate) fn blob_at<R: ReadRepository>(
commit: Oid,
repo: &R,
- ) -> Result<git2::Blob, DocError> {
+ ) -> Result<git::raw::Blob, DocError> {
let path = Path::new("embeds").join(*PATH);
repo.blob_at(commit, path.as_path()).map_err(DocError::from)
}
@@ -843,7 +843,7 @@ impl Doc {
serde_json::Serializer::with_formatter(&mut buf, CanonicalFormatter::new());
self.serialize(&mut serializer)?;
- let oid = git2::Oid::hash_object(git2::ObjectType::Blob, &buf)?;
+ let oid = git::raw::Oid::hash_object(git::raw::ObjectType::Blob, &buf)?;
Ok((oid.into(), buf))
}
@@ -1157,7 +1157,7 @@ mod test {
let remote = arbitrary::gen::<RemoteId>(1);
let proj = arbitrary::gen::<RepoId>(1);
let repo = storage.create(proj).unwrap();
- let oid = git2::Oid::from_str("2d52a53ce5e4f141148a5f770cfd3ead2d6a45b8").unwrap();
+ let oid = git::raw::Oid::from_str("2d52a53ce5e4f141148a5f770cfd3ead2d6a45b8").unwrap();
let err = repo.identity_head_of(&remote).unwrap_err();
matches!(err, git::ext::Error::NotFound(_));
diff --git a/crates/radicle/src/identity/doc/id.rs b/crates/radicle/src/identity/doc/id.rs
index 237d5cdd9e..46eb0c87f9 100644
--- a/crates/radicle/src/identity/doc/id.rs
+++ b/crates/radicle/src/identity/doc/id.rs
@@ -13,7 +13,7 @@ pub const RAD_PREFIX: &str = "rad:";
#[derive(Error, Debug)]
pub enum IdError {
#[error("invalid git object id: {0}")]
- InvalidOid(#[from] git2::Error),
+ InvalidOid(#[from] git::raw::Error),
#[error(transparent)]
Multibase(#[from] multibase::Error),
}
@@ -102,8 +102,8 @@ impl From<git::Oid> for RepoId {
}
}
-impl From<git2::Oid> for RepoId {
- fn from(oid: git2::Oid) -> Self {
+impl From<git::raw::Oid> for RepoId {
+ fn from(oid: git::raw::Oid) -> Self {
Self(oid.into())
}
}
diff --git a/crates/radicle/src/profile.rs b/crates/radicle/src/profile.rs
index 739a6f420d..cf3925c456 100644
--- a/crates/radicle/src/profile.rs
+++ b/crates/radicle/src/profile.rs
@@ -88,7 +88,7 @@ pub mod env {
/// Get the configured pager program from the environment.
pub fn pager() -> Option<String> {
- if let Ok(cfg) = git2::Config::open_default() {
+ if let Ok(cfg) = crate::git::raw::Config::open_default() {
if let Ok(pager) = cfg.get_string("core.pager") {
return Some(pager);
}
diff --git a/crates/radicle/src/rad.rs b/crates/radicle/src/rad.rs
index 8497f1dd89..505a0d642e 100644
--- a/crates/radicle/src/rad.rs
+++ b/crates/radicle/src/rad.rs
@@ -39,7 +39,7 @@ pub enum InitError {
#[error("project payload: {0}")]
ProjectPayload(String),
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error("i/o: {0}")]
Io(#[from] io::Error),
#[error("storage: {0}")]
@@ -48,7 +48,7 @@ pub enum InitError {
/// Initialize a new radicle project from a git repository.
pub fn init<G, S>(
- repo: &git2::Repository,
+ repo: &git::raw::Repository,
name: ProjectName,
description: &str,
default_branch: BranchName,
@@ -96,7 +96,7 @@ where
}
fn init_configure<G>(
- repo: &git2::Repository,
+ repo: &git::raw::Repository,
stored: &Repository,
default_branch: &BranchName,
url: &git::Url,
@@ -152,7 +152,7 @@ where
#[derive(Error, Debug)]
pub enum ForkError {
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error("storage: {0}")]
Storage(#[from] storage::Error),
#[error("payload: {0}")]
@@ -236,7 +236,7 @@ pub enum CheckoutError {
stdout: String,
},
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error("payload: {0}")]
Payload(#[from] doc::PayloadError),
#[error("repository `{0}` was not found in storage")]
@@ -253,19 +253,19 @@ pub fn checkout<P: AsRef<Path>, S: storage::ReadStorage>(
path: P,
storage: &S,
bare: bool,
-) -> Result<git2::Repository, CheckoutError> {
+) -> Result<git::raw::Repository, CheckoutError> {
// TODO: Decide on whether we can use `clone_local`
// TODO: Look into sharing object databases.
let doc = storage.get(proj)?.ok_or(CheckoutError::NotFound(proj))?;
let project = doc.project()?;
- let mut opts = git2::RepositoryInitOptions::new();
+ let mut opts = git::raw::RepositoryInitOptions::new();
opts.no_reinit(true)
.external_template(false)
.description(project.description())
.bare(bare);
- let repo = git2::Repository::init_opts(path.as_ref(), &opts)?;
+ let repo = git::raw::Repository::init_opts(path.as_ref(), &opts)?;
let url = git::Url::from(proj);
// Configure repository for radicle.
@@ -335,7 +335,7 @@ pub fn checkout<P: AsRef<Path>, S: storage::ReadStorage>(
#[derive(Error, Debug)]
pub enum RemoteError {
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error("invalid remote url: {0}")]
Url(#[from] transport::local::UrlError),
#[error("invalid utf-8 string")]
@@ -347,9 +347,9 @@ pub enum RemoteError {
}
/// Get the radicle ("rad") remote of a repository, and return the associated project id.
-pub fn remote(repo: &git2::Repository) -> Result<(git2::Remote<'_>, RepoId), RemoteError> {
+pub fn remote(repo: &git::raw::Repository) -> Result<(git::raw::Remote<'_>, RepoId), RemoteError> {
let remote = repo.find_remote(&REMOTE_NAME).map_err(|e| {
- if e.code() == git2::ErrorCode::NotFound {
+ if e.code() == git::raw::ErrorCode::NotFound {
RemoteError::NotFound(REMOTE_NAME.to_string())
} else {
RemoteError::from(e)
@@ -362,9 +362,9 @@ pub fn remote(repo: &git2::Repository) -> Result<(git2::Remote<'_>, RepoId), Rem
}
/// Delete the radicle ("rad") remote of a repository.
-pub fn remove_remote(repo: &git2::Repository) -> Result<(), RemoteError> {
+pub fn remove_remote(repo: &git::raw::Repository) -> Result<(), RemoteError> {
repo.remote_delete(&REMOTE_NAME).map_err(|e| {
- if e.code() == git2::ErrorCode::NotFound {
+ if e.code() == git::raw::ErrorCode::NotFound {
RemoteError::NotFound(REMOTE_NAME.to_string())
} else {
RemoteError::from(e)
@@ -380,7 +380,7 @@ pub enum CwdError {
#[error("Detection failed (git: '{git}', jj: '{jj}')")]
Detection {
- git: git2::Error,
+ git: git::raw::Error,
jj: JujutsuGitRootError,
},
}
@@ -395,7 +395,7 @@ pub enum CwdError {
/// This function should only perform read operations since we do not
/// want to modify the wrong repository in the case that it found a
/// Git repository that is not a Radicle repository.
-pub fn cwd() -> Result<(git2::Repository, RepoId), CwdError> {
+pub fn cwd() -> Result<(git::raw::Repository, RepoId), CwdError> {
let repo =
repo().or_else(|git| repo_jj_git_root().map_err(|jj| CwdError::Detection { git, jj }))?;
@@ -404,23 +404,23 @@ pub fn cwd() -> Result<(git2::Repository, RepoId), CwdError> {
}
/// Get the repository of project in specified directory
-pub fn at(path: impl AsRef<Path>) -> Result<(git2::Repository, RepoId), RemoteError> {
- let repo = git2::Repository::open(path)?;
+pub fn at(path: impl AsRef<Path>) -> Result<(git::raw::Repository, RepoId), RemoteError> {
+ let repo = git::raw::Repository::open(path)?;
let (_, id) = remote(&repo)?;
Ok((repo, id))
}
/// Get the current Git repository.
-pub fn repo() -> Result<git2::Repository, git2::Error> {
- let mut flags = git2::RepositoryOpenFlags::empty();
+pub fn repo() -> Result<git::raw::Repository, git::raw::Error> {
+ let mut flags = git::raw::RepositoryOpenFlags::empty();
// Allow to search upwards.
- flags.set(git2::RepositoryOpenFlags::NO_SEARCH, false);
+ flags.set(git::raw::RepositoryOpenFlags::NO_SEARCH, false);
// Allow to use `GIT_DIR` env.
- flags.set(git2::RepositoryOpenFlags::FROM_ENV, true);
+ flags.set(git::raw::RepositoryOpenFlags::FROM_ENV, true);
let ceilings: &[&str] = &[];
- let repo = git2::Repository::open_ext(Path::new("."), flags, ceilings)?;
+ let repo = git::raw::Repository::open_ext(Path::new("."), flags, ceilings)?;
Ok(repo)
}
@@ -428,7 +428,7 @@ pub fn repo() -> Result<git2::Repository, git2::Error> {
#[derive(Error, Debug)]
pub enum JujutsuGitRootError {
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error("i/o: {0}")]
Io(#[from] io::Error),
@@ -438,7 +438,7 @@ pub enum JujutsuGitRootError {
}
/// Get the Git repo underlying the current Jujutsu repository.
-pub fn repo_jj_git_root() -> Result<git2::Repository, JujutsuGitRootError> {
+pub fn repo_jj_git_root() -> Result<git::raw::Repository, JujutsuGitRootError> {
let output = std::process::Command::new("jj")
.args(["git", "root"])
.output()?;
@@ -450,7 +450,7 @@ pub fn repo_jj_git_root() -> Result<git2::Repository, JujutsuGitRootError> {
}
let path = std::path::PathBuf::from(String::from_utf8_lossy(&output.stdout).to_string().trim());
- Ok(git2::Repository::open(path)?)
+ Ok(git::raw::Repository::open(path)?)
}
/// Setup patch upstream branch such that `git push` updates the patch.
diff --git a/crates/radicle/src/schemars_ext.rs b/crates/radicle/src/schemars_ext.rs
index 9157c7297e..07b125f2b8 100644
--- a/crates/radicle/src/schemars_ext.rs
+++ b/crates/radicle/src/schemars_ext.rs
@@ -94,12 +94,12 @@ pub(crate) mod git {
/// See [`crate::git::Oid`]
/// See [`::git_ext::Oid`]
- /// See [`::git2::Oid`]
+ /// See [`::git::raw::Oid`]
///
/// A Git Object Identifier in hexadecimal encoding.
#[derive(JsonSchema)]
#[schemars(
- remote = "git2::Oid",
+ remote = "git::raw::Oid",
description = "A Git Object Identifier (SHA-1 or SHA-256 hash) in hexadecimal encoding."
)]
pub(crate) struct Oid(
diff --git a/crates/radicle/src/storage.rs b/crates/radicle/src/storage.rs
index 92892959e5..7fbe5e13a3 100644
--- a/crates/radicle/src/storage.rs
+++ b/crates/radicle/src/storage.rs
@@ -153,7 +153,7 @@ pub enum Error {
#[error(transparent)]
Refs(#[from] refs::Error),
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error("git: {0}")]
Ext(#[from] git::ext::Error),
#[error("invalid repository identifier {0:?}")]
@@ -179,7 +179,7 @@ impl Error {
#[allow(clippy::large_enum_variant)]
pub enum FetchError {
#[error("git: {0}")]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error("i/o: {0}")]
Io(#[from] io::Error),
#[error(transparent)]
@@ -503,16 +503,20 @@ pub trait ReadRepository: Sized + ValidateRepository {
fn id(&self) -> RepoId;
/// Returns `true` if there are no references in the repository.
- fn is_empty(&self) -> Result<bool, git2::Error>;
+ fn is_empty(&self) -> Result<bool, git::raw::Error>;
/// The [`Path`] to the git repository.
fn path(&self) -> &Path;
/// Get a blob in this repository at the given commit and path.
- fn blob_at<P: AsRef<Path>>(&self, commit: Oid, path: P) -> Result<git2::Blob, git_ext::Error>;
+ fn blob_at<P: AsRef<Path>>(
+ &self,
+ commit: Oid,
+ path: P,
+ ) -> Result<git::raw::Blob, git_ext::Error>;
/// Get a blob in this repository, given its id.
- fn blob(&self, oid: Oid) -> Result<git2::Blob, git_ext::Error>;
+ fn blob(&self, oid: Oid) -> Result<git::raw::Blob, git_ext::Error>;
/// Get the head of this repository.
///
@@ -572,18 +576,18 @@ pub trait ReadRepository: Sized + ValidateRepository {
&self,
remote: &RemoteId,
reference: &Qualified,
- ) -> Result<git2::Reference, git_ext::Error>;
+ ) -> Result<git::raw::Reference, git_ext::Error>;
- /// Get the [`git2::Commit`] found using its `oid`.
+ /// Get the [`git::raw::Commit`] found using its `oid`.
///
/// Returns `Err` if the commit did not exist.
- fn commit(&self, oid: Oid) -> Result<git2::Commit, git::ext::Error>;
+ fn commit(&self, oid: Oid) -> Result<git::raw::Commit, git::ext::Error>;
/// Perform a revision walk of a commit history starting from the given head.
- fn revwalk(&self, head: Oid) -> Result<git2::Revwalk, git2::Error>;
+ fn revwalk(&self, head: Oid) -> Result<git::raw::Revwalk, git::raw::Error>;
/// Check if the underlying ODB contains the given `oid`.
- fn contains(&self, oid: Oid) -> Result<bool, git2::Error>;
+ fn contains(&self, oid: Oid) -> Result<bool, git::raw::Error>;
/// Check whether the given commit is an ancestor of another commit.
fn is_ancestor_of(&self, ancestor: Oid, head: Oid) -> Result<bool, git::ext::Error>;
@@ -692,7 +696,7 @@ pub trait WriteRepository: ReadRepository + SignRepository {
/// Set the user info of the Git repository.
fn set_user(&self, info: &UserInfo) -> Result<(), Error>;
/// Get the underlying git repository.
- fn raw(&self) -> &git2::Repository;
+ fn raw(&self) -> &git::raw::Repository;
}
/// Allows signing refs.
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index 00e04c9fcd..2e11130af9 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -56,10 +56,10 @@ pub struct Ref {
pub namespace: Option<RemoteId>,
}
-impl TryFrom<git2::Reference<'_>> for Ref {
+impl TryFrom<git::raw::Reference<'_>> for Ref {
type Error = RefError;
- fn try_from(r: git2::Reference) -> Result<Self, Self::Error> {
+ fn try_from(r: git::raw::Reference) -> Result<Self, Self::Error> {
let name = r.name().ok_or(RefError::InvalidName)?;
let (namespace, name) = match git::parse_ref_namespaced::<RemoteId>(name) {
Ok((namespace, refname)) => (Some(namespace), refname.to_ref_string()),
@@ -279,7 +279,7 @@ pub struct Repository {
/// The repository identifier (RID).
pub id: RepoId,
/// The backing Git repository.
- pub backend: git2::Repository,
+ pub backend: git::raw::Repository,
}
impl AsRef<Repository> for Repository {
@@ -380,12 +380,12 @@ pub enum Validation {
impl Repository {
/// Open an existing repository.
pub fn open<P: AsRef<Path>>(path: P, id: RepoId) -> Result<Self, RepositoryError> {
- let backend = git2::Repository::open_ext(
+ let backend = git::raw::Repository::open_ext(
path.as_ref(),
- git2::RepositoryOpenFlags::empty()
- | git2::RepositoryOpenFlags::BARE
- | git2::RepositoryOpenFlags::NO_DOTGIT
- | git2::RepositoryOpenFlags::NO_SEARCH,
+ git::raw::RepositoryOpenFlags::empty()
+ | git::raw::RepositoryOpenFlags::BARE
+ | git::raw::RepositoryOpenFlags::NO_DOTGIT
+ | git::raw::RepositoryOpenFlags::NO_SEARCH,
&[] as &[&std::ffi::OsStr],
)?;
@@ -394,9 +394,9 @@ impl Repository {
/// Create a new repository.
pub fn create<P: AsRef<Path>>(path: P, id: RepoId, info: &UserInfo) -> Result<Self, Error> {
- let backend = git2::Repository::init_opts(
+ let backend = git::raw::Repository::init_opts(
&path,
- git2::RepositoryInitOptions::new()
+ git::raw::RepositoryInitOptions::new()
.bare(true)
.no_reinit(true)
.external_template(false),
@@ -506,7 +506,7 @@ impl Repository {
/// Iterate over all references.
pub fn references(
&self,
- ) -> Result<impl Iterator<Item = Result<Ref, refs::Error>> + '_, git2::Error> {
+ ) -> Result<impl Iterator<Item = Result<Ref, refs::Error>> + '_, git::raw::Error> {
let refs = self
.backend
.references()?
@@ -539,7 +539,7 @@ impl Repository {
pub fn remote_ids(
&self,
- ) -> Result<impl Iterator<Item = Result<RemoteId, refs::Error>> + '_, git2::Error> {
+ ) -> Result<impl Iterator<Item = Result<RemoteId, refs::Error>> + '_, git::raw::Error> {
let iter = self.backend.references_glob(SIGREFS_GLOB.as_str())?.map(
|reference| -> Result<RemoteId, refs::Error> {
let r = reference?;
@@ -556,7 +556,7 @@ impl Repository {
&self,
) -> Result<
impl Iterator<Item = Result<(RemoteId, Remote<Verified>), refs::Error>> + '_,
- git2::Error,
+ git::raw::Error,
> {
let remotes =
self.backend
@@ -652,7 +652,7 @@ impl ReadRepository for Repository {
self.id
}
- fn is_empty(&self) -> Result<bool, git2::Error> {
+ fn is_empty(&self) -> Result<bool, git::raw::Error> {
Ok(self.remotes()?.next().is_none())
}
@@ -660,7 +660,7 @@ impl ReadRepository for Repository {
self.backend.path()
}
- fn blob_at<P: AsRef<Path>>(&self, commit: Oid, path: P) -> Result<git2::Blob, git::Error> {
+ fn blob_at<P: AsRef<Path>>(&self, commit: Oid, path: P) -> Result<git::raw::Blob, git::Error> {
let commit = self.backend.find_commit(*commit)?;
let tree = commit.tree()?;
let entry = tree.get_path(path.as_ref())?;
@@ -674,7 +674,7 @@ impl ReadRepository for Repository {
Ok(blob)
}
- fn blob(&self, oid: Oid) -> Result<git2::Blob, git::Error> {
+ fn blob(&self, oid: Oid) -> Result<git::raw::Blob, git::Error> {
self.backend.find_blob(oid.into()).map_err(git::Error::from)
}
@@ -682,7 +682,7 @@ impl ReadRepository for Repository {
&self,
remote: &RemoteId,
name: &git::Qualified,
- ) -> Result<git2::Reference, git::Error> {
+ ) -> Result<git::raw::Reference, git::Error> {
let name = name.with_namespace(remote.into());
self.backend.find_reference(&name).map_err(git::Error::from)
}
@@ -698,13 +698,13 @@ impl ReadRepository for Repository {
Ok(oid.into())
}
- fn commit(&self, oid: Oid) -> Result<git2::Commit, git::Error> {
+ fn commit(&self, oid: Oid) -> Result<git::raw::Commit, git::Error> {
self.backend
.find_commit(oid.into())
.map_err(git::Error::from)
}
- fn revwalk(&self, head: Oid) -> Result<git2::Revwalk, git2::Error> {
+ fn revwalk(&self, head: Oid) -> Result<git::raw::Revwalk, git::raw::Error> {
let mut revwalk = self.backend.revwalk()?;
revwalk.push(head.into())?;
@@ -936,7 +936,7 @@ impl WriteRepository for Repository {
Ok(())
}
- fn raw(&self) -> &git2::Repository {
+ fn raw(&self) -> &git::raw::Repository {
&self.backend
}
}
@@ -986,7 +986,7 @@ pub mod trailers {
pub fn parse_signatures(msg: &str) -> Result<HashMap<PublicKey, Signature>, Error> {
let trailers =
- git2::message_trailers_strs(msg).map_err(|_| Error::SignatureTrailerFormat)?;
+ git::raw::message_trailers_strs(msg).map_err(|_| Error::SignatureTrailerFormat)?;
let mut signatures = HashMap::with_capacity(trailers.len());
for (key, val) in trailers.iter() {
@@ -1097,7 +1097,7 @@ mod tests {
fixtures::project(tmp.path().join("project"), &storage, &signer).unwrap();
let stored = storage.repository(rid).unwrap();
let sig =
- git2::Signature::now(&alice.to_string(), "anonymous@radicle.example.com").unwrap();
+ git::raw::Signature::now(&alice.to_string(), "anonymous@radicle.example.com").unwrap();
let head = working.head().unwrap().peel_to_commit().unwrap();
git::commit(
diff --git a/crates/radicle/src/storage/git/cob.rs b/crates/radicle/src/storage/git/cob.rs
index 6f8fee8840..f35a450972 100644
--- a/crates/radicle/src/storage/git/cob.rs
+++ b/crates/radicle/src/storage/git/cob.rs
@@ -33,7 +33,7 @@ pub enum ObjectsError {
#[error(transparent)]
Convert(#[from] cob::object::storage::convert::Error),
#[error(transparent)]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error(transparent)]
GitExt(#[from] git_ext::Error),
}
@@ -43,7 +43,7 @@ pub enum TypesError {
#[error(transparent)]
Convert(#[from] cob::object::storage::convert::Error),
#[error(transparent)]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error(transparent)]
ParseKey(#[from] crypto::Error),
#[error(transparent)]
@@ -55,12 +55,12 @@ pub enum TypesError {
impl cob::Store for Repository {}
impl change::Storage for Repository {
- type StoreError = <git2::Repository as change::Storage>::StoreError;
- type LoadError = <git2::Repository as change::Storage>::LoadError;
+ type StoreError = <git::raw::Repository as change::Storage>::StoreError;
+ type LoadError = <git::raw::Repository as change::Storage>::LoadError;
- type ObjectId = <git2::Repository as change::Storage>::ObjectId;
- type Parent = <git2::Repository as change::Storage>::Parent;
- type Signatures = <git2::Repository as change::Storage>::Signatures;
+ type ObjectId = <git::raw::Repository as change::Storage>::ObjectId;
+ type Parent = <git::raw::Repository as change::Storage>::Parent;
+ type Signatures = <git::raw::Repository as change::Storage>::Signatures;
fn store<Signer>(
&self,
@@ -91,8 +91,8 @@ impl change::Storage for Repository {
impl cob::object::Storage for Repository {
type ObjectsError = ObjectsError;
type TypesError = TypesError;
- type UpdateError = git2::Error;
- type RemoveError = git2::Error;
+ type UpdateError = git::raw::Error;
+ type RemoveError = git::raw::Error;
type Namespace = NodeId;
@@ -200,12 +200,12 @@ impl<'a, R> DraftStore<'a, R> {
impl<R: storage::WriteRepository> cob::Store for DraftStore<'_, R> {}
impl<R: storage::WriteRepository> change::Storage for DraftStore<'_, R> {
- type StoreError = <git2::Repository as change::Storage>::StoreError;
- type LoadError = <git2::Repository as change::Storage>::LoadError;
+ type StoreError = <git::raw::Repository as change::Storage>::StoreError;
+ type LoadError = <git::raw::Repository as change::Storage>::LoadError;
- type ObjectId = <git2::Repository as change::Storage>::ObjectId;
- type Parent = <git2::Repository as change::Storage>::Parent;
- type Signatures = <git2::Repository as change::Storage>::Signatures;
+ type ObjectId = <git::raw::Repository as change::Storage>::ObjectId;
+ type Parent = <git::raw::Repository as change::Storage>::Parent;
+ type Signatures = <git::raw::Repository as change::Storage>::Signatures;
fn store<Signer>(
&self,
@@ -274,7 +274,7 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
self.repo.id()
}
- fn is_empty(&self) -> Result<bool, git2::Error> {
+ fn is_empty(&self) -> Result<bool, git::raw::Error> {
self.repo.is_empty()
}
@@ -290,11 +290,11 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
self.repo.path()
}
- fn commit(&self, oid: Oid) -> Result<git2::Commit, git_ext::Error> {
+ fn commit(&self, oid: Oid) -> Result<git::raw::Commit, git_ext::Error> {
self.repo.commit(oid)
}
- fn revwalk(&self, head: Oid) -> Result<git2::Revwalk, git2::Error> {
+ fn revwalk(&self, head: Oid) -> Result<git::raw::Revwalk, git::raw::Error> {
self.repo.revwalk(head)
}
@@ -310,7 +310,7 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
&self,
oid: git_ext::Oid,
path: P,
- ) -> Result<git2::Blob, git_ext::Error> {
+ ) -> Result<git::raw::Blob, git_ext::Error> {
self.repo.blob_at(oid, path)
}
@@ -322,7 +322,7 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
&self,
remote: &RemoteId,
reference: &git::Qualified,
- ) -> Result<git2::Reference, git_ext::Error> {
+ ) -> Result<git::raw::Reference, git_ext::Error> {
self.repo.reference(remote, reference)
}
@@ -381,8 +381,8 @@ impl<R: storage::ReadRepository> ReadRepository for DraftStore<'_, R> {
impl<R: storage::WriteRepository> cob::object::Storage for DraftStore<'_, R> {
type ObjectsError = ObjectsError;
type TypesError = git::ext::Error;
- type UpdateError = git2::Error;
- type RemoveError = git2::Error;
+ type UpdateError = git::raw::Error;
+ type RemoveError = git::raw::Error;
type Namespace = NodeId;
diff --git a/crates/radicle/src/storage/git/transport/local.rs b/crates/radicle/src/storage/git/transport/local.rs
index 086229f62c..4a5ecd0012 100644
--- a/crates/radicle/src/storage/git/transport/local.rs
+++ b/crates/radicle/src/storage/git/transport/local.rs
@@ -7,6 +7,7 @@ use std::process;
use std::str::FromStr;
use std::sync::Once;
+use crate::git;
use crate::storage;
use crate::storage::git::Storage;
@@ -25,20 +26,19 @@ struct Local {
child: RefCell<Option<process::Child>>,
}
-impl git2::transport::SmartSubtransport for Local {
+impl crate::git::raw::transport::SmartSubtransport for Local {
fn action(
&self,
url: &str,
- service: git2::transport::Service,
- ) -> Result<Box<dyn git2::transport::SmartSubtransportStream>, git2::Error> {
- let url = Url::from_str(url).map_err(|e| git2::Error::from_str(e.to_string().as_str()))?;
+ service: git::raw::transport::Service,
+ ) -> Result<Box<dyn git::raw::transport::SmartSubtransportStream>, git::raw::Error> {
+ let url =
+ Url::from_str(url).map_err(|e| git::raw::Error::from_str(e.to_string().as_str()))?;
let service: &str = match service {
- git2::transport::Service::UploadPack | git2::transport::Service::UploadPackLs => {
- "upload-pack"
- }
- git2::transport::Service::ReceivePack | git2::transport::Service::ReceivePackLs => {
- "receive-pack"
- }
+ git::raw::transport::Service::UploadPack
+ | git::raw::transport::Service::UploadPackLs => "upload-pack",
+ git::raw::transport::Service::ReceivePack
+ | git::raw::transport::Service::ReceivePackLs => "receive-pack",
};
let git_dir = THREAD_STORAGE
.with(|t| {
@@ -46,7 +46,9 @@ impl git2::transport::SmartSubtransport for Local {
.as_ref()
.map(|s| storage::git::paths::repository(&s, &url.repo))
})
- .ok_or_else(|| git2::Error::from_str("local transport storage was not registered"))?;
+ .ok_or_else(|| {
+ git::raw::Error::from_str("local transport storage was not registered")
+ })?;
let mut cmd = process::Command::new("git");
@@ -61,7 +63,7 @@ impl git2::transport::SmartSubtransport for Local {
.stdout(process::Stdio::piped())
.stderr(process::Stdio::inherit())
.spawn()
- .map_err(|e| git2::Error::from_str(e.to_string().as_str()))?;
+ .map_err(|e| git::raw::Error::from_str(e.to_string().as_str()))?;
let stdin = child.stdin.take().expect("taking stdin is safe");
let stdout = child.stdout.take().expect("taking stdout is safe");
@@ -71,19 +73,19 @@ impl git2::transport::SmartSubtransport for Local {
Ok(Box::new(ChildStream { stdout, stdin }))
}
- fn close(&self) -> Result<(), git2::Error> {
+ fn close(&self) -> Result<(), git::raw::Error> {
if let Some(mut child) = self.child.take() {
let result = child
.wait()
- .map_err(|e| git2::Error::from_str(e.to_string().as_str()))?;
+ .map_err(|e| git::raw::Error::from_str(e.to_string().as_str()))?;
if !result.success() {
return if let Some(code) = result.code() {
- Err(git2::Error::from_str(
+ Err(git::raw::Error::from_str(
format!("transport: child process exited with error code {code}").as_str(),
))
} else {
- Err(git2::Error::from_str(
+ Err(git::raw::Error::from_str(
"transport: child process exited with unknown error",
))
};
@@ -103,8 +105,8 @@ pub fn register(storage: Storage) {
});
REGISTER.call_once(|| unsafe {
- git2::transport::register(Url::SCHEME, move |remote| {
- git2::transport::Transport::smart(remote, false, Local::default())
+ git::raw::transport::register(Url::SCHEME, move |remote| {
+ git::raw::transport::Transport::smart(remote, false, Local::default())
})
.expect("local transport registration");
});
diff --git a/crates/radicle/src/storage/git/transport/remote/mock.rs b/crates/radicle/src/storage/git/transport/remote/mock.rs
index c4585cdeee..76066c2651 100644
--- a/crates/radicle/src/storage/git/transport/remote/mock.rs
+++ b/crates/radicle/src/storage/git/transport/remote/mock.rs
@@ -8,6 +8,7 @@ use std::thread::ThreadId;
use std::{process, thread};
use super::Url;
+use crate::git;
use crate::storage::git::transport::ChildStream;
use crate::storage::RemoteId;
@@ -19,19 +20,21 @@ static NODES: LazyLock<Mutex<HashMap<(ThreadId, RemoteId), PathBuf>>> =
#[derive(Default)]
struct MockTransport;
-impl git2::transport::SmartSubtransport for MockTransport {
+impl git::raw::transport::SmartSubtransport for MockTransport {
fn action(
&self,
url: &str,
- service: git2::transport::Service,
- ) -> Result<Box<dyn git2::transport::SmartSubtransportStream>, git2::Error> {
- let url = Url::from_str(url).map_err(|e| git2::Error::from_str(e.to_string().as_str()))?;
+ service: git::raw::transport::Service,
+ ) -> Result<Box<dyn git::raw::transport::SmartSubtransportStream>, git::raw::Error> {
+ let url =
+ Url::from_str(url).map_err(|e| git::raw::Error::from_str(e.to_string().as_str()))?;
let id = thread::current().id();
let nodes = NODES.lock().expect("lock cannot be poisoned");
let storage = if let Some(storage) = nodes.get(&(id, url.node)) {
match service {
- git2::transport::Service::ReceivePack | git2::transport::Service::ReceivePackLs => {
- return Err(git2::Error::from_str(
+ git::raw::transport::Service::ReceivePack
+ | git::raw::transport::Service::ReceivePackLs => {
+ return Err(git::raw::Error::from_str(
"git-receive-pack is not supported with the mock transport",
));
}
@@ -39,7 +42,7 @@ impl git2::transport::SmartSubtransport for MockTransport {
}
storage
} else {
- return Err(git2::Error::from_str(&format!(
+ return Err(git::raw::Error::from_str(&format!(
"node {} was not registered with the mock transport",
url.node
)));
@@ -76,7 +79,7 @@ impl git2::transport::SmartSubtransport for MockTransport {
Ok(Box::new(ChildStream { stdout, stdin }))
}
- fn close(&self) -> Result<(), git2::Error> {
+ fn close(&self) -> Result<(), git::raw::Error> {
Ok(())
}
}
@@ -86,8 +89,8 @@ pub fn register(node: &RemoteId, path: &Path) {
static REGISTER: Once = Once::new();
REGISTER.call_once(|| unsafe {
- git2::transport::register(Url::SCHEME, move |remote| {
- git2::transport::Transport::smart(remote, false, MockTransport)
+ git::raw::transport::register(Url::SCHEME, move |remote| {
+ git::raw::transport::Transport::smart(remote, false, MockTransport)
})
.expect("transport registration is successful");
});
diff --git a/crates/radicle/src/storage/refs.rs b/crates/radicle/src/storage/refs.rs
index 7a8504401a..74ac32c6f2 100644
--- a/crates/radicle/src/storage/refs.rs
+++ b/crates/radicle/src/storage/refs.rs
@@ -55,7 +55,7 @@ pub enum Error {
#[error("invalid reference: {0}")]
Ref(#[from] git::RefError),
#[error(transparent)]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
#[error(transparent)]
GitExt(#[from] git_ext::Error),
}
@@ -322,8 +322,8 @@ impl SignedRefs<Verified> {
env::GIT_COMMITTER_DATE
);
};
- let time = git2::Time::new(timestamp, 0);
- git2::Signature::new("radicle", remote.to_string().as_str(), &time)?
+ let time = git::raw::Time::new(timestamp, 0);
+ git::raw::Signature::new("radicle", remote.to_string().as_str(), &time)?
} else {
raw.signature()?
};
@@ -334,13 +334,13 @@ impl SignedRefs<Verified> {
&author,
"Update signed refs\n",
&tree,
- &parent.iter().collect::<Vec<&git2::Commit>>(),
+ &parent.iter().collect::<Vec<&git::raw::Commit>>(),
);
match commit {
Ok(oid) => Ok(Updated::Updated { oid: oid.into() }),
Err(e) => match (e.class(), e.code()) {
- (git2::ErrorClass::Object, git2::ErrorCode::Modified) => {
+ (git::raw::ErrorClass::Object, git::raw::ErrorCode::Modified) => {
log::warn!("Concurrent modification of refs: {e:?}");
Err(Error::Git(e))
@@ -471,7 +471,7 @@ pub mod canonical {
#[error(transparent)]
Io(#[from] io::Error),
#[error(transparent)]
- Git(#[from] git2::Error),
+ Git(#[from] git::raw::Error),
}
}
@@ -581,7 +581,7 @@ mod tests {
.unwrap();
let paris_head = bob_working.find_commit(paris_head).unwrap();
- let bob_sig = git2::Signature::now("bob", "bob@example.com").unwrap();
+ let bob_sig = git::raw::Signature::now("bob", "bob@example.com").unwrap();
let bob_head = git::empty_commit(
&bob_working,
&paris_head,
diff --git a/crates/radicle/src/test.rs b/crates/radicle/src/test.rs
index 9a9e8eec49..b21ee03e59 100644
--- a/crates/radicle/src/test.rs
+++ b/crates/radicle/src/test.rs
@@ -6,6 +6,7 @@ pub mod storage;
use super::storage::{Namespaces, RefUpdate};
+use crate::git;
use crate::prelude::NodeId;
use crate::storage::WriteRepository;
@@ -22,13 +23,13 @@ pub fn fetch<W: WriteRepository>(
Namespaces::Followed(followed) => followed.into_iter().next(),
};
let mut updates = Vec::new();
- let mut callbacks = git2::RemoteCallbacks::new();
- let mut opts = git2::FetchOptions::default();
+ let mut callbacks = git::raw::RemoteCallbacks::new();
+ let mut opts = git::raw::FetchOptions::default();
let refspec = if let Some(namespace) = namespace {
- opts.prune(git2::FetchPrune::On);
+ opts.prune(git::raw::FetchPrune::On);
format!("refs/namespaces/{namespace}/refs/*:refs/namespaces/{namespace}/refs/*")
} else {
- opts.prune(git2::FetchPrune::Off);
+ opts.prune(git::raw::FetchPrune::Off);
"refs/namespaces/*:refs/namespaces/*".to_owned()
};
@@ -295,22 +296,22 @@ pub mod setup {
}
pub fn commit<S: AsRef<Path>, T: AsRef<[u8]>>(
- repo: &git2::Repository,
+ repo: &git::raw::Repository,
refname: &git::Qualified,
blobs: impl IntoIterator<Item = (S, T)>,
- parents: &[&git2::Commit<'_>],
+ parents: &[&git::raw::Commit<'_>],
) -> git::Oid {
let tree = {
let mut tb = repo.treebuilder(None).unwrap();
for (name, blob) in blobs.into_iter() {
let oid = repo.blob(blob.as_ref()).unwrap();
- tb.insert(name.as_ref(), oid, git2::FileMode::Blob.into())
+ tb.insert(name.as_ref(), oid, git::raw::FileMode::Blob.into())
.unwrap();
}
tb.write().unwrap()
};
let tree = repo.find_tree(tree).unwrap();
- let author = git2::Signature::now("anonymous", "anonymous@example.com").unwrap();
+ let author = git::raw::Signature::now("anonymous", "anonymous@example.com").unwrap();
repo.commit(
Some(refname.as_str()),
diff --git a/crates/radicle/src/test/fixtures.rs b/crates/radicle/src/test/fixtures.rs
index 67da9412df..f30d92e7cb 100644
--- a/crates/radicle/src/test/fixtures.rs
+++ b/crates/radicle/src/test/fixtures.rs
@@ -72,7 +72,15 @@ pub fn project<P, G>(
path: P,
storage: &Storage,
signer: &Device<G>,
-) -> Result<(RepoId, SignedRefs<Verified>, git2::Repository, git2::Oid), rad::InitError>
+) -> Result<
+ (
+ RepoId,
+ SignedRefs<Verified>,
+ git::raw::Repository,
+ git::raw::Oid,
+ ),
+ rad::InitError,
+>
where
P: AsRef<Path>,
G: crypto::signature::Signer<crypto::Signature>,
@@ -94,19 +102,19 @@ where
}
/// Creates a regular repository at the given path with a couple of commits.
-pub fn repository<P: AsRef<Path>>(path: P) -> (git2::Repository, git2::Oid) {
+pub fn repository<P: AsRef<Path>>(path: P) -> (git::raw::Repository, git::raw::Oid) {
let (repo, oid) = repository_with(
path,
- git2::RepositoryInitOptions::new().external_template(false),
+ git::raw::RepositoryInitOptions::new().external_template(false),
);
repo.checkout_head(None).unwrap();
(repo, oid)
}
-pub fn bare_repository<P: AsRef<Path>>(path: P) -> (git2::Repository, git2::Oid) {
+pub fn bare_repository<P: AsRef<Path>>(path: P) -> (git::raw::Repository, git::raw::Oid) {
repository_with(
path,
- git2::RepositoryInitOptions::new()
+ git::raw::RepositoryInitOptions::new()
.external_template(false)
.bare(true),
)
@@ -114,17 +122,21 @@ pub fn bare_repository<P: AsRef<Path>>(path: P) -> (git2::Repository, git2::Oid)
fn repository_with<P: AsRef<Path>>(
path: P,
- opts: &mut git2::RepositoryInitOptions,
-) -> (git2::Repository, git2::Oid) {
- let repo = git2::Repository::init_opts(path, opts).unwrap();
+ opts: &mut git::raw::RepositoryInitOptions,
+) -> (git::raw::Repository, git::raw::Oid) {
+ let repo = git::raw::Repository::init_opts(path, opts).unwrap();
{
let mut config = repo.config().unwrap();
config.set_str("user.name", USER_NAME).unwrap();
config.set_str("user.email", USER_EMAIL).unwrap();
}
- let sig =
- git2::Signature::new(USER_NAME, USER_EMAIL, &git2::Time::new(RADICLE_EPOCH, 0)).unwrap();
+ let sig = git::raw::Signature::new(
+ USER_NAME,
+ USER_EMAIL,
+ &git::raw::Time::new(RADICLE_EPOCH, 0),
+ )
+ .unwrap();
let head = git::initial_commit(&repo, &sig).unwrap();
let tree = git::write_tree(Path::new("README"), "Hello World!\n".as_bytes(), &repo).unwrap();
let oid = {
@@ -149,10 +161,14 @@ fn repository_with<P: AsRef<Path>>(
}
/// Create an empty commit on the current branch.
-pub fn commit(msg: &str, parents: &[git2::Oid], repo: &git2::Repository) -> git::Oid {
+pub fn commit(msg: &str, parents: &[git::raw::Oid], repo: &git::raw::Repository) -> git::Oid {
let head = repo.head().unwrap();
- let sig =
- git2::Signature::new(USER_NAME, USER_EMAIL, &git2::Time::new(RADICLE_EPOCH, 0)).unwrap();
+ let sig = git::raw::Signature::new(
+ USER_NAME,
+ USER_EMAIL,
+ &git::raw::Time::new(RADICLE_EPOCH, 0),
+ )
+ .unwrap();
let tree = head.peel_to_commit().unwrap().tree().unwrap();
let parents = parents
.iter()
@@ -166,19 +182,28 @@ pub fn commit(msg: &str, parents: &[git2::Oid], repo: &git2::Repository) -> git:
}
/// Create an (annotated) tag of the given commit.
-pub fn tag(name: &str, message: &str, commit: git2::Oid, repo: &git2::Repository) -> git::Oid {
+pub fn tag(
+ name: &str,
+ message: &str,
+ commit: git::raw::Oid,
+ repo: &git::raw::Repository,
+) -> git::Oid {
let target = repo
- .find_object(commit, Some(git2::ObjectType::Commit))
+ .find_object(commit, Some(git::raw::ObjectType::Commit))
.unwrap();
- let tagger =
- git2::Signature::new(USER_NAME, USER_EMAIL, &git2::Time::new(RADICLE_EPOCH, 0)).unwrap();
+ let tagger = git::raw::Signature::new(
+ USER_NAME,
+ USER_EMAIL,
+ &git::raw::Time::new(RADICLE_EPOCH, 0),
+ )
+ .unwrap();
repo.tag(name, &target, &tagger, message, false)
.unwrap()
.into()
}
/// Populate a repository with commits, branches and blobs.
-pub fn populate(repo: &git2::Repository, scale: usize) -> Vec<git::Qualified> {
+pub fn populate(repo: &git::raw::Repository, scale: usize) -> Vec<git::Qualified> {
assert!(
scale <= 8,
"Scale parameter must be less than or equal to 8"
@@ -198,7 +223,7 @@ pub fn populate(repo: &git2::Repository, scale: usize) -> Vec<git::Qualified> {
.to_lowercase();
let name =
git::refname!("feature").join(git::RefString::try_from(random.as_str()).unwrap());
- let signature = git2::Signature::now("Radicle", "radicle@radicle.xyz").unwrap();
+ let signature = git::raw::Signature::now("Radicle", "radicle@radicle.xyz").unwrap();
rng.fill(&mut buffer);
@@ -241,13 +266,13 @@ pub mod gen {
}
/// Creates a regular repository at the given path with a couple of commits.
- pub fn repository<P: AsRef<Path>>(path: P) -> (git2::Repository, git2::Oid) {
- let repo = git2::Repository::init_opts(
+ pub fn repository<P: AsRef<Path>>(path: P) -> (git::raw::Repository, git::raw::Oid) {
+ let repo = git::raw::Repository::init_opts(
path,
- git2::RepositoryInitOptions::new().external_template(false),
+ git::raw::RepositoryInitOptions::new().external_template(false),
)
.unwrap();
- let sig = git2::Signature::now(string(6).as_str(), email().as_str()).unwrap();
+ let sig = git::raw::Signature::now(string(6).as_str(), email().as_str()).unwrap();
let head = git::initial_commit(&repo, &sig).unwrap();
let tree =
git::write_tree(Path::new("README"), "Hello World!\n".as_bytes(), &repo).unwrap();
diff --git a/crates/radicle/src/test/storage.rs b/crates/radicle/src/test/storage.rs
index a2ea5db639..54c02f3679 100644
--- a/crates/radicle/src/test/storage.rs
+++ b/crates/radicle/src/test/storage.rs
@@ -199,7 +199,7 @@ impl ReadRepository for MockRepository {
self.id
}
- fn is_empty(&self) -> Result<bool, git2::Error> {
+ fn is_empty(&self) -> Result<bool, git::raw::Error> {
Ok(self.remotes.is_empty())
}
@@ -215,17 +215,17 @@ impl ReadRepository for MockRepository {
todo!()
}
- fn commit(&self, oid: Oid) -> Result<git2::Commit, git_ext::Error> {
+ fn commit(&self, oid: Oid) -> Result<git::raw::Commit, git_ext::Error> {
Err(git_ext::Error::NotFound(git_ext::NotFound::NoSuchObject(
*oid,
)))
}
- fn revwalk(&self, _head: Oid) -> Result<git2::Revwalk, git2::Error> {
+ fn revwalk(&self, _head: Oid) -> Result<git::raw::Revwalk, git::raw::Error> {
todo!()
}
- fn contains(&self, oid: Oid) -> Result<bool, git2::Error> {
+ fn contains(&self, oid: Oid) -> Result<bool, git::raw::Error> {
Ok(self
.remotes
.values()
@@ -236,7 +236,7 @@ impl ReadRepository for MockRepository {
Ok(true)
}
- fn blob(&self, _oid: Oid) -> Result<git2::Blob, git_ext::Error> {
+ fn blob(&self, _oid: Oid) -> Result<git::raw::Blob, git_ext::Error> {
todo!()
}
@@ -244,7 +244,7 @@ impl ReadRepository for MockRepository {
&self,
_oid: git_ext::Oid,
_path: P,
- ) -> Result<git2::Blob, git_ext::Error> {
+ ) -> Result<git::raw::Blob, git_ext::Error> {
todo!()
}
@@ -252,7 +252,7 @@ impl ReadRepository for MockRepository {
&self,
_remote: &RemoteId,
_reference: &git::Qualified,
- ) -> Result<git2::Reference, git_ext::Error> {
+ ) -> Result<git::raw::Reference, git_ext::Error> {
todo!()
}
@@ -322,7 +322,7 @@ impl ReadRepository for MockRepository {
}
impl WriteRepository for MockRepository {
- fn raw(&self) -> &git2::Repository {
+ fn raw(&self) -> &git::raw::Repository {
todo!()
}
Exit code: 0
shell: 'export RUSTDOCFLAGS=''-D warnings'' 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 954238a4-45e1-411d-b26c-81a5132cc6e0 -v /opt/radcis/ci.rad.levitte.org/cci/state/954238a4-45e1-411d-b26c-81a5132cc6e0/s:/954238a4-45e1-411d-b26c-81a5132cc6e0/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/954238a4-45e1-411d-b26c-81a5132cc6e0/w:/954238a4-45e1-411d-b26c-81a5132cc6e0/w -w /954238a4-45e1-411d-b26c-81a5132cc6e0/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /954238a4-45e1-411d-b26c-81a5132cc6e0/s/script.sh
+ export 'RUSTDOCFLAGS=-D warnings'
+ RUSTDOCFLAGS='-D warnings'
+ cargo --version
info: syncing channel updates for '1.88-x86_64-unknown-linux-gnu'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
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.88.0 (873a06493 2025-05-10)
+ rustc --version
rustc 1.88.0 (6b00bc388 2025-06-23)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- --deny warnings
Updating crates.io index
Downloading crates ...
Downloaded amplify_derive v4.0.0
Downloaded adler2 v2.0.0
Downloaded addr2line v0.24.2
Downloaded nonempty v0.5.0
Downloaded nonempty v0.9.0
Downloaded num-cmp v0.1.0
Downloaded nu-ansi-term v0.46.0
Downloaded ff v0.13.0
Downloaded p256 v0.13.2
Downloaded num-bigint v0.4.6
Downloaded primeorder v0.13.6
Downloaded proc-macro-error v1.0.4
Downloaded rand_chacha v0.3.1
Downloaded sha1_smol v1.0.0
Downloaded ref-cast v1.0.24
Downloaded cyphergraphy v0.3.0
Downloaded anyhow v1.0.82
Downloaded sharded-slab v0.1.7
Downloaded gix-hash v0.15.1
Downloaded scopeguard v1.2.0
Downloaded shell-words v1.1.0
Downloaded clap_lex v0.7.5
Downloaded siphasher v0.3.11
Downloaded siphasher v1.0.1
Downloaded shlex v1.3.0
Downloaded smallvec v1.13.2
Downloaded scrypt v0.11.0
Downloaded form_urlencoded v1.2.1
Downloaded rfc6979 v0.4.0
Downloaded idna_adapter v1.2.0
Downloaded parking_lot_core v0.9.9
Downloaded ssh-encoding v0.2.0
Downloaded sha2 v0.10.8
Downloaded serde_derive_internals v0.29.1
Downloaded localtime v1.3.1
Downloaded pem-rfc7468 v0.7.0
Downloaded stable_deref_trait v1.2.0
Downloaded gix-utils v0.1.14
Downloaded pkcs8 v0.10.2
Downloaded pkcs1 v0.7.5
Downloaded once_cell v1.21.3
Downloaded gix-quote v0.4.15
Downloaded zerofrom-derive v0.1.6
Downloaded utf8_iter v1.0.4
Downloaded sval_serde v2.14.1
Downloaded toml_writer v1.0.2
Downloaded zeroize v1.7.0
Downloaded filetime v0.2.23
Downloaded subtle v2.5.0
Downloaded gix-credentials v0.26.0
Downloaded sval_ref v2.14.1
Downloaded test-log-macros v0.2.18
Downloaded gix-tempfile v15.0.0
Downloaded zerovec-derive v0.10.3
Downloaded gix-sec v0.10.12
Downloaded gix-features v0.39.1
Downloaded gix-shallow v0.1.0
Downloaded write16 v1.0.0
Downloaded sval_nested v2.14.1
Downloaded lazy_static v1.5.0
Downloaded gix-trace v0.1.12
Downloaded generic-array v0.14.7
Downloaded litrs v0.4.1
Downloaded gix-path v0.10.15
Downloaded yoke-derive v0.7.5
Downloaded socket2 v0.5.7
Downloaded gix-negotiate v0.17.0
Downloaded walkdir v2.5.0
Downloaded unicode-display-width v0.3.0
Downloaded ssh-cipher v0.2.0
Downloaded memmap2 v0.9.4
Downloaded sqlite v0.32.0
Downloaded gix-lock v15.0.1
Downloaded unit-prefix v0.5.1
Downloaded gix-command v0.4.1
Downloaded sval_fmt v2.14.1
Downloaded typeid v1.0.3
Downloaded gix-protocol v0.47.0
Downloaded git-ref-format-macro v0.3.1
Downloaded git-ref-format-core v0.3.1
Downloaded thiserror-impl v2.0.12
Downloaded backtrace v0.3.75
Downloaded fxhash v0.2.1
Downloaded tinystr v0.7.6
Downloaded gix-packetline v0.18.4
Downloaded timeago v0.4.2
Downloaded itoa v1.0.11
Downloaded jobserver v0.1.31
Downloaded ssh-key v0.6.6
Downloaded writeable v0.5.5
Downloaded spin v0.9.8
Downloaded value-bag v1.11.1
Downloaded unicode-ident v1.0.12
Downloaded portable-atomic v1.11.0
Downloaded flate2 v1.1.1
Downloaded mio v1.0.4
Downloaded fraction v0.15.3
Downloaded aho-corasick v1.1.3
Downloaded mio v0.8.11
Downloaded inquire v0.7.5
Downloaded itertools v0.14.0
Downloaded jsonschema v0.30.0
Downloaded tree-sitter-python v0.23.4
Downloaded syn v1.0.109
Downloaded vcpkg v0.2.15
Downloaded regex-syntax v0.6.29
Downloaded icu_properties_data v1.5.1
Downloaded unicode-width v0.2.1
Downloaded rustix v0.38.34
Downloaded tree-sitter-md v0.3.2
Downloaded rustix v1.0.7
Downloaded tree-sitter-rust v0.23.2
Downloaded regex-syntax v0.8.5
Downloaded tree-sitter-bash v0.23.3
Downloaded object v0.36.7
Downloaded bstr v1.9.1
Downloaded syn v2.0.89
Downloaded gimli v0.31.1
Downloaded tree-sitter-c v0.23.2
Downloaded regex v1.11.1
Downloaded p384 v0.13.0
Downloaded tree-sitter-ruby v0.23.1
Downloaded regex-automata v0.4.9
Downloaded zerocopy v0.7.35
Downloaded tracing-subscriber v0.3.19
Downloaded chrono v0.4.38
Downloaded winnow v0.6.26
Downloaded tree-sitter v0.24.4
Downloaded git2 v0.19.0
Downloaded jiff v0.2.1
Downloaded libm v0.2.8
Downloaded libc v0.2.174
Downloaded unicode-normalization v0.1.23
Downloaded idna v1.0.3
Downloaded sha3 v0.10.8
Downloaded hashbrown v0.14.3
Downloaded tokio v1.47.1
Downloaded tree-sitter-typescript v0.23.2
Downloaded zerovec v0.10.4
Downloaded cyphernet v0.5.2
Downloaded clap_builder v4.5.44
Downloaded icu_provider v1.5.0
Downloaded icu_properties v1.5.1
Downloaded icu_normalizer_data v1.5.1
Downloaded tracing v0.1.41
Downloaded unicode-segmentation v1.11.0
Downloaded regex-automata v0.1.10
Downloaded crossterm v0.29.0
Downloaded aes v0.8.4
Downloaded icu_normalizer v1.5.0
Downloaded typenum v1.17.0
Downloaded tinyvec v1.6.0
Downloaded gix-transport v0.44.0
Downloaded toml v0.9.5
Downloaded miniz_oxide v0.8.8
Downloaded memchr v2.7.2
Downloaded icu_collections v1.5.0
Downloaded tree-sitter-go v0.23.4
Downloaded serde_json v1.0.140
Downloaded tracing-core v0.1.34
Downloaded spki v0.7.3
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded tree-sitter-json v0.24.8
Downloaded getrandom v0.3.3
Downloaded thiserror-impl v1.0.69
Downloaded yoke v0.7.5
Downloaded tracing-log v0.2.0
Downloaded gix-object v0.46.1
Downloaded icu_locid v1.5.0
Downloaded crossterm v0.25.0
Downloaded multibase v0.9.1
Downloaded version_check v0.9.4
Downloaded gix-chunk v0.4.11
Downloaded sval v2.14.1
Downloaded url v2.5.4
Downloaded indexmap v2.2.6
Downloaded serde v1.0.219
Downloaded sval_buffer v2.14.1
Downloaded yansi v0.5.1
Downloaded gix-actor v0.33.2
Downloaded gix-hashtable v0.6.0
Downloaded gix-fs v0.12.1
Downloaded socks5-client v0.4.1
Downloaded newline-converter v0.3.0
Downloaded sval_json v2.14.1
Downloaded gix-pack v0.56.0
Downloaded uuid v1.16.0
Downloaded crypto-bigint v0.5.5
Downloaded thread_local v1.1.9
Downloaded sqlite3-sys v0.15.2
Downloaded gix-traverse v0.43.1
Downloaded sval_dynamic v2.14.1
Downloaded getrandom v0.2.15
Downloaded value-bag-serde1 v1.11.1
Downloaded tinyvec_macros v0.1.1
Downloaded bytes v1.10.1
Downloaded aes-gcm v0.10.3
Downloaded xattr v1.3.1
Downloaded toml_datetime v0.7.0
Downloaded lexopt v0.3.0
Downloaded log v0.4.27
Downloaded derive_more v2.0.1
Downloaded tree-sitter-language v0.1.2
Downloaded keccak v0.1.5
Downloaded hmac v0.12.1
Downloaded indicatif v0.18.0
Downloaded serde_derive v1.0.219
Downloaded vsimd v0.8.0
Downloaded icu_locid_transform_data v1.5.1
Downloaded rand v0.8.5
Downloaded fancy-regex v0.14.0
Downloaded rsa v0.9.6
Downloaded unicode-width v0.1.11
Downloaded prodash v29.0.2
Downloaded thiserror v2.0.12
Downloaded pretty_assertions v1.4.0
Downloaded cc v1.2.2
Downloaded icu_locid_transform v1.5.0
Downloaded gix-diff v0.49.0
Downloaded tar v0.4.40
Downloaded gix-ref v0.49.1
Downloaded value-bag-sval2 v1.11.1
Downloaded thiserror v1.0.69
Downloaded maybe-async v0.2.10
Downloaded iana-time-zone v0.1.60
Downloaded structured-logger v1.0.4
Downloaded lock_api v0.4.11
Downloaded gix-odb v0.66.0
Downloaded similar v2.5.0
Downloaded human-panic v2.0.3
Downloaded arc-swap v1.7.1
Downloaded gix-revwalk v0.17.0
Downloaded ghash v0.5.1
Downloaded ryu v1.0.17
Downloaded utf8parse v0.2.1
Downloaded tree-sitter-css v0.23.1
Downloaded test-log v0.2.18
Downloaded tempfile v3.10.1
Downloaded gix-prompt v0.9.1
Downloaded git-ref-format v0.3.1
Downloaded group v0.13.0
Downloaded signal-hook v0.3.18
Downloaded base64 v0.13.1
Downloaded matchers v0.1.0
Downloaded p521 v0.13.3
Downloaded num-traits v0.2.19
Downloaded tree-sitter-html v0.23.2
Downloaded litemap v0.7.5
Downloaded elliptic-curve v0.13.8
Downloaded crc32fast v1.4.0
Downloaded home v0.5.9
Downloaded utf16_iter v1.0.5
Downloaded clap v4.5.44
Downloaded bitflags v2.9.1
Downloaded uuid-simd v0.8.0
Downloaded synstructure v0.13.1
Downloaded streaming-iterator v0.1.9
Downloaded console v0.16.0
Downloaded snapbox v0.4.17
Downloaded pkg-config v0.3.30
Downloaded num-integer v0.1.46
Downloaded derive_more-impl v2.0.1
Downloaded systemd-journal-logger v2.2.2
Downloaded signals_receipts v0.2.0
Downloaded referencing v0.30.0
Downloaded gix-url v0.28.2
Downloaded sem_safe v0.2.0
Downloaded const-oid v0.9.6
Downloaded strsim v0.11.1
Downloaded polyval v0.6.2
Downloaded pin-project-lite v0.2.16
Downloaded num-complex v0.4.6
Downloaded ed25519 v1.5.3
Downloaded gix-date v0.9.4
Downloaded zerofrom v0.1.6
Downloaded universal-hash v0.5.1
Downloaded tree-sitter-highlight v0.24.4
Downloaded snapbox-macros v0.3.8
Downloaded inout v0.1.3
Downloaded icu_provider_macros v1.5.0
Downloaded gix-revision v0.31.1
Downloaded gix-refspec v0.27.0
Downloaded gix-config-value v0.14.12
Downloaded gix-commitgraph v0.25.1
Downloaded fluent-uri v0.3.2
Downloaded signal-hook-registry v1.4.5
Downloaded serde_spanned v1.0.0
Downloaded serde-untagged v0.1.7
Downloaded rustc-demangle v0.1.26
Downloaded rand_core v0.6.4
Downloaded quote v1.0.36
Downloaded env_logger v0.11.8
Downloaded ecdsa v0.16.9
Downloaded crossbeam-channel v0.5.15
Downloaded convert_case v0.7.1
Downloaded faster-hex v0.9.0
Downloaded dyn-clone v1.0.17
Downloaded noise-framework v0.4.0
Downloaded gix-validate v0.9.4
Downloaded signal-hook-mio v0.2.4
Downloaded serde_fmt v1.0.3
Downloaded heck v0.5.0
Downloaded pbkdf2 v0.12.2
Downloaded data-encoding v2.5.0
Downloaded borrow-or-share v0.2.2
Downloaded anstyle-query v1.0.2
Downloaded sec1 v0.7.3
Downloaded schemars_derive v1.0.4
Downloaded ref-cast-impl v1.0.24
Downloaded poly1305 v0.8.0
Downloaded escargot v0.5.10
Downloaded digest v0.10.7
Downloaded cipher v0.4.4
Downloaded chacha20 v0.9.1
Downloaded base64 v0.22.1
Downloaded schemars v1.0.4
Downloaded proc-macro2 v1.0.92
Downloaded proc-macro-error-attr v1.0.4
Downloaded opaque-debug v0.3.1
Downloaded num-rational v0.4.2
Downloaded erased-serde v0.4.6
Downloaded displaydoc v0.2.5
Downloaded colored v2.1.0
Downloaded either v1.11.0
Downloaded bytesize v2.0.1
Downloaded bytecount v0.6.8
Downloaded radicle-git-ext v0.8.1
Downloaded cbc v0.1.2
Downloaded signature v2.2.0
Downloaded num-iter v0.1.45
Downloaded radicle-std-ext v0.1.0
Downloaded outref v0.5.2
Downloaded data-encoding-macro-internal v0.1.12
Downloaded bcrypt-pbkdf v0.10.0
Downloaded ahash v0.8.11
Downloaded aead v0.5.2
Downloaded amplify_syn v2.0.1
Downloaded qcheck v1.0.0
Downloaded paste v1.0.15
Downloaded ec25519 v0.1.0
Downloaded der v0.7.9
Downloaded base64 v0.21.7
Downloaded fastrand v2.1.0
Downloaded env_filter v0.1.3
Downloaded dunce v1.0.5
Downloaded data-encoding-macro v0.1.14
Downloaded ct-codecs v1.1.1
Downloaded block-buffer v0.10.4
Downloaded base32 v0.4.0
Downloaded phf v0.11.3
Downloaded document-features v0.2.11
Downloaded amplify v4.6.0
Downloaded same-file v1.0.6
Downloaded cypheraddr v0.4.0
Downloaded ctr v0.9.2
Downloaded bloomy v1.2.0
Downloaded autocfg v1.2.0
Downloaded signature v1.6.4
Downloaded salsa20 v0.10.2
Downloaded qcheck-macros v1.0.0
Downloaded fast-glob v0.3.3
Downloaded errno v0.3.13
Downloaded crossbeam-utils v0.8.19
Downloaded radicle-surf v0.22.0
Downloaded emojis v0.6.4
Downloaded diff v0.1.13
Downloaded cpufeatures v0.2.12
Downloaded colorchoice v1.0.0
Downloaded cfg-if v1.0.0
Downloaded anstream v0.6.13
Downloaded clap_derive v4.5.41
Downloaded chacha20poly1305 v0.10.1
Downloaded byteorder v1.5.0
Downloaded bit-set v0.8.0
Downloaded base64ct v1.6.0
Downloaded phf_shared v0.11.3
Downloaded equivalent v1.0.1
Downloaded email_address v0.2.9
Downloaded anstyle v1.0.11
Downloaded blowfish v0.9.1
Downloaded base-x v0.2.11
Downloaded ppv-lite86 v0.2.17
Downloaded percent-encoding v2.3.1
Downloaded base16ct v0.2.0
Downloaded ascii v1.1.0
Downloaded overload v0.1.1
Downloaded num-bigint-dig v0.8.4
Downloaded block-padding v0.3.3
Downloaded bitflags v1.3.2
Downloaded amplify_num v0.5.2
Downloaded parking_lot v0.12.3
Downloaded os_info v3.12.0
Downloaded crypto-common v0.1.6
Downloaded bit-vec v0.8.0
Downloaded anstyle-parse v0.2.3
Downloaded num v0.4.3
Downloaded normalize-line-endings v0.3.0
Downloaded linux-raw-sys v0.4.13
Downloaded libgit2-sys v0.17.0+1.8.1
Downloaded linux-raw-sys v0.9.4
Downloaded sqlite3-src v0.5.1
Downloaded libz-sys v1.1.16
Compiling libc v0.2.174
Compiling proc-macro2 v1.0.92
Compiling unicode-ident v1.0.12
Checking cfg-if v1.0.0
Compiling serde v1.0.219
Compiling shlex v1.3.0
Compiling version_check v0.9.4
Compiling typeid v1.0.3
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 smallvec v1.13.2
Compiling cc v1.2.2
Checking aho-corasick v1.1.3
Checking getrandom v0.2.15
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 fastrand v2.1.0
Compiling lock_api v0.4.11
Checking bitflags v2.9.1
Checking crypto-common v0.1.6
Compiling parking_lot_core v0.9.9
Checking scopeguard v1.2.0
Checking once_cell v1.21.3
Checking parking_lot v0.12.3
Checking tinyvec_macros v0.1.1
Compiling synstructure v0.13.1
Checking subtle v2.5.0
Checking tinyvec v1.6.0
Checking stable_deref_trait v1.2.0
Compiling thiserror v2.0.12
Checking unicode-normalization v0.1.23
Checking bstr v1.9.1
Checking zeroize v1.7.0
Compiling syn v1.0.109
Compiling crc32fast v1.4.0
Checking cpufeatures v0.2.12
Checking itoa v1.0.11
Checking hashbrown v0.14.3
Checking block-padding v0.3.3
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 thiserror-impl v2.0.12
Checking zerovec v0.10.4
Compiling displaydoc v0.2.5
Checking writeable v0.5.5
Checking litemap v0.7.5
Compiling pkg-config v0.3.30
Compiling icu_provider_macros v1.5.0
Checking tinystr v0.7.6
Checking inout v0.1.3
Checking icu_locid v1.5.0
Checking block-buffer v0.10.4
Compiling icu_properties_data v1.5.1
Checking digest v0.10.7
Checking cipher v0.4.4
Checking icu_provider v1.5.0
Compiling icu_normalizer_data v1.5.1
Checking adler2 v2.0.0
Compiling thiserror v1.0.69
Checking miniz_oxide v0.8.8
Checking icu_locid_transform v1.5.0
Checking icu_collections v1.5.0
Compiling thiserror-impl v1.0.69
Compiling rustix v0.38.34
Checking icu_properties v1.5.1
Checking erased-serde v0.4.6
Checking serde_fmt v1.0.3
Checking value-bag-serde1 v1.11.1
Checking value-bag v1.11.1
Checking utf16_iter v1.0.5
Checking linux-raw-sys v0.4.13
Checking log v0.4.27
Checking utf8_iter v1.0.4
Checking write16 v1.0.0
Checking gix-trace v0.1.12
Checking percent-encoding v2.3.1
Checking sha2 v0.10.8
Checking faster-hex v0.9.0
Checking universal-hash v0.5.1
Checking opaque-debug v0.3.1
Checking form_urlencoded v1.2.1
Checking gix-utils v0.1.14
Compiling vcpkg v0.2.15
Checking icu_normalizer v1.5.0
Checking gix-hash v0.15.1
Compiling amplify_syn v2.0.1
Compiling libz-sys v1.1.16
Checking idna_adapter v1.2.0
Checking idna v1.0.3
Checking url v2.5.4
Compiling num-traits v0.2.19
Checking same-file v1.0.6
Checking byteorder v1.5.0
Checking signature v1.6.4
Checking ed25519 v1.5.3
Checking tempfile v3.10.1
Checking walkdir v2.5.0
Checking flate2 v1.1.1
Compiling amplify_derive v4.0.0
Checking prodash v29.0.2
Checking aead v0.5.2
Checking ct-codecs v1.1.1
Checking sha1_smol v1.0.0
Checking ascii v1.1.0
Checking amplify_num v0.5.2
Checking gix-features v0.39.1
Checking ec25519 v0.1.0
Checking poly1305 v0.8.0
Checking chacha20 v0.9.1
Compiling libgit2-sys v0.17.0+1.8.1
Compiling proc-macro-error-attr v1.0.4
Compiling serde_json v1.0.140
Checking equivalent v1.0.1
Checking indexmap v2.2.6
Checking polyval v0.6.2
Checking hmac v0.12.1
Compiling sqlite3-src v0.5.1
Checking amplify v4.6.0
Compiling proc-macro-error v1.0.4
Checking cyphergraphy v0.3.0
Checking home v0.5.9
Checking ryu v1.0.17
Checking base64ct v1.6.0
Checking keccak v0.1.5
Checking sha3 v0.10.8
Checking pem-rfc7468 v0.7.0
Checking gix-path v0.10.15
Checking pbkdf2 v0.12.2
Checking ghash v0.5.1
Checking git-ref-format-core v0.3.1
Checking aes v0.8.4
Checking ctr v0.9.2
Compiling data-encoding v2.5.0
Compiling crossbeam-utils v0.8.19
Checking base32 v0.4.0
Compiling data-encoding-macro-internal v0.1.12
Checking cypheraddr v0.4.0
Checking aes-gcm v0.10.3
Checking ssh-encoding v0.2.0
Checking chacha20poly1305 v0.10.1
Checking blowfish v0.9.1
Checking cbc v0.1.2
Compiling ref-cast v1.0.24
Checking data-encoding-macro v0.1.14
Checking ssh-cipher v0.2.0
Checking bcrypt-pbkdf v0.10.0
Checking noise-framework v0.4.0
Compiling git-ref-format-macro v0.3.1
Checking socks5-client v0.4.1
Compiling ref-cast-impl v1.0.24
Checking rand v0.8.5
Checking base-x v0.2.11
Checking signature v2.2.0
Checking multibase v0.9.1
Checking ssh-key v0.6.6
Checking qcheck v1.0.0
Checking git-ref-format v0.3.1
Checking cyphernet v0.5.2
Checking crossbeam-channel v0.5.15
Checking radicle-ssh v0.10.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-ssh)
Checking dyn-clone v1.0.17
Checking radicle-std-ext v0.1.0
Checking lazy_static v1.5.0
Checking jiff v0.2.1
Checking siphasher v1.0.1
Checking nonempty v0.9.0
Compiling serde_derive_internals v0.29.1
Checking radicle-dag v0.10.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-dag)
Checking winnow v0.6.26
Checking anstyle-query v1.0.2
Compiling schemars_derive v1.0.4
Checking gix-date v0.9.4
Checking gix-actor v0.33.2
Checking gix-hashtable v0.6.0
Checking gix-validate v0.9.4
Checking iana-time-zone v0.1.60
Checking utf8parse v0.2.1
Checking anstyle-parse v0.2.3
Checking chrono v0.4.38
Checking schemars v1.0.4
Checking gix-object v0.46.1
Checking colored v2.1.0
Checking serde-untagged v0.1.7
Checking localtime v1.3.1
Checking bytesize v2.0.1
Checking memmap2 v0.9.4
Checking tree-sitter-language v0.1.2
Checking fast-glob v0.3.3
Checking base64 v0.21.7
Checking anstyle v1.0.11
Checking dunce v1.0.5
Checking colorchoice v1.0.0
Checking gix-chunk v0.4.11
Checking anstream v0.6.13
Checking gix-commitgraph v0.25.1
Compiling rustix v1.0.7
Checking gix-revwalk v0.17.0
Checking gix-fs v0.12.1
Checking linux-raw-sys v0.9.4
Checking gix-tempfile v15.0.0
Checking mio v1.0.4
Checking errno v0.3.13
Checking sem_safe v0.2.0
Checking either v1.11.0
Checking shell-words v1.1.0
Checking gix-command v0.4.1
Checking signals_receipts v0.2.0
Compiling object v0.36.7
Compiling signal-hook v0.3.18
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 gix-sec v0.10.12
Checking signal-hook-registry v1.4.5
Compiling getrandom v0.3.3
Checking gimli v0.31.1
Checking gix-prompt v0.9.1
Checking addr2line v0.24.2
Checking radicle-signals v0.11.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-signals)
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 mio v0.8.11
Compiling tree-sitter v0.24.4
Checking rustc-demangle v0.1.26
Compiling unicode-segmentation v1.11.0
Compiling anyhow v1.0.82
Compiling convert_case v0.7.1
Checking backtrace v0.3.75
Checking signal-hook-mio v0.2.4
Checking gix-transport v0.44.0
Checking gix-pack v0.56.0
Checking gix-refspec v0.27.0
Checking gix-credentials v0.26.0
Checking gix-shallow v0.1.0
Checking gix-ref v0.49.1
Checking gix-negotiate v0.17.0
Checking sqlite3-sys v0.15.2
Checking sqlite v0.32.0
Compiling maybe-async v0.2.10
Checking radicle-crypto v0.14.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-crypto)
Checking regex v1.11.1
Checking arc-swap v1.7.1
Compiling portable-atomic v1.11.0
Checking gix-protocol v0.47.0
Checking gix-odb v0.66.0
Checking uuid v1.16.0
Compiling xattr v1.3.1
Compiling derive_more-impl v2.0.1
Compiling filetime v0.2.23
Compiling litrs v0.4.1
Checking lexopt v0.3.0
Checking bytes v1.10.1
Checking bitflags v1.3.2
Checking unicode-width v0.2.1
Checking console v0.16.0
Checking derive_more v2.0.1
Checking crossterm v0.25.0
Compiling document-features v0.2.11
Compiling tar v0.4.40
Checking newline-converter v0.3.0
Checking snapbox-macros v0.3.8
Checking fxhash v0.2.1
Checking salsa20 v0.10.2
Checking unicode-width v0.1.11
Checking normalize-line-endings v0.3.0
Checking similar v2.5.0
Checking streaming-iterator v0.1.9
Checking unit-prefix v0.5.1
Checking siphasher v0.3.11
Checking bloomy v1.2.0
Checking snapbox v0.4.17
Checking indicatif v0.18.0
Checking scrypt v0.11.0
Checking inquire v0.7.5
Compiling radicle-surf v0.22.0
Checking crossterm v0.29.0
Checking unicode-display-width v0.3.0
Checking systemd-journal-logger v2.2.2
Checking toml_datetime v0.7.0
Checking serde_spanned v1.0.0
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-rust v0.23.2
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-css v0.23.1
Compiling tree-sitter-c v0.23.2
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-python v0.23.4
Compiling tree-sitter-bash v0.23.3
Compiling heck v0.5.0
Checking pin-project-lite v0.2.16
Checking strsim v0.11.1
Checking clap_lex v0.7.5
Checking toml_writer v1.0.2
Checking clap_builder v4.5.44
Checking toml v0.9.5
Checking tokio v1.47.1
Compiling clap_derive v4.5.41
Checking os_info v3.12.0
Checking yansi v0.5.1
Checking base64 v0.13.1
Compiling radicle-cli v0.17.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli)
Compiling radicle-node v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-node)
Checking diff v0.1.13
Checking nonempty v0.5.0
Checking pretty_assertions v1.4.0
Checking human-panic v2.0.3
Checking clap v4.5.44
Checking structured-logger v1.0.4
Checking radicle-systemd v0.11.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-systemd)
Checking tree-sitter-highlight v0.24.4
Checking itertools v0.14.0
Checking num-integer v0.1.46
Checking socket2 v0.5.7
Compiling escargot v0.5.10
Checking timeago v0.4.2
Compiling qcheck-macros v1.0.0
Checking num-bigint v0.4.6
Compiling ahash v0.8.11
Checking num-iter v0.1.45
Checking num-complex v0.4.6
Checking env_filter v0.1.3
Checking bit-vec v0.8.0
Checking zerocopy v0.7.35
Checking borrow-or-share v0.2.2
Checking fluent-uri v0.3.2
Checking bit-set v0.8.0
Checking env_logger v0.11.8
Checking num-rational v0.4.2
Checking phf_shared v0.11.3
Compiling test-log-macros v0.2.18
Compiling radicle-remote-helper v0.14.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-remote-helper)
Checking num v0.4.3
Compiling paste v1.0.15
Checking outref v0.5.2
Checking vsimd v0.8.0
Checking test-log v0.2.18
Checking fraction v0.15.3
Checking phf v0.11.3
Checking fancy-regex v0.14.0
Checking uuid-simd v0.8.0
Checking referencing v0.30.0
Checking email_address v0.2.9
Checking bytecount v0.6.8
Checking base64 v0.22.1
Checking num-cmp v0.1.0
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.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-term)
Checking radicle-cob v0.17.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cob)
Checking radicle v0.20.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle)
Checking radicle-fetch v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-fetch)
Checking radicle-cli-test v0.13.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli-test)
Checking radicle-protocol v0.4.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-protocol)
Checking radicle-schemars v0.6.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.99s
+ cargo build --all-targets --workspace
Compiling cfg-if v1.0.0
Compiling libc v0.2.174
Compiling shlex v1.3.0
Compiling serde v1.0.219
Compiling memchr v2.7.2
Compiling typeid v1.0.3
Compiling smallvec v1.13.2
Compiling regex-syntax v0.8.5
Compiling jobserver v0.1.31
Compiling cc v1.2.2
Compiling aho-corasick v1.1.3
Compiling erased-serde v0.4.6
Compiling serde_fmt v1.0.3
Compiling getrandom v0.2.15
Compiling regex-automata v0.4.9
Compiling value-bag-serde1 v1.11.1
Compiling value-bag v1.11.1
Compiling typenum v1.17.0
Compiling log v0.4.27
Compiling generic-array v0.14.7
Compiling rand_core v0.6.4
Compiling bitflags v2.9.1
Compiling fastrand v2.1.0
Compiling crypto-common v0.1.6
Compiling scopeguard v1.2.0
Compiling lock_api v0.4.11
Compiling parking_lot_core v0.9.9
Compiling once_cell v1.21.3
Compiling parking_lot v0.12.3
Compiling subtle v2.5.0
Compiling tinyvec_macros v0.1.1
Compiling tinyvec v1.6.0
Compiling zerofrom v0.1.6
Compiling stable_deref_trait v1.2.0
Compiling yoke v0.7.5
Compiling zeroize v1.7.0
Compiling zerovec v0.10.4
Compiling thiserror v2.0.12
Compiling cpufeatures v0.2.12
Compiling adler2 v2.0.0
Compiling unicode-normalization v0.1.23
Compiling miniz_oxide v0.8.8
Compiling hashbrown v0.14.3
Compiling itoa v1.0.11
Compiling tinystr v0.7.6
Compiling block-padding v0.3.3
Compiling writeable v0.5.5
Compiling litemap v0.7.5
Compiling bstr v1.9.1
Compiling inout v0.1.3
Compiling icu_locid v1.5.0
Compiling crc32fast v1.4.0
Compiling block-buffer v0.10.4
Compiling digest v0.10.7
Compiling cipher v0.4.4
Compiling icu_provider v1.5.0
Compiling icu_locid_transform_data v1.5.1
Compiling icu_properties_data v1.5.1
Compiling icu_locid_transform v1.5.0
Compiling icu_collections v1.5.0
Compiling icu_normalizer_data v1.5.1
Compiling write16 v1.0.0
Compiling linux-raw-sys v0.4.13
Compiling icu_properties v1.5.1
Compiling utf16_iter v1.0.5
Compiling utf8_iter v1.0.4
Compiling rustix v0.38.34
Compiling thiserror v1.0.69
Compiling gix-trace v0.1.12
Compiling percent-encoding v2.3.1
Compiling sha2 v0.10.8
Compiling universal-hash v0.5.1
Compiling faster-hex v0.9.0
Compiling opaque-debug v0.3.1
Compiling form_urlencoded v1.2.1
Compiling gix-utils v0.1.14
Compiling libz-sys v1.1.16
Compiling icu_normalizer v1.5.0
Compiling tempfile v3.10.1
Compiling gix-hash v0.15.1
Compiling idna_adapter v1.2.0
Compiling signature v1.6.4
Compiling idna v1.0.3
Compiling same-file v1.0.6
Compiling byteorder v1.5.0
Compiling walkdir v2.5.0
Compiling url v2.5.4
Compiling ed25519 v1.5.3
Compiling flate2 v1.1.1
Compiling prodash v29.0.2
Compiling aead v0.5.2
Compiling ascii v1.1.0
Compiling amplify_num v0.5.2
Compiling ct-codecs v1.1.1
Compiling sha1_smol v1.0.0
Compiling ec25519 v0.1.0
Compiling gix-features v0.39.1
Compiling num-traits v0.2.19
Compiling poly1305 v0.8.0
Compiling chacha20 v0.9.1
Compiling libgit2-sys v0.17.0+1.8.1
Compiling equivalent v1.0.1
Compiling indexmap v2.2.6
Compiling amplify v4.6.0
Compiling polyval v0.6.2
Compiling hmac v0.12.1
Compiling cyphergraphy v0.3.0
Compiling sqlite3-src v0.5.1
Compiling ryu v1.0.17
Compiling home v0.5.9
Compiling keccak v0.1.5
Compiling base64ct v1.6.0
Compiling sha3 v0.10.8
Compiling pem-rfc7468 v0.7.0
Compiling gix-path v0.10.15
Compiling serde_json v1.0.140
Compiling ghash v0.5.1
Compiling pbkdf2 v0.12.2
Compiling git-ref-format-core v0.3.1
Compiling ctr v0.9.2
Compiling aes v0.8.4
Compiling base32 v0.4.0
Compiling cypheraddr v0.4.0
Compiling aes-gcm v0.10.3
Compiling ssh-encoding v0.2.0
Compiling chacha20poly1305 v0.10.1
Compiling blowfish v0.9.1
Compiling cbc v0.1.2
Compiling data-encoding v2.5.0
Compiling git-ref-format-macro v0.3.1
Compiling data-encoding-macro v0.1.14
Compiling ssh-cipher v0.2.0
Compiling bcrypt-pbkdf v0.10.0
Compiling noise-framework v0.4.0
Compiling socks5-client v0.4.1
Compiling crossbeam-utils v0.8.19
Compiling rand v0.8.5
Compiling signature v2.2.0
Compiling base-x v0.2.11
Compiling ssh-key v0.6.6
Compiling multibase v0.9.1
Compiling ref-cast v1.0.24
Compiling qcheck v1.0.0
Compiling crossbeam-channel v0.5.15
Compiling cyphernet v0.5.2
Compiling git-ref-format v0.3.1
Compiling radicle-ssh v0.10.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-ssh)
Compiling lazy_static v1.5.0
Compiling radicle-std-ext v0.1.0
Compiling dyn-clone v1.0.17
Compiling siphasher v1.0.1
Compiling jiff v0.2.1
Compiling radicle-dag v0.10.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-dag)
Compiling nonempty v0.9.0
Compiling winnow v0.6.26
Compiling anstyle-query v1.0.2
Compiling gix-hashtable v0.6.0
Compiling gix-validate v0.9.4
Compiling utf8parse v0.2.1
Compiling iana-time-zone v0.1.60
Compiling chrono v0.4.38
Compiling gix-date v0.9.4
Compiling gix-actor v0.33.2
Compiling gix-object v0.46.1
Compiling anstyle-parse v0.2.3
Compiling schemars v1.0.4
Compiling colored v2.1.0
Compiling serde-untagged v0.1.7
Compiling localtime v1.3.1
Compiling bytesize v2.0.1
Compiling memmap2 v0.9.4
Compiling anstyle v1.0.11
Compiling fast-glob v0.3.3
Compiling base64 v0.21.7
Compiling dunce v1.0.5
Compiling colorchoice v1.0.0
Compiling tree-sitter-language v0.1.2
Compiling anstream v0.6.13
Compiling gix-chunk v0.4.11
Compiling gix-commitgraph v0.25.1
Compiling gix-fs v0.12.1
Compiling gix-revwalk v0.17.0
Compiling linux-raw-sys v0.9.4
Compiling gix-tempfile v15.0.0
Compiling mio v1.0.4
Compiling rustix v1.0.7
Compiling errno v0.3.13
Compiling sem_safe v0.2.0
Compiling either v1.11.0
Compiling unicode-segmentation v1.11.0
Compiling shell-words v1.1.0
Compiling gix-command v0.4.1
Compiling signals_receipts v0.2.0
Compiling gix-lock v15.0.1
Compiling gix-url v0.28.2
Compiling gix-config-value v0.14.12
Compiling gix-quote v0.4.15
Compiling gix-sec v0.10.12
Compiling signal-hook-registry v1.4.5
Compiling gimli v0.31.1
Compiling signal-hook v0.3.18
Compiling gix-prompt v0.9.1
Compiling object v0.36.7
Compiling sqlite3-sys v0.15.2
Compiling sqlite v0.32.0
Compiling radicle-crypto v0.14.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-crypto)
Compiling addr2line v0.24.2
Compiling radicle-signals v0.11.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-signals)
Compiling gix-traverse v0.43.1
Compiling gix-revision v0.31.1
Compiling gix-diff v0.49.0
Compiling gix-packetline v0.18.4
Compiling mio v0.8.11
Compiling tree-sitter v0.24.4
Compiling rustc-demangle v0.1.26
Compiling backtrace v0.3.75
Compiling signal-hook-mio v0.2.4
Compiling gix-transport v0.44.0
Compiling gix-pack v0.56.0
Compiling gix-refspec v0.27.0
Compiling gix-credentials v0.26.0
Compiling getrandom v0.3.3
Compiling gix-ref v0.49.1
Compiling gix-shallow v0.1.0
Compiling convert_case v0.7.1
Compiling gix-negotiate v0.17.0
Compiling regex v1.11.1
Compiling arc-swap v1.7.1
Compiling gix-protocol v0.47.0
Compiling gix-odb v0.66.0
Compiling derive_more-impl v2.0.1
Compiling uuid v1.16.0
Compiling xattr v1.3.1
Compiling filetime v0.2.23
Compiling unicode-width v0.2.1
Compiling bytes v1.10.1
Compiling lexopt v0.3.0
Compiling bitflags v1.3.2
Compiling crossterm v0.25.0
Compiling console v0.16.0
Compiling tar v0.4.40
Compiling derive_more v2.0.1
Compiling anyhow v1.0.82
Compiling portable-atomic v1.11.0
Compiling newline-converter v0.3.0
Compiling snapbox-macros v0.3.8
Compiling fxhash v0.2.1
Compiling salsa20 v0.10.2
Compiling unicode-width v0.1.11
Compiling streaming-iterator v0.1.9
Compiling similar v2.5.0
Compiling siphasher v0.3.11
Compiling unit-prefix v0.5.1
Compiling normalize-line-endings v0.3.0
Compiling indicatif v0.18.0
Compiling bloomy v1.2.0
Compiling snapbox v0.4.17
Compiling radicle-surf v0.22.0
Compiling inquire v0.7.5
Compiling scrypt v0.11.0
Compiling crossterm v0.29.0
Compiling systemd-journal-logger v2.2.2
Compiling unicode-display-width v0.3.0
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-css v0.23.1
Compiling tree-sitter-python v0.23.4
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-rust v0.23.2
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-c v0.23.2
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-bash v0.23.3
Compiling toml_datetime v0.7.0
Compiling serde_spanned v1.0.0
Compiling strsim v0.11.1
Compiling toml_writer v1.0.2
Compiling clap_lex v0.7.5
Compiling pin-project-lite v0.2.16
Compiling toml v0.9.5
Compiling tokio v1.47.1
Compiling clap_builder v4.5.44
Compiling os_info v3.12.0
Compiling diff v0.1.13
Compiling yansi v0.5.1
Compiling radicle-node v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-node)
Compiling nonempty v0.5.0
Compiling radicle-cli v0.17.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli)
Compiling base64 v0.13.1
Compiling pretty_assertions v1.4.0
Compiling human-panic v2.0.3
Compiling structured-logger v1.0.4
Compiling clap v4.5.44
Compiling radicle-systemd v0.11.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-systemd)
Compiling tree-sitter-highlight v0.24.4
Compiling itertools v0.14.0
Compiling num-integer v0.1.46
Compiling socket2 v0.5.7
Compiling timeago v0.4.2
Compiling escargot v0.5.10
Compiling num-bigint v0.4.6
Compiling num-iter v0.1.45
Compiling num-complex v0.4.6
Compiling env_filter v0.1.3
Compiling num-rational v0.4.2
Compiling zerocopy v0.7.35
Compiling borrow-or-share v0.2.2
Compiling bit-vec v0.8.0
Compiling fluent-uri v0.3.2
Compiling bit-set v0.8.0
Compiling ahash v0.8.11
Compiling num v0.4.3
Compiling env_logger v0.11.8
Compiling phf_shared v0.11.3
Compiling outref v0.5.2
Compiling vsimd v0.8.0
Compiling radicle-remote-helper v0.14.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-remote-helper)
Compiling test-log v0.2.18
Compiling phf v0.11.3
Compiling referencing v0.30.0
Compiling uuid-simd v0.8.0
Compiling fraction v0.15.3
Compiling fancy-regex v0.14.0
Compiling email_address v0.2.9
Compiling base64 v0.22.1
Compiling num-cmp v0.1.0
Compiling bytecount v0.6.8
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.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-term)
Compiling radicle-cob v0.17.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cob)
Compiling radicle v0.20.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle)
Compiling radicle-fetch v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-fetch)
Compiling radicle-protocol v0.4.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-protocol)
Compiling radicle-cli-test v0.13.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli-test)
Compiling radicle-schemars v0.6.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 12s
+ 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.10.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-ssh)
Compiling num-traits v0.2.19
Checking url v2.5.4
Checking git2 v0.19.0
Checking radicle-dag v0.10.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-dag)
Checking chrono v0.4.38
Compiling amplify_syn v2.0.1
Checking bstr v1.9.1
Compiling proc-macro-error v1.0.4
Checking gix-path v0.10.15
Checking git-ref-format-core v0.3.1
Compiling amplify_derive v4.0.0
Compiling data-encoding-macro-internal v0.1.12
Compiling git-ref-format-macro v0.3.1
Checking gix-date v0.9.4
Checking gix-actor v0.33.2
Checking gix-validate v0.9.4
Checking data-encoding-macro v0.1.14
Checking git-ref-format v0.3.1
Checking gix-object v0.46.1
Checking multibase v0.9.1
Checking radicle-git-ext v0.8.1
Checking gix-commitgraph v0.25.1
Checking gix-command v0.4.1
Checking gix-config-value v0.14.12
Checking gix-url v0.28.2
Checking gix-quote v0.4.15
Checking gix-prompt v0.9.1
Checking gix-revwalk v0.17.0
Checking gix-diff v0.49.0
Checking radicle-signals v0.11.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-signals)
Checking gix-traverse v0.43.1
Checking gix-revision v0.31.1
Checking gix-packetline v0.18.4
Checking regex v1.11.1
Checking gix-transport v0.44.0
Checking gix-refspec v0.27.0
Checking gix-pack v0.56.0
Checking tree-sitter v0.24.4
Checking amplify v4.6.0
Checking gix-negotiate v0.17.0
Checking gix-credentials v0.26.0
Checking gix-ref v0.49.1
Checking cyphergraphy v0.3.0
Checking gix-shallow v0.1.0
Checking cypheraddr v0.4.0
Checking noise-framework v0.4.0
Checking socks5-client v0.4.1
Checking uuid v1.16.0
Checking cyphernet v0.5.2
Checking radicle-crypto v0.14.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-crypto)
Checking radicle-surf v0.22.0
Checking gix-odb v0.66.0
Checking gix-protocol v0.47.0
Checking radicle-cob v0.17.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cob)
Compiling radicle-cli v0.17.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli)
Checking human-panic v2.0.3
Checking tree-sitter-toml-ng v0.6.0
Checking radicle-term v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-term)
Checking tree-sitter-highlight v0.24.4
Compiling radicle-node v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-node)
Checking radicle-systemd v0.11.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-systemd)
Documenting radicle-systemd v0.11.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-systemd)
Documenting radicle-cob v0.17.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cob)
Checking radicle v0.20.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle)
Documenting radicle v0.20.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle)
Documenting radicle-crypto v0.14.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-crypto)
Documenting radicle-term v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-term)
Documenting radicle-signals v0.11.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-signals)
Documenting radicle-ssh v0.10.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-ssh)
Documenting radicle-dag v0.10.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-dag)
Checking radicle-fetch v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-fetch)
Documenting radicle-cli v0.17.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli)
Documenting radicle-schemars v0.6.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-schemars)
Checking radicle-protocol v0.4.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-protocol)
Documenting radicle-protocol v0.4.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-protocol)
Documenting radicle-node v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-node)
Documenting radicle-cli-test v0.13.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli-test)
Documenting radicle-fetch v0.16.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-fetch)
Documenting radicle-remote-helper v0.14.0 (/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-remote-helper)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.83s
Generated /954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/doc/radicle/index.html and 15 other files
+ cargo test --workspace --no-fail-fast
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s
Running unittests src/lib.rs (target/debug/deps/radicle-2d570a0fe531a2d7)
running 239 tests
test canonical::formatter::test::ascii_control_characters ... ok
test canonical::formatter::test::ordered_nested_object ... ok
test canonical::formatter::test::securesystemslib_asserts ... ok
test cob::cache::migrations::_2::tests::test_patch_json_deserialization ... ok
test cob::common::test::test_color ... ok
test cob::common::test::test_emojis ... ok
test cob::cache::tests::test_migrate_to ... ok
test cob::cache::tests::test_check_version ... ok
test cob::cache::migrations::_2::tests::test_migration_2 ... ok
test cob::common::test::test_title ... ok
test cob::identity::test::prop_json_eq_str ... 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_reject_concurrent ... 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::identity::test::test_identity_updates_concurrent_outdated ... ok
test cob::issue::test::test_invalid_actions ... ok
test cob::issue::test::test_invalid_tx ... ok
test cob::issue::test::test_invalid_tx_reference ... ok
test cob::issue::test::test_invalid_cob ... ok
test cob::issue::test::test_concurrency ... ok
test cob::issue::test::test_issue_all ... ok
test cob::issue::test::test_issue_comment_redact ... ok
test cob::issue::test::test_issue_comment ... 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_reassign ... ok
test cob::issue::test::test_issue_create_and_unassign ... ok
test cob::issue::test::test_issue_edit ... ok
test cob::issue::test::test_issue_edit_description ... ok
test cob::issue::test::test_issue_multilines ... ok
test cob::issue::test::test_issue_label ... 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_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_get ... ok
test cob::patch::cache::tests::test_list_by_status ... 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::encoding::review::test::test_review_deserialize_summary_v2 ... 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::test::test_patch_create_and_get ... ok
test cob::patch::cache::tests::test_find_by_revision ... ok
test cob::patch::test::test_patch_discussion ... ok
test cob::patch::cache::tests::test_counts ... ok
test cob::patch::test::test_patch_merge ... ok
test cob::patch::cache::tests::test_remove ... ok
test cob::patch::test::test_patch_review ... ok
test cob::patch::test::test_patch_redact ... ok
test cob::patch::test::test_patch_review_duplicate ... ok
test cob::patch::test::test_patch_review_comment ... ok
test cob::patch::test::test_patch_review_edit ... ok
test cob::patch::test::test_patch_review_edit_comment ... ok
test cob::patch::test::test_reactions_json_serialization ... 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::stream::tests::test_all_from ... ok
test cob::patch::test::test_patch_review_remove_summary ... ok
test cob::stream::tests::test_all_until ... ok
test cob::patch::test::test_patch_update ... ok
test cob::stream::tests::test_all_from_until ... ok
test cob::patch::test::test_patch_review_revision_redact ... ok
test cob::thread::tests::test_comment_edit_missing ... ok
test cob::stream::tests::test_from_until ... ok
test cob::thread::tests::test_comment_edit_redacted ... ok
test cob::stream::tests::test_regression_from_until ... 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 git::canonical::quorum::test::merge_base_commutative ... ok
test git::canonical::quorum::test::test_merge_bases ... ok
test cob::thread::tests::test_comment_redact_missing ... 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 cob::thread::tests::test_timeline ... 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_commit_quorum_fork_of_a_fork ... ok
test git::canonical::tests::test_commit_quorum_forked_merge_commits ... ok
test git::canonical::tests::test_commit_quorum_groups ... ok
test git::canonical::tests::test_commit_quorum_linear ... ok
test git::canonical::tests::test_commit_quorum_merges ... ok
test git::canonical::tests::test_commit_quorum_single ... ok
test git::canonical::tests::test_commit_quorum_three_way_fork ... ok
test git::canonical::tests::test_commit_quorum_two_way_fork ... ok
test git::canonical::tests::test_quorum_different_types ... ok
test git::canonical::rules::tests::test_canonical ... ok
test git::canonical::tests::test_tag_quorum ... 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::rules::tests::test_rule_validate_failures ... 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 identity::doc::test::test_max_delegates ... 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 node::address::store::test::test_disconnected_ban ... ok
test git::canonical::tests::test_quorum_properties ... 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::command::test::command_result ... ok
test node::config::test::partial ... 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 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_alias ... ok
test node::policy::store::test::test_update_scope ... ok
test node::refs::store::test::test_count ... ok
test node::refs::store::test::test_set_and_delete ... ok
test node::refs::store::test::test_set_and_get ... ok
test node::address::store::test::test_empty ... ok
test node::routing::test::test_count ... ok
test node::routing::test::test_entries ... ok
test node::routing::test::test_insert_and_get ... ok
test node::routing::test::test_insert_and_get_resources ... ok
test node::routing::test::test_insert_duplicate ... ok
test node::routing::test::test_insert_existing_updated_time ... ok
test node::routing::test::test_len ... ok
test node::routing::test::test_insert_and_remove ... ok
test node::routing::test::test_remove_many ... ok
test node::routing::test::test_remove_redundant ... ok
test node::routing::test::test_update_existing_multi ... ok
test node::sync::announce::test::all_synced_nodes_are_preferred_seeds ... ok
test node::sync::announce::test::announcer_adapts_target_to_reach ... ok
test node::routing::test::test_prune ... ok
test node::sync::announce::test::announcer_preferred_seeds_or_replica_factor ... 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_synced_with_unknown_node ... ok
test node::sync::announce::test::announcer_reached_preferred_seeds ... ok
test node::sync::announce::test::announcer_with_replication_factor_zero_and_preferred_seeds ... ok
test node::sync::announce::test::cannot_construct_announcer ... ok
test node::sync::announce::test::announcer_timed_out ... ok
test node::sync::announce::test::construct_only_preferred_seeds_provided ... ok
test node::sync::announce::test::construct_node_appears_in_multiple_input_sets ... ok
test node::sync::announce::test::local_node_in_multiple_sets ... ok
test node::sync::announce::test::invariant_progress_should_match_state ... ok
test node::sync::announce::test::local_node_in_synced_set ... ok
test node::sync::announce::test::local_node_in_preferred_seeds ... ok
test node::sync::announce::test::local_node_only_in_all_sets_results_in_no_seeds_error ... ok
test node::sync::announce::test::local_node_in_unsynced_set ... ok
test node::sync::announce::test::synced_with_local_node_is_ignored ... ok
test node::sync::announce::test::preferred_seeds_already_synced ... ok
test node::sync::announce::test::timed_out_after_reaching_success ... ok
test node::sync::announce::test::synced_with_same_node_multiple_times ... ok
test node::sync::fetch::test::all_nodes_are_candidates ... 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::reaches_target_of_max_replicas ... ok
test node::sync::fetch::test::all_nodes_are_fetchable ... ok
test node::sync::fetch::test::reaches_target_of_replicas ... ok
test node::sync::test::ensure_replicas_construction ... ok
test node::sync::test::replicas_constrain_to ... ok
test node::test::test_alias ... ok
test node::sync::fetch::test::reaches_target_of_preferred_seeds ... ok
test node::test::test_user_agent ... ok
test node::timestamp::tests::test_timestamp_max ... ok
test node::test::test_command_result ... ok
test profile::test::canonicalize_home ... ok
test profile::test::test_config ... ok
test cob::thread::tests::prop_ordering ... 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 storage::git::tests::test_references_of ... ok
test rad::tests::test_init ... 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. 239 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.20s
Running unittests src/lib.rs (target/debug/deps/radicle_cli-f3d8320346434c29)
running 26 tests
test commands::block::args::test::should_parse_rid ... ok
test commands::clone::args::test::should_parse_rid_non_urn ... ok
test commands::block::args::test::should_not_parse ... ok
test commands::block::args::test::should_parse_nid ... ok
test commands::clone::args::test::should_parse_rid_url ... ok
test commands::clone::args::test::should_parse_rid_urn ... ok
test commands::fork::args::test::should_not_parse_rid_url ... ok
test commands::fork::args::test::should_parse_rid_non_urn ... ok
test commands::fork::args::test::should_parse_rid_urn ... ok
test commands::inspect::test::test_tree ... ok
test commands::patch::review::builder::tests::test_review_comments_before ... ok
test commands::patch::review::builder::tests::test_review_comments_basic ... ok
test commands::patch::review::builder::tests::test_review_comments_multiline ... ok
test commands::patch::review::builder::tests::test_review_comments_split_hunk ... ok
test commands::publish::args::test::should_not_parse_rid_url ... ok
test commands::publish::args::test::should_parse_rid_urn ... ok
test commands::publish::args::test::should_parse_rid_non_urn ... ok
test git::ddiff::tests::diff_encode_decode_ddiff_hunk ... ok
test git::pretty_diff::test::test_pretty ... ignored
test git::unified_diff::test::test_diff_content_encode_decode_content ... ok
test git::unified_diff::test::test_diff_encode_decode_diff ... ok
test terminal::format::test::test_bytes ... 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. 25 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running unittests src/main.rs (target/debug/deps/rad-542b082137ab6f0c)
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-3a9eab8f1346877f)
running 109 tests
test framework_home ... ok
test git_push_and_fetch ... ok
test git_push_amend ... ok
test git_push_canonical_annotated_tags ... ok
test git_push_canonical_lightweight_tags ... ok
test git_push_diverge ... ok
test rad_auth ... ok
test rad_auth_errors ... ok
test rad_block ... ok
test git_push_rollback ... ok
test git_tag ... ok
test rad_checkout ... ok
test git_push_converge ... ok
test rad_clone ... ok
test rad_clean ... ok
test rad_clone_bare ... ok
test rad_clone_connect ... ok
test rad_clone_all ... ok
test rad_clone_unknown ... ok
test rad_clone_directory ... ok
test rad_cob_multiset ... ok
test rad_cob_log ... ok
test rad_cob_migrate ... ok
test rad_clone_partial_fail ... ok
test rad_cob_operations ... ok
test rad_cob_show ... ok
test rad_cob_update ... ok
test rad_config ... ok
test rad_cob_update_identity ... ok
test rad_diff ... ok
test rad_help ... 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_bare ... ok
test rad_init_detached_head ... ok
test rad_init_existing ... ok
test rad_init_existing_bare ... ok
test rad_init_no_git ... ok
test rad_init_no_seed ... ok
test rad_init_private ... ok
test rad_inbox ... ok
test rad_init_private_clone ... ok
test rad_fetch ... ok
test rad_fork ... ok
test rad_init_private_no_seed ... ok
test rad_init_private_clone_seed ... ok
test rad_init_sync_not_connected ... ok
test rad_init_private_seed ... ok
test rad_init_sync_preferred ... ok
test rad_init_with_existing_remote ... ok
test rad_inspect ... ok
test rad_issue ... ok
test rad_jj_bare ... ok
test rad_jj_colocated_patch ... ok
test rad_issue_list ... ok
test rad_key_mismatch ... 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_change_base ... ok
test rad_patch_ahead_behind ... 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_init_sync_timeout ... ok
test rad_patch_diff ... ok
test rad_init_sync_and_clone ... ok
test rad_patch_draft ... ok
test rad_patch_edit ... ok
test rad_patch_fetch_2 ... FAILED
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_open_explore ... ok
test rad_patch_update ... ok
test rad_patch_via_push ... FAILED
test rad_publish ... ok
test rad_review_by_hunk ... ok
test rad_seed_and_follow ... ok
test rad_remote ... ok
test rad_self ... ok
test rad_seed_many ... ok
test rad_sync_without_node ... ok
test rad_unseed ... ok
test rad_push_and_pull_patches ... ok
test rad_warn_old_nodes ... ok
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_patch_fetch_2 stdout ----
1788878268 test: Using PATH ["/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli/target/debug", "/usr/local/cargo/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/tmp/radicle-OxAFzw/work/alice"]
1788878268 test: rad-init.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["init", "--name", "heartwood", "--description", "Radicle Heartwood Protocol & Stack", "--no-confirm", "--public", "-v"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-init.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["init"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-init.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["ls"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-init.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["node", "inventory"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: Using PATH ["/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli/target/debug", "/usr/local/cargo/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/tmp/radicle-OxAFzw/work/alice"]
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["checkout", "-b", "alice/1", "-q"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["commit", "--allow-empty", "-m", "Changes #1", "-q"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["push", "rad", "-o", "patch.message=Changes", "HEAD:refs/patches"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["checkout", "master", "-q"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["branch", "-D", "alice/1", "-q"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["update-ref", "-d", "refs/remotes/rad/alice/1"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["update-ref", "-d", "refs/remotes/rad/patches/5e2dedcc5d515fcbc1cca483d3376609fe889bfb"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["gc", "--prune=now"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["branch", "-r"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["pull"] in `/tmp/radicle-OxAFzw/work/alice`..
1788878269 test: rad-patch-fetch-2.md: Running `git` with ["branch", "-r"] in `/tmp/radicle-OxAFzw/work/alice`..
thread 'rad_patch_fetch_2' panicked at crates/radicle-cli-test/src/lib.rs:503:36:
--- Expected
++++ actual: stdout
1 - rad/HEAD -> rad/master
2 1 | rad/master
3 2 | rad/patches/5e2dedcc5d515fcbc1cca483d3376609fe889bfb
Exit status: 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- rad_patch_via_push stdout ----
1788878270 test: Using PATH ["/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli/target/debug", "/usr/local/cargo/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/tmp/radicle-saZV1J/work/alice"]
1788878270 test: rad-init.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["init", "--name", "heartwood", "--description", "Radicle Heartwood Protocol & Stack", "--no-confirm", "--public", "-v"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-init.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["init"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-init.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["ls"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-init.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["node", "inventory"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: Using PATH ["/954238a4-45e1-411d-b26c-81a5132cc6e0/w/crates/radicle-cli/target/debug", "/usr/local/cargo/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/tmp/radicle-saZV1J/work/alice"]
1788878270 test: rad-patch-via-push.md: Running `git` with ["checkout", "-b", "feature/1"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-patch-via-push.md: Running `git` with ["commit", "-a", "-m", "Add things", "-q", "--allow-empty"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-patch-via-push.md: Running `git` with ["push", "-o", "patch.message=Add things #1", "-o", "patch.message=See commits for details.", "rad", "HEAD:refs/patches"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-patch-via-push.md: Running `/954238a4-45e1-411d-b26c-81a5132cc6e0/w/target/debug/rad` with ["patch", "show", "6035d2f582afbe01ff23ea87528ae523d76875b6"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-patch-via-push.md: Running `git` with ["branch", "-vv"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-patch-via-push.md: Running `git` with ["status", "--short", "--branch"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-patch-via-push.md: Running `git` with ["fetch"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-patch-via-push.md: Running `git` with ["push"] in `/tmp/radicle-saZV1J/work/alice`..
1788878270 test: rad-patch-via-push.md: Running `git` with ["show-ref"] in `/tmp/radicle-saZV1J/work/alice`..
thread 'rad_patch_via_push' panicked at crates/radicle-cli-test/src/lib.rs:503:36:
--- Expected
++++ actual: stdout
1 1 | 42d894a83c9c356552a57af09ccdbd5587a99045 refs/heads/feature/1
2 2 | f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/heads/master
3 - f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/remotes/rad/HEAD
4 3 | f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/remotes/rad/master
5 4 | 42d894a83c9c356552a57af09ccdbd5587a99045 refs/remotes/rad/patches/6035d2f582afbe01ff23ea87528ae523d76875b6
Exit status: 0
failures:
rad_patch_fetch_2
rad_patch_via_push
test result: FAILED. 105 passed; 2 failed; 2 ignored; 0 measured; 0 filtered out; finished in 79.93s
error: test failed, to rerun pass `-p radicle-cli --test commands`
Running unittests src/lib.rs (target/debug/deps/radicle_cli_test-86286ee1951488d5)
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.00s
Running unittests src/lib.rs (target/debug/deps/radicle_cob-0306f64780721ed5)
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 type_name::test::valid_typenames ... ok
test tests::list_cobs ... ok
test tests::update_cob ... ok
test tests::traverse_cobs ... ok
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
Running unittests src/lib.rs (target/debug/deps/radicle_crypto-afd6259deef790e7)
running 12 tests
test ssh::fmt::test::test_key ... ok
test ssh::fmt::test::test_fingerprint ... ok
test ssh::keystore::tests::test_init_no_passphrase ... 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::prop_key_equality ... ok
test tests::test_encode_decode ... ok
test tests::test_e25519_dh ... 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.84s
Running unittests src/lib.rs (target/debug/deps/radicle_dag-7d941d2839407890)
running 20 tests
test tests::test_cycle ... ok
test tests::test_contains ... ok
test tests::test_dependencies ... ok
test tests::test_fold_diamond ... ok
test tests::test_fold_multiple_roots ... ok
test tests::test_diamond ... ok
test tests::test_fold_reject ... ok
test tests::test_fold_sorting_1 ... ok
test tests::test_fold_sorting_2 ... ok
test tests::test_len ... ok
test tests::test_get ... ok
test tests::test_complex ... ok
test tests::test_is_empty ... ok
test tests::test_merge_1 ... ok
test tests::test_merge_2 ... ok
test tests::test_prune_2 ... ok
test tests::test_prune_1 ... ok
test tests::test_remove ... ok
test tests::test_siblings ... ok
test tests::test_prune_by_sorting ... 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-a7bd5d4a6acb930c)
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-0d94bb6d4f2c9b81)
running 74 tests
test control::tests::test_control_socket ... ok
test reactor::timer::tests::test_next ... ok
test reactor::timer::tests::test_wake ... ok
test reactor::timer::tests::test_wake_exact ... ok
test fingerprint::tests::matching ... ok
test control::tests::test_seed_unseed ... ok
test tests::e2e::missing_default_branch ... ok
test tests::e2e::test_background_foreground_fetch ... ok
test tests::e2e::missing_delegate_default_branch ... ok
test tests::e2e::test_catchup_on_refs_announcements ... 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_connection_crossing ... ok
test tests::e2e::test_fetch_followed_remotes ... ok
test tests::e2e::test_concurrent_fetches ... ok
test tests::e2e::test_fetch_preserve_owned_refs ... ok
test tests::e2e::test_fetch_unseeded ... ok
test tests::e2e::test_fetch_up_to_date ... ok
test tests::e2e::test_inventory_sync_basic ... ok
test tests::e2e::test_fetch_emits_canonical_ref_update ... 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_connection_kept_alive ... ok
test tests::test_announcement_relay ... 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_persistent_peer_connect ... ok
test tests::test_inventory_pruning ... 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_ann_same_rid ... ok
test tests::test_queued_fetch_from_command_same_rid ... ok
test tests::test_queued_fetch_max_capacity ... ok
test tests::test_redundant_connect ... 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_refs_synced_event ... ok
test tests::test_seed_repo_subscribe ... ok
test wire::test::test_inventory_ann_with_extension ... ok
test wire::test::test_pong_message_with_extension ... ok
test tests::test_seeding ... ok
test tests::prop_inventory_exchange_dense ... ok
test tests::test_announcement_message_amplification ... ok
test result: ok. 74 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 16.86s
Running unittests src/main.rs (target/debug/deps/radicle_node-c868df5414756436)
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-97ebc64cd3aa78d6)
running 45 tests
test deserializer::test::test_decode_next ... ok
test deserializer::test::test_unparsed ... ok
test deserializer::test::prop_decode_next ... ok
test service::filter::test::test_parameters ... 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_ref_remote_limit ... ok
test service::message::tests::test_inventory_limit ... ok
test wire::frame::test::test_encode_git_large ... ok
test wire::frame::test::test_stream_id ... ok
test wire::message::tests::prop_roundtrip_address ... 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::test_pingpong_encode_max_size ... ok
test wire::message::tests::test_pong_encode_size_overflow - should panic ... ok
test wire::message::tests::prop_roundtrip_message ... ok
test wire::tests::prop_oid ... ok
test wire::tests::prop_roundtrip_filter ... ok
test wire::tests::prop_roundtrip_publickey ... ok
test wire::tests::prop_roundtrip_refs ... ok
test wire::tests::prop_roundtrip_repoid ... ok
test wire::tests::prop_roundtrip_signed_refs ... ok
test wire::tests::prop_roundtrip_tuple ... ok
test wire::tests::prop_roundtrip_u16 ... ok
test wire::tests::prop_roundtrip_u32 ... ok
test wire::tests::prop_roundtrip_u64 ... ok
test wire::tests::prop_roundtrip_vec ... ok
test wire::tests::prop_signature ... ok
test wire::tests::prop_string ... 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_roundtrip_varint ... ok
test wire::varint::test::test_encode_overflow - should panic ... ok
test wire::varint::test::test_encoding ... ok
test wire::message::tests::test_refs_ann_max_size ... ok
test wire::message::tests::prop_message_decoder ... 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.51s
Running unittests src/main.rs (target/debug/deps/git_remote_rad-2deb345917eb3b76)
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-fb5673a1de7be445)
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-3340fefd7bdb5980)
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-45829b725338b561)
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-1ac372ee1186082a)
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-8ef8be3b737582a7)
running 21 tests
test ansi::tests::colors_enabled ... ok
test ansi::tests::colors_disabled ... ok
test ansi::tests::wrapping ... ok
test cell::test::test_width ... ok
test element::test::test_spaced ... ok
test table::test::test_table ... ok
test element::test::test_truncate ... ok
test element::test::test_width ... ok
test table::test::test_table_border ... ok
test table::test::test_table_border_maximized ... ok
test table::test::test_table_border_truncated ... ok
test table::test::test_table_truncate ... ok
test table::test::test_table_unicode ... ok
test table::test::test_table_unicode_truncate ... ok
test table::test::test_truncate ... ok
test textarea::test::test_wrapping ... ok
test textarea::test::test_wrapping_code_block ... 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. 21 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>::truncate (line 50) ... 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>::unbound (line 149) ... 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>::push (line 122) ... ok
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.56s
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.47s
error: 1 target failed:
`-p radicle-cli --test commands`
Exit code: 101
{
"response": "finished",
"result": "failure"
}