Closed mediocregopher closed 5 years ago
You've updated github.com/multiformats/go-multiaddr
. You can either downgrade it to the version used in go-ipfs or upgrade the following packages to the latest version:
We moved protocol definitions from other packages into go-multiaddr itself and, unfortunately, go modules don't have "carrot" dependencies like npm.
Just to clarify a bit for anyone searching in the future:
The problem specifically was that I had github.com/libp2p/go-libp2p-core v0.2.4
in my go.mod
, which requires a higher version of github.com/multiformats/go-multiaddr
v0.1.1
than go-ipfs allows v0.0.4
.
Version information:
Using go-ipfs as a library, I encounter this problem in versions
v0.4.19
throughv0.4.22
(the current version). go version:go1.13.3 linux/amd64
Description:
Simply importing the
core
package causes a panic during init. Here's a super basic test case that does it:causes the following on my machine: