Expand description
deps-cli update: default-mode planning and plan application.
Also hosts the shared plan/outcome types both planners (this module’s plan_updates
and security’s plan_security_updates) produce (spec 068, #1329).
Modules§
- ignore
[update].ignorerule evaluation (#1119, spec 068).- security
--security-onlyplanner: phase-B OSV re-verification,recommended_fix()targeting, the native-form yank filter, and the three-outcome classification (#1120, spec 068 FR-008 through FR-015).
Structs§
- Planned
Update Item - One dependency’s disposition in an
UpdatePlan. - Update
Plan - One completed
updaterun’s per-dependency plan.
Enums§
- Apply
Error - Error applying an
UpdatePlanto disk. - Cooldown
Fallback Note - Why
PlannedUpdateItem::cooldown_fallbackis set (spec 075 FR-013) — mirrorsPlannedUpdateItem::gossip_excluded_version’s existing attribution-field shape. - Current
Version - A dependency’s “current” version for
deps-cli update’s report. - Outcome
- A dependency’s disposition within an
UpdatePlan. - Skip
Reason - Why a default-mode candidate was skipped.
- Unfixable
Reason - Why a
--security-onlycandidate could not be fixed.
Functions§
- apply_
plan - Applies
plan’sOutcome::Appliededits topath, whose content the plan’s ranges were computed against wasoriginal_content(FR-016 through FR-020). - dedup_
applied_ items - Deduplicates
items’Outcome::Appliededits by span in place, demoting any item whose edit was dropped as an overlap toOutcome::Skippedwith reasonSkipReason::OverlapsAnotherEdit. - is_
requested --packagenarrowing input, matched afterformatter.normalize_package_nameon both sides (FR-005).- plan_
updates - Default-mode planner: every dependency
deps_core::edit::collect_update_candidatesconsiders, narrowed by--packageand[update].ignore(FR-003, FR-005, FR-006, FR-007).