buildbuddy-io / bazel_env.bzl

A virtual environment for Bazel-managed tools and toolchains.
MIT License
17 stars 0 forks source link

Support for Windows? #20

Open Danaozhong opened 1 week ago

Danaozhong commented 1 week ago

Hi, thanks for providing this rule! I was wondering if Windows is a supported target platform? I was trying a project that uses bazel_env, but the execution failed with:

 INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/bazel_env.sh
FATAL: ExecuteProgram(C:\users\1234\_bazel_danaozhong(xy\2an7bb7k\execroot\_main\bazel-out\bazel_env-opt\bin\bazel_env.sh) failed: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("C:\users\1234\_bazel_danaozhong(xy\2an7bb7k\execroot\_main\bazel-out\bazel_env-opt\bin\bazel_env.sh"): %1 is not a valid Win32 application.
 (error: 193)

Sorry, I am a bazel noob, and am just trying to use it. Thanks for your feedback!

fmeum commented 1 week ago

It doesn't support Windows yet, but I would like to change that.

Since it relies on direnv, I don't know whether it can easily support e.g. PowerShell or a native Windows command prompt. Which shell would you want to use it with?