Expand protobuf version constraint to include v6.x #565
+5
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The current protobuf dependency constraint (
>=5.29.5,<6.0.0) blocks users from using protobuf 6.x. Some users may want or need to use protobuf 6.x in their environments, and the current upper bound prevents this.Solution
Updated the protobuf version constraint from
<6.0.0to<7.0.0inpyproject.toml, allowing both protobuf 5.x and 6.x.According to the Protocol Buffers Cross-Version Runtime Guarantee, code generated for major version V is supported by runtimes of versions V and V+1. Our proto files were generated with protobuf 5.x, so they should be compatible with 6.x runtimes.
Verified locally: Successfully imported proto modules and ran all gRPC unit tests with protobuf 6.33.2 installed.
Security note: CVE-2025-4565 is fixed in protobuf 5.29.5 and 6.31.1. The existing
>=5.29.5lower bound ensures 5.x users get patched versions.Type of Change
Test Plan