Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'proto-gen' doesn't work #103

Open
olimdzhon opened this issue Jul 24, 2024 · 15 comments
Open

'proto-gen' doesn't work #103

olimdzhon opened this issue Jul 24, 2024 · 15 comments

Comments

@olimdzhon
Copy link

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
Copy link

nakul91 commented Jul 24, 2024

@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
Copy link
Author

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

@nakul91
Copy link

nakul91 commented Jul 24, 2024

@olimdzhon in Makefile they are using it

@olimdzhon
Copy link
Author

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

@olimdzhon
Copy link
Author

started docker and it's worked

@olimdzhon
Copy link
Author

olimdzhon commented Jul 24, 2024

@nakul91
Screenshot 2024-07-25 at 02 10 28
any idea why proto-gen not working? i have installed all prerequisites

@olimdzhon olimdzhon reopened this Jul 25, 2024
@nakul91
Copy link

nakul91 commented Jul 25, 2024

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

@olimdzhon
Copy link
Author

@nakul91
Screenshot 2024-07-25 at 11 11 11
not working also...

@nakul91
Copy link

nakul91 commented Jul 25, 2024

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

@olimdzhon
Copy link
Author

@nakul91
same results after reset and clean
Screenshot 2024-07-25 at 11 33 23

@olimdzhon
Copy link
Author

@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
Copy link

nakul91 commented Jul 25, 2024

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

@olimdzhon
Copy link
Author

@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
Copy link

nakul91 commented Jul 25, 2024

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
Copy link
Author

olimdzhon commented Jul 25, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants