Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store compile file stamps for each scala version #4987

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Store compile file stamps for each scala version #4987

merged 1 commit into from
Aug 27, 2019

Conversation

eatkins
Copy link
Contributor

@eatkins eatkins commented Aug 26, 2019

#4986 reported that +compile would
always recompile everything in the project even when the sources hadn't
changed. This was because the dependency classpath was changing between
calls to compile, which caused the external hooks cache introduced in
32a6d0d to invalidate the scala
library. To fix this, I cache the file stamps on a per scala version
basis. I added a scripted test that checks that there is no
recompilation in two consecutive calls to +compile in a multi scala
version build. It failed prior to these changes.

#4986 reported that +compile would
always recompile everything in the project even when the sources hadn't
changed. This was because the dependency classpath was changing between
calls to compile, which caused the external hooks cache introduced in
32a6d0d to invalidate the scala
library. To fix this, I cache the file stamps on a per scala version
basis. I added a scripted test that checks that there is no
recompilation in two consecutive calls to `+compile` in a multi scala
version build. It failed prior to these changes.
@eed3si9n eed3si9n merged commit 110f54a into sbt:develop Aug 27, 2019
@eed3si9n eed3si9n mentioned this pull request Aug 29, 2019
@eed3si9n eed3si9n added this to the 1.3.0 milestone Aug 29, 2019
@eatkins eatkins deleted the fix-cross-overcompilation branch December 18, 2019 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants