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 updateentries- Vector of resolved resources from pattern expansionresource_type- The type of resource being added
§Deduplication
Uses deterministic merge strategy:
- Prefer manifest dependencies over transitive dependencies
- Prefer install=true over install=false
- Otherwise keep existing entry