-
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
Passing a RegExp as a templated_args fails on Windows #317
Comments
It looks like bazel bash emulator on Windows (which node_launcher.sh runs in) gets confused by the argument I tried the variations Which nodejs_binary takes a regular expression its argument? |
Ts api guardian in angular/angular https://github.com/angular/angular/tree/master/tools/ts-api-guardian |
I tested on Bazel 0.16.1, 0.17.1, executing from gitbash and from cmd, and got the same result as @alan-agius4's original report. |
I did a simpler test to figure out what's going on. First I used a local repository for rules_nodejs and printed what the command really was:
Then tried to make a simpler version of that, with a
Also tried the same through cmd instead:
Noteworthy findings:
Knowing this I went to check the binary folders and tired not using the
This seems fine. I also tried changing the call below to use several types of quotes, and found that This makes me think that calling a That's under our control so maybe we could change it to something else and bypass those problems. |
I think it's the same root cause as bazelbuild/bazel#4778 |
This is a workaround for bazel-contrib/rules_nodejs#317 PR Close angular#26012
This is a workaround for bazel-contrib/rules_nodejs#317 PR Close #26012
This is a workaround for bazel-contrib/rules_nodejs#317 PR Close angular#26012
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?" |
When passing a RegExp in
template_args
it is failing on windows.Example
Will cause an error
The log file contents are
I have put together a minimal reproduction https://github.com/alan-agius4/rules_nodejs_error_no_such_file
The same thing seems to be running fine on
Mac
, Rollup will eventually throw an exceptionError: Could not resolve entry (^(json|schema|something)$)
because it doesn't support a RegExp. But I used this as a small and quick reproduction of the root error.The text was updated successfully, but these errors were encountered: