-
Notifications
You must be signed in to change notification settings - Fork 1k
dep init fails if GOPATH has a checked out branch not present in remote #216
Comments
Yeah, thanks for reporting this one. I think this issue is actually the tip of a potentially large iceberg. For every version (branch or tag) we pull from GOPATH, we should ideally:
|
Ran into this one today as well. The issue was an un-pushed commit, but wasn't really clear from the error message. |
I do want to improve the error here, for sure - there's no reason anyone would realize that that's the problem. But it's a little arduous to figure out if a commit/ref is unpushed (and across different VCSes!) up front. It might be more productive to do some sniffing on failure to see if the error looks like a local-only data issue. |
@paddie @groob if either of you still happen to have a case handy for this and wouldn't mind testing with the latest dep to see if there's an improvement, I'd find it to be a great help 😄 I think what'll happen silent success, where the rev from on disk ends up being ignored and the "default" version - latest semver tag if there is one, else default branch) gets selected. |
We've now got a passable answer for this in the FAQ, so closing this out. Thanks! |
Today, I tried to run
dep init
on a new repo https://github.com/groob/autopkgd which resulted in the following errors:turns out,
$GOPATH/src/github.com/groob/plist
had a branch other thanmaster
checked out and the changes in that branch were not pushed to github.git checkout master
on the plist repo, and then runningdep init
again worked.This issue sounds similar to #158 but I wasn't sure so I'm filing a new issue.
The text was updated successfully, but these errors were encountered: