mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 21:36:26 +00:00
tools: clone proto files from spec (#6976)
## Description clone proto files from spec in order to have them in a single location closes https://github.com/tendermint/spec/issues/343
This commit is contained in:
@@ -1,7 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS=0.7.1
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
# Edit this line to clone your branch, if you are modifying protobuf files
|
||||
curl -qL "https://github.com/tendermint/spec/archive/refs/tags/v${VERS}.tar.gz" | tar -xjf - spec-"$VERS"/proto/
|
||||
|
||||
cp -r ./spec-"$VERS"/proto/tendermint/** ./proto/tendermint
|
||||
|
||||
buf generate --path proto/tendermint
|
||||
|
||||
mv ./proto/tendermint/abci/types.pb.go ./abci/types
|
||||
|
||||
echo "proto files have been generated"
|
||||
|
||||
echo "removing copied files"
|
||||
|
||||
rm -rf ./proto/tendermint/abci/types.proto
|
||||
rm -rf ./proto/tendermint/blocksync/types.proto
|
||||
rm -rf ./proto/tendermint/consensus/types.proto
|
||||
rm -rf ./proto/tendermint/mempool/types.proto
|
||||
rm -rf ./proto/tendermint/p2p/types.proto
|
||||
rm -rf ./proto/tendermint/p2p/conn.proto
|
||||
rm -rf ./proto/tendermint/p2p/pex.proto
|
||||
rm -rf ./proto/tendermint/statesync/types.proto
|
||||
rm -rf ./proto/tendermint/types/block.proto
|
||||
rm -rf ./proto/tendermint/types/evidence.proto
|
||||
rm -rf ./proto/tendermint/types/params.proto
|
||||
rm -rf ./proto/tendermint/types/types.proto
|
||||
rm -rf ./proto/tendermint/types/validator.proto
|
||||
rm -rf ./proto/tendermint/version/version.proto
|
||||
|
||||
rm -rf ./spec-"$VERS"
|
||||
|
||||
Reference in New Issue
Block a user