examples icon indicating copy to clipboard operation
examples copied to clipboard

Code of `examples/api/service/readme.md` is outdated and misleading, since IPFS corenet is deprecated.

Open liuqun opened this issue 7 years ago • 5 comments

see: https://github.com/ipfs/examples/tree/master/examples/api/service#making-your-own-ipfs-service

The example code "Making your own ipfs service" is outdated and broken since "go-ipfs/core/corenet" was deprecated during the follow commits: https://github.com/ipfs/go-ipfs/pull/3943/commits of our developer magik6k.

The related article "Roll your own ipfs!" is also posted on the examples page of the official website ipfs.io, see: https://ipfs.io/docs/examples/

I found this issue when I was trying to make my own IPFS service. Since I am not quite experienced in Golang development, I have no idea of what to do to fix the missing package go-ipfs/core/corenet when trying to go run host.go as the example article showed.

I thought @whyrusleeping or @magik6k might be the right person who could help us to update or re-write this tutorial, so that we can help more developers making their own IPFS services. Thank you very much.

liuqun avatar Jul 20 '17 07:07 liuqun

I just ran into this exact same issue and can't seem to find documentation anywhere else.

wybiral avatar Oct 10 '17 12:10 wybiral

I would probably start here since examples can be missing for new implementation.

crackcomm avatar Oct 10 '17 14:10 crackcomm

Did anyone solve this problem?

W-B-S avatar Feb 24 '18 02:02 W-B-S

@W-B-S when I looked into it my conclusion was that they were in the midst of a project restructure and that the docs and examples were in flux. I could be wrong and it may have settled down by now, but that's what I gathered at the time.

wybiral avatar Feb 26 '18 19:02 wybiral

The current implementation lives in https://github.com/ipfs/go-ipfs/tree/master/p2p, and is exposed via ipfs p2p commands. Both of these things are likely to change in short-to-mid future as new, more stable api - CoreAPI - is being defined.

magik6k avatar Feb 26 '18 21:02 magik6k