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

Adding webrtc-based example #2

Open
wants to merge 50 commits into
base: ckousik/webrtc
Choose a base branch
from

Conversation

plauche
Copy link

@plauche plauche commented Oct 12, 2022

No description provided.

@plauche
Copy link
Author

plauche commented Oct 12, 2022

I'm having some issues getting the import for the webrtc transport to work.

I started with:

$ go build
main.go:19:2: no required module provides package github.com/plauche/go-libp2p/p2p/transport/webrtc; to add it:
	go get github.com/plauche/go-libp2p/p2p/transport/webrtc

So I tried to add it using Chinmay's fork/branch:

$ go get github.com/ckousik/go-libp2p/p2p/transport/webrtc@ckousik/webrtc
go: github.com/ckousik/go-libp2p/p2p/transport/webrtc@ckousik/webrtc: invalid version: version "ckousik/webrtc" invalid: disallowed version string

Then I made my own fork with a more friendly branch name, webrtc, and tried again:

$ go get github.com/plauche/go-libp2p/p2p/transport/webrtc@webrtc
go: github.com/plauche/go-libp2p@v0.20.1-0.20221012133416-6c3bf8a530a6: parsing go.mod:
	module declares its path as: github.com/libp2p/go-libp2p
	        but was required as: github.com/plauche/go-libp2p

And now it seems unhappy that I'm working off a fork.

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

Successfully merging this pull request may close these issues.

2 participants