I'm a beginner with golang. When trying to run "go get github.com/libp2p/go-libp2p" I get an error message that prevents me from being able to run tests & benchmarks.
Here is the error:
github.com/libp2p/go-libp2p/p2p/host/routed
../../libp2p/go-libp2p/p2p/host/routed/routed.go:153:20: cannot use rh.host.Mux() (type "github.com/libp2p/go-libp2p-core/protocol".Switch) as type *multistream.MultistreamMuxer in return argument: need type assertion ../../libp2p/go-libp2p/p2p/host/routed/routed.go:190:5: cannot use (*RoutedHost)(nil) (type *RoutedHost) as type "github.com/libp2p/go-libp2p-core/host".Host in assignment: *RoutedHost does not implement "github.com/libp2p/go-libp2p-core/host".Host (wrong type for Mux method) have Mux() *multistream.MultistreamMuxer want Mux() "github.com/libp2p/go-libp2p-core/protocol".Switch
github.com/libp2p/go-libp2p/p2p/host/basic
../../libp2p/go-libp2p/p2p/host/basic/basic_host.go:145:32: cannot use h (type *BasicHost) as type host.Host in argument to identify.NewIDService: *BasicHost does not implement host.Host (wrong type for Mux method) have Mux() *multistream.MultistreamMuxer want Mux() "github.com/libp2p/go-libp2p-core/protocol".Switch ../../libp2p/go-libp2p/p2p/host/basic/basic_host.go:172:32: cannot use h (type *BasicHost) as type host.Host in argument to ping.NewPingService: *BasicHost does not implement host.Host (wrong type for Mux method) have Mux() *multistream.MultistreamMuxer want Mux() "github.com/libp2p/go-libp2p-core/protocol".Switch
I don't understand why the error messages. It looks like go-libp2p does not compile. any ideas?