rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood5266e5aa0809c8e7fd0e48eb9af01bbee4733e29
{
"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": "f9b9d7cfd32675cdc05e6e004ea1d3fbf9016a30",
"author": {
"id": "did:key:z6Mkgfwr3p56v3hg1qwZaVj5UHYoaVEQoVWV23mo2iFFBYQp",
"alias": "spacefrogg"
},
"title": "Install man pages when building from flake",
"state": {
"status": "merged",
"conflicts": []
},
"before": "8928c5ee2628e0b4d738289b5030fc3e2a918e5e",
"after": "5266e5aa0809c8e7fd0e48eb9af01bbee4733e29",
"commits": [
"5266e5aa0809c8e7fd0e48eb9af01bbee4733e29"
],
"target": "6cfed884bf37cba1e0d8e97fa8b0e94df4a04b1f",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "f9b9d7cfd32675cdc05e6e004ea1d3fbf9016a30",
"author": {
"id": "did:key:z6Mkgfwr3p56v3hg1qwZaVj5UHYoaVEQoVWV23mo2iFFBYQp",
"alias": "spacefrogg"
},
"description": "",
"base": "8928c5ee2628e0b4d738289b5030fc3e2a918e5e",
"oid": "5266e5aa0809c8e7fd0e48eb9af01bbee4733e29",
"timestamp": 1707236956
},
{
"id": "36ab2baffdbdfa25c17f5e1728ebe93dc78a0b50",
"author": {
"id": "did:key:z6Mkgfwr3p56v3hg1qwZaVj5UHYoaVEQoVWV23mo2iFFBYQp",
"alias": "spacefrogg"
},
"description": "Rebase.",
"base": "e52ce483a18d255e911f3f19a8fb9011df8ae91d",
"oid": "fb13e5f970f7712fe904351ea2812253000d73c6",
"timestamp": 1709937354
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef"
},
"info_url": "https://cci.rad.levitte.org//df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef.html"
}
Started at: 2025-10-21 17:37:03.132858+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/df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 125 issues · 15 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout f9b9d7cfd32675cdc05e6e004ea1d3fbf9016a30
✓ Switched to branch patch/f9b9d7c at revision f9b9d7c
✓ Branch patch/f9b9d7c setup to track rad/patches/f9b9d7cfd32675cdc05e6e004ea1d3fbf9016a30
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 5266e5aa0809c8e7fd0e48eb9af01bbee4733e29
HEAD is now at 5266e5aa Install man pages when building from flake
Exit code: 0
$ git show 5266e5aa0809c8e7fd0e48eb9af01bbee4733e29
commit 5266e5aa0809c8e7fd0e48eb9af01bbee4733e29
Author: Michael Raitza <michael.raitza@tu-dresden.de>
Date: Tue Feb 6 17:19:20 2024 +0100
Install man pages when building from flake
diff --git a/flake.nix b/flake.nix
index 927cfc6a..7f470f39 100644
--- a/flake.nix
+++ b/flake.nix
@@ -54,6 +54,12 @@
# Allow md files for testing purposes
(lib.hasSuffix "\.md" path)
||
+ # Allow adoc files
+ (lib.hasSuffix "\.adoc" path)
+ ||
+ # Allow man page build script
+ (lib.hasSuffix "build-man-pages\.sh" path)
+ ||
# Default filter from crane (allow .rs files)
(craneLib.filterCargoSources path type);
@@ -84,6 +90,20 @@
cargoArtifacts =
craneLib.buildDepsOnly commonArgs;
+ # Build the listed .adoc files as man pages to the package.
+ buildManPages = pages: {
+ nativeBuildInputs = [ pkgs.asciidoctor ];
+ postInstall = ''
+ for f in ${lib.escapeShellArgs pages} ; do
+ cat=''${f%.adoc}
+ cat=''${cat##*.}
+ [ -d "$out/share/man/man$cat" ] || mkdir -p "$out/share/man/man$cat"
+ scripts/build-man-pages.sh "$out/share/man/man$cat" $f
+ done
+ '';
+ outputs = [ "out" "man" ];
+ };
+
# Build the actual crate itself, reusing the dependency
# artifacts from above.
radicle = craneLib.buildPackage (commonArgs
@@ -91,7 +111,12 @@
inherit (craneLib.crateNameFromCargoToml {cargoToml = ./radicle/Cargo.toml;});
doCheck = false;
inherit cargoArtifacts;
- });
+ } // (buildManPages [
+ "git-remote-rad.1.adoc"
+ "rad.1.adoc"
+ "radicle-node.1.adoc"
+ "rad-patch.1.adoc"
+ ]));
in {
# Formatter
formatter = pkgs.alejandra;
@@ -185,7 +210,9 @@
inherit cargoArtifacts;
cargoBuildCommand = "cargo build --release -p radicle-httpd";
doCheck = false;
- });
+ } // (buildManPages [
+ "radicle-httpd.1.adoc"
+ ]));
};
apps.default = flake-utils.lib.mkApp {
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 df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef -v /opt/radcis/ci.rad.levitte.org/cci/state/df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef/s:/df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef/w:/df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef/w -w /df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:bookworm bash /df3fe85c-4e0a-4f8e-838b-1b7e2c6c7eef/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"
}