forked from tendermint/tendermint
-
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.
proto: update proto generation to use buf (tendermint#7975)
* Hard-code go_package option for .proto files Signed-off-by: Thane Thomson <[email protected]> * Automatically relocate generated ABCI types after proto-gen Signed-off-by: Thane Thomson <[email protected]> * Skip building gogoproto (i.e. only build our types) Signed-off-by: Thane Thomson <[email protected]> * Remove unnecessary proto generation scripts Signed-off-by: Thane Thomson <[email protected]> * Upgrade buf config from v1beta1 to v1 Signed-off-by: Thane Thomson <[email protected]> * Add simple proto generation script Signed-off-by: Thane Thomson <[email protected]> * Replace buf-based protobuf generation with simple protoc-based approach Signed-off-by: Thane Thomson <[email protected]> * Remove custom buf-based Docker image generation config and Dockerfile Signed-off-by: Thane Thomson <[email protected]> * Adopt Cosmos SDK's approach to Protobuf linting and breakage checking in CI Signed-off-by: Thane Thomson <[email protected]> * Suppress command echo when running proto checks Signed-off-by: Thane Thomson <[email protected]> * Fix proto-check workflow YAML indentation Signed-off-by: Thane Thomson <[email protected]> * Restore proto-format target Signed-off-by: Thane Thomson <[email protected]> * Replace custom BASH script with make equivalent Signed-off-by: Thane Thomson <[email protected]> * Remove proto linting/breaking changes CI checks after discussion today Signed-off-by: Thane Thomson <[email protected]> * Remove dangling reference to CI workflow that no longer exists Signed-off-by: Thane Thomson <[email protected]> * Update contributing guidelines relating to protos Signed-off-by: Thane Thomson <[email protected]> * Use buf instead for generating protos Signed-off-by: Thane Thomson <[email protected]> * Remove unused buf config for gogoprotobuf Signed-off-by: Thane Thomson <[email protected]> * Add reminder for if we migrate fully to buf Signed-off-by: Thane Thomson <[email protected]> * Restore protopackage script for tendermint#8065 Signed-off-by: Thane Thomson <[email protected]> * Fix permissions on protopackage script Signed-off-by: Thane Thomson <[email protected]> * Update contributing guidelines to show building of protos using buf Signed-off-by: Thane Thomson <[email protected]> * Fix breaking changes check and add disclaimer Signed-off-by: Thane Thomson <[email protected]> * Expand on contributing guidelines for clarity Signed-off-by: Thane Thomson <[email protected]> * Re-remove old proto workflows Signed-off-by: Thane Thomson <[email protected]> * Add buf-based proto linting workflow in CI Signed-off-by: Thane Thomson <[email protected]> * Superficially reorder proto targets Signed-off-by: Thane Thomson <[email protected]> * Fix proto lints Signed-off-by: Thane Thomson <[email protected]> * Fix GA workflow YAML indentation Signed-off-by: Thane Thomson <[email protected]> * Temporarily use forked version of mlc Use forked version of markdown-link-check until gaurav-nelson/github-action-markdown-link-check#126 lands. Signed-off-by: Thane Thomson <[email protected]> * Temporarily disable markdown link checker Signed-off-by: Thane Thomson <[email protected]> * Remove gogo protos - superseded by version from buf registry Signed-off-by: Thane Thomson <[email protected]>
- Loading branch information
1 parent
658a766
commit 72bbe64
Showing
33 changed files
with
160 additions
and
370 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
name: Check Markdown links | ||
# TODO: Re-enable when https://github.com/gaurav-nelson/github-action-markdown-link-check/pull/126 lands. | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gaurav-nelson/[email protected] | ||
with: | ||
check-modified-files-only: 'yes' | ||
#name: Check Markdown links | ||
# | ||
#on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
# branches: [master] | ||
# | ||
#jobs: | ||
# markdown-link-check: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: gaurav-nelson/[email protected] | ||
# with: | ||
# check-modified-files-only: 'yes' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
name: Protobuf Lint | ||
on: | ||
pull_request: | ||
paths: | ||
- 'proto/**' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'proto/**' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: bufbuild/[email protected] | ||
- uses: bufbuild/buf-lint-action@v1 | ||
with: | ||
input: 'proto' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# The version of the generation template (required). | ||
# The only currently-valid value is v1beta1. | ||
version: v1beta1 | ||
|
||
# The plugins to run. | ||
version: v1 | ||
plugins: | ||
# The name of the plugin. | ||
- name: gogofaster | ||
# The directory where the generated proto output will be written. | ||
# The directory is relative to where the generation tool was run. | ||
out: proto | ||
# Set options to assign import paths to the well-known types | ||
# and to enable service generation. | ||
opt: Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration,plugins=grpc,paths=source_relative | ||
out: ./proto/ | ||
opt: | ||
- Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types | ||
- Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration | ||
- plugins=grpc | ||
- paths=source_relative |
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,3 @@ | ||
version: v1 | ||
directories: | ||
- proto |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
deps: | ||
- remote: buf.build | ||
owner: gogo | ||
repository: protobuf | ||
commit: 4df00b267f944190a229ce3695781e99 |
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 |
---|---|---|
@@ -1,16 +1,11 @@ | ||
version: v1beta1 | ||
|
||
build: | ||
roots: | ||
- proto | ||
- third_party/proto | ||
version: v1 | ||
deps: | ||
- buf.build/gogo/protobuf | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- BASIC | ||
- FILE_LOWER_SNAKE_CASE | ||
- UNARY_RPC | ||
ignore: | ||
- gogoproto | ||
breaking: | ||
use: | ||
- FILE |
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.