use cache's exisiting id to see if it's dirty
This commit is contained in:
parent
6812d11b81
commit
dbce57d53b
|
@ -789,10 +789,8 @@ impl<'a, T: ArtifactOutput> ArtifactsCacheInner<'a, T> {
|
|||
tracing::trace!("changed content hash for source file \"{}\"", file.display());
|
||||
return true
|
||||
}
|
||||
if let Some(compilation_unit) = self
|
||||
.cache
|
||||
.compilation_units
|
||||
.get(&CompilationUnitId::new(version.clone(), self.project.solc_config.clone()))
|
||||
if let Some(compilation_unit) =
|
||||
self.cache.compilation_units.get(&entry.compilation_unit)
|
||||
{
|
||||
if self.project.solc_config != compilation_unit.solc_config {
|
||||
tracing::trace!(
|
||||
|
|
Loading…
Reference in New Issue