File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,7 @@ object MillBuildRootModule {
365365 val pkgLine = pkg.map(p => " package " + backtickWrap(p)).mkString(" \n " )
366366
367367 if (isBuildOrModuleSc) {
368+ val pkgPrefix = if (pkg.isEmpty) " `<empty>`" else pkg.map(backtickWrap).mkString(" ." )
368369 s """ $pkgLine
369370 |
370371 |import _root_.mill.runner.MillBuildRootModule
@@ -384,7 +385,7 @@ object MillBuildRootModule {
384385 | )
385386 |}
386387 |import ${backtickWrap(miscInfoName)}.{millBuildRootModuleInfo, millBaseModuleInfo}
387- |package object ${backtickWrap(name)} extends _root_.`<empty>` . ${backtickWrap(name + " _" )}
388+ |package object ${backtickWrap(name)} extends _root_. $pkgPrefix . ${backtickWrap(name + " _" )}
388389 |import ${backtickWrap(name)}._
389390 |class ${backtickWrap(name + " _" )} extends $superClass {
390391 |
You can’t perform that action at this time.
0 commit comments