-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Upgrade rules python #23730
Upgrade rules python #23730
Conversation
PiperOrigin-RevId: 678166065 Change-Id: Ibe4c5e9c674da5ea0f6c3d4c963f88bf21ff82b0
Yelp, please... I tried upgrading rules_python, which I need to remove Python rules from Bazel. I ended up upgrading bunch of dependencies, now I'm stuck on rules_rust and maven. |
Also abseil-cpp as mentioned in the issue... |
I actually had no intend of upgrading protobuf. I started with rules_python, that needed protobuf 24.4, that needed newer grpc, but the newer grpc didn't really work with it, so I ended up upgrading protobuf and bunch of other deps on demand. I'm worried because of the second message `'@@[unknown repo 'maven' requested from @@protobuf+]//'. The @maven repo is defined in my overwritten MODULE.bazel for protobuf, but it's not picked up. I tried renaming it, to maven_protobuf, but it still doesn't work. What's going on? Is this a known problem? I saw bazel-contrib/rules_jvm_external#1104 and buildfarm/buildfarm#1812 (but there's no resolution in the ticket). I'm worried, because I have no indication that @maven will work with protobuf cut at head. Do single_version_overrides behave somewhat differently? Also the problem with rules_rust was reported: bazel-contrib/rules_jsonnet#194 |
Patching MODLE.bazel file with single_version_override never worked, but @fmeum has a fix #23536. You can use archive overrider or git override to point to a newer protobuf. Or just pin protobuf to the original version and hopefully rules_python still work? |
Let's see if #23735 works |
Otherwise, it's gonna be very hard to upgrade protobuf in src/MODULE.tools |
Thanks @meteorcloudy, I think I have enough ammunition now, to make another attempt (a working override and removing rules_rust). I'll continue tomorrow. |
rules_rust, my thoughts are, that if protobuf didn't register rust toolchains / didn't need to register toolchains, it wouldn't be fetched... I'll check if this is something we could achieve (either in protobuf or in rules_rust) |
Failures: