Skip to main content

keeps_lock

Function keeps_lock 

Source
pub fn keeps_lock(
    constraints: &[(&str, &Constraint)],
    locked: &Version,
    policy: SelectionPolicy,
    excluded: &HashSet<Version>,
) -> bool
Expand description

Whether the lock is kept: policy prefers it (a Constraint::Latest asks for the newest, so beside one PreferLockThenLatest prefers nothing) and the locked version is allowed. It does not ask whether the tag is still in the repository, so the answer needs no tag list and a tag deleted upstream keeps the lock. --frozen is the binary’s own rule and asks allows.