Skip to content

How to disable plugin when "buf generate" #2912

Answered by doriable
boan-anbo asked this question in Q&A
Discussion options

You must be logged in to vote

We currently do not have per-module configuration in buf.gen.yaml. For these cases, we recommend using multiple configuration files to manage plugins and inputs, for example buf.googleapis.gen.yaml, with the plugins you want for googleapis, and then running npx buf generate buf.build/googleapis/googleapis --template buf.googleapis.gen.yaml.
If you are using v2 buf.gen.yaml, you can set buf.build/googleapis/googleapis in buf.googleapis.gen.yaml and so you won't need to pass it through as an argument (see docs for more details: https://buf.build/docs/configuration/v2/buf-gen-yaml#module)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@boan-anbo
Comment options

Answer selected by boan-anbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants