cosmos / b9-checkers-academy-draft

32 stars 40 forks source link

Error on https://tutorials.cosmos.network/hands-on-exercise/3-cosmjs-adv/1-cosmjs-objects.html #59

Closed perfogic closed 1 year ago

perfogic commented 1 year ago

Hello, when I do install proto from this:

download-cosmos-proto:
    mkdir -p proto/cosmos/base/query/v1beta1
    curl https://raw.githubusercontent.com/cosmos/cosmos-sdk/${cosmos-version}/proto/cosmos/base/query/v1beta1/pagination.proto -o proto/cosmos/base/query/v1beta1/pagination.proto
    mkdir -p proto/google/api
    curl https://raw.githubusercontent.com/cosmos/cosmos-sdk/${cosmos-version}/third_party/proto/google/api/annotations.proto -o proto/google/api/annotations.proto
    curl https://raw.githubusercontent.com/cosmos/cosmos-sdk/${cosmos-version}/third_party/proto/google/api/http.proto -o proto/google/api/http.proto
    mkdir -p proto/gogoproto
    curl https://raw.githubusercontent.com/cosmos/cosmos-sdk/${cosmos-version}/third_party/proto/gogoproto/gogo.proto -o proto/gogoproto/gogo.proto

I can't do "ignite chain serve" because of error on building proto, how to fix this ?

cannot build app:                                                                                                                         
  error while running command /tmp/protoc3693931274 -I /tmp/2133314044 -I                    
  /home/hello/cosmos-checkers/proto -I                                                       
  /home/hello/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.4/proto -I                       
  /home/hello/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.4/third_party/proto -I           
  /home/hello/go/pkg/mod/github.com/tendermint/spn@v0.2.1-0.20220609194312-7833ecf4454a/proto
  -I /home/hello/go/pkg/mod/github.com/cosmos/ibc-go/v3@v3.0.0/proto -I                      
  /home/hello/go/pkg/mod/github.com/cosmos/ibc-go/v3@v3.0.0/third_party/proto                
  --gocosmos_out=plugins=interfacetype+grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosm
  /home/hello/cosmos-checkers/proto/gogoproto/gogo.proto:                                    
  /home/hello/cosmos-checkers/proto/gogoproto/gogo.proto: Input is shadowed in the           
  --proto_path by "/tmp/2133314044/gogoproto/gogo.proto".  Either use the latter             
  file as your input or reorder the --proto_path so that the former file's                   
  location comes first.                                                                      
  : exit status 1

Thank you. Here is my repo: https://github.com/perfogic/cosmos-checkers

xavierlepretre commented 1 year ago

What if you clear the /tmp folder and try again?

perfogic commented 1 year ago

I do delete all folders on tmp but image

perfogic commented 1 year ago

When i restart again, it still have this error: image Here is my go.mod: image my ignite version: image

xavierlepretre commented 1 year ago

And with the exercise's expected Ignite version?

ENV IGNITE_VERSION=0.22.1
perfogic commented 1 year ago

Oh i see, i have updated it for using new version with evmos. Thank you for fast response

perfogic commented 1 year ago

Just downgrade it and it is free to go, but when ignite is 0.27.1 how do i fix it ? Thank you btw

xavierlepretre commented 1 year ago

I have not experimented with the latest version of Ignite. Perhaps remove the downloaded gogo.proto.

perfogic commented 1 year ago

Thank you!