mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 11:45:18 +00:00
proto: folder structure adhere to buf (#5025)
This commit is contained in:
@@ -5,7 +5,8 @@ set -eo pipefail
|
||||
proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
|
||||
for dir in $proto_dirs; do
|
||||
protoc \
|
||||
-I. \
|
||||
-I "proto" \
|
||||
-I "third_party/proto" \
|
||||
--gogofaster_out=\
|
||||
Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,\
|
||||
Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration,\
|
||||
@@ -13,8 +14,9 @@ plugins=grpc,paths=source_relative:. \
|
||||
$(find "${dir}" -maxdepth 1 -name '*.proto')
|
||||
done
|
||||
|
||||
cp -r proto/abci/types.pb.go ./abci/types
|
||||
rm -rf proto/abci/types.pb.go
|
||||
cp -r ./tendermint/* ./proto/*
|
||||
rm -rf tendermint
|
||||
|
||||
cp -r proto/rpc/types.pb.go ./rpc/grpc
|
||||
rm -rf proto/rpc/types.pb.go
|
||||
mv ./proto/tendermint/abci/abci.pb.go ./abci/types
|
||||
|
||||
mv ./proto/tendermint/rpc/grpc/types.pb.go ./rpc/grpc
|
||||
|
||||
Reference in New Issue
Block a user