From eeec08b8d15ac3c3301060c71772a664bd2a4685 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 19 Nov 2026 17:25:11 +0000 Subject: Cargo.toml: Automerge pinned to exactly 0.12.0 Nodes build remakes' snapshots and a federation's founding changes byte for byte, as Automerge encodes them: a build with another Automerge rejoins instead of switching, and could build another genesis change. `automerge = "0.12"` let `cargo update`, or a distribution building without the lock, take any 0.12.x. It names exactly 0.12.0 now, which the lock holds already, so that moving it is a change made on purpose, said in the change log. --- CHANGELOG.md | 4 ++++ Cargo.toml | 5 ++++- docs/operations.md | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da25cf3..db1aad2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ it from the release before ([`docs/operations.md`](docs/operations.md), ## Unreleased +* Automerge is pinned to exactly the version `Cargo.toml` names, so no rebuild changes + what nodes must agree on unnoticed ([`docs/operations.md`](docs/operations.md), + [Upgrading](docs/operations.md#upgrading); [`Cargo.toml`](Cargo.toml)). + * `continuum-party show` says what a proposal does, in words, before a vote: who voted what, the parties let in or taken out, keys by fingerprint, rules added and dropped, a checkpoint and what moving there refuses, a revision, who writes where after it. diff --git a/Cargo.toml b/Cargo.toml index 3d359b5..04fe4e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,10 @@ safelog = { version = "0.10", optional = true } argon2 = { version = "0.6", features = ["getrandom"] } async-stream = "0.3" async-trait = "0.1" -automerge = "0.12" +# Exactly this one: nodes build remakes' snapshots and the founding changes byte for byte, +# as Automerge encodes them, and a federation's events are kept in its changes; a change +# of version is a change of what nodes must agree on (docs/operations.md, Upgrading). +automerge = "=0.12.0" axum = "0.8" console-subscriber = { version = "0.5.0", optional = true } base64 = "0.23" diff --git a/docs/operations.md b/docs/operations.md index d100a49..0f906eb 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -142,7 +142,8 @@ A node upgrades by restarting with its files. What to know: * **Automerge.** A remake needs every node to build the same snapshot, byte for byte, so the same Automerge version everywhere; a node with another one rejoins instead of switching ([`remakes.md`](remakes.md), [Limits](remakes.md#limits)). Don't remake while - the swarm runs two versions. + the swarm runs two versions. A build has exactly the Automerge its `Cargo.toml` names + (`automerge` in `--version`), and a release changing it says so in the change log. * **The dashboard** reloads by itself once its node serves another version of it. ## Behind a reverse proxy -- cgit v1.3.1