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

panic: proto: could not resolve import #1785

Open
gupadhyaya opened this issue Jan 23, 2024 · 1 comment
Open

panic: proto: could not resolve import #1785

gupadhyaya opened this issue Jan 23, 2024 · 1 comment

Comments

@gupadhyaya
Copy link

gupadhyaya commented Jan 23, 2024

panic: proto: could not resolve import "core/crypto/pb/crypto.proto": not found

goroutine 1 [running]:
github.com/CosmWasm/wasmd/app.NewWasmApp({0x1043356d0, 0x106611700}, {0x104355010, 0x14001188b80}, {0x0, 0x0}, 0x0, {0x1042f1f78, 0x140008a2150}, {0x1400141eb00, ...}, ...)
	github.com/CosmWasm/wasmd/app/app.go:903 +0x7378
main.NewRootCmd()
	github.com/CosmWasm/wasmd/cmd/wasmd/root.go:40 +0x504
main.main()
	github.com/CosmWasm/wasmd/cmd/wasmd/main.go:14 +0x1c

commenting out https://github.com/CosmWasm/wasmd/blob/main/app/app.go#L902-L904 works fine.

Steps to reproduce:

  • go mod replace github.com/cosmos/cosmos-sdk => github.com/rollkit/cosmos-sdk v0.50.1-rollkit-v0.11.19-no-fraud-proofs
  • github.com/rollkit/cosmos-sdk uses github.com/rollkit/rollkit, which in turn uses go-libp2p which looks like having the core/crypto/pb/crypto.proto that is not found above.
  • make install
  • wasmd start throws the error above
@bap2pecs
Copy link

bap2pecs commented Jul 5, 2024

we also met w the same issue and we are commenting out the code as a tmp fix as well

	protoFiles, err := proto.MergedRegistry()
	// if err != nil {
	// 	panic(err)
	// }

but we want to know:

  • if there is any plan to fix it
  • what's the implication of this tmp fix b/c we are concerned that adding this check might have some reasons

the code was originally added from the upstream PR cosmos/cosmos-sdk#13793

so we should probably ask there

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