Skip to content

Remove every conditional declaration of a direct dependency alias transactionally #186

Closed

Description

@LunaStev

Approved for v0.0.3-beta (D11).

On master cd13f1d, wson::edit::dependency uses the first matching alias. A valid format-4 manifest with Linux and Windows declarations of platform returns a successful edit but retains one declaration.

Acceptance:

  • vex remove <alias> removes all declarations of that alias in normal dependencies while preserving unrelated comments and formatting.
  • Test-only dependencies are not removed by matching their name.
  • Explicit feature references that would become invalid fail preflight with useful locations and leave manifest/lock bytes unchanged; do not silently delete feature groups.
  • Preserve manifest/lock journaling, rollback, offline behavior, workspace ownership and prior-format compatibility.
  • Cover two/many predicates, comma/comment layouts, feature references and recovery through CLI tests.

Related: #28, #55, #56. The user approved the design before implementation.

Activity

  1. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions