move buf yaml to root of spec repo

This commit is contained in:
William Banfield
2021-11-15 14:23:38 -05:00
parent e2d1c0e049
commit 89b83bb81a
3 changed files with 3 additions and 30 deletions
-13
View File
@@ -1,13 +0,0 @@
# The version of the generation template.
# Required.
# The only currently-valid value is v1beta1.
version: v1beta1
# The plugins to run.
plugins:
# The name of the plugin.
- name: gogofaster
# The the relative output directory.
out: proto
# Any options to provide to the plugin.
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
-16
View File
@@ -1,16 +0,0 @@
version: v1beta1
build:
roots:
- proto
- third_party/proto
lint:
use:
- BASIC
- FILE_LOWER_SNAKE_CASE
- UNARY_RPC
ignore:
- gogoproto
breaking:
use:
- FILE
+3 -1
View File
@@ -9,6 +9,8 @@ set -euo pipefail
: ${VERS:=master}
URL_PATH=tarball/
VERS=ba46bcc66b77e0c37921e47a2a29c574b38f2b73
echo "fetching proto files"
# Get shortened ref of commit
@@ -31,7 +33,7 @@ find ./proto/tendermint -name '*.proto' -not -path "./proto/tendermint/abci/type
# so that it can be moved into the ./abci/types directory.
sh ./scripts/protopackage.sh ./proto/tendermint/abci/types.proto $MODNAME "abci/types"
buf generate --path proto/tendermint --template ./${OUTDIR}/proto/buf.gen.yaml --config ./${OUTDIR}/proto/buf.yaml
buf generate --path proto/tendermint --template ./${OUTDIR}/buf.gen.yaml --config ./${OUTDIR}/buf.yaml
mv ./proto/tendermint/abci/types.pb.go ./abci/types