Skip to content
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

Loosen dash in proto path name check #1925

Closed

Conversation

keith
Copy link
Member

@keith keith commented May 25, 2024

Fixes #1924

@keith keith requested a review from rickeylev as a code owner May 25, 2024 00:14
@@ -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.

github-merge-queue bot pushed a commit that referenced this pull request Jun 5, 2024
Protobuf team is taking ownership of `py_proto_library` and the
implementation was moved to protobuf repository.

Remove py_proto_library from rules_python, to prevent divergent
implementations.

Make a redirect with a deprecation warning, so that this doesn't break
any users.

Expected side effect of this change is also that the protobuf version is
sufficiently updated that there is no more use of legacy struct
providers.

Closes #1935 
Closes #1924 
Closes #1925 
Closes #1703 
Closes #1707 
Closes #1597 
Closes #1293 
Closes #1080
Fixes #1438
@aignas aignas closed this in #1933 Jun 5, 2024
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.

Relax Cannot generate Python code for a .proto whose path contains '-' check
2 participants