Skip to main content

preprocess_pack

Function preprocess_pack 

Source
pub fn preprocess_pack(
    entries: Vec<PackEntry>,
    registry: &PreprocessorRegistry,
    pack: &Pack,
    fs: &dyn Fs,
    datastore: &dyn DataStore,
) -> Result<PreprocessResult>
Expand description

Run the preprocessing pipeline for a pack’s file entries.

  1. Partition entries into preprocessor files vs regular files.
  2. For each preprocessor file: expand, write results to datastore.
  3. Create virtual PackEntries pointing to the datastore files.
  4. Check for collisions between virtual and regular entries.
  5. Return the result for merging into the handler pipeline.