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

dep ensure says sdp/v2 is missing #493

Closed
orai-arturo opened this issue Mar 7, 2019 · 6 comments
Closed

dep ensure says sdp/v2 is missing #493

orai-arturo opened this issue Mar 7, 2019 · 6 comments

Comments

@orai-arturo
Copy link

orai-arturo commented Mar 7, 2019

Trying to switch to master so as to get the code that closes DTLS without hanging.

$ go version
go version go1.10.7 darwin/amd64
$ dep version
dep:
version : v0.5.0
build date : 2018-08-16
git hash : 224a564
go version : go1.10.3
go compiler : gc
platform : darwin/amd64
features : ImportDuringSolve=false

Not importing anything but pions/webrtc and with no vendor directory.
$ dep ensure -add github.com/pions/sdp@master github.com/pions/webrtc@master
Fetching sources...
....
github.com/pions/sdp/v2 from github.com/pions/sdp, but in version master that package is missing.
....

Any suggestions on working around this? I suppose I could clone but I'd rather not just yet.

@backkem
Copy link
Member

backkem commented Mar 7, 2019

Hi @orai-arturo,

/v2 isn't a package that's supposed to exist under pions/sdp. This is a convention used by go modules to refer to a major release of a package as documented here, here and some migration strategies here.
According to the documentation go version 1.10.3+ should support these import paths. However, it seems that go dep doesn't support this yet (and may never) as discussed in this issue.

I guess we would have to roll back and avoid creating /v# dependencies if we want to support go dep.

Thoughts @Sean-Der?

@Sean-Der
Copy link
Member

Sean-Der commented Mar 7, 2019

Oof that is frustrating.

@orai-arturo if you use this PR does it work golang/dep#1963 ?

We should probably ping them upstream and work on getting that merged. If we roll back I think we will break all our module users :(

Sorry for the frustration @orai-arturo

@orai-arturo
Copy link
Author

It took me a while to figure out that I wasn't doing anything wrong. I am new to dep as my last job used glide.

I'll look into getting a patched dep.

@trivigy
Copy link
Member

trivigy commented Mar 13, 2019

@orai-arturo I would highly recommend moving to go modules. It is built into go since 1.11. https://github.com/golang/go/wiki/Modules

@jinleileiking
Copy link
Contributor

use go modules. Do not use dep :)
Close just for now. Reopen as you wish :)

@orai-arturo
Copy link
Author

Yeah, we're on go 1.10 ;-(

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

5 participants