Skip to content

Loosen py_proto_library check to be on the import path instead of full directory (i.e. excluding external/module-name prefix). #20569

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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

zhangskz
Copy link
Member

@zhangskz zhangskz commented Mar 5, 2025

The module name does not actually make it into the name used in python imports, so this should allow py_proto_library to work for modules with hyphens in their name (i.e. bazel build @com_google_protobuf-examples//:addressbook_py_pb2).

PiperOrigin-RevId: 733763224

…l directory (i.e. excluding external/module-name prefix).

The module name does not actually make it into the name used in python imports, so this should allow py_proto_library to work for modules with hyphens in their name (i.e. `bazel build @com_google_protobuf-examples//:addressbook_py_pb2`).

PiperOrigin-RevId: 733763224
@zhangskz zhangskz requested a review from a team as a code owner March 5, 2025 17:39
@zhangskz zhangskz requested review from Logofile and mkruskal-google and removed request for a team and Logofile March 5, 2025 17:39
@zhangskz zhangskz enabled auto-merge (squash) March 5, 2025 17:40
@zhangskz zhangskz merged commit 3576a1f into 30.x Mar 5, 2025
209 checks passed
@zhangskz zhangskz deleted the cp-py-proto-library branch March 5, 2025 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants