I’ve added some features to go-multiaddr (and go-mutliaddr-net) and would like to test my changes with go-ipfs (
ipfs executable). However, I can’t seem to figure out a good way of making go-ipfs point to my local git repositories rather than to their ipfs hash. I’ve tried using
sed to replace all occurences of
github.com/multiformats but this results in the following kinds of errors:
exchange/bitswap/network/ipfs_impl.go:36:38: cannot use (*netNotifiee)(&bitswapNetwork) (type *netNotifiee) as type net.Notifiee in argument to host.Network().Notify: *netNotifiee does not implement net.Notifiee (wrong type for Listen method) have Listen(net.Network, "github.com/multiformats/go-multiaddr".Multiaddr) want Listen(net.Network, "gx/ipfs/QmWWQ2Txc2c6tqjsBpzg5Ar652cHPGNsQQp2SejkNmkUMb/go-multiaddr".Multiaddr)
Does this mean I’ll have to recursively replace the hash in all dependencies, and if so, how? Surely there must be a better way. What workflows do the ipfs developers use? I hope it is not required to upload modified dependencies to ipfs in order to use them locally.