Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore read-only errors when updating the
mtime
of the install_base
Currently if the `--install_base` path passed is not writable by the user invoking Bazel, the Bazel client crashes[^1]: ```console ❯ bazel --install_base=/some/read/only/path version FATAL: failed to set timestamp on '/some/read/only/path': (error: 30): Read-only file system ``` This happens because the Bazel client (unconditionally) attempts to update the `mtime` of this path: https://github.com/bazelbuild/bazel/blob/a3c677dfea2de636a719d50345a5a97af96fae60/src/main/cpp/blaze.cc#L1018-L1029 This commit updates the client to ignore such errors. See bazelbuild#20373 for context.
- Loading branch information