Skip to content

Preflight targeted update names before fetching or changing checkouts #122

Closed

Description

@LunaStev

Evidence

resolver::resolve calls resolve_manifest_dependencies before validate_selected_packages. When vex update is requested while the manifest also introduces or changes a Git dependency, resolution may clone, fetch, or switch a checkout before reporting that the selected name is unavailable.

Acceptance criteria

  • Validate requested direct and transitive Git package names against the current graph before network or managed-checkout mutation.
  • An unknown selection reports available package names and leaves all checkout HEADs, remote-tracking refs, and vex.lock unchanged.
  • Preserve the ability to select a valid transitive package by name.
  • Cover both a stable graph and a manifest that adds or changes an unrelated Git dependency.
  • Coordinate with Stage dependency graph changes before publishing checkout state #44 for full graph transactionality; this issue is the narrower invalid-selection preflight.

Activity

  1. added
    bug
    dependencies
    stability
    on Sep 22, 2026
  2. LunaStev commented on Oct 2, 2026

    @LunaStev
    MemberAuthor

    Verified completed against master 67797f6415f640e8c33f9a072879124b83934f84.

    Targeted update validates only against the local graph before network or checkout mutation. Incomplete graphs explicitly require fetch, as approved. Tests cover changed/stale manifests, transitive selection, and preserving unrelated dependencies.

    Evidence: resolver/src/lib.rs, tests/git_lock_reproducibility.rs.

    Master CI run 36963423149 passed all eight jobs, including native Windows, macOS, and Linux tests. Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdependenciesstability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions