-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add or vendor proto packages from Go dependencies (#3724)
* refactor: change `cosmosgen` proto discovery to add extra paths * feat(pkg/cosmosbuf): add Buf mod update support * feat: add third party deps to app's Buf config 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. * chore: update changelog * feat: add vendoring support for Go dependencies with proto files * refactor(pkg/cosmosgen): use context as function argument * feat: add `--update-buf-module` flag to generate go commands The flag explicitly enables proto vendoring or Buf config dependency updates. * feat: change scaffolder to update Buf with third party dependencies This updates Buf dependencies and vendors proto files from third party Go dependencies by default for the scaffold commands * feat: add events support to generator * chore: remove invalid TODO comments * chore: add Buf config error variable Co-authored-by: Danilo Pantani <[email protected]> * chore: change `--update-buf-module` flag to be persistent Co-authored-by: Danilo Pantani <[email protected]> * refactor: enable Buf dep vendoring for generate ts-client command This is required because OpenAPI generation is done using Buf while TS client is being generated. * refactor: add generate proto vendor target All generate commands require support for proto vendoring and Buf dependencies updates. A new target was added to make proto vendoring optional and to avoid using an extra argument in all generate targets. * chore: improve variable usage Co-authored-by: Danilo Pantani <[email protected]> * refactor: rename proto vendoring flag to `--enable-proto-vendor` --------- Co-authored-by: Danilo Pantani <[email protected]>
- Loading branch information
1 parent
5d948d3
commit 6735957
Showing
17 changed files
with
449 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.