-
Notifications
You must be signed in to change notification settings - Fork 842
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
"No .cabal file found in directory" (git-location package race condition?) #2389
Comments
Thanks for the report! I think it is waiting for reset, not sure what could cause this. |
Hmm, ok, not the obvious race then. Makes sense on reflection: I doubt we'd be the only people seeing this issue if it were that. Frustrating that it's so intermittent, but one thing that is definitely consistent is that it's always the same directory with the missing file. |
*I guess so based on https://neilmitchell.blogspot.de/2016/07/why-did-stack-stop-using-shake.html, and because it makes sense, but I don't really know. |
You're right about what it's resetting to. I think this build starts from a clean state and isn't doing anything incremental but I'm not sure and can't check right now. A few seconds seems about right for a reset. 20ms is remarkably short, and indicates to me that they happen in parallel. |
If this started from a clean state, there should be a clone action, and Paolo Giarrusso On Jul 21, 2016 15:14, "David Turner" [email protected] wrote:
|
@Blaisorblade sure, I'd be in favor of generally logging when processes end. |
Hmm, ok, actually managed to catch this in the act. Same message:
but that directory doesn't exist at all this time:
(so there's certainly no .cabal file there!) |
Some of the git code has changed since this issue, so hoping this has been resolved as a side effect. Please re-open if it's still an issue. |
Still an issue here:
|
@ChristopherKing42 That is likely a different problem, my guess is that you are using a version of stack before hpack support. I suggest doing a manual binary upgrade. |
Hi,
We are seeing about 1-in-10 builds fail in the following fashion:
There is a cabal file in that directory, but it seems it was created a few seconds later:
Taking a wild guess (I haven't looked at the code yet) I'm guessing it might be that it's not waiting for the
git reset
commands to run to completion? I unfortunately doubt I'll have time to look at this in detail before September, but thought I'd better note this here anyway.The text was updated successfully, but these errors were encountered: