MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / import_and_report_sidecars

Method import_and_report_sidecars

atomic-cli/src/commands/clone/command.rs:559–565  ·  view source on GitHub ↗

Ingest a pack's provenance graphs and attestations, reporting counts. Shared with `atomic pull` (see [`crate::commands::sidecars`]) so both paths land sidecars identically. Failures warn and continue — a bad sidecar never blocks a clone whose changes are all valid.

(&self, repo: &Repository, pack: &SyncPack)

Source from the content-addressed store, hash-verified

557 /// paths land sidecars identically. Failures warn and continue — a bad
558 /// sidecar never blocks a clone whose changes are all valid.
559 fn import_and_report_sidecars(&self, repo: &Repository, pack: &SyncPack) {
560 let stats = crate::commands::sidecars::import_sidecars(repo, pack);
561 if !stats.is_empty() {
562 print_blank();
563 crate::commands::sidecars::report_sidecars(stats);
564 }
565 }
566
567 /// Fetch the requested view's manifest and walk its parent chain up to
568 /// the root, returning the manifests in root→leaf apply order.

Callers 1

run_asyncMethod · 0.80

Calls 4

print_blankFunction · 0.85
report_sidecarsFunction · 0.85
import_sidecarsFunction · 0.50
is_emptyMethod · 0.45

Tested by

no test coverage detected