Skip to content

Commit

Permalink
ignore GitHub action files (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: rene-d <rene-d@users.noreply.github.com>
  • Loading branch information
rene-d and rene-d committed Jan 4, 2022
1 parent d3e67b0 commit 0b169b0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/crates.rs
Expand Up @@ -138,6 +138,9 @@ pub async fn sync_crates_files(
if p == Path::new("config.json") {
return true;
}
if p.starts_with(".github/") {
return true;
}

// DEV: if dev_reduced_crates is enabled, only download crates that start with z
#[cfg(feature = "dev_reduced_crates")]
Expand Down Expand Up @@ -167,7 +170,12 @@ pub async fn sync_crates_files(
// Download one crate for each of the versions in the crate file
for line in Cursor::new(data).lines() {
let line = line.unwrap();
let c: CrateEntry = serde_json::from_str(&line).unwrap();
let c: CrateEntry = match serde_json::from_str(&line) {
Ok(c) => c,
Err(_) => {
continue;
}
};

changed_crates.push(c);
}
Expand Down

0 comments on commit 0b169b0

Please sign in to comment.