Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/private/proto/py_proto_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _py_proto_aspect_impl(target, ctx):

# Check Proto file names
for proto in target[ProtoInfo].direct_sources:
if proto.is_source and "-" in proto.dirname:
if proto.is_source and "-" in proto.owner.package:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please add a test to ensure that this actually works? Having the examples/bzlmod/proto be expanded would be great.

Whilst at it a note in CHANGELOG.md would be also great.

I think the reasoning in #1924 makes sense, so +1 for making the change.

fail("Cannot generate Python code for a .proto whose path contains '-' ({}).".format(
proto.path,
))
Expand Down