-
Notifications
You must be signed in to change notification settings - Fork 543
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
Flag --incompatible_load_python_rules_from_bzl will break rules_python in Bazel 1.2.1 #268
Comments
Interesting error, because this seems like Bazel wants us to create a circular dependency on itself. 😄
|
That's odd, rules_python should be exempt from this flag (via the migration tag that only rules_python should use). Ah, but the failure log is pretty clear. The bad targets are The fix is in google/subpar@2917d27, which is not included in any subpar release. So our choices are:
This flag won't be flipped anytime soon, and by the time we're getting ready to flip it there may be other reasons to cut a release. So I'm inclined to go with (3) at the moment, which is also the least work. We should still fix this so that people can test that their migration is successful. Some background on the flag: Originally our plan for migrating the native Python rules to Starlark was to have everyone use the stubs, and then piece by piece add more real Starlark code to the stubs and use smaller and smaller bits of native functionality (exposed as internal symbols that only rules_python would use). Having everyone use the stubs first means that we get full coverage of the new Starlark logic as the migration proceeds, as opposed to doing all the work and finding out at the end there's some blockers. But our current plan is to do this bit of redirection in We still want everyone to eventually use the stubs in rules_python. But under the new plan, there's no need to flip the flag before the rules are fully ported. |
Actually this doesn't seem to impact users of rules_python, only its own development -- we can't do I tried modifying the subpar definition in Lowering priority since it doesn't block anyone else. |
This is still a problem at commit 5d6c0a2
|
Bazel team has decided to not move forward with this flag: bazelbuild/bazel#9006 (comment) As a result, no action is needed and this issue can be closed. |
Incompatible flag --incompatible_load_python_rules_from_bzl will break rules_python once Bazel 1.2.1 is released.
Please see the following CI builds for more information:
Questions? Please file an issue in https://github.com/bazelbuild/continuous-integration
Important: Please do NOT modify the issue title since that might break our tools.
The text was updated successfully, but these errors were encountered: