Skip to content

Harden locked Git checkouts and project defaults - #113

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
LunaStev:patch/initial-stability-fixes
Sep 22, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
LunaStev:patch/initial-stability-fixes

Conversation

@LunaStev

Copy link
Copy Markdown
Member

Summary

  • Reject tracked or untracked changes in managed Git checkouts before Vex reads dependency manifests or sources, including normal reuse, --locked --offline, and dry-run paths.
  • Make vex init --lib export a public example, generate a project .gitignore without overwriting an existing one, and create .vex/deps only when a Git checkout is needed.
  • Name invalid optional manifest fields in errors and reject missing or malformed --target values before project work.
  • Add integration and parser regression tests and update the README.

Why

A dirty checkout could be compiled while vex.lock still claimed its committed source, breaking reproducibility. The smaller CLI and scaffold fixes remove confusing new-project behavior and make errors actionable.

Behavior

  • A dirty managed Git dependency now fails with its package name, checkout path, and a safe recovery instruction; Vex does not discard user changes.
  • Existing .gitignore files remain untouched. Path-only and empty projects no longer create .vex/deps.
  • Binary initialization, lockfile format, raw wavec flag rejection, and --locked/--offline semantics remain unchanged.

Validation

  • cargo fmt --check
  • cargo test --locked
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo build --locked
  • git diff --check
  • Real wavec 0.2.1-pre-beta-dev smoke: generated library as a path dependency passed vex check and vex run --locked --offline, printing Hello from library.

Closes #19
Closes #35
Closes #100
Closes #101
Closes #102
Closes #103

Reject dirty managed Git checkouts on every reuse path, including locked offline and dry-run resolution. Improve init scaffolds, lazy managed state, manifest diagnostics, and target parsing with regression coverage.

Signed-off-by: LunaStev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant