Autodetection using repository_ctx.which is not safe on Windows, as it may turn up false friends. E.g. Windows has a find.exe which is unrelated to POSIX find. Instead we follow the example of @bazel_tools//tools/sh:sh_configure.bzl and use tools next to bash.exe.
Autodetection using
repository_ctx.which
is not safe on Windows, as it may turn up false friends. E.g. Windows has afind.exe
which is unrelated to POSIXfind
. Instead we follow the example of@bazel_tools//tools/sh:sh_configure.bzl
and use tools next tobash.exe
.This repository currently doesn't have Windows CI. However,
rules_haskell
's CI passes with these changes.