Skip to main content

bind_imported_components

Function bind_imported_components 

Source
pub(super) fn bind_imported_components(
    mstore: &Store,
    id_store: &Store,
    identity_store: &Store,
    bundle_id: &str,
    imported_skill_ids: &[String],
) -> Vec<String>
Expand description

Bind an imported bundle’s skills into the ref table.

Phase 0b. The ref tables are authoritative for what a bundle contains, so an import that only wrote the inline column would produce a bundle that exports empty.

Must run after bundle_upsert. The bind checks the bundle exists in id_store first (managed_bind_bundle in storage/managed.rs) and refuses otherwise.

Returns warnings rather than failing: by this point the bundle row is already committed, so aborting would leave a half-imported bundle behind. A component that could not be bound is reported and the import continues.