Repository navigation
Commit c993d62
committed
fix(usage): include ctime in the Antigravity cache fingerprint
A rewrite that restores size and mtime still moves ctime, so the cache no longer serves stale candidates in that case. The reuse test now proves a cache hit with an exclusive lock instead of a forged rewrite, and the forged rewrite gets its own test that expects a fresh read.1 parent a68589b commit c993d62
3 files changed
Lines changed: 40 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 261 | + | |
265 | 262 | | |
266 | 263 | | |
267 | 264 | | |
268 | 265 | | |
269 | 266 | | |
270 | | - | |
271 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
272 | 270 | | |
273 | 271 | | |
274 | 272 | | |
| |||
372 | 370 | | |
373 | 371 | | |
374 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
| 378 | + | |
384 | 379 | | |
385 | 380 | | |
386 | 381 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
| 382 | + | |
394 | 383 | | |
395 | 384 | | |
396 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
742 | 767 | | |
743 | 768 | | |
744 | 769 | | |
| |||
749 | 774 | | |
750 | 775 | | |
751 | 776 | | |
752 | | - | |
753 | | - | |
| 777 | + | |
754 | 778 | | |
755 | | - | |
756 | | - | |
757 | 779 | | |
758 | 780 | | |
759 | 781 | | |
760 | | - | |
761 | | - | |
762 | | - | |
| 782 | + | |
| 783 | + | |
763 | 784 | | |
764 | | - | |
765 | | - | |
| 785 | + | |
| 786 | + | |
766 | 787 | | |
767 | 788 | | |
768 | 789 | | |
| |||
0 commit comments