Function tvix_store::import::import_path_as_nar_ca

source ·
pub async fn import_path_as_nar_ca<BS, DS, PS, NS, P>(
    path: P,
    name: &str,
    blob_service: BS,
    directory_service: DS,
    path_info_service: PS,
    nar_calculation_service: NS,
) -> Result<PathInfo, Error>
Expand description

Ingest the contents at the given path path into castore, and registers the resulting root node in the passed PathInfoService, using the “NAR sha256 digest” and the passed name for output path calculation. Inserts the PathInfo into the PathInfoService and returns it back to the caller.