fork of radicle with Git LFS support, backed by IPFS
Go to file
Lorenz Leutgeb 3d352f23e6 canonical: Support Annotated Tags
The logic for computing canonical references conflated the semantics of
annotated and lighweight tags, yielding confusing/wrong results. The
main culprit was the call to `peel_to_commit` in
`impl ReadRepository for Repository`, peeling tag objects away.

To resolve this, we separate out quroum computation per object type: one
implementation for commits, and one for tags.

Also move  move canonical error types and methods into their own
module to have a cleaner file structure for the main logic.

Capture the `BTreeMap<Oid, u8>` type into a `Votes` struct, with its own API.

We were getting the objects from the repository twice – once in `Canonical::new`
and once again in `ensure_commit_or_tag` – so the latter was removed.

Use an `enum CanonicalObject` to specify which object types the canonical
process supports.

During `converges`, separate commits and tags, and ensure that we are only
looking at objects of one type. Note, that Fintan think this is actually the
*wrong* place to do it because we already filter the objects – so we should
keep track of that information higher up the callstack.

Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2025-08-04 17:00:54 +02:00
.cargo fetch: upgrade gix crates 2024-05-17 13:27:18 +02:00
.config nix: switch to use nix flakes 2023-12-13 12:25:12 +01:00
.github github: Add README.md 2025-06-05 09:26:26 +02:00
.radicle ci(.radicle/ambient.yaml): CI plan for Radicle CI Ambient adapter 2025-04-16 12:25:51 +03:00
build build: Rewrite tagging script 2025-06-24 13:54:21 +02:00
crates canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
debian chore(debian/changelog): update package version to match upstream 2025-07-23 11:34:20 +02:00
scripts chore: shellcheck fixes 2025-04-22 15:43:02 +02:00
systemd systemd: Provide user service for radicle-node 2025-06-02 19:47:27 +02:00
.dockerignore build: Add "upload" build step 2024-04-29 10:47:03 +02:00
.env.seed seed: Update default tracking policy for seed 2023-04-17 21:16:56 +02:00
.envrc chore: use watch_file in .envrc 2025-05-15 14:54:13 +02:00
.gitignore repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
.gitsigners Add Lorenz Leutgeb to `.gitsigners` 2025-04-17 14:33:36 +02:00
ARCHITECTURE.md docs: link to protocol guide 2024-04-03 15:32:26 +02:00
CHANGELOG.md chore: add canonical references to CHANGELOG 2025-07-16 16:54:43 +02:00
CONTRIBUTING.md docs: Add issue instructions 2025-07-08 11:39:18 +02:00
Cargo.lock ssh: Remove dependency on log 2025-07-23 10:31:15 +02:00
Cargo.toml radicle: Depend on winpipe for Windows support 2025-07-23 10:31:15 +02:00
DCO Add licenses and contributor information 2022-11-16 12:26:12 +01:00
HACKING.md docs: Add a note on running isolated nodes 2024-09-12 17:56:21 +02:00
LICENSE-APACHE Add licenses and contributor information 2022-11-16 12:26:12 +01:00
LICENSE-MIT Add licenses and contributor information 2022-11-16 12:26:12 +01:00
README.md docs: fix installation instructions in README.md 2025-07-20 15:33:12 +00:00
VERSIONING.md build: Add "upload" build step 2024-04-29 10:47:03 +02:00
build.rs build: Update env vars for build process 2024-06-20 10:47:50 +02:00
deny.toml fetch: integrate the latest `gix-protocol` into `radicle-fetch` 2025-04-17 14:09:22 +02:00
flake.lock rust-toolchain: 1.85 → 1.88 2025-07-24 17:43:12 +02:00
flake.nix flake: Delete Apps 2025-07-09 12:54:03 +01:00
git-remote-rad.1.adoc Add rudimentary Debian packaging for binaries 2023-11-01 12:56:35 +01:00
rad-id.1.adoc cli: test canonical tags 2025-07-16 16:54:43 +02:00
rad-patch.1.adoc man: make a note on draft patches 2025-01-14 14:05:21 +01:00
rad.1.adoc bootstrap: Migrate radicle.garden → radicle.xyz 2025-06-04 17:13:02 +02:00
radicle-node.1.adoc docs: Update manual pages to 1.0.0 2024-04-22 14:37:19 +02:00
rust-toolchain.toml rust-toolchain: 1.85 → 1.88 2025-07-24 17:43:12 +02:00

README.md

❤️🪵

Radicle Heartwood Protocol & Stack

Heartwood is the third iteration of the Radicle Protocol, a powerful peer-to-peer code collaboration and publishing stack. The repository contains a full implementation of Heartwood, complete with a user-friendly command-line interface (rad) and network daemon (radicle-node).

Radicle was designed to be a secure, decentralized and powerful alternative to code forges such as GitHub and GitLab that preserves user sovereignty and freedom.

See the Radicle home page for general information, and the Zulip chat to talk to the project.

See the Protocol Guide for an in-depth description of how Radicle works.

Installation

Requirements

  • Linux or Unix based operating system.
  • Git 2.34 or later
  • OpenSSH 9.1 or later with ssh-agent

📀 From binaries

Requires curl and tar.

Run the following command to install the latest binary release:

curl -sSf https://radicle.xyz/install | sh

Or visit our download page.

📦 From source

Requires the Rust toolchain.

You can install the Radicle stack from source, by running the following commands from inside this repository:

cargo install --path crates/radicle-cli --force --locked --root ~/.radicle
cargo install --path crates/radicle-node --force --locked --root ~/.radicle
cargo install --path crates/radicle-remote-helper --force --locked --root ~/.radicle

Or directly from our seed node:

cargo install --force --locked --root ~/.radicle \
    --git https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git \
    crates/radicle-cli crates/radicle-node crates/radicle-remote-helper

Running

Systemd unit files are provided for the node under the /systemd folder. They can be used as a starting point for further customization.

For running in debug mode, see HACKING.md.

Feedback

If you have feedback, feel free to create issues using rad issue, join our Zulip, or email feedback@radicle.xyz. Emails sent to this address are automatically posted to our public #feedback channel on Zulip, revealing the From header (which usually contains your name and email address). This allows us to discuss your feedback on Zulip, and, if necessary, respond to you via email.

Contributing

See CONTRIBUTING.md and HACKING.md for an introduction to contributing to Radicle.

License

Radicle is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.