-
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
Module Mapping Regression (conflicting mapping at ...) #1595
Comments
gregmagolan
added a commit
to gregmagolan/rules_nodejs
that referenced
this issue
Jan 31, 2020
Fixes bazel-contrib#1595. The `elif` path in ``` if mappings[k][0] == "runfiles": return True elif v[0] == "runfiles": return False ``` is now exercised by the linker integration tests.
12 tasks
gregmagolan
added a commit
to gregmagolan/rules_nodejs
that referenced
this issue
Jan 31, 2020
Fixes bazel-contrib#1595. The `elif` path in ``` if mappings[k][0] == "runfiles": return True elif v[0] == "runfiles": return False ``` is now exercised by the linker integration tests.
Thanks @joeljeske . You are correct that the boolean is backwards and the integration test didn't exercise that path. #1597 will fix it and I'll cut another patch release. |
Awesome thanks for quick feedback! |
gregmagolan
added a commit
that referenced
this issue
Jan 31, 2020
Fixes #1595. The `elif` path in ``` if mappings[k][0] == "runfiles": return True elif v[0] == "runfiles": return False ``` is now exercised by the linker integration tests.
Np. Pushed a quick 1.2.4 release that includes the fix since it fixes the 1.2.0 regression. https://github.com/bazelbuild/rules_nodejs/releases/tag/1.2.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐞 bug report
Affected Rule
The issue is caused by the rule: nodejs_binaryIs this a regression?
Yes, the previous version in which this bug was not present was: 1.1.0Description
I believe the bug is incorrect boolean logic when deciding to use a module mapping or not.
I believe the issue is in this section here:
110e00e#diff-3238816daaca23ffcb6861ceb46dfc2aR44-R47
Perhaps the change needed is this?
🔬 Minimal Reproduction
I'm not entirely sure how to reproduce this, as it occurs in a setup with a lot of surrounding rules, however I suspect that @gregmagolan might be able to help me with reproduction as he seemed to be working on this issue very recently.
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
The text was updated successfully, but these errors were encountered: