proto_common.compile
breaks non-.exe
Windows plugins
#220
Labels
P3
We're not considering to work on this, but happy to review a PR. (No assignee)
When using
proto_common.compile
on a Windows host the resulting path passed toplugin_format_flag
uses forward slashes. This is fine for.exe
, but it breaks for.bat
plugins. It seems that because.exe
plugins don't use thecmd.exe
wrapper Windows can handle them just fine, but plugins with.bat
(eg. ajs_binary
fromrules_js
) break with an error like'bazel-out' is not recognized as an internal or external command, operable program or batch file
.Ideally either
proto_common.compile
or protoc itself would rewrite the plugin path with backslashes as described in https://bazel.build/rules/windows#paths when running on Windows.cc @Yannic
The text was updated successfully, but these errors were encountered: