We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c54a159 commit 5ab15a1Copy full SHA for 5ab15a1
src/files/index.rs
@@ -58,7 +58,10 @@ fn load_package(
58
index_path: &Path,
59
overrides_path: &Path,
60
) -> Result<Package, Box<dyn Error>> {
61
- let index_file = index_path.join(format!("{}.json", name));
+ let shard_dir = name.chars().next().unwrap().to_string().to_lowercase();
62
+ let index_file = index_path
63
+ .join(&Path::new(&shard_dir))
64
+ .join(format!("{}.json", name));
65
let override_file = overrides_path.join(format!("{}.json", name));
66
67
if override_file.exists() {
0 commit comments