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

Move .mill.sc extension to .mill.scala #3521

Merged
merged 5 commits into from
Sep 12, 2024
Merged

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Sep 12, 2024

.scala has a lot better support for things like package declarations that .sc does not, and so will serve as a better alternative to .mill until IDE support for the new extension catches up

@lihaoyi lihaoyi requested a review from lefou September 12, 2024 03:49
for (line <- os.read.lines(buildFile.get)) {
val rootBuildFileNames = Seq("build.sc", "build.mill", "build.mill.scala")
val buildFile = rootBuildFileNames.map(testRepoRoot / _)
.find(os.exists)
Copy link
Member

@lefou lefou Sep 12, 2024

Choose a reason for hiding this comment

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

I think we should report multiple detected root files. If we have a strong precedence, just reporting a warning should be enough. E.g. to allow for sym-linking build.mill to build.mill.scala without build failures.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a logged warning

@lihaoyi lihaoyi merged commit a882c63 into com-lihaoyi:main Sep 12, 2024
23 checks passed
@lefou lefou added this to the 0.12.0 milestone Sep 12, 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.

2 participants