-
Notifications
You must be signed in to change notification settings - Fork 176
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
Use proper file download library in ICU4X #414
Comments
I just wanted to highlight a poor experience that I had with the current file download system, as motivation to add this functionality. I apparently had a partially downloaded CLDR archive stored in my cache. This caused unintended behavior (deleting files) when trying to generate new test data. The eventual fix was for me to delete the cached archive to force a re-download. In addition to using a more standard tool for this, I think it would also be nice to run some sort of checksum on the downloaded archive to ensure that the data was downloaded correctly and completely. |
FYI, the code for this (which should be replaced) is here: https://github.com/unicode-org/icu4x/blob/master/components/provider_cldr/src/download/io_util.rs |
@nordzilla @gregtatum Any interest in taking this backlog issue for the April cleanup? |
I'm probably at capacity already for April. |
I'm going to do this by not actually downloading the full CLDR JSON zip file. Instead, I'll download each file one at a time. Then we don't have to touch the system cache directory at all, which seems good. The file listing is available via the GitHub API: |
I got the new downloader working in #704, but I'd like to discuss before I delete the old one. |
2021-05-07: Remove the old flaky download utility (+1 from @Manishearth , @nordzilla , @mihnita ). Open new issue to introduce a new, better download utility for 1.0. |
Sorry, not quite fixed yet. I still need to remove the old tool. |
Right now ICU4X uses a mechanism I cobbled together to download and cache CLDR JSON data. We should look for a common solution to this problem on crates.io so that we don't have to maintain file downloader code in ICU4X.
The text was updated successfully, but these errors were encountered: