Skip to content

remove check that forbids using the templateFileLocation generate option if a default buf.gen.yaml exists in the project directory#435

Open
masariello wants to merge 1 commit intobufbuild:mainfrom
masariello:patch-1
Open

remove check that forbids using the templateFileLocation generate option if a default buf.gen.yaml exists in the project directory#435
masariello wants to merge 1 commit intobufbuild:mainfrom
masariello:patch-1

Conversation

@masariello
Copy link
Copy Markdown

This change is intended to allow consumer projects to keep a default bug.gen.yaml in the project directory along side secondary ones that are passed to the plugin via the templateFileLocation generate option

At the moment the above is not possible. Consumer projects have to delete bug.gen.yml to avoid the error when they want to generate with a template that uses a different name

Use case: project wants to use buf.gen.yaml for public builds, and wants to keep a separate buf.private.gen.yaml to build a wider set of proto module directories

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 7, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants