将cosmos-sdk从v0.35更新为post 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

发布于 2019-08-07 18:09:29
这是因为tendermint将dbm移到了单独的模块路径。
执行以下操作:
$ go get github.com/tendermint/tm-db
并替换为:
dbm "github.com/tendermint/tendermint/libs/db"
其中:
dbm "github.com/tendermint/tm-db"
对于您的导入
https://stackoverflow.com/questions/57391971
复制相似问题