-
Notifications
You must be signed in to change notification settings - Fork 549
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
Versioned protobuf files #495
Merged
mzabaluev
merged 26 commits into
feature/proto-upgrade
from
mikhail/proto-version-suffixes
Apr 21, 2023
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
fdcca78
proto: Add versioned cometbft proto files
mzabaluev 784f976
Regenerate *.pb.go in the api folder
mzabaluev 5a5beff
Move and adapt supporting code alongside *.pb.go
mzabaluev b1c79f9
Remove go_package directives from tendermint protos
mzabaluev ba3c574
Update proto imports in production code
mzabaluev 9cbf604
Update proto imports in tests and examples
mzabaluev 136791f
Update links to proto files in docs
mzabaluev a7ad099
Changelog entry for #495
mzabaluev 32504b8
Bump govulncheck to use go 1.20.3
mzabaluev b431f7b
Suppress golangci lints on generated code/names
mzabaluev 2c93cf3
Fix gofmt and goimports lints
mzabaluev b329316
Suppress more var-naming lints
mzabaluev 5bf54e4
Update go.sum
mzabaluev ea29676
abci: fix structural literal lints
mzabaluev 899eccb
Remove newline after file //nolint suppressions
mzabaluev 40613ee
Suppress stylecheck linter on *.pb.go files
mzabaluev f78b19d
Suppress revive,stylecheck lints on alias files
mzabaluev 9d41fd8
Fix an indent-error-flow lint in tests
mzabaluev 5ee443d
Suppress style lints on SignedMsgType consts
mzabaluev c9ac8db
Edit changelog for #495
mzabaluev cc351d5
proto: fix the formatting
mzabaluev 2b47221
proto: remove blockchain/v1
mzabaluev d2c36a9
proto: flatten VersionParams into a single version
mzabaluev cdf4e80
Regenerate protos for flattened VersionParams
mzabaluev fd54d1d
Merge branch 'mikhail/proto-version-suffixes' of github.com:cometbft/…
mzabaluev 57e8a81
Revert SignedMsgProto member const names
mzabaluev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
No idea why this generated Go file had to be copied while the one for
abci
above is moved. @julienbrt @thanethomson can you clarify why this duplication was needed in tendermint/tendermint#9356?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.
This is a legacy thing, it seems as though it was deemed best to have the generated ABCI proto code colocated with the rest of the ABCI code.
Similarly with the generated gRPC code.
The better approach is to have it all generated into an
/api/
package in the root of the project, as per Buf's guidelines.