Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix workspace root detection by ignoring directories (bazelbuild#218)
* Fix workspace root detection by ignoring directories On case-insensitive filesystems, bazelisk can fail to find the workspace root if you have a directory named `workspace/`. This patch updates `findWorkspaceRoot` to ensure that a workspace root is only returned if the WORKSPACE / WORKSPACE.bazel file exists and is not a directory, and makes bazelisk consistent with bazel itself (see comments in the patch for a link) * Rename isWorkspaceRoot -> isValidWorkspace
- Loading branch information