sbt / zinc

Scala incremental compiler library, used by sbt and other build tools
Apache License 2.0
334 stars 121 forks source link

Do not cache source stamps in `InitialStamps` #1319

Closed Friendseeker closed 6 months ago

Friendseeker commented 10 months ago

Fixes #683

Issue

InitialStamps assumes source files do not change during compilation, yet #683 states that they do in fact change.

Fix

Remove the source stamp cache in InitialStamps.

Since InitialStamps is backed by a cache-backed TimeWrapBinaryStamps (unless the user explicitly overrides it), this should have minimal impact on performance.