[M3] add lockfile types + parse/write

This commit is contained in:
2026-05-08 12:25:49 +00:00
parent cafa403a58
commit 86e88f236f
6 changed files with 351 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ All notable changes to cargoxx will be documented in this file.
are deferred to the M2 follow-up commit.
`tests/linkdb_lookup.cpp` covers 13 cases including a smoke test that
resolves all 25 curated packages.
- `cargoxx.lockfile`: `Lockfile`, `LockfilePackage` types and `parse(path)` /
`write(lock, path)` matching the format in `SPEC.md` §5. Also
`Lockfile::nixpkgs_rev()` returns the shared revision (codegen will
consume this in M3). `tests/lockfile_round_trip.cpp` covers 9 cases.
- SQLite overlay: `Database::open(overlay_path)` now opens (and creates,
if missing) a per-user `linkdb.sqlite` cache, applying the schema from
`SPEC.md` §9 idempotently. Default path is