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

Avoid running subsequent meta-level builds after reaching the desired meta-level in MillBuildBootstrap #3960

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Nov 14, 2024

Fixes #3834

Previous we ran processRunClasspath or processFinalTargets every single level, regardless of the --meta-level setting. Now we only run processRunClasspath at depths > --meta-level, processFinalTargets at depth == --meta-level, and subsequent levels we skip execution entirely.

Added an integration test to cover this case

@lihaoyi lihaoyi changed the title Avoid running subsequent meta-level builds after reaching the desired meta-level in mill-build-bootstrap Avoid running subsequent meta-level builds after reaching the desired meta-level in MillBuildBootstrap Nov 14, 2024
@lihaoyi lihaoyi requested a review from lefou November 14, 2024 09:02
@lihaoyi lihaoyi marked this pull request as ready for review November 14, 2024 12:10
Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@lihaoyi lihaoyi merged commit 5e91c4c into com-lihaoyi:main Nov 14, 2024
25 checks passed
@lefou lefou added this to the 0.12.3 milestone Nov 14, 2024
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.

--meta-level 1 show sources triggers compilation
2 participants