5232f080d6
Problem: previously, format-version.txt file was deleted while cleaning target output on rebuild. Since directory was deleted, cache attributesDiff stored in memory was not updated. This causes that on saveExpectedStateIfNeeded does nothing. The right way to fix it is move cache version format diff into AbstractIncrementalCache, and override `clean()` method. But this is hard to do for lookup storage, since used compilers set (jvm/js) will known only after context init. This can be done by moving `expected` attributes out of manager, but this is huge change for small benefit. So, the optimal way for now is to write version for each build, even if it is not changed. #KT-27044 Fixed