Skip to content

Commit 669d6c3

Browse files
authored
fix: always mark mocks as dirty (#335)
ref foundry-rs/foundry#12452 - mark mock file edges + own mock file as dirty - required for foundry-rs/foundry#12516
1 parent 799f83e commit 669d6c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/compilers/src/cache.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,8 @@ impl<T: ArtifactOutput<CompilerContract = C::CompilerContract>, C: Compiler>
908908
if self.cache.mocks.contains(file) {
909909
// Mark all mock edges as dirty.
910910
populate_dirty_files(file, &mut self.dirty_sources, &edges);
911-
} else {
912-
self.dirty_sources.insert(file.clone());
913911
}
912+
self.dirty_sources.insert(file.clone());
914913
}
915914
}
916915
}

0 commit comments

Comments
 (0)