Skip to content

Lock Git dependency graphs and report build progress - #8

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
LunaStev:feat/git-lock-and-status
Aug 6, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
LunaStev:feat/git-lock-and-status

Conversation

@LunaStev

@LunaStev LunaStev commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Resolve path and Git dependency manifests recursively into a complete dependency graph.
  • Pin Git dependencies to exact commit SHAs in vex.lock version 2.
  • Add vex fetch for materializing the locked graph and vex update for explicitly refreshing Git refs.
  • Reuse locked commits without fetching during normal build, run, check, and fetch commands.
  • Add Cargo-style Resolving, Cloning, Fetching, Locking, Compiling, Checking, Running, and Finished messages.
  • Add contextual dependency errors with cause chains and actionable help text.
  • Add an automated Git graph reproducibility integration test.

Why

The previous lockfile mirrored direct manifest entries but was never read during a build. Branch dependencies were fetched and pulled on every invocation, so the same manifest and lockfile could select different source revisions over time. Vex also provided little feedback while dependency and compiler work was running.

This change keeps Vex Git-first without introducing a central registry. Git selectors are resolved once to immutable commits, transitive package edges are recorded, and updates happen only through an explicit command.

Impact

  • Existing version 1 lockfiles are treated as unresolved and regenerated as version 2 on the next normal resolution.
  • vex fetch preserves locked commits and avoids Git network work when checkouts are already available.
  • vex update refreshes refs and rewrites the lockfile when selected commits change.
  • --dry-run never fetches or writes dependency state and explains when vex fetch is required first.
  • Progress messages are written to stderr while program output remains on stdout.

Validation

  • cargo fmt --check
  • cargo test --locked (13 unit tests and 1 integration test passed)
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo build --locked
  • Automated integration coverage creates a transitive local Git graph, verifies that ordinary vex fetch retains the original commit without fetching, and verifies that only vex update advances the lockfile and managed checkout.
  • Smoke tested vex run; output: Hello World with progress stages.
  • Smoke tested raw compiler flag rejection and compiler diagnostic propagation.

@LunaStev
LunaStev marked this pull request as ready for review August 6, 2026 16:20
@LunaStev
LunaStev merged commit 7139f48 into wavefnd:master Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant