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

Add mill.define.DynamicModule to allow custom overriding of millModuleDirectChildren #2574

Merged
merged 3 commits into from
Jun 7, 2023

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jun 6, 2023

Fixes #2573

For now, I just preserved the def millModuleDirectChildren overriding. I couldn't figure out how to get def enabled: Boolean working without causing circular dependencies between instantiateModule depend on resolveDirectChildren0, resulting in an infinite recursion. Avoiding the infinite recursion would require some re-working on ResolveCore.scala. That can come in a follow-up, for now I just want to fix the regression and preserve the status quo (except for the new requirement of needing to extend a marker trait)

@lihaoyi lihaoyi marked this pull request as ready for review June 7, 2023 01:29
@lihaoyi lihaoyi merged commit 05fb5e0 into com-lihaoyi:main Jun 7, 2023
@lefou lefou added this to the 0.11.0 milestone Jun 7, 2023
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.

millModuleDirectChildren is not respected when resolving
2 participants