Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle/sigrefs: Revert strict verification of `refs/rad/root`
✗ CI failure Lorenz Leutgeb committed 1 month ago
commit e33cc28c90b6ada6b28b1f7e62061148f35ae0e0
parent d01ff2e79d7159fd96b5b580b59224562d66d840
1 failed (1 total) View logs
2 files changed +10 -2
modified crates/radicle/src/storage/refs/sigrefs/read.rs
@@ -258,10 +258,17 @@ impl Commit {
                // Identity verification succeeds.
            }
        } else {
-
            return Err(error::Verify::MissingIdentity(error::MissingIdentity {
+
            let err = error::Verify::MissingIdentity(error::MissingIdentity {
                sigrefs_commit: self.oid,
                expected,
-
            }));
+
            });
+

+
            log::debug!("Reading sigrefs will error in the future: {err}");
+

+
            // TODO: Make this return the error
+
            // and enable test `test::commit_reader::missing_identity`.
+

+
            // Identity verification succeeds.
        }

        self.refs.remove_sigrefs();
modified crates/radicle/src/storage/refs/sigrefs/read/test/commit_reader.rs
@@ -73,6 +73,7 @@ fn missing_commit() {
}

#[test]
+
#[ignore = "strict verification of `refs/rad/root` reverted due to compatibility issues"]
fn missing_identity() {
    let head = mock::oid(1);
    let refs = [(mock::refs_heads_main(), mock::oid(10))];