Skip to content
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

Using the cached-path crate for downloading and unzipping #1744

Merged
merged 5 commits into from
Mar 29, 2022

Conversation

robertbastian
Copy link
Member

@robertbastian robertbastian commented Mar 28, 2022

Fixes #414
Fixes #1739
Fixes #718

This removes custom CLDR download code, and also adds downloading capabilities for uprops (however, that doesn't currently work as release-70-1 is missing a file, and release-71-rc is missing all uprops data).

@robertbastian robertbastian requested review from sffc, Manishearth and a team as code owners March 28, 2022 20:28
Comment on lines +11 to +12
//! - [`CldrPathsLocal`] which points directly to each local CLDR file, and
//! - [`CldrPathsAllInOne`] which points to a local CLDR tree.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need both of these going forward? CldrPathsLocal is unused and I can't think of a scenario where a client has CLDR data but it's not in the CLDR tree.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If getting rid of CldrPathsLocal makes your life easier, you can get rid of it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't make it harder right now, I was just wondering what the idea behind it was.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Versions of CLDR prior to 38 or 39 had separate repos and zip files for each tree, but then they merged them into one big tree. I kept the code for the old layout for the time being, but it can probably be removed now.

provider/datagen/src/bin/datagen.rs Show resolved Hide resolved
provider/datagen/src/bin/datagen.rs Show resolved Hide resolved
provider/datagen/src/bin/datagen.rs Outdated Show resolved Hide resolved
@robertbastian robertbastian requested a review from sffc March 29, 2022 05:36
@robertbastian robertbastian merged commit 1fdaa35 into unicode-org:main Mar 29, 2022
@robertbastian robertbastian deleted the download branch March 29, 2022 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants