cosmosregistry / example

Cosmos SDK Module Template
https://cosmod.xyz
27 stars 11 forks source link

'proto-gen' doesn't work #103

Open olimdzhon opened 1 month ago

olimdzhon commented 1 month ago

Running MODULE_NAME=alice/checkers ./scripts/rename.sh on the repo root gives

~/minimal-module-example# MODULE_NAME=alice/checkers ./scripts/rename.sh Generating protobuf files... make: run: Command not found make: *** [Makefile:31: proto-gen] Error 127

nakul91 commented 1 month ago

@olimdzhon Please make sure docker is running as the rename.sh script uses docker. this needs to be added somewhere as it's not there in any docs I referred.

olimdzhon commented 1 month ago

@nakul91 are you sure? i can't see any docker command inside this script...

nakul91 commented 1 month ago

@olimdzhon in Makefile they are using it

olimdzhon commented 1 month ago

@nakul91 yep you was right... thanks a lot

olimdzhon commented 1 month ago

started docker and it's worked

olimdzhon commented 1 month ago

@nakul91

Screenshot 2024-07-25 at 02 10 28

any idea why proto-gen not working? i have installed all prerequisites

nakul91 commented 1 month ago

@olimdzhon add the authentic GitHub user name ex: github.com/olimdzhon/checkers

olimdzhon commented 1 month ago

@nakul91

Screenshot 2024-07-25 at 11 11 11

not working also...

nakul91 commented 1 month ago

hard reset once and remove all untracked/stagged to commit files once try -> git clean -fd and try again

olimdzhon commented 1 month ago

@nakul91 same results after reset and clean

Screenshot 2024-07-25 at 11 33 23
olimdzhon commented 1 month ago

@nakul91 Sorry bro that i'm pinnig you each time))) i find out that protogen script ends with wrong commands and comment them...

Screenshot 2024-07-25 at 12 19 05

After that it tries connect to my github however i don't have such repo or modules... maybe if i setup ssh key and everything will work but i'm not sure...

Screenshot 2024-07-25 at 12 16 46
nakul91 commented 1 month ago

I don't think it's required, are you sure the docker is running !

olimdzhon commented 1 month ago

@nakul91 If you mean docker itself... yes it's running...

Screenshot 2024-07-25 at 13 15 30

i believe this docker run command from make file not executing because of errors...

Screenshot 2024-07-25 at 13 14 16
nakul91 commented 1 month ago

before running $make proto-gen

you have to comment out below line

-   cp -r github.com/alice/checkers/* ./
+   # cp -r github.com/alice/checkers/* ./

check it here - https://tutorials.cosmos.network/hands-on-exercise/0-native/2-build-module.html

olimdzhon commented 1 month ago

@nakul91 yes i'm trying to learn from this tutorials, i tried both commented and commented out this lines in proto-gen but still can't generate modules because have this errors