Skip to content

Commit e34e5b2

Browse files
Ensure work/local exists during create-lists
1 parent 2186448 commit e34e5b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crates/sources/registry.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ impl List for RegistryList {
2020
let mut list = Vec::new();
2121
let mut counts = HashMap::new();
2222

23+
fs::create_dir_all(&*LOCAL_DIR)?;
2324
let index = Index::new(LOCAL_DIR.join("crates.io-index"));
2425
index.retrieve_or_update().to_failure()?;
2526

0 commit comments

Comments
 (0)