Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows, sh_toolchain, bugfix: cast path to string
When DetectBashOrDie [1] is commented out from src/main/cpp/blaze.cc, and BAZEL_SH is unset, and PATH is set and "bash" is found on the PATH, then sh_configure successfully finds bash using repository_ctx.which, and this method returns a "path" object. The code used to believe this was a string, and called a string method on it, causing a runtime error. [1] https://github.com/bazelbuild/bazel/blob/2fda17d46088f2bb07b049fa35759002ea1dd5db/src/main/cpp/blaze.cc#L1543 Fixes bazelbuild#6498 Change-Id: I07fd36fd6c6e8433257b0394f1fc776bbe3e6928
- Loading branch information