-
Notifications
You must be signed in to change notification settings - Fork 1k
dep init fails, cause unknown, entire state rolls back so cannot adjust anything #158
Comments
In reverse order!
This is a fine, fine question, and I don't have an immediate answer. Ordinarily, I'd guess that it's a problem with gps incorrectly failing to update the repo in the cache - e.g., #97 (comment) . But, a) I fixed the bug that caused that for Jessie, and b) The commit it claims is missing there is really old, like six months old, so I can't imagine how that would be the problem here.
Yes, this is just the tip of the iceberg when it comes to the things we need to do to improve errors. Right now we're just dumping the info that comes straight back from gps. I've got an issue I'm working on writing up about that whole problem area.
This is a dumb thing that we did all over the place, and could and should be fixed now :)
These are all-or-nothing operations, which is a design goal - we never want to leave disk in any undefined, half-finished state if we can at all avoid it. The route to debugging here is through improved errors.
You and me both! I'm trying to think about what even could cause this. The only thing I can think of right now...is that commit dangling/unreachable? I'll keep percolating on it. In the meantime, more contextual info about the state of your GOPATH when you ran that would be 👍 |
Doing a bit of queue cleanup, and gonna close this one - of the problems listed:
|
tl;dr fix: You probably have local commits that aren't pushed upstream. |
I removed the existing
vendor
directory.Running
dep init
on a project fails with the following:std out
std err
Problem 1: I don't know what the underlying problem is.
Problem 2: I don't know how to fix it if the entire state is rolled back on init error.
Problem 3: The error is repeated on both std out and std err.
Problem 4: The length of errors will be proportional to the number of tagged releases.
Problem 5: The referenced revision does exist in
github.com/pkg/errors
. If it is seeking that revision, why can it use it?The text was updated successfully, but these errors were encountered: