-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node launcher does not handle quoted arguments #404
Comments
maybe related to bazelbuild/bazel#4778 ? |
@alexeagle Based on my understanding it's caused by Where it wraps all passed arguments ( |
I see how it could be caused by the max length restriction of arguments on Windows, but usually it throws an explicit exception in case the argument limit has been exceeded. I will dig more into it. |
…bazel/src/main/protobuf:worker_protocol.proto target in npm @bazel/typescript generated bazel workspace Closes bazel-contrib#404 PiperOrigin-RevId: 232380639
…bazel/src/main/protobuf:worker_protocol.proto target in npm @bazel/typescript generated bazel workspace Closes bazel-contrib#404 PiperOrigin-RevId: 232380639
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue was automatically closed because it went two weeks without a reply since it was labeled "Can Close?" |
Considering that we have a
nodejs_binary
that I want to run through Bazel (e.g.bazel run
or through agenrule
).Now if my NodeJS script accepts a lot of CLI arguments which I need to group into a single argument in favor of making it work on Windows (there is an argument limit on windows)
C:/Program Files/Git/usr/bin/bash.exe bazel-out/x64_windows-fastbuild/genfiles/src/material-examples/example-module.genrule_script.sh The command line is too long.
So, instead of passing the arguments as individual ones, I now group them into one argument in order to work around this issue:
Now, the
command line is too long
error is gone and it actually runs the:bin
target which is anodejs_binary
. Unfortunately this script (the actual `node_launcher.sh) doesn't work either.The
$(SRCS)
resolves into multiple source files (retrieved through a Bazelglob
). I'm assuming that thenode_launcher.sh
script somehow expects the arguments to not include any quote.The text was updated successfully, but these errors were encountered: