1

将 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

缺少模块

4

1 回答 1

3

这是因为tendermint 将其dbm移至单独的模块路径。

做:

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

并替换:

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

其中:

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

为您的进口

于 2019-08-07T10:09:29.093 回答