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

Break out AssemblyModule from JavaModule, move launcher into RunModule #4301

Merged
merged 19 commits into from
Jan 13, 2025

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jan 13, 2025

Fixes #3141

We cannot call super.assembly due to some weird bincompat stuff, so instead we make a private[mill] AssemblyModule#assembly0 which contains the real implementation that both AssemblyModule#assembly and JavaModule#assembly can call. Same for moving launcher

I left the "input" tasks to the assembly process abstract, and the "output" tasks concrete. So when AssemblyModule is mixed into JavaModule it picks up the right tasks to use automatically, but it can also be used outside of JavaModule if you provide the various forkArgs/manifest/localClasspath/etc. yourself

@lihaoyi lihaoyi changed the title Break out AssemblyModule from JavaModule Break out AssemblyModule from JavaModule, move launcher into RunModule Jan 13, 2025
@lihaoyi lihaoyi marked this pull request as ready for review January 13, 2025 05:55
@lihaoyi lihaoyi requested a review from lefou January 13, 2025 05:59
@lihaoyi
Copy link
Member Author

lihaoyi commented Jan 13, 2025

not sure why these changes are causing methodCodeHashSignatures to OOM in test-mill-bootstrap.sh, will look into it

@lihaoyi
Copy link
Member Author

lihaoyi commented Jan 13, 2025

OOMing appears to be a transient, seems like it passed now

@lihaoyi lihaoyi merged commit 22e7d1a into com-lihaoyi:main Jan 13, 2025
25 checks passed
import scala.annotation.nowarn

/**
* Core configuration required to compile a single Java compilation target
Copy link
Member

Choose a reason for hiding this comment

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

This comment doesn't seem right.

@lefou lefou added this to the 0.12.6 milestone Jan 13, 2025
vaslabs pushed a commit to vaslabs-ltd/mill that referenced this pull request Jan 13, 2025
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.

Refactor assembly logic into a AssemblyModule
2 participants