Skip to content

chore: make incremental compilation work with stdlib plugin and enable it in the new stdlib #23592

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

Merged
merged 2 commits into from
Jul 24, 2025

Conversation

hamzaremmal
Copy link
Member

@hamzaremmal hamzaremmal commented Jul 23, 2025

Two main things here:

  • We changed the ScalaLibraryPlugin to be able to work smoothly with the incremental compilation
  • We enable the plugin in the new stdlib projects.

Some resources:

@hamzaremmal hamzaremmal self-assigned this Jul 23, 2025
// Update the timestamp in the analysis
stamps = stamps.markProduct(
VirtualFileRef.of(s"$${BASE}/$ref"),
Stamper.forFarmHashP(dest.toPath()))
Copy link
Member Author

@hamzaremmal hamzaremmal Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used this Stamper (forFarmHashP) based on observation and trials. It would be nice to have a confirmation if this is something stable or should a more developed logic be adopted here to choose the stampers.

@hamzaremmal hamzaremmal marked this pull request as ready for review July 23, 2025 23:04
@hamzaremmal hamzaremmal requested a review from Gedochao July 23, 2025 23:04
@hamzaremmal hamzaremmal assigned Gedochao and unassigned hamzaremmal Jul 23, 2025
@hamzaremmal hamzaremmal enabled auto-merge July 23, 2025 23:04
@hamzaremmal hamzaremmal merged commit 16a6ff0 into scala:main Jul 24, 2025
31 checks passed
@hamzaremmal hamzaremmal deleted the override-files branch July 24, 2025 05:18
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.

2 participants