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

bug/proto-gen: go ICE post deleting generated files #4519

Open
laciferin2024 opened this issue Feb 18, 2025 · 4 comments
Open

bug/proto-gen: go ICE post deleting generated files #4519

laciferin2024 opened this issue Feb 18, 2025 · 4 comments

Comments

@laciferin2024
Copy link

laciferin2024 commented Feb 18, 2025

Proto gen halts at go mod tidy after i clean all generated files . It would be great if the go mod tidy is done post generation event

Reproducer

  1. Create a new module
  2. Delete the protogen generated files
  3. Now try generating the protogen files
@julienrbrt
Copy link
Member

Hi! You aren't supposed to delete the generated file. What is your use case?

@laciferin2024
Copy link
Author

@julienrbrt lost my deleted files and now it doesnt generate

@julienrbrt
Copy link
Member

I have tried the following:

ignite s chain gm
cd gm
rm -r x/gm/types/*.pb.go
ignite chain serve

I did the same with

ignite s chain gm
cd gm
rm -r x/gm/types/*.pb.go
ignite generate proto-go

And they are both working. Could you describe steps for me to reproduce?

@laciferin2024
Copy link
Author

yes: try

find . -type f -name "*.pb.*" -exec rm -f {} +

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

No branches or pull requests

2 participants