v0.1.1 — Git coexistence guard
Varn now protects its own object store from accidental git staging.
The problem this fixes
.varn/ holds tens of thousands of content objects. If your project is also a git repository, a blind git add -A staged the entire store — a real workflow accident, and an easy one to hit.
What's new
- Automatic store guard —
varn initnow creates.varn/.gitignorecontaining*. Git applies.gitignorefiles to their own directory and below, so the whole store is ignored without Varn touching anything outside.varn/. varn init --gitignore— optionally adds.varn/to the enclosing repository's root.gitignore(created if missing, idempotent, fails with an actionable error outside a git repo).- Legacy store warning —
varn initandvarn checkpointwarn (text and JSONwarnings) when the store sits in a git work tree and is not excluded from git, with a copy-pasteable fix. - Guard backfill —
varn migrateadds the missing guard to stores created before this release;--dry-runreports without writing. - install.sh — one-line installer:
curl -fsSL https://raw.githubusercontent.com/flawme/varn/main/install.sh | sh - Checksums — every release publishes
SHA256SUMS.txtplus per-asset.sha256files.
Upgrade notes
Existing stores: run varn migrate once to add the guard. No storage-format change; checkpoints remain fully compatible.
Verification
- 298 tests passing (
cargo test) cargo clippy --all-targets --all-features -- -D warningscleancargo fmt --checkclean- End-to-end smoke test:
git status --porcelainshows no.varnentries in a Varn-managed git repository
Full changelog: https://github.com/flawme/varn/blob/master/CHANGELOG.md