Skip to content

Commit

Permalink
Ensure work/local exists during create-lists
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Feb 20, 2019
1 parent b10e18b commit 07b8926
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crates/sources/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ impl List for RegistryList {
let mut list = Vec::new();
let mut counts = HashMap::new();

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

Expand Down

0 comments on commit 07b8926

Please sign in to comment.