-
Notifications
You must be signed in to change notification settings - Fork 541
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
compile_pip_requirements
is not bazel 3.7.0 compatible
#522
Comments
Thanks for the issue report, and the reproduction. I have set up your repro and can confirm the same bug on my end. Looking at https://docs.bazel.build/versions/3.7.0/be/c-cpp.html, it appears Checking |
I can't find a way to detect Bazel version outside a workspace rules. Semi-related: #526 |
Surely this can't be the only repo needing to know if the new parameter is supported? 😨 Re #526 : It's an unfortunate reality that the Bazel version bleeds into the internals of rules. We're stuck on 3.7 due to a different set of rules not yet supporting 4.0. I agree it's a testing burden so I would agree with the "we only support version X" policy. It's just a bummer that all tools don't support latest version |
LTS started with bazel 4.0.0 and the pip rules are not guaranteed to be stable at any version. In light of that I am closing this issue because it is very unlikely to receive attention. |
🐞 bug report
Affected Rule
The issue is caused by the rule:
"@rules_python//python:toolchain_type"
Is this a regression?
Yes, the previous version in which this bug was not present was: 0.2.0Description
@rules_python//python
incorrectly passesenv
intopy_binary
andpy_test
rules, causing errors onbazel
3.7.0, where the argument isn't supported.This is due to the fact that it checks for the existence of
propellor_optimize
innative
which (for me at least) exists inbazel
3.7.0.🔬 Minimal Reproduction
Run
bazel build /...
You can verify the hypothesis with:
and amending the
BUILD
file to have:You'll see
propeller_optimize
printed🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: