Closed emilbon99 closed 7 months ago
Issue resolved.
For those of you who run into this issue in the future, you need to make sure your bash
command in powershell or cmd points to the bash installation from MSYS2. Mine was pointing to bash on WSL.
See above
Issue Description
On Windows, when I run
bazel build //:service_proto_cc --verbose_failures
in the provided demo repo, the build process results in an error stating that ''You seem to have passed an empty string as one of the arguments to protoc.exe. This is actually sort of hard to do. Congrats. Unfortunately it is not valid input so the program is going to die now." (See attached logs). In my digging I found this pull request: https://github.com/rules-proto-grpc/rules_proto_grpc/pull/221 that mentions quote escaping the "$@" line. An interesting note is that when I open up a bash terminal and copy and run this command manually, everything works fine.Log Output
rules_proto_grpc Version
4.6.0
Bazel Version
6.4.0
OS
Windows 11
Link to Demo Repo
https://github.com/emilbon99/proto_rules_grpc_b_1
MODULE.bazel or WORKSPACE Content
BUILD Content
Proto Content
Any Other Content