From 10c163ba091b4a4ff4b8593e5aac8aa2f75c0bbc Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 12 May 2021 10:15:31 -0700 Subject: [PATCH] doc(examples): remove outdated troubleshooting All hail go modules. Go path issues like this are no longer an issue. --- examples/README.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/examples/README.md b/examples/README.md index 0bdc014c..bc7e0d22 100644 --- a/examples/README.md +++ b/examples/README.md @@ -21,21 +21,3 @@ Let us know if you find any issue or if you want to contribute and add a new tut - [A chapter based approach to building a libp2p application](./ipfs-camp-2019/) _Created for [IPFS Camp 2019](https://github.com/ipfs/camp/tree/master/CORE_AND_ELECTIVE_COURSES/CORE_COURSE_B)_ For js-libp2p examples, check https://github.com/libp2p/js-libp2p/tree/master/examples - -## Troubleshooting - -When building the examples ensure you have a clean `$GOPATH`. If you have checked out and built other `libp2p` repos then you may get errors similar to the one below when building the examples. Note that the use of the `gx` package manager **is not required** to run the examples or to use `libp2p`. -``` -$:~/go/src/github.com/libp2p/go-libp2p-examples/libp2p-host$ go build host.go -# command-line-arguments -./host.go:36:18: cannot use priv (type "github.com/libp2p/go-libp2p-crypto".PrivKey) as type "gx/ipfs/QmNiJiXwWE3kRhZrC5ej3kSjWHm337pYfhjLGSCDNKJP2s/go-libp2p-crypto".PrivKey in argument to libp2p.Identity: - "github.com/libp2p/go-libp2p-crypto".PrivKey does not implement "gx/ipfs/QmNiJiXwWE3kRhZrC5ej3kSjWHm337pYfhjLGSCDNKJP2s/go-libp2p-crypto".PrivKey (wrong type for Equals method) - have Equals("github.com/libp2p/go-libp2p-crypto".Key) bool - want Equals("gx/ipfs/QmNiJiXwWE3kRhZrC5ej3kSjWHm337pYfhjLGSCDNKJP2s/go-libp2p-crypto".Key) bool -``` - -To obtain a clean `$GOPATH` execute the following: -``` -> mkdir /tmp/libp2p-examples -> export GOPATH=/tmp/libp2p/examples -```