rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood35cfb49ce3c0cef81b933962e9906bcb52fe0895
{
"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": "2f234c1a82f7934f058688ee201095d09e6660f0",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"title": "cli: allow `rad node config` without running node",
"state": {
"status": "archived",
"conflicts": []
},
"before": "bd8e0ebcda8f6f06dc20641a71614e3778a43fea",
"after": "35cfb49ce3c0cef81b933962e9906bcb52fe0895",
"commits": [
"35cfb49ce3c0cef81b933962e9906bcb52fe0895"
],
"target": "d285eccb23f3986bfa88fc1af033e6dcb0dc3a65",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "2f234c1a82f7934f058688ee201095d09e6660f0",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "`rad node config` will error if the node is not running.\n\nSince it is a local file, allow the command to succeed if the node is\nnot running.",
"base": "bd8e0ebcda8f6f06dc20641a71614e3778a43fea",
"oid": "35cfb49ce3c0cef81b933962e9906bcb52fe0895",
"timestamp": 1712657665
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "7aa07897-7d05-4fbc-937a-1210402f5229"
},
"info_url": "https://cci.rad.levitte.org//7aa07897-7d05-4fbc-937a-1210402f5229.html"
}
Started at: 2026-09-07 20:09:52.319229+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/7aa07897-7d05-4fbc-937a-1210402f5229/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 38 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 2f234c1a82f7934f058688ee201095d09e6660f0
✓ Switched to branch patch/2f234c1 at revision 2f234c1
✓ Branch patch/2f234c1 setup to track rad/patches/2f234c1a82f7934f058688ee201095d09e6660f0
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 35cfb49ce3c0cef81b933962e9906bcb52fe0895
HEAD is now at 35cfb49c cli: allow `rad node config` without running node
Exit code: 0
$ rad patch show 2f234c1a82f7934f058688ee201095d09e6660f0 -p
╭────────────────────────────────────────────────────────────────────────────────╮
│ Title cli: allow `rad node config` without running node │
│ Patch 2f234c1a82f7934f058688ee201095d09e6660f0 │
│ Author fintohaps z6Mkire…SQZ3voM │
│ Head 35cfb49ce3c0cef81b933962e9906bcb52fe0895 │
│ Base bd8e0ebcda8f6f06dc20641a71614e3778a43fea │
│ Target master │
│ Branches patch/2f234c1 │
│ Commits ahead 1, behind 1449 │
│ Status archived │
│ │
│ `rad node config` will error if the node is not running. │
│ │
│ Since it is a local file, allow the command to succeed if the node is │
│ not running. │
├────────────────────────────────────────────────────────────────────────────────┤
│ 35cfb49 cli: allow `rad node config` without running node │
├────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 2f234c1 @ bd8e0eb..35cfb49 by fintohaps z6Mkire…SQZ3voM 2 years ago │
╰────────────────────────────────────────────────────────────────────────────────╯
commit 35cfb49ce3c0cef81b933962e9906bcb52fe0895
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Tue Apr 9 11:13:07 2024 +0100
cli: allow `rad node config` without running node
`rad node config` will error if the node is not running.
Since it is a local file, allow the command to succeed if the node is
not running.
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
diff --git a/radicle-cli/src/commands/node.rs b/radicle-cli/src/commands/node.rs
index 53ea0efc9..6c45c281d 100644
--- a/radicle-cli/src/commands/node.rs
+++ b/radicle-cli/src/commands/node.rs
@@ -8,6 +8,7 @@ use radicle::node::config::ConnectAddress;
use radicle::node::Handle as _;
use radicle::node::{Address, Node, NodeId, PeerAddr};
use radicle::prelude::RepoId;
+use radicle::profile;
use crate::terminal as term;
use crate::terminal::args::{Args, Error, Help};
@@ -237,7 +238,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
Operation::Connect { addr, timeout } => {
control::connect(&mut node, addr.id, addr.addr, timeout)?
}
- Operation::Config { addresses } => {
+ Operation::Config { addresses } if node.is_running() => {
if addresses {
let cfg = node.config()?;
for addr in cfg.external_addresses {
@@ -247,6 +248,10 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
control::config(&node)?;
}
}
+ Operation::Config { .. } => {
+ let config = profile::Config::load(profile.config().as_path())?;
+ println!("{}", serde_json::to_string_pretty(&config.node)?);
+ }
Operation::Db { args } => {
commands::db(&profile, args)?;
}
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 7aa07897-7d05-4fbc-937a-1210402f5229 -v /opt/radcis/ci.rad.levitte.org/cci/state/7aa07897-7d05-4fbc-937a-1210402f5229/s:/7aa07897-7d05-4fbc-937a-1210402f5229/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/7aa07897-7d05-4fbc-937a-1210402f5229/w:/7aa07897-7d05-4fbc-937a-1210402f5229/w -w /7aa07897-7d05-4fbc-937a-1210402f5229/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /7aa07897-7d05-4fbc-937a-1210402f5229/s/script.sh
+ cargo --version
info: syncing channel updates for '1.77-x86_64-unknown-linux-gnu'
info: latest update on 2024-04-09, rust version 1.77.2 (25ef9e3d8 2024-04-09)
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.77.2 (e52e36006 2024-03-26)
+ rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)
+ cargo fmt --check
error: 'cargo-fmt' is not installed for the toolchain '1.77-x86_64-unknown-linux-gnu'.
To install, run `rustup component add --toolchain 1.77-x86_64-unknown-linux-gnu rustfmt`
Exit code: 1
{
"response": "finished",
"result": "failure"
}