-
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
Missing @@_builtins
providers when using pinned toolchains
#2114
Comments
Thanks for the report. This looks like an easy fix. When However, the intellij plugin needs to be updated to handle the |
Thank you for fixing it so quickly! We're aware that built-in providers will no longer be available in Bazel 8. However now we plan to overcome this problem with the |
…ers (bazelbuild#2116) This makes the versioned rules return both the `@builtin` and `@rules_python` provider objects. This makes the versioned rules more compatible with the non-versioned rules. Fixes bazelbuild#2114
🐞 bug report
Is this a regression?
probably not
Description
A clear and concise description of the problem...🔬 Minimal Reproduction
Just use this repo:
🔥 Exception or Error
The BUILD.bazel file contains two different load statements. Depending on which one is enabled, a different set of providers is exposed
When
"@rules_python//python:defs.bzl"
is on, you geton the other hand, when
"@python_versions//3.12:defs.bzl"
is, you getUnfortunately, the latter one doesn't contain
"@@rules_python~//python/private/common:providers.bzl%PyInfo"
, hence in IntelliJ we can't recognize it as a python target.Screen.Recording.2024-08-09.at.09.54.53.mov
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?
"@python_versions//3.12:defs.bzl" seems to provide an extra target, named
//:_main` which contains the expected providersThe text was updated successfully, but these errors were encountered: