libp2p / go-libp2p-webrtc-direct

A libp2p transport that enables browser-to-server, and server-to-server, direct communication over WebRTC without requiring signalling servers
MIT License
82 stars 18 forks source link

Update go.sum #27

Closed albrow closed 5 years ago

albrow commented 5 years ago

I starting seeing the following error when trying to install dependencies for this package or any packages that depend on it:

verifying github.com/ipfs/go-datastore@v0.0.1/go.mod: checksum mismatch
    downloaded: h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE=
    go.sum:     h1:bYmHO9fuKO1Ca7dpdDBWQl0mndy5b0HFqSJjGlNYtzs=

Looks like maybe the git history for that project was altered? Manually updating go.sum fixes the issue.

backkem commented 5 years ago

I'm having a hard time reproducing this. When re-creating the go.mod file it still points to the same hash.

FWIW, this is also a rather dump dependency introduced by https://github.com/libp2p/go-libp2p-peerstore.

go mod why -m github.com/libp2p/go-libp2p-peerstore
# github.com/libp2p/go-libp2p-peerstore
github.com/libp2p/go-libp2p-webrtc-direct
github.com/libp2p/go-libp2p-transport
github.com/libp2p/go-libp2p-net
github.com/libp2p/go-libp2p-peerstore

These repositories should only be used for their interface definitions but go-libp2p-peerstore seems to also contain some implementations.

albrow commented 5 years ago

Superseded by https://github.com/libp2p/go-libp2p-webrtc-direct/pull/28