-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mill-build folder opt in via
import $mill.build
(#2527)
Fixes #2461 For now it remains hard-coded as `mill-build/`, for simplicity. Given the `mill-` prefix, it's unlikely to collide with user-defined folders. Making it configurable would open another can of worms where the `import $meta.foo` can now collide with an `object foo`, which is very unintuitive. For now, we just parse the script files one additional time in `MillBuildBootstrap.scala`. This is a bit wasteful, but is probably fast enough for now, and we're already pretty sloppy parsing everything twice in `MillBuildRootModule#scriptSources` and `MillBuildRootModule#parseBuildFiles`, so parsing things three times isn't the end of the world. We can look into optimizing it in future if necessary
- Loading branch information
Showing
7 changed files
with
52 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import $meta._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import $meta._ | ||
import mill._, scalalib._ | ||
import scalatags.Text.all._ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import $meta._ | ||
import mill._, scalalib._ | ||
|
||
object millbuild extends MillBuildRootModule{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters