-
Notifications
You must be signed in to change notification settings - Fork 245
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
Add --retry-download-count for retrying installing Xcode xip/dmg #400
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
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-count
forxcversion install
command 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
xcversion
again 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
-1
and"string"
, it will be error