Hi there – I’d like to use go-ipfs as a library in a small CLI tool that I’m building to demo IPFS’s pubsub functionality. I’m using the “official” go dependency management tool dep to manage dependencies for my app and when I try to run dep init
it complains about problematic subpackages (it’s a pretty long stacktrace, but here’s a gist):
sharding-pre: Could not introduce github.com/jbenet/go-ipfs@sharding-pre due to multiple problematic subpackages:
Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/crypto is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/net/swarm/addr is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/routing does not contain usable Go code (*build.NoGoError).. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/thirdparty/eventlog is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/util is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/keytransform is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/goprocess/context is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/host is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/util/debugerror is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/util/testutil is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/goprocess/periodic is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/protocol/identify is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/routing/dht is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/util/datastore2 is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/braintree/manners is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58 is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/fs is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/opt is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/peer is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/leveldb is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/goprocess is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/host/basic is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/net is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/net/mock is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/net/swarm is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/util/eventlog/loggables is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.) Subpackage github.com/jbenet/go-ipfs/p2p/host/routed is missing. (Package is required by github.com/ipfs/go-ipfs@v0.2.2-buildfails.)
Is there a recommended way of using go-ipfs
as a lib dependency in another Go project? Should I be compiling go-ipfs
first before trying to include it?