-
Notifications
You must be signed in to change notification settings - Fork 551
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
feat: add or vendor proto packages from Go dependencies #3724
Conversation
Third party deps are added to app's Buf config when the dependency is not present and the Go package protos have a Buf config with a `name` assigned.
The flag explicitly enables proto vendoring or Buf config dependency updates.
This updates Buf dependencies and vendors proto files from third party Go dependencies by default for the scaffold commands
ecbec29
to
1c97777
Compare
There are two cases handled by this PR when a Go dependency contains proto files:
For the first case a new dependency entry is added to app's Buf config; For the second case proto files are copied or exported to a All All |
Feature can be manually tested by scaffolding a chain which will have a new Buf dependency After that remove the Finally remove the At this point I'm not sure how to properly test it using CI tests. |
Maybe the If you prefer any of those names over the current one let me know and I can change it. |
my vote is for |
Hey @jeronimoalbi I don't remember an option for adding a buf dependency in |
There is not option in the CLI to explicitly add a Buf dependency, at this point developers should add them by hand by changing the The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeronimoalbi I originally thought that the "during scaffold" part of your comment meant that you added an option to add buf dependencies during chain scaffold. 😅
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3724 +/- ##
==========================================
- Coverage 24.83% 24.64% -0.20%
==========================================
Files 295 295
Lines 24181 24376 +195
==========================================
+ Hits 6006 6008 +2
- Misses 17628 17822 +194
+ Partials 547 546 -1
|
Closes #3635