You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] apm prune deletes a dependency that another installed package still needs after it is removed from direct dependencies #3668
With dependencies: [org/d, org/e] where org/d depends on org/e, removing org/e from apm.yml by hand and running apm prune deletes org/e (checkout, deployed files and lock entry), even though org/d still needs it. apm audit --ci then passes. apm install handles the same edit correctly, re-recording org/e as transitive.
To reproduce
Install with org/d and org/e, where org/d depends on org/e.
Remove org/e from apm.yml.
apm prune
Expected behavior
org/e is kept because it is still reachable.
Actual behavior
It is pruned. Prune computes expected packages from direct manifest entries plus lock entries with depth > 1, so the stale direct entry looks like an orphan.
Found by the 0.36.0 pre-release lifecycle sweep (#3649). Same behavior on v0.35.1, so this is not a 0.36 regression.
Activity
fix(prune): keep a hand-removed direct dependency another package sti…
fix(deps): find case-equivalent installs in the reachability walk; ke…
fix(prune): keep a hand-removed direct dependency another package sti…
fix(deps): find case-equivalent installs in the reachability walk; ke…
test(deps): guard the case-equivalent install lookup directly (#3668)
fix: 0.36.0 red-team regression sweep (export-patch, view --file, loc…
test(prune): generated graphs check that a fresh resolve keeps prune'…
test(prune): the convergence oracle exempts rows, not graphs