You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEBUG: .../python.bzl:45:10: WARNING: Ignoring toolchain 'python_3_11' from module 'grpc': Toolchain 'python_3_11' from module 'foo' already registered Python version 3.11 and has precedence
In this case it doesn't seem like it's a problem, or that I can do anything about it? So I think it would be nice if it didn't produce a warning. Looking at the condition I am wondering if it is meant to be an and instead, since first.module.is_root == True in this case, but I don't understand the intent enough.
🌍 Your Environment
Operating System: macOS Output of bazel version: 7.1.1 Rules_python version: HEAD
The text was updated successfully, but these errors were encountered:
With our project using bzlmod, rules_python, and grpc, with this setup in the MODULE.bazel:
When building you see this warning:
In this case it seems that grpc also registers a 3.11 toolchain when using it from bzlmod https://github.com/bazelbuild/bazel-central-registry/blob/5958c06f2695493509c6b8ad64c2774b2e25925c/modules/grpc/1.56.3.bcr.1/patches/python.patch#L22-L26
Which produces this through this code
rules_python/python/private/bzlmod/python.bzl
Line 144 in c5c03b2
In this case it doesn't seem like it's a problem, or that I can do anything about it? So I think it would be nice if it didn't produce a warning. Looking at the condition I am wondering if it is meant to be an
and
instead, sincefirst.module.is_root == True
in this case, but I don't understand the intent enough.🌍 Your Environment
Operating System: macOS
Output of
bazel version
: 7.1.1Rules_python version: HEAD
The text was updated successfully, but these errors were encountered: