Skip to content

Commit

Permalink
fix(core): only check if files are in sync if there are no records in…
Browse files Browse the repository at this point in the history
… the db
  • Loading branch information
Cammisuli committed Oct 23, 2024
1 parent d3df76f commit d01c328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/native/cache/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl NxCache {
})?
.unwrap_or(false);

if cache_records_exist {
if !cache_records_exist {
let hash_regex = Regex::new(r"^\d+$").expect("Hash regex is invalid");
let fs_entries = std::fs::read_dir(&self.cache_path).map_err(anyhow::Error::from)?;

Expand Down

0 comments on commit d01c328

Please sign in to comment.