Skip to content

compile_proto_services() overwrites the compile_protos() work #34

Open
@ancazamfir

Description

@ancazamfir

We had this issue also in ibc-rs when trying to compile some IBC core services.
For example, with this addition:

diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs
index 9d9591c..aeeb30d 100644
--- a/proto-build/src/main.rs
+++ b/proto-build/src/main.rs
@@ -161,6 +161,7 @@ fn compile_proto_services(out_dir: impl AsRef<Path>) {
         sdk_dir.join("proto/cosmos/bank/v1beta1/query.proto"),
         sdk_dir.join("proto/cosmos/tx/v1beta1/service.proto"),
         sdk_dir.join("proto/cosmos/tx/v1beta1/tx.proto"),
+        sdk_dir.join("proto/ibc/core/channel/v1/query.proto"),
     ];

     // List available paths for dependencies

and after cargo run some of the structures are missing from ../cosmos-sdk-proto/src/prost/ibc.core.channel.v1.rs (all Msg.. structs, GenesisState).
In ibc-rs we fixed this by doing the proto and service compilation with tonic see here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions