Commit Graph
4 Commits
Author SHA1 Message Date
Roger 2e7ee3c69f test: tidy misplaced, stale, and redundant tests (#691)
Tests now sit beside the code they cover; ones a golden or another test already pins are gone, and core tests gain the assertions a real regression would trip.
2026-11-09 17:25:37 +08:00
Roger 8ce917d57e fix: write keys.json atomically, unify zip handling (#686)
dumpkeys truncated keys.json before writing it, so a failed write left a partial file; app now writes it through the
same temp-file-and-rename path zips use. Unzipping moves next to zip writing and checks entries with filepath.IsLocal.
2026-11-09 17:25:35 +08:00
Roger 9ac25d2902 fix: fresh temp file for zips, reject year 10000 (#682)
A planted <archive>.tmp set the archive's mode or redirected the write through a symlink.
CoreData let 10000-01-01 through, which time.Time.MarshalJSON rejects, so a JSON export failed.
2026-11-02 14:35:27 +08:00
Roger 02d2e2bda6 refactor: write every zip through one writer (#679)
snapshot.Zip followed symlinks and kept an existing archive's mode, edge cases export's --zip never needed;
both now write a temp file beside the target and rename it into place.
2026-11-02 11:15:25 +08:00