textileio / textile

Textile hub services and buckets lib
MIT License
226 stars 45 forks source link

Specify dep version for github.com/libp2p/go-libp2p-core #382

Open carsonfarmer opened 3 years ago

carsonfarmer commented 3 years ago

Looks like we should update deps in textileio/textile. Anyone that does go mod init and tidy will get a v0.7.x version of github.com/libp2p/go-libp2p-core, but right now textileio/textile needs v0.6.1. For now, a simple workaround is to change it in go.mod to github.com/libp2p/go-libp2p-core v0.6.1.

Thanks to @jsign for finding this annoying v0.x pain...

carsonfarmer commented 3 years ago

Note that for those searching, if you don't do the above fix, you might end up with some build errors that look like this:

cannot use s (type *Stream) as type network.Stream in argument to f.ClosedStream:
    *Stream does not implement network.Stream (missing CloseRead method)