Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
fetch: Log on old sigrefs
Lorenz Leutgeb committed 1 month ago
commit 8b166b232760ed4cae4f2009a6f96d79858db9c3
parent 7fb032d
1 file changed +6 -1
modified crates/radicle-fetch/src/state.rs
@@ -8,7 +8,7 @@ use radicle::identity::{Did, Doc, DocError};

use radicle::storage;
use radicle::storage::git::Repository;
-
use radicle::storage::refs::RefsAt;
+
use radicle::storage::refs::{FeatureLevel, RefsAt};
use radicle::storage::{
    git::Validation, Remote, RemoteId, RemoteRepository, Remotes, ValidateRepository, Validations,
};
@@ -548,6 +548,7 @@ impl FetchState {
                        }
                    }

+
                    let level = refs.feature_level();
                    let cache = self.as_cached(handle);
                    let mut fails =
                        sigrefs::validate(&cache, refs)?.unwrap_or(Validations::default());
@@ -561,6 +562,10 @@ impl FetchState {
                        valid_delegates.insert(remote);
                        remotes.insert(remote);
                    }
+

+
                    if level < FeatureLevel::LATEST {
+
                        log::warn!("Delegate {remote} is on feature level '{level}' which is lower than '{}', they should consider upgrading Radicle.", FeatureLevel::LATEST)
+
                    }
                }
            }
        }