binaryholdings / cosmprund

116 stars 72 forks source link

Cannot find module providing package #22

Open vo-ps opened 7 months ago

vo-ps commented 7 months ago

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 commented 6 months ago

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