Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Local Disk Cache: Only write to disk if target hash doesn't already e…
…xist. Under Windows, the default permissions used when writing to the local disk cache prevent the files from being overwritten. This CR adds a check: if the target file already exists, return early. This is a performance improvement and will fix the error described above as existing files will no longer need to be overwritten. Similar features have been implemented on the remote gRPC cache implementations, see bazel issue bazelbuild#4789. Closes bazelbuild#4886. PiperOrigin-RevId: 190060233
- Loading branch information