hackage-mirror should handle errors more gracefully #909

bos opened this Issue May 24, 2012 · 1 comment


None yet
2 participants

bos commented May 24, 2012

(Imported from Trac #919, reported by @bgamari on 2012-02-22)

hackage-mirror against hackage.haskell.org fails with,

$ hackage-mirror http://hackage.haskell.org/ http://bgamari:xxx@localhost:8080/
17816 packages to mirror.
mirroring PlslTools-0.0.1
hackage-mirror: Failed to upload package PlslTools-0.0.1,
  HTTP error code 400, Bad Request
  short tar trailer
While the source of the error is unclear, it's a sign that the error handling should be more robust. Perhaps failing packages should be skipped until it's very clear that something is horribly wrong (e.g. a heuristic like 10 packages fail in a row)?

This comment has been minimized.

Show comment
Hide comment

dcoutts Jan 24, 2013


The hackage-mirror now has a --keep-going flag.


dcoutts commented Jan 24, 2013

The hackage-mirror now has a --keep-going flag.

@dcoutts dcoutts closed this Jan 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment