Skip to content

Commit 3b45cf7

Browse files
alexcrichtonEh2406
authored andcommitted
Don't add the entire resolve to the yanked whitelist
If we're updating a crate then its previous version in the lock file is no longer whitelisted. We may want to perhaps change this in the future!
1 parent a539ea3 commit 3b45cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ fn register_previous_locks(
471471
// package's dependencies here as that'll be covered below to poison those
472472
// if they changed.
473473
let mut avoid_locking = HashSet::new();
474-
registry.add_to_yanked_whitelist(resolve.iter());
474+
registry.add_to_yanked_whitelist(resolve.iter().filter(keep));
475475
for node in resolve.iter() {
476476
if !keep(&node) {
477477
add_deps(resolve, node, &mut avoid_locking);

0 commit comments

Comments
 (0)