Skip to content

Improve recovery when a locked Git commit is no longer advertised #87

Closed

Description

@LunaStev

Problem

A lockfile can pin a commit that existed on a branch before a force-push or deletion. On a fresh machine, clone plus a normal ref fetch may not contain that object. Vex currently retries the same broad fetch and then fails without distinguishing an unavailable locked object from other Git failures.

Acceptance criteria

  • Attempt a safe exact-object fetch when the server and protocol permit it.
  • Never silently replace the locked commit with a current branch or tag.
  • Distinguish missing local object, remote refusal, authentication failure, and permanently unavailable commit.
  • Explain that reproducibility requires the source host or cache to retain the object.
  • Allow the shared cache from Add a shared Git object cache for dependencies #29 to satisfy offline reuse.
  • Add local Git tests that remove the commit from advertised refs and simulate object pruning.

Activity

  1. added
    ui/ux
    dependencies
    stability
    on Sep 18, 2026
  2. self-assigned this
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependenciesstabilityui/ux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions