Skip to main content

Module update

Module update 

Source
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].ignore rule evaluation (#1119, spec 068).
security
--security-only planner: 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§

PlannedUpdateItem
One dependency’s disposition in an UpdatePlan.
UpdatePlan
One completed update run’s per-dependency plan.

Enums§

ApplyError
Error applying an UpdatePlan to disk.
CooldownFallbackNote
Why PlannedUpdateItem::cooldown_fallback is set (spec 075 FR-013) — mirrors PlannedUpdateItem::gossip_excluded_version’s existing attribution-field shape.
CurrentVersion
A dependency’s “current” version for deps-cli update’s report.
Outcome
A dependency’s disposition within an UpdatePlan.
SkipReason
Why a default-mode candidate was skipped.
UnfixableReason
Why a --security-only candidate could not be fixed.

Functions§

apply_plan
Applies plan’s Outcome::Applied edits to path, whose content the plan’s ranges were computed against was original_content (FR-016 through FR-020).
dedup_applied_items
Deduplicates items’ Outcome::Applied edits by span in place, demoting any item whose edit was dropped as an overlap to Outcome::Skipped with reason SkipReason::OverlapsAnotherEdit.
is_requested
--package narrowing input, matched after formatter.normalize_package_name on both sides (FR-005).
plan_updates
Default-mode planner: every dependency deps_core::edit::collect_update_candidates considers, narrowed by --package and [update].ignore (FR-003, FR-005, FR-006, FR-007).