Skip to content

Conversation

@anuraaga
Copy link
Collaborator

@anuraaga anuraaga commented Jan 7, 2026

Fixes #75

I had copied this file from connect-es

https://github.com/connectrpc/connect-es/blob/main/packages/connect/src/protocol-grpc/proto/status.proto

but forgot about the python-specific issue when packages clash. This renames the package so it doesn't conflict with the official Google one. The package name doesn't affect us at all so I tried to be precise with it. Since modifying the file anyways, I removed some non-Python bits from it.

@anuraaga anuraaga force-pushed the status-proto-package branch from c6283c0 to 47763d2 Compare January 7, 2026 03:09
Signed-off-by: Anuraag Agrawal <[email protected]>
package google.rpc;
// This package is for internal use by Connect, and provides no backward
// compatibility guarantees whatsoever.
package grpc.status.v1;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I remembed that Go has the same behavior as Python, so I went ahead and just copied the file as-is from connect-go

https://github.com/connectrpc/connect-go/blob/59cc6973156cd9164d6bea493b1d106ed894f2df/internal/proto/connectext/grpc/status/v1/status.proto#L26

The renamed package is less connectrpc specific, but I figure there's no reason for us to use a different name from it

Copy link
Member

@stefanvanburen stefanvanburen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glad there's a workaround, I hadn't seen (or had forgotten 😅) the connect-go one

@anuraaga anuraaga merged commit 5342eac into connectrpc:main Jan 8, 2026
38 of 40 checks passed
rjpower added a commit to marin-community/marin that referenced this pull request Jan 8, 2026
Use specific git commit (5342eace) from connect-python main branch that fixes
the duplicate google.rpc.Status symbol conflict with googleapis-common-protos.

The fix renames the package from google.rpc to grpc.status.v1 to avoid conflicts.
This resolves the itest (3.12) failure caused by importing both google-cloud-storage
and connect-python.

Ref: connectrpc/connect-python#76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

status.proto file makes connect-python incompatible with google packages

2 participants