ipfs-inactive / examples

[ARCHIVED] DEPRECATED — merged into IPFS docs
185 stars 74 forks source link

Mixed imports #48

Closed ComSecNinja closed 7 years ago

ComSecNinja commented 8 years ago

I tried to explain this but it proved nearly impossible to do so in a manner I could even comprehend myself. Hence, an example: github.com/ipfs/go-libp2p/p2p/peer/peer.go imports gx/ipfs/.../go-multihash as mh and gx/ipfs/.../go-ipfs-util as u. In block.go line 22 Block expects gx/ipfs/.../go-multihash.Multihash but u.Hash returns github.com/jbenet/go-multihash.Multihash. There are multiple conflicts of this kind out there, of which I list those known to me here:

A complete dump of errors when running go get in examples/api/service, as per my conversation with @whyrusleeping at freenode#ipfs.

ghost commented 7 years ago

Yeah, we need to go through all examples and make sure they're up-to-date and work :(

Closing in favor of #67