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());
|
tracing::trace!("changed content hash for source file \"{}\"", file.display());
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if let Some(compilation_unit) = self
|
if let Some(compilation_unit) =
|
||||||
.cache
|
self.cache.compilation_units.get(&entry.compilation_unit)
|
||||||
.compilation_units
|
|
||||||
.get(&CompilationUnitId::new(version.clone(), self.project.solc_config.clone()))
|
|
||||||
{
|
{
|
||||||
if self.project.solc_config != compilation_unit.solc_config {
|
if self.project.solc_config != compilation_unit.solc_config {
|
||||||
tracing::trace!(
|
tracing::trace!(
|
||||||
|
|
Loading…
Reference in New Issue