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

p2p/net/swarm: Fails to build due to dependency vendoring dependencies #66

Closed
shazow opened this issue Jun 11, 2016 · 4 comments
Closed
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue

Comments

@shazow
Copy link

shazow commented Jun 11, 2016

github.com/ipfs/go-libp2p/p2p/net/swarm $ go build
# github.com/ipfs/go-libp2p/p2p/net/swarm
./swarm.go:112: cannot use PSTransport (type streammux.Transport) as type streammux.Transport in argument to peerstream.NewSwarm:
    streammux.Transport does not implement streammux.Transport (wrong type for NewConn method)
        have NewConn(net.Conn, bool) (streammux.Conn, error)
        want NewConn(net.Conn, bool) (streammux.Conn, error)

Looks like swarm.go imports github.com/jbenet/go-peerstream which has its own vendored version of streammux.Conn which of course makes it a distinct type from the unvendored streammux.Conn we're expecting.

The solution would be for @jbenet to unvendor things from go-peerstreap (like go-libp2p did recently, yay) or to avoid dependencies which have vendoring policies inconsistent with this project.

@whyrusleeping
Copy link
Contributor

@shazow thanks for reporting. I'll see if i can get this done.

@shazow
Copy link
Author

shazow commented Jun 13, 2016

My local solution was to remove the substring github.com/jbenet/go-peerstream/Godeps/_workspace/src/ from github.com/jbenet/go-peerstream/*.go (then you can nuke the Godeps dir too).

@whyrusleeping whyrusleeping added the help wanted Seeking public contribution on this issue label Sep 14, 2016
@ghost ghost added status/deferred Conscious decision to pause or backlog and removed status/deferred Conscious decision to pause or backlog labels Nov 12, 2016
@daviddias daviddias added the status/deferred Conscious decision to pause or backlog label Nov 29, 2016
@daviddias
Copy link
Member

This should be golden, @shazow do you confirm?

@daviddias daviddias added the exp/novice Someone with a little familiarity can pick up label Aug 19, 2017
@shazow
Copy link
Author

shazow commented Aug 19, 2017

@diasdavid Sorry it's going to be a while before I'm back to doing IPFS stuff. I'll take your word for it, we can re-open if there are issues in the future. :)

@shazow shazow closed this as completed Aug 19, 2017
@daviddias daviddias removed the status/deferred Conscious decision to pause or backlog label Aug 19, 2017
marten-seemann pushed a commit that referenced this issue Jul 1, 2022
@MarcoPolo MarcoPolo mentioned this issue Jul 7, 2022
41 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue
Projects
None yet
Development

No branches or pull requests

3 participants