Jacob Young fae6290387 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.
2023-05-11 00:55:40 -04:00
..
2023-04-30 18:16:04 -07:00
2023-05-11 00:55:40 -04:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-28 13:24:43 -07:00
2023-04-30 18:16:04 -07:00
2022-12-13 13:14:20 +02:00
2023-04-30 18:16:04 -07:00
2023-04-22 13:09:15 +03:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-28 13:24:43 -07:00
2023-04-20 15:17:07 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-23 21:06:21 +03:00
2023-05-10 17:47:58 +03:00
2023-05-10 16:00:14 +03:00
2023-04-28 13:24:43 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2023-04-30 18:16:04 -07:00
2023-03-17 17:50:25 +01:00
2023-04-28 13:24:43 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2022-04-15 17:01:01 -05:00
2023-04-23 21:06:21 +03:00