diff --git a/.config/mill-version b/.config/mill-version index f91669574c9..1ee43fc53c1 100644 --- a/.config/mill-version +++ b/.config/mill-version @@ -1 +1 @@ -0.11.7-17-17dea9 +0.11.8 diff --git a/scalalib/test/src/mill/scalalib/AssemblyTests.scala b/scalalib/test/src/mill/scalalib/AssemblyTests.scala index 975d916b607..f42797b0c32 100644 --- a/scalalib/test/src/mill/scalalib/AssemblyTests.scala +++ b/scalalib/test/src/mill/scalalib/AssemblyTests.scala @@ -1,5 +1,6 @@ package mill.scalalib +import scala.util.Properties import mill._ import mill.api.Result import mill.eval.Evaluator @@ -125,7 +126,14 @@ object AssemblyTests extends TestSuite { test("small") { workspaceTest(TestCase) { eval => val Right((res, _)) = eval(TestCase.exe.small.assembly) - runAssembly(res.path, TestCase.millSourcePath, checkExe = true) + val originalPath = res.path + val resolvedPath = + if (Properties.isWin) { + val winPath = originalPath / os.up / s"${originalPath.last}.bat" + os.copy(originalPath, winPath) + winPath + } else originalPath + runAssembly(resolvedPath, TestCase.millSourcePath, checkExe = true) } } test("large-should-fail") {