Skip to content

Commit

Permalink
properly splice package prefix for nested multi builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Aug 22, 2024
1 parent 296e241 commit ab87d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runner/src/mill/runner/MillBuildRootModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ object MillBuildRootModule {
val pkgLine = pkg.map(p => "package " + backtickWrap(p)).mkString("\n")

if (isBuildOrModuleSc) {
val pkgPrefix = if (pkg.isEmpty) "`<empty>`" else pkg.map(backtickWrap).mkString(".")
s"""$pkgLine
|
|import _root_.mill.runner.MillBuildRootModule
Expand All @@ -384,7 +385,7 @@ object MillBuildRootModule {
| )
|}
|import ${backtickWrap(miscInfoName)}.{millBuildRootModuleInfo, millBaseModuleInfo}
|package object ${backtickWrap(name)} extends _root_.`<empty>`.${backtickWrap(name + "_")}
|package object ${backtickWrap(name)} extends _root_.$pkgPrefix.${backtickWrap(name + "_")}
|import ${backtickWrap(name)}._
|class ${backtickWrap(name + "_")} extends $superClass {
|
Expand Down

0 comments on commit ab87d07

Please sign in to comment.