1

Updating cosmos-sdk from v0.35 to post v0.36 (cosmos-sdk@v0.36.0-rc1) () for new features. Got error because a package path wasn't working anymore:

Cannot load github.com/tendermint/tendermint/libs/db: cannot find module providing pacakge github.com/tendermint/tendermint/libs/db

Missing module

José Pedro
  • 1,097
  • 3
  • 14
  • 24
robertdavid
  • 393
  • 4
  • 15
  • Hopefully we can get a cosmos network/sdk dedicated tag or even [SE](https://area51.stackexchange.com/proposals/122619/cosmos/122872#122872) – robertdavid Aug 07 '19 at 10:11

1 Answers1

3

This is because tendermint moved the dbm to a seperate module path.

do:

$ go get github.com/tendermint/tm-db

and replace:

dbm "github.com/tendermint/tendermint/libs/db"

whith:

dbm "github.com/tendermint/tm-db"

for your imports

robertdavid
  • 393
  • 4
  • 15
  • 1
    There are potentially additional steps for other packages/modules/dependencies for getting upgraded fully to v0.36. I will add more going through this Q&A style. – robertdavid Aug 07 '19 at 10:12
  • Additionally when upgrading the sdk the genesis file generator method was moved from the `gaiad` pacakge to `genutils`. This means replacing `"github.com/cosmos/cosmos-sdk/cmd/gaia/init"` imports with `"github.com/cosmos/cosmos-sdk/x/genutil"` when generating genesis file through the `init` command. – robertdavid Aug 07 '19 at 11:49