Skip to main content

dedupe_packages

Function dedupe_packages 

Source
pub fn dedupe_packages(
    project: &[Value],
    user: &[Value],
    identity: impl Fn(&str, &str) -> String,
) -> Vec<(Value, &'static str)>
Expand description

pi’s dedupePackages: the packages entries of the project, then the user, with their scopes, project or user. A project entry wins over the user’s for the same package, as identity names it for a source and scope, unless it sets autoload: false: then both stay.