Skip to content

feat(gazelle): Gazelle resolves module-level imports of py_proto_library #3109

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

shaldengeki
Copy link
Contributor

@shaldengeki shaldengeki commented Jul 21, 2025

Closes #1703. (I think this is only asking for module-level imports.)

This adds support in Gazelle for resolving module-level imports of py_proto_library rules. Note that this does not support:

  1. Imports of module contents, like messages, services, or enums,
  2. Imports of other rules, like GRPC

See the tests for examples of how this works. I would ideally like to implement the first one as well, but I think the "right" way to do that is to use something that's only present in Gazelle 0.38. So that'll have to wait on an upgrade of Gazelle in this repo; in the meanwhile, I think this is worth landing.

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.

[Gazelle][proto] How to automatically resolve protobuf target
1 participant