rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood487ca0a41f24f6c788fa10c2d1b5713e9549316a
{
"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:z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Created",
"patch": {
"id": "16e6fb0e684f6118cf3cab03d227ca96aa77cb97",
"author": {
"id": "did:key:z6MkoVzHJ2ThYS9gcMZWAtKCZyacJNZGKzpW9u59iBQACBrJ",
"alias": null
},
"title": "Improve `rad init` wording",
"state": {
"status": "merged",
"conflicts": []
},
"before": "9767b485c2aad1e23097d2b5165287ba84cfa452",
"after": "487ca0a41f24f6c788fa10c2d1b5713e9549316a",
"commits": [
"487ca0a41f24f6c788fa10c2d1b5713e9549316a",
"2701a0631bb388fa2b47b0ca9bde797547ac9a49"
],
"target": "6cfed884bf37cba1e0d8e97fa8b0e94df4a04b1f",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "16e6fb0e684f6118cf3cab03d227ca96aa77cb97",
"author": {
"id": "did:key:z6MkoVzHJ2ThYS9gcMZWAtKCZyacJNZGKzpW9u59iBQACBrJ",
"alias": null
},
"description": "Opening mostly to get familiar with radicle and get some hands on experience. The first commit removes a hardcoded value that was making the tests fail for me and the second improves the `rad init` cli text.",
"base": "9767b485c2aad1e23097d2b5165287ba84cfa452",
"oid": "487ca0a41f24f6c788fa10c2d1b5713e9549316a",
"timestamp": 1708626711
},
{
"id": "9c6c45cffa97d5e00a1959054325bc9c0e2d5bad",
"author": {
"id": "did:key:z6MkoVzHJ2ThYS9gcMZWAtKCZyacJNZGKzpW9u59iBQACBrJ",
"alias": null
},
"description": "Rebase.",
"base": "18fc41c53f181673189dcca0213aafc38229c0f9",
"oid": "ce1e1f71ae7554711f4481faed9b66543434d3f7",
"timestamp": 1710158952
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "49fa4135-e8cb-495c-9cc3-1a63eab7ef6f"
},
"info_url": "https://cci.rad.levitte.org//49fa4135-e8cb-495c-9cc3-1a63eab7ef6f.html"
}
Started at: 2025-10-21 19:34:03.736870+02:00
Commands:
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 .
✓ Creating checkout in ./...
✓ Remote cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT added
✓ Remote-tracking branch cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/master created for z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
✓ Remote cloudhead@z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW added
✓ Remote-tracking branch cloudhead@z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW/master created for z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW
✓ Remote fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM added
✓ Remote-tracking branch fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/master created for z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM
✓ Remote erikli@z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz added
✓ Remote-tracking branch erikli@z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz/master created for z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz
✓ 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/49fa4135-e8cb-495c-9cc3-1a63eab7ef6f/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 125 issues · 15 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 16e6fb0e684f6118cf3cab03d227ca96aa77cb97
✓ Switched to branch patch/16e6fb0 at revision 16e6fb0
✓ Branch patch/16e6fb0 setup to track rad/patches/16e6fb0e684f6118cf3cab03d227ca96aa77cb97
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 487ca0a41f24f6c788fa10c2d1b5713e9549316a
HEAD is now at 487ca0a4 cli: Improve `rad init` wording
Exit code: 0
$ git show 487ca0a41f24f6c788fa10c2d1b5713e9549316a
commit 487ca0a41f24f6c788fa10c2d1b5713e9549316a
Author: josibake <josibake@protonmail.com>
Date: Wed Feb 21 16:20:39 2024 +0100
cli: Improve `rad init` wording
If the user passes a <path> argument to init, it is incorrect and a
bit confusing to reference the "current directory" or "this directory"
e.g. "run rad . in current directory" when the repo was not created in the
current directory and was created with a path argument instead.
Use the path provided by the user in help text, otherwise reference
the current directory.
diff --git a/radicle-cli/examples/rad-init-no-git.md b/radicle-cli/examples/rad-init-no-git.md
index 3b9b8bb0..505c426a 100644
--- a/radicle-cli/examples/rad-init-no-git.md
+++ b/radicle-cli/examples/rad-init-no-git.md
@@ -3,7 +3,7 @@ it will fail:
``` (fail)
$ rad init
-✗ Error: a Git repository was not found at the current path
+✗ Error: a Git repository was not found at the given path
```
Ok so let's initialize one.
diff --git a/radicle-cli/src/commands/init.rs b/radicle-cli/src/commands/init.rs
index 20402ac6..8b765953 100644
--- a/radicle-cli/src/commands/init.rs
+++ b/radicle-cli/src/commands/init.rs
@@ -196,7 +196,7 @@ pub fn init(options: Options, profile: &profile::Profile) -> anyhow::Result<()>
let repo = match git::Repository::open(&path) {
Ok(r) => r,
Err(e) if radicle::git::ext::is_not_found_err(&e) => {
- anyhow::bail!("a Git repository was not found at the current path")
+ anyhow::bail!("a Git repository was not found at the given path")
}
Err(e) => return Err(e.into()),
};
@@ -320,8 +320,13 @@ pub fn init(options: Options, profile: &profile::Profile) -> anyhow::Result<()>
term::format::dim("(RID)"),
term::format::highlight(rid.urn())
);
+ let directory = if path == cwd {
+ term::format::tertiary("this directory").to_string()
+ } else {
+ term::format::tertiary(path.display()).to_string()
+ };
term::info!(
- "You can show it any time by running {} from this directory.",
+ "You can show it any time by running {} from {directory}.",
term::format::command("rad .")
);
term::blank();
Exit code: 0
shell: 'cargo --version rustc --version cargo fmt --check cargo clippy --all-targets --workspace -- --deny clippy::all cargo build --all-targets --workspace cargo doc --workspace cargo test --workspace --no-fail-fast '
Commands:
$ podman run --name 49fa4135-e8cb-495c-9cc3-1a63eab7ef6f -v /opt/radcis/ci.rad.levitte.org/cci/state/49fa4135-e8cb-495c-9cc3-1a63eab7ef6f/s:/49fa4135-e8cb-495c-9cc3-1a63eab7ef6f/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/49fa4135-e8cb-495c-9cc3-1a63eab7ef6f/w:/49fa4135-e8cb-495c-9cc3-1a63eab7ef6f/w -w /49fa4135-e8cb-495c-9cc3-1a63eab7ef6f/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:bookworm bash /49fa4135-e8cb-495c-9cc3-1a63eab7ef6f/s/script.sh
+ cargo --version
info: syncing channel updates for '1.74-x86_64-unknown-linux-gnu'
info: latest update on 2023-12-07, rust version 1.74.1 (a28077b28 2023-12-04)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std'
info: installing component 'rustc'
cargo 1.74.1 (ecb9851af 2023-10-18)
+ rustc --version
rustc 1.74.1 (a28077b28 2023-12-04)
+ cargo fmt --check
error: 'cargo-fmt' is not installed for the toolchain '1.74-x86_64-unknown-linux-gnu'.
To install, run `rustup component add --toolchain 1.74-x86_64-unknown-linux-gnu rustfmt`
Exit code: 1
{
"response": "finished",
"result": "failure"
}