Windows 下的 Bazel 应使用哪个 shell 10

Which shell should be used for Bazel under Windows 10

通常,在 Windows,我使用 PowerShell(默认 shell)调用 Bazel 命令,例如 bazel build。据我了解,Bazel 使用 MSYS2 来调用和执行命令,例如 curlzipgit。因此,我想知道我是否应该使用 MSYS2 bash 终端而不是 PowerShell。使用 Powershell 而不是 MSYS2 bash 终端会有什么问题吗?还是不重要?

正如 bazel 开发者here 所说,使用 MSYS 或 MSYS2 是最佳选择。就个人而言,我更喜欢 MSYS* 而不是 cmd 或 PowerShell。

在当前的 master 中最近有一个 update of the documentation exactly about this issue:

As of 2020-01-15, we do not recommend running Bazel from bash – either from MSYS2 shell, or Git Bash, or Cygwin, or any other Bash variant. While Bazel may work for most use cases, some things are broken, like interrupting the build with Ctrl+C from MSYS2). Also, if you choose to run under MSYS2, you need to disable MSYS2’s automatic path conversion, otherwise MSYS will convert command line arguments that look like Unix paths (e.g. //foo:bar) into Windows paths. See this Whosebug answer for details.