-
Notifications
You must be signed in to change notification settings - Fork 563
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
feat: Remove and redirect py_proto_library to protobuf #2604
Conversation
Protobuf team is taking ownership of `py_proto_library` and the implementation was moved to protobuf repository. Remove py_proto_library from rules_python, to prevent divergent implementations. Make a redirect with a deprecation warning, so that this doesn't break any users. Previously this was attempted in: bazelbuild@d0e25cf
This looks almost the same as something Ignas drafted up a couple weeks ago: #2581 (I don't have a preference for either PR, to be clear) The main difference seems to be this PR leaves protobuf at 29.0-rc2, while the other PR raises protobuf to 29.3. Both seem to have passing tests, though? @aignas @comius It's not clear to me -- should we raise the version in our module or not? This PR also mentions that protobuf 30.0 is needed for a certain test to pass? Curiously, the other PR deletes that test ("external_import_test"). Should we raise protobuf to 30.0? cc @tpudlik who responded to a question on the other PR. Something about waiting for a certain bug to be fixed in protobuf? I'm happy this is looking eminent! |
Sorry, did not have time to finish my PR. My TODO was
I think my preference moving forward would be:
Thanks for the PR! |
I need to provide some more context. The test that I disabled is fixed in protobuf 30 with protocolbuffers/protobuf#20193 |
Does that mean that users may need to do overrides for things to work when upgrading to version 30? I am struggling to understand the impact of the rollout/release of a new vecsion of rules_python here. We plan to release rules_python soon. |
What do you mean with overrides? Versioning? I don't think any manual interaction is needed by the users, except: If using Bzlmod, Protobuf 30 will depend on the newly released rules_python, which will lead to a single py_proto_library. WORKSPACE users will need to upgrade by hand. |
This was part of the message which I did not fully understand at first. I thought that it was about something that would require our users to do extra things when upgrading protobuf library versions. |
Protobuf team is taking ownership of
py_proto_library
and the implementation was moved to protobuf repository.Remove py_proto_library from rules_python, to prevent divergent implementations.
Make a redirect with a deprecation warning, so that this doesn't break any users.
Previously this was attempted in: d0e25cf
Work towards #2173, #2543