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

Cannot find module providing package #22

Open
vldtr opened this issue Dec 6, 2023 · 1 comment · May be fixed by #31
Open

Cannot find module providing package #22

vldtr opened this issue Dec 6, 2023 · 1 comment · May be fixed by #31

Comments

@vldtr
Copy link

vldtr commented Dec 6, 2023

Hi. Keep getting this error while trying to make a fresh install:

~/cosmprund $ make build
Building Pruning
cmd/pruner.go:13:2: cannot find module providing package github.com/cosmos/cosmos-sdk/x/consensus/types: import lookup disabled by -mod=readonly
make: *** [makefile:13: build] Error 1

Tried go 1.18 and 1.21 on Ubuntu 22.04.
Any ideas how to solve it?

@StakeandRelax-Validator
Copy link

the related files of github.com/cosmos/cosmos-sdk/x/consensus/types are only in cosmos-sdk v0.47.x, but go.mod has v0.45.2.
The mod was done to support Desmos, that is infact on v0.47.5.
You can actually use older commit by cloning and then executing this command

git reset --hard d3bf3d8

that revert to the commit before last one. This at least until they fix the current release

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

Successfully merging a pull request may close this issue.

2 participants