Git Product home page Git Product logo

Comments (5)

tony-iqlusion avatar tony-iqlusion commented on May 27, 2024

The very first proto in the list of SDK protos that is passed to tonic-build is:

"../cosmos-sdk-go/proto/cosmos/auth/v1beta1/query.proto"

...so I'm not sure why it's not generating the query client anymore.

from cosmos-rust.

devashishdxt avatar devashishdxt commented on May 27, 2024

The very first proto in the list of SDK protos that is passed to tonic-build is:

"../cosmos-sdk-go/proto/cosmos/auth/v1beta1/query.proto"

...so I'm not sure why it's not generating the query client anymore.

I faced the same issue when I tried to update the proto files last time. It worked for me after I manually updated the git sub-modules and skipped update_submodules() in proto-build.

from cosmos-rust.

tony-iqlusion avatar tony-iqlusion commented on May 27, 2024

@devashishdxt what commit did you have checked out in the cosmos-sdk-go submodule?

I was curious if this might be related to bumping the SDK release version, but I'm getting the same behavior for v0.45.2 and v0.45.4.

If I try v0.46.0-beta2 I get this gnarly error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "protoc failed: /Users/tony/src/cosmos-rust/proto-build/../proto: warning: directory does not exist.\ngogoproto/gogo.proto: File not found.\ngoogle/protobuf/any.proto:35:1: Import \"gogoproto/gogo.proto\" was not found or had errors.\ngoogle/api/annotations.proto: File not found.\ncosmos_proto/cosmos.proto: File not found.\ncosmos/auth/v1beta1/auth.proto:4:1: Import \"cosmos_proto/cosmos.proto\" was not found or had errors.\ncosmos/auth/v1beta1/auth.proto:5:1: Import \"gogoproto/gogo.proto\" was not found or had errors.\ncosmos/auth/v1beta1/auth.proto:6:1: Import \"google/protobuf/any.proto\" was not found or had errors.\ncosmos/auth/v1beta1/auth.proto:21:3: \"google.protobuf.Any\" is not defined.\ncosmos/auth/v1beta1/query.proto:5:1: Import \"gogoproto/gogo.proto\" was not found or had errors.\ncosmos/auth/v1beta1/query.proto:6:1: Import \"google/protobuf/any.proto\" was not found or had errors.\ncosmos/auth/v1beta1/query.proto:7:1: Import \"google/api/annotations.proto\" was not found or had errors.\ncosmos/auth/v1beta1/query.proto:8:1: Import \"cosmos/auth/v1beta1/auth.proto\" was not found or had errors.\ncosmos/auth/v1beta1/query.proto:9:1: Import \"cosmos_proto/cosmos.proto\" was not found or had errors.\ncosmos/auth/v1beta1/query.proto:66:12: \"google.protobuf.Any\" is not defined.\ncosmos/auth/v1beta1/query.proto:87:3: \"Params\" is not defined.\ncosmos/auth/v1beta1/query.proto:93:3: \"google.protobuf.Any\" is not defined.\ncosmos/auth/v1beta1/query.proto:101:12: \"google.protobuf.Any\" is not defined.\n" }', proto-build/src/main.rs:261:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

from cosmos-rust.

devashishdxt avatar devashishdxt commented on May 27, 2024

@tony-iqlusion Created a PR to fix this #220.

from cosmos-rust.

tony-iqlusion avatar tony-iqlusion commented on May 27, 2024

@devashishdxt thank you!

from cosmos-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.