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:456–462  ·  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

454 /// paths land sidecars identically. Failures warn and continue — a bad
455 /// sidecar never blocks a clone whose changes are all valid.
456 fn import_and_report_sidecars(&self, repo: &Repository, pack: &SyncPack) {
457 let stats = crate::commands::sidecars::import_sidecars(repo, pack);
458 if !stats.is_empty() {
459 print_blank();
460 crate::commands::sidecars::report_sidecars(stats);
461 }
462 }
463
464 /// Fetch the requested view's manifest and walk its parent chain up to
465 /// the root, returning the manifests in root→leaf apply order.

Callers 1

run_asyncMethod · 0.80

Calls 4

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

Tested by

no test coverage detected