Closed freddi-kit closed 3 years ago
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:
curl: (18) transfer closed with 9327120816 bytes remaining to read
There is obviously 9327120816 bytes
more to read, so can this be taken into account somehow? It makes total sense to continue the download instead of failing.
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 https://github.com/xcpretty/xcode-install/pull/405 is merged
Issue
Related: https://github.com/xcpretty/xcode-install/issues/345
Abstract
Add
--retry-download-count
forxcversion install
command to retry install againMotivation
As mentioned https://github.com/xcpretty/xcode-install/issues/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