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

Use gazelle to auto generate more rule language rules for protos #82

Open
DolceTriade opened this issue Jul 27, 2024 · 2 comments
Open

Comments

@DolceTriade
Copy link

Currently, rules_buf only uses gazelle via the @go_repository_tools repo to generate the proto_library rules. It would be nice if we could also use the repository gazelle to also generate all the language rules too.

I'm not sure the best way to accomplish this, but it would be fine it was a post-step after running update-repos, as long as it was automatic...

@srikrsna-buf
Copy link
Member

Do you mean in the repo rule? Or the gazelle build run that you run?

@DolceTriade
Copy link
Author

DolceTriade commented Jul 29, 2024

I don't really have an opinion on where this happens. I'd just like the protos imported via buf to have language specific rules automatically instead me having to manually define them.

Apparently, this is possible using stackb_rules_proto. I think if we substitute the gazelle used there with the one in the stackb repo, we could generate all the language specific rules that it supports.

https://github.com/stackb/rules_proto?tab=readme-ov-file#proto_repository

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

No branches or pull requests

2 participants