Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GX/Go Package Error when building #317

Closed
agahEbrahimi opened this issue Apr 19, 2018 · 0 comments
Closed

GX/Go Package Error when building #317

agahEbrahimi opened this issue Apr 19, 2018 · 0 comments

Comments

@agahEbrahimi
Copy link

agahEbrahimi commented Apr 19, 2018

Hi,

When I try to built this demo from @whyrusleeping I run into this error. I'm not sure if it is a bug or misconf on my side.

./main.go:33:35: cannot use host (type "gx/ipfs/QmWPKovoJxF2bfiYLQK6xPeFvMJW8hX6RFRuA9bv6cURha/go-libp2p-host".Host) as type "github.com/libp2p/go-libp2p-host".Host in argument to floodsub.NewFloodSub:
	"gx/ipfs/QmWPKovoJxF2bfiYLQK6xPeFvMJW8hX6RFRuA9bv6cURha/go-libp2p-host".Host does not implement "github.com/libp2p/go-libp2p-host".Host (wrong type for Addrs method)
		have Addrs() []"gx/ipfs/QmWWQ2Txc2c6tqjsBpzg5Ar652cHPGNsQQp2SejkNmkUMb/go-multiaddr".Multiaddr
		want Addrs() []"github.com/multiformats/go-multiaddr".Multiaddr
./main.go:39:25: cannot use host (type "gx/ipfs/QmWPKovoJxF2bfiYLQK6xPeFvMJW8hX6RFRuA9bv6cURha/go-libp2p-host".Host) as type "github.com/libp2p/go-libp2p-host".Host in argument to dht.NewDHTClient:
	"gx/ipfs/QmWPKovoJxF2bfiYLQK6xPeFvMJW8hX6RFRuA9bv6cURha/go-libp2p-host".Host does not implement "github.com/libp2p/go-libp2p-host".Host (wrong type for Addrs method)
		have Addrs() []"gx/ipfs/QmWWQ2Txc2c6tqjsBpzg5Ar652cHPGNsQQp2SejkNmkUMb/go-multiaddr".Multiaddr
		want Addrs() []"github.com/multiformats/go-multiaddr".Multiaddr
./main.go:57:31: cannot use *pinfo (type "github.com/libp2p/go-libp2p-peerstore".PeerInfo) as type "gx/ipfs/QmXauCuJzmzapetmC6W4TuDJLL1yFFrVzSHoWv8YdbmnxH/go-libp2p-peerstore".PeerInfo in argument to host.Connect

I looked at the chat app demo in the examples and that one used mostly GX imports instead of github imports, maybe a mismatch is the cause of error?
Does anyone know why this is happening or how to fix it?
Thank you in advance

@agahEbrahimi agahEbrahimi changed the title GX/Go Package Error GX/Go Package Error when building Apr 19, 2018
marten-seemann pushed a commit that referenced this issue Apr 21, 2022
sync: update CI config files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant