将cosmos-sdk从v0.35更新到发布v0.36(cosmos-sdk@v0.36.0-rc1)()以获得新功能。由于软件包路径不再起作用而出错:
Cannot load github.com/tendermint/tendermint/libs/db: cannot find module providing pacakge github.com/tendermint/tendermint/libs/db
答案 0 :(得分:2)
这是因为bidmint将dbm
移到了单独的模块路径。
这样做:
$ go get github.com/tendermint/tm-db
并替换:
dbm "github.com/tendermint/tendermint/libs/db"
还有:
dbm "github.com/tendermint/tm-db"
用于进口