forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Versioned protobuf files (cometbft#495)
* proto: Add versioned cometbft proto files Rename the packages, placing them under the top-level cometbft package. The version suffixes denote evolution of message types across successive CometBFT releases, without binding versioned packages to any particular release. I.e. messages that have not evolved from the baseline remain located in .v1 even as other messages' definitions are taken from .v2 and onwards. The source releases for versioning as of this commit are the following: - v0.34.27 - v0.37.0 - main, to become v0.38.x * Regenerate *.pb.go in the api folder Replace the *.pb.go files generated from tendermint domain protos with those generated from the versioned protos under cometbft. * Move and adapt supporting code alongside *.pb.go Two types of changes here: - Adapted manually-written files adding methods to generated Go types. - Added aliases for multi-versioned type definitions in their "parent" domain package that gets the importer the latest definition of each message type in the domain. * Remove go_package directives from tendermint protos --------- Co-authored-by: Thane Thomson <connect@thanethomson.com>
- Loading branch information
1 parent
4790ea3
commit f1d41a6
Showing
253 changed files
with
44,005 additions
and
10,933 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.changelog/unreleased/breaking-changes/495-proto-version-packages.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- `[proto]` Rename the package from `tendermint` to `cometbft` and introduce version suffixes. | ||
Relocate generated Go code into a new `api` folder and change the import | ||
paths accordingly. | ||
([\#495](https://github.com/cometbft/cometbft/pull/495)) |
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.