JPS: clear target local cache version file when caches are not required anymore
Makes changeIncrementalOption/incrementalOff test green
This commit is contained in:
@@ -231,6 +231,7 @@ class KotlinCompileContext(val jpsContext: CompileContext) {
|
|||||||
"$target caches is cleared as not required anymore: ${target.initialLocalCacheAttributesDiff}"
|
"$target caches is cleared as not required anymore: ${target.initialLocalCacheAttributesDiff}"
|
||||||
)
|
)
|
||||||
testingLogger?.invalidOrUnusedCache(null, target, target.initialLocalCacheAttributesDiff)
|
testingLogger?.invalidOrUnusedCache(null, target, target.initialLocalCacheAttributesDiff)
|
||||||
|
target.initialLocalCacheAttributesDiff.manager.writeVersion(null)
|
||||||
dataManager.getKotlinCache(target)?.clean()
|
dataManager.getKotlinCache(target)?.clean()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user