Skip to main content

install

Function install 

Source
pub fn install(
    manifest: &AddonManifest,
    source: &str,
    force: bool,
    artifact: Option<ArtifactReceipt>,
) -> Result<InstallOutcome, String>
Expand description

Wire manifest into the global gateway and record it in the store.

source is recorded for addon list ("registry" or "local"). force bypasses the capability-coherence gate (#1080). artifact is the receipt of a managed prebuilt binary the CLI layer installed beforehand (GH #725) — like the bootstrap, the impure download runs in the CLI layer and only the receipt is persisted here. Replaces any existing gateway server / store entry with the same name (idempotent re-install). Returns an error if any preflight check rejects the addon.