CDNSource: delete a podspec if corruption is detected
Closed this issue · 2 comments
igor-makarov commented
In response to CocoaPods/CocoaPods#10118 (comment) I'm proposing to catch JSON parse exceptions in CDNSource
and retry a file download.
It's reasonable to assume that a JSON file that was successfully downloaded would be valid. Therefore, if there's an error, it is almost certainly due to network issues.
This undoubtedly contributes to "retry culture" proliferation but we don't control much of the content delivery network through which Specs are retrieved, and we have little insight into the frequency of occurrence of these issues.
dnkoutso commented
@igor-makarov still interested to do this for 1.11.0?
igor-makarov commented
@dnkoutso I'm not sure we need this, we've been having much less issues with the CDN, especially with undetected corruption.