pub fn run(
package_file: &Path,
scope_override: Option<Scope>,
registry_handle: &str,
version_override: Option<&str>,
yes: bool,
sub_packages: Option<Vec<String>>,
link_bins: bool,
pb: Option<&ProgressBar>,
) -> Result<Vec<String>, Error>Expand description
Performs the low-level extraction and staging of a package archive.
Atomic Staging Pattern:
- The archive is unpacked into a temporary system
temp_dir. - Files are then moved into a
.tmp-install-subdirectory within the target store. - Only after ALL files are staged and shims are verified does Zoi move
the staging folder to its final versioned path (
{version}/).
This ensures that a crash, power loss, or network failure during extraction never leaves a partially-installed or broken package in the Zoi store.