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

Add additional options for generating imports #1364

Merged
merged 5 commits into from
Dec 6, 2024
Merged

Conversation

smaye81
Copy link
Member

@smaye81 smaye81 commented Dec 5, 2024

Including imports is not enabled by default in the Buf CLI. As a result, users have been getting tripped up on generating code when they have dependencies on protovalidate.

This adds some additional guidance in our generating code docs to make sure they include imports since these should essentially always be included when generating with Protobuf-ES.

@smaye81
Copy link
Member Author

smaye81 commented Dec 5, 2024

@timostamm I added include_imports to all snippets of buf.gen.yaml just to reinforce that it should be there. But if you'd rather it be listed only inRegenerating code, lmk.

@smaye81 smaye81 requested a review from timostamm December 5, 2024 16:33
@smaye81 smaye81 force-pushed the sayers/add_addl_opts branch from 741556d to 363c6b1 Compare December 5, 2024 16:36
MIGRATING.md Outdated Show resolved Hide resolved
MIGRATING.md Outdated Show resolved Hide resolved
smaye81 and others added 5 commits December 5, 2024 12:06
Signed-off-by: Steve Ayers <[email protected]>
Signed-off-by: Steve Ayers <[email protected]>
Co-authored-by: Timo Stamm <[email protected]>
Signed-off-by: Steve Ayers <[email protected]>
Co-authored-by: Timo Stamm <[email protected]>
Signed-off-by: Steve Ayers <[email protected]>
@smaye81 smaye81 force-pushed the sayers/add_addl_opts branch from 83c4a6b to 8fd595b Compare December 5, 2024 17:06
@smaye81 smaye81 merged commit 84a65b9 into main Dec 6, 2024
44 checks passed
@smaye81 smaye81 deleted the sayers/add_addl_opts branch December 6, 2024 14:25
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