From 28a72cd7a108f491dc41606ad7d5edce6d924de8 Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Wed, 17 Jan 2024 09:35:20 +0100 Subject: [PATCH] Fix overeager caching of `cliImports` value in `generatedScriptSources` Fix https://github.com/com-lihaoyi/mill/issues/2966 --- runner/src/mill/runner/MillBuildRootModule.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runner/src/mill/runner/MillBuildRootModule.scala b/runner/src/mill/runner/MillBuildRootModule.scala index dd9ee52f9f3..dbd64d6d674 100644 --- a/runner/src/mill/runner/MillBuildRootModule.scala +++ b/runner/src/mill/runner/MillBuildRootModule.scala @@ -83,7 +83,7 @@ class MillBuildRootModule()(implicit } } - def cliImports = T.input { millBuildRootModuleInfo.cliImports } + def cliImports: Target[Seq[String]] = T.input { millBuildRootModuleInfo.cliImports } override def ivyDeps = T { Agg.from( @@ -117,7 +117,7 @@ class MillBuildRootModule()(implicit T.dest, millBuildRootModuleInfo.enclosingClasspath, millBuildRootModuleInfo.topLevelProjectRoot, - millBuildRootModuleInfo.cliImports + cliImports() ) Result.Success(Seq(PathRef(T.dest))) }