Add --retry-download-count for retrying installing Xcode xip/dmg#400
Add --retry-download-count for retrying installing Xcode xip/dmg#400jpsim merged 3 commits intoxcpretty:masterfrom
Conversation
|
Thank you! |
|
When is this included to new version? |
|
I don't know, I don't have access to push new versions to rubygems. |
|
okay, I wish it will be delivered soon. thank you for merging it |
|
Would it make sense to not count errors when the curl reports that more data is left to read? For example: There is obviously |
|
I think it would be better, but I think we need some string parser to get byte from the error message. And not sure the error message is stable or not on each curl version. |
|
@freddi-kit aha so there is no back channel from curl, like exit code or something? |
|
@pronebird Ah, maybe we can use exit code, let me check it after #405 is merged |
Issue
Related: #345
Abstract
Add
--retry-download-countforxcversion installcommand to retry install againMotivation
As mentioned #345, some user has an issue to download such big Xcode application. We can re-use this on-the-way result to re-try downloading.
However, retry is limited to 3 times even if the cache is available and it can be used by retrying.
After 3-times, we have to call
xcversionagain to continue by hand on terminal.Strategy
So I added
--retry-download-count, to retry download automatically. This would help to solve the mentioned issue.Note
If invalid arg such kind of
-1and"string", it will be error