aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-05-10 01:52:33 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-05-11 00:55:40 -0400
commitfae6290387850bfddbe4e9c1255750a65568b763 (patch)
tree3812c9ca4ee0436fe3dd77b1d7b237313fb666bb /src/codegen
parent2d2d79a05b8423c7638348dc5a89793c1e0cafce (diff)
downloadzig-fae6290387850bfddbe4e9c1255750a65568b763.tar.gz
zig-fae6290387850bfddbe4e9c1255750a65568b763.zip
Cache: fix race condition
When checking a cache entry with no input files for a hit, if `createFile` returned `error.WouldBlock` we would forget about the fact that the file has been created, and all future checks will assume that a cache hit has happened, even though one never has or does, leading to rare `FileNotFound` errors trying the access the protected files. This fix works by writing an extra byte to the manifest file to distinguish hits and misses when there no input files to write.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions