-
Notifications
You must be signed in to change notification settings - Fork 540
Using dep with go-git prevents updates past 4.0.0-rc5. Possible relative import issue? #635
Comments
I I'll provide more logs about it which may be interesting, this happends when forcing the last verion, or just doing a
|
After a little bit of investigation I've found that it may be related to #380 and the solution mentioned for now is:
On
But the Issue is still there IMO |
Thank you @xescugc. Specifying a specific commit from github did the trick, though I'm not sure why exactly. Part of the problem here is that |
BTW, I just ran a little test to see if the
This worked just fine. (That's the commit for Closing this issue. Thanks again! |
just confirming that adding the |
An alternative solution for dep's
|
Hello.
My project is using dep for dependency management. When I added the
gopkg.in/src-d/go-git.v4
package using dep, I noticed that it had brought down version4.0.0-rc5
, which is quite out of date and does not have thegit.PlainOpen
function that I would like to use. When I try to force dep to use a more recent version, it gives me the following error:v4.0.0-rc8: Could not introduce gopkg.in/src-d/[email protected], as its subpackage gopkg.in/src-d/go-git.v4 does not contain usable Go code (*pkgtree.NonCanonicalImportRoot).. (Package is required by (root).)
Doing a little digging, I saw that there's an open issue for a similar error message on the dep GitHub page: golang/dep#899. tl;dr dep does not allow relative imports and never will.
Thing is, though, I can't find any relative imports in go-git, so perhaps that's not the issue here? Or perhaps I'm not doing the proper search. Either way, I imagine that you would like for the official Go dependency management tool to correctly resolve dependencies to your library. Anyone have any ideas about what might be happening here?
Thanks.
The text was updated successfully, but these errors were encountered: