Files
magpie/internal/lastgood
yetone 5d88dd8427 lastgood: the same unreadable file kept aside a second earlier is not kept again
KeepBad only compared the bytes against copies named in the current
second, so the same bad file kept on either side of a second boundary
got two .bad-<time> copies. macOS CI went red on 6b8dc4cdd with
TestKeepCopiesABadFileAside ("the same bad file kept twice:
...-225601 ...-225602"). Every copy kept for that file is now looked at
first, whatever second it was named in; the folder name is quoted for
Glob.

Run: TestSameBadFileKeptOnceAcrossASecond (clock across 22:56:01.999 →
.001, in a folder named "[x]") fails on the old code with the CI
message and passes now; go vet for darwin, linux and windows; the full
go test -tags nogui ./... passed.
2026-10-11 07:18:51 +08:00
..