Commit af60b5d
committed
build: stop tmp/go.mod sentinel churn from clean targets
tmp/go.mod is a committed sentinel module that keeps `go list ./...` out
of the QEMU/Docker Go module caches under tmp/ (else `make ze-verify`
fails with 'directory outside main module'). Two clean targets deleted
it, and because it is tracked, git reported a phantom ` D tmp/go.mod`
that sessions kept re-committing (commit 89d383c added a band-aid
comment).
- `clean` (rm -rf bin/ tmp/) now recreates tmp/go.mod byte-identically
from HEAD after the rm.
- `ze-clean-tmp` (deletes tmp/ files older than 24h) now spares go.mod
via -not -name go.mod, matching how it already spares the cache dirs.
The sentinel's comment is corrected: it is tracked (not 'local-only')
and recreated by both clean and qemu-run.py. TMP_SENTINEL in qemu-run.py
is kept byte-identical to tmp/go.mod (verified, 914 bytes each), so
recreation never produces a diff.
Verified: ze-clean-tmp scratch-dir test keeps go.mod while deleting
stale files; make -n clean shows the recreation; byte-identity MATCH.1 parent be0bda3 commit af60b5d
3 files changed
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
429 | 432 | | |
430 | 433 | | |
431 | 434 | | |
432 | 435 | | |
| 436 | + | |
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
436 | | - | |
| 440 | + | |
437 | 441 | | |
438 | 442 | | |
439 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
0 commit comments