Skip to main content

load_or_build

Function load_or_build 

Source
pub fn load_or_build(
    layout: &RepoLayout,
    tree: &Tree,
    filter: &[PathBuf],
) -> Result<SparseOutcome, SparseBuildError>
Expand description

Revalidate a cache witness or build it from authenticated local metadata. Unsupported filters and oversized witnesses retain the existing full-metadata restoration path. Cache failures are disposable misses.

ยงErrors

Invalid local trees or a failed self-verification return a build error.