-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
module.mill
will only be found, when same extension as build.mill
#3832
Comments
Looks like we currently only support the consistent use of a same file extensions for all mill/runner/src/mill/runner/FileImportGraph.scala Lines 186 to 189 in f66304d
That means, if the top build file is Although I like that this results in projects with consistent build file names, I find it quite limiting in projects in transition. Whatever the reason is to choose one extension over the other, there might be different reasonings fordifferent sub-modules and allowing non-consistent names would be better. I think we should either warn if we ignored directories which contain a supported file but with different extension or don't enforce a consistent file extension at all but only warn if we find more than one supported file in one directory. What do others think? |
Currently the different extensions have somewhat different semantics, e.g. w.r.t. how |
Can you elaborate a bit. I think the only extension we handle specially is |
That is correct, but I would expect people who care about transitioning projects would indeed be the ones who have some I can't think of a use case where someone would want to have a mix of |
@lihaoyi Can you list the semantic differences? |
@lefou IIRC the main one is that The |
Thanks. I think we should make that info about different import-handling available to our user as well.
I can. Imagine a larger project where not all challenges are solely technical but also social. |
I'd be ok with allowing mixed |
Mill now provides support for alternative file extensions:
.mill
,.mill.scala
and.sc
. But a<dir>/module.mill
is only found, when the main build file has the namebuild.mill
. If it is namedbuild.sc
, the sub-module is only found when it is also has the.sc
extension, namelymodule.sc
. This is irritating and doesn't seem intentional.If this should be intentional, we should document it and print a warning for each file Mill is going to ignore.
The text was updated successfully, but these errors were encountered: