-
Notifications
You must be signed in to change notification settings - Fork 701
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
cabal new-update fails for head.hackage #5952
Comments
/cc @hvr |
This is probably a server issue. HTTP 416 means "range not satisfiable". |
debugging the delete file issue would require knowing which transport was used, which can be detected with a verbose flag. But if the delete file issue doesn't occur with HEAD, then I guess it doesn't need to be debugged? |
This happened to me as well. |
After updating cabal on another box. |
Huh? The start is larger than the end of the range. It is unsatisfiable indeed. But not for the server reasons. |
I can't reproduce this. I wonder if it has to do with how head.hackage is configured/built? Perhaps it occasionally "resets" and confuses cabal's range update logic. |
There is no way we can reproduce this now. Most likely, what had happened is that head.hackage index file Cabal was trying to fetch an incremental update, computing the range from the length of its current I think nowadays the story is different, cabal will try a couple of times the incremental update, checking the hash of the resulting This logic is actually in I have been playing with situations like this myself and I do rely on this "fail-path". |
I think the above PR resolved the underlying problem, so will close optimistically. |
I agree. I think it would nice to have some guarantees about how updates are performed but that's subject for another discussion. 👍 |
If anyone stumbles upon this issue, as I just have due to failing |
Either I get an invalid response from the server, or cabal fails with a file locking issue.
The unexpected response might not be a Cabal bug. But at least the failing DeleteFile seems like one.
This was with cabal-install built from commit 8e90301
After updating cabal-install to HEAD I only got unexpected response.
After cleaning ~/.cabal I was able to update successfully.
The text was updated successfully, but these errors were encountered: