can not correct generate tendermint proto by tendermint-rs proto-compiler #565
Closed
Description
Bug Report
Setup
use tendermint-rs
proto-compiler to compiler tendermint proto
settting pub const TENDERMINT_REPO: &str = "https://github.com/cometbft/cometbft";
pub const TENDERMINT_VERSIONS: &[TendermintVersion] = &[
TendermintVersion {
ident: "v0_34",
- commitish: "v0.34.24",
commitish: "v0.34.27",
},
TendermintVersion {
ident: "v0_37",
- commitish: "v0.37.0-alpha.1",
commitish: "v0.37.0",
},
];
Config
What happened?
cargo run -- -v
Compiling tendermint-proto-compiler v0.2.0 (/Users/davirain/octopus/learn-cosmos/tendermint-rs/tools/proto-compiler)
Finished dev [unoptimized + debuginfo] target(s) in 1.04s
Running `/Users/davirain/octopus/learn-cosmos/tendermint-rs/tools/target/debug/tendermint-proto-compiler -v`
[info] => Fetching https://github.com/cometbft/cometbft at v0.34.27 into "/Users/davirain/octopus/learn-cosmos/tendermint-rs/tools/proto-compiler/../target/tendermint"
[info] => Fetching from https://github.com/cometbft/cometbft into existing /Users/davirain/octopus/learn-cosmos/tendermint-rs/tools/proto-compiler/../target/tendermint folder
[info] => Fetching repo using remote `origin`
[info] => Received 0/0 objects in 0 bytes
[info] => Checking out repo in detached HEAD mode:
[info] => id: 5989a7314fea2b47efcd8747e9f9c9b6ebd1f6e0,
[info] => author: Thane Thomson <connect@thanethomson.com>,
[info] => committer: GitHub <noreply@github.com>,
[info] => summary: Release v0.34.27 (#388)
[info] => name: v0.34.27
[info] => Creating structs.
[info] => Removing old structs and copying new structs to ../../proto/src/prost/v0_34
[info] => Fetching https://github.com/cometbft/cometbft at v0.37.0 into "/Users/davirain/octopus/learn-cosmos/tendermint-rs/tools/proto-compiler/../target/tendermint"
[info] => Fetching from https://github.com/cometbft/cometbft into existing /Users/davirain/octopus/learn-cosmos/tendermint-rs/tools/proto-compiler/../target/tendermint folder
[info] => Fetching repo using remote `origin`
[info] => Received 0/0 objects in 0 bytes
[info] => Checking out repo in detached HEAD mode:
[info] => id: 365b0a7107259b6a18db55ed5dfa6fd6e92c9114,
[info] => author: Thane Thomson <connect@thanethomson.com>,
[info] => committer: GitHub <noreply@github.com>,
[info] => summary: Release v0.37.0 (#473)
[info] => name: v0.37.0
[info] => Creating structs.
protoc failed: gogoproto/gogo.proto: File not found.
tendermint/crypto/proof.proto:6:1: Import "gogoproto/gogo.proto" was not found or had errors.
tendermint/version/types.proto:6:1: Import "gogoproto/gogo.proto" was not found or had errors.
tendermint/crypto/keys.proto:6:1: Import "gogoproto/gogo.proto" was not found or had errors.
tendermint/types/validator.proto:6:1: Import "gogoproto/gogo.proto" was not found or had errors.
tendermint/types/validator.proto:7:1: Import "tendermint/crypto/keys.proto" was not found or had errors.
tendermint/types/validator.proto:17:3: "tendermint.crypto.PublicKey" is not defined.
tendermint/types/validator.proto:23:3: "tendermint.crypto.PublicKey" is not defined.
tendermint/types/types.proto:6:1: Import "gogoproto/gogo.proto" was not found or had errors.
tendermint/types/types.proto:8:1: Import "tendermint/crypto/proof.proto" was not found or had errors.
tendermint/types/types.proto:9:1: Import "tendermint/version/types.proto" was not found or had errors.
tendermint/types/types.proto:10:1: Import "tendermint/types/validator.proto" was not found or had errors.
tendermint/types/types.proto:46:3: "tendermint.crypto.Proof" is not defined.
tendermint/types/types.proto:60:3: "tendermint.version.Consensus" is not defined.
tendermint/types/types.proto:142:3: "tendermint.types.ValidatorSet" is not defined.
tendermint/types/types.proto:156:3: "tendermint.crypto.Proof" is not defined.
tendermint/types/evidence.proto:6:1: Import "gogoproto/gogo.proto" was not found or had errors.
tendermint/types/evidence.proto:8:1: Import "tendermint/types/types.proto" was not found or had errors.
tendermint/types/evidence.proto:9:1: Import "tendermint/types/validator.proto" was not found or had errors.
tendermint/types/evidence.proto:20:3: "tendermint.types.Vote" is not defined.
tendermint/types/evidence.proto:21:3: "tendermint.types.Vote" is not defined.
tendermint/types/evidence.proto:29:3: "tendermint.types.LightBlock" is not defined.
tendermint/types/evidence.proto:31:12: "tendermint.types.Validator" is not defined.
tendermint/types/block.proto:6:1: Import "gogoproto/gogo.proto" was not found or had errors.
tendermint/types/block.proto:7:1: Import "tendermint/types/types.proto" was not found or had errors.
tendermint/types/block.proto:8:1: Import "tendermint/types/evidence.proto" was not found or had errors.
tendermint/types/block.proto:11:3: "Header" is not defined.
tendermint/types/block.proto:12:3: "Data" is not defined.
tendermint/types/block.proto:13:3: "tendermint.types.EvidenceList" is not defined.
tendermint/types/block.proto:14:3: "Commit" is not defined.
tendermint/blocksync/types.proto:6:1: Import "tendermint/types/block.proto" was not found or had errors.
tendermint/blocksync/types.proto:20:3: "tendermint.types.Block" is not defined.