-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add support for name filtering in buf generate
command
#854
Comments
We currently treat If you want to be able to run different sets of generators, we currently recommend that you keep multiple |
That would mean duplicating configuration for all generators in all the subsets files :/ the number of files to keep on disk will keep growing with this solution. Filtering seems to be more elegant. |
I want to challenge this a bit. I'm not sure that you'd need to duplicate anything across any files - you just need to write your files granularly so that they can composed together by separate Regardless, a I also worry about the implication on other features in the |
@robbertvanginkel How to keep multiple If we prefer a subset like this in generating command only, then how does it affect |
Here's how we maintain multiple sets: https://github.com/bufbuild/buf/tree/main/data/template You can use the |
I think for now we're going to close this: the canonical way to do this currently is with having multiple |
We're going to reconsider this |
Our use case would be to filter the files that get considered in a plugin Basically a mechanism which loads the |
Closing this issue as a duplicate of #3060 to consolidate discussion on supporting plugin configurations on a per module/input basis. |
If I have multiple generators defined in my
buf.gen.yaml
, sometimes I want only to launch a subset of the generators. Could it be possible for thebuf generate
command to accept aname
option/filter that will only select a subset of the generators defined in the config file or pass through the template option?The text was updated successfully, but these errors were encountered: