From 818d8c9ffd3793141c6a719e875b63ecb5c2e1e7 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Wed, 18 Sep 2024 17:56:52 +0200 Subject: [PATCH] ?? resolve workers too --- main/resolve/src/mill/resolve/ResolveCore.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/resolve/src/mill/resolve/ResolveCore.scala b/main/resolve/src/mill/resolve/ResolveCore.scala index 31a7d632f39..6b05d5971ba 100644 --- a/main/resolve/src/mill/resolve/ResolveCore.scala +++ b/main/resolve/src/mill/resolve/ResolveCore.scala @@ -376,8 +376,8 @@ private object ResolveCore { } } - val targets = Reflect - .reflect(cls, classOf[Target[_]], namePred, noParams = true) + val namedTasks = Reflect + .reflect(cls, classOf[NamedTask[_]], namePred, noParams = true) .map { m => Resolved.Target(Segments.labels(decode(m.getName))) -> None @@ -388,7 +388,7 @@ private object ResolveCore { .map(m => decode(m.getName)) .map { name => Resolved.Command(Segments.labels(name)) -> None } - modulesOrErr.map(_ ++ targets ++ commands) + modulesOrErr.map(_ ++ namedTasks ++ commands) } def notFoundResult(