add_pattern_entries

Function add_pattern_entries 

Source
pub fn add_pattern_entries(
    lockfile: &mut LockFile,
    entries: Vec<LockedResource>,
    resource_type: ResourceType,
)
Expand description

Adds pattern-expanded entries to the lockfile with deterministic deduplication.

This function adds multiple resolved entries from a pattern dependency to the appropriate resource type collection in the lockfile. When duplicates are found, it uses the same deterministic merge strategy as add_or_update_lockfile_entry to ensure consistent lockfile generation.

§Arguments

  • lockfile - The mutable lockfile to update
  • entries - Vector of resolved resources from pattern expansion
  • resource_type - The type of resource being added

§Deduplication

Uses deterministic merge strategy:

  1. Prefer manifest dependencies over transitive dependencies
  2. Prefer install=true over install=false
  3. Otherwise keep existing entry