-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can not compile packages with v2 #4
Comments
At first, besides the v2 problem, some project setup hints:
Now to the v2 problem: Sorry, but as far as I can see, you are out of luck, because the webrtc project has a wrong go.mod declaration. E.g. if you look at the go.mod file from the tagged 2.1.16 release, the module name has a v2 in it's path, which does not match the import path and is not allowed. You can prove it like this: mkdir fatlib
cd fatlib
go mod init fatlib
go get github.com/pion/webrtc latest Results in A related bug, which explains the background is e.g. golang/go#35732 or golang/go#33879 |
Just another explanation, about how to declare a major (1+) version properly: https://research.swtch.com/vgo-principles#compatibility |
Hey @bondar-pavel We also working on embedding pion webrtc on our project Ions is a nice packaging of it As far as using goup goes i cant really comment. I used it for a bit and its really good, but i ended up going with a docker solution. It might be useful for you too. There is a docker that can build for mac and android that we use here: It can build IOS and OSX apps. |
When I try to export libraries which has version 2 in the package path I get endless loop on checkout.
Example goup.yaml
Modules points to checked out version of webrtc (
git clone github.com/pion/webrtc
).I get next errors when I try to run goup:
I run a quick hack to make sure repo in $GOPATH is linked to real repo
But it does not help a lot, as a result goup tries to checkout v2 in loop and fails because of filename is too long or all free space in consumed on the drive:
Splitted
/v2/v2: file name too long
into multiple lines because it was not shown correctly.Is there any plans to support export for packages which has v2 in path?
Is there any known workaround that could be used to export pion/webrtc as a library?
The text was updated successfully, but these errors were encountered: