Skip to content

Use custom package for grpc status.proto#76

Merged
anuraaga merged 2 commits into
connectrpc:mainfrom
anuraaga:status-proto-package
Jan 8, 2026
Merged

Use custom package for grpc status.proto#76
anuraaga merged 2 commits into
connectrpc:mainfrom
anuraaga:status-proto-package

Conversation

@anuraaga

@anuraaga anuraaga commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator

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.

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

Copy link
Copy Markdown
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

@stefanvanburen stefanvanburen left a comment

Copy link
Copy Markdown
Member

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

2 participants