-
Notifications
You must be signed in to change notification settings - Fork 455
Inconsistent git hashes for sub-pkgs of a single repo cause trouble with no warning #223
Comments
The save and update commands check for this case and prevent it from happening. Godeps.json should never contain two different commit hashes from the same repo. If it happens anyway, that's a bug. |
I'm not sure how it happened, but it did - hence my suggestion that maybe it should yell at me. |
@thockin Can you re-produce on a public repo that I can test with / base a test on? |
I don't know HOW it happened, so I can't reproduce it. Obviously I can On Wed, Dec 2, 2015 at 1:59 PM, Edward Muller notifications@github.com
|
I assume this happened on a TBH: I'm more interested in how you got into that situation in the first case, which is what I'd like a reproducer for. |
yeah, I have no idea how it happened - it may well have been a hand edit. On Wed, Dec 2, 2015 at 2:44 PM, Edward Muller notifications@github.com
|
@thockin is right tho, even though godep tries to avoid this situation, it's reasonable to also check for it later, because who knows what happened to the file in between. |
We accidentally had one sub-pkg of an upstream repo where the githash was different than the rest. Godep checked out this (older) hash and obliterated files that we needed by other sub-pkgs. I feel like there should be a warning, something like "different revs for sub-packages of the same repo - this is not expected and probably bad things will happen"
The text was updated successfully, but these errors were encountered: