@@ -42,7 +42,7 @@ sealed abstract class Task[+T] extends Task.Ops[T] with Applyable[Task, T] with
4242 */
4343 def persistent : Boolean = false
4444
45- def asTarget : Option [Task .Cached [T ]] = None
45+ def asTarget : Option [Task .Simple [T ]] = None
4646 def asCommand : Option [Task .Command [T ]] = None
4747 def asWorker : Option [Task .Worker [T ]] = None
4848 def isExclusiveCommand : Boolean = this match {
@@ -150,14 +150,14 @@ object Task {
150150 */
151151 inline def Sources (inline values : Result [os.Path ]* )(implicit
152152 inline ctx : mill.define.ModuleCtx
153- ): Cached [Seq [PathRef ]] = $ {
153+ ): Simple [Seq [PathRef ]] = $ {
154154 Macros .sourcesImpl(' { Result .sequence(values.map(_.map(PathRef (_)))) })(' ctx )
155155 }
156156
157157 inline def Sources (inline values : os.SubPath * )(implicit
158158 inline ctx : mill.define.ModuleCtx ,
159159 dummy : Boolean = true
160- ): Cached [Seq [PathRef ]] = $ {
160+ ): Simple [Seq [PathRef ]] = $ {
161161 Macros .sourcesImpl(
162162 ' { values.map(sub => PathRef (ctx.millSourcePath / os.up / os.PathChunk .SubPathChunk (sub))) }
163163 )(' ctx )
@@ -169,12 +169,12 @@ object Task {
169169 */
170170 inline def Source (inline value : Result [os.Path ])(implicit
171171 inline ctx : mill.define.ModuleCtx
172- ): Cached [PathRef ] =
172+ ): Simple [PathRef ] =
173173 $ { Macros .sourceImpl(' { value.map(PathRef (_)) })(' ctx ) }
174174
175175 inline def Source (inline value : os.SubPath )(implicit
176176 inline ctx : mill.define.ModuleCtx
177- ): Cached [PathRef ] =
177+ ): Simple [PathRef ] =
178178 $ { Macros .sourceImpl(' { PathRef (ctx.millSourcePath / os.up / value) })(' ctx ) }
179179
180180 /**
@@ -196,7 +196,7 @@ object Task {
196196 inline def Input [T ](inline value : Result [T ])(implicit
197197 inline w : Writer [T ],
198198 inline ctx : ModuleCtx
199- ): Cached [T ] =
199+ ): Simple [T ] =
200200 $ { Macros .inputImpl[T ](' value )(' w , ' ctx ) }
201201
202202 /**
@@ -266,7 +266,7 @@ object Task {
266266 inline def apply [T ](inline t : Result [T ])(implicit
267267 inline rw : ReadWriter [T ],
268268 inline ctx : mill.define.ModuleCtx
269- ): Cached [T ] =
269+ ): Simple [T ] =
270270 $ { Macros .targetResultImpl[T ](' t )(' rw , ' ctx , ' { false }) }
271271
272272 /**
@@ -290,7 +290,7 @@ object Task {
290290 inline def apply [T ](inline t : Result [T ])(implicit
291291 inline rw : ReadWriter [T ],
292292 inline ctx : ModuleCtx
293- ): Cached [T ] = $ { Macros .targetResultImpl[T ](' t )(' rw , ' ctx , ' { persistent }) }
293+ ): Simple [T ] = $ { Macros .targetResultImpl[T ](' t )(' rw , ' ctx , ' { persistent }) }
294294 }
295295
296296 abstract class Ops [+ T ] { this : Task [T ] =>
@@ -357,8 +357,8 @@ object Task {
357357 val readWriter : ReadWriter [? ],
358358 val isPrivate : Option [Boolean ],
359359 override val persistent : Boolean
360- ) extends Cached [T ] {
361- override def asTarget : Option [Cached [T ]] = Some (this )
360+ ) extends Simple [T ] {
361+ override def asTarget : Option [Simple [T ]] = Some (this )
362362
363363 // FIXME: deprecated return type: Change to Option
364364 override def readWriterOpt : Some [ReadWriter [? ]] = Some (readWriter)
@@ -368,9 +368,9 @@ object Task {
368368 * A Target is a [[Task.Named ]] that is cached on disk; either a
369369 * [[Task.Computed ]] or an [[Input ]]
370370 */
371- trait Cached [+ T ] extends Task .Named [T ]
371+ trait Simple [+ T ] extends Task .Named [T ]
372372
373- object Cached {
373+ object Simple {
374374
375375 /**
376376 * A target is the most common [[Task ]] a user would encounter, commonly
@@ -381,13 +381,13 @@ object Task {
381381 implicit inline def create [T ](inline t : T )(implicit
382382 inline rw : ReadWriter [T ],
383383 inline ctx : ModuleCtx
384- ): Cached [T ] =
384+ ): Simple [T ] =
385385 $ { Macros .targetResultImpl[T ](' { Result .Success (t) })(' rw , ' ctx , ' { false }) }
386386
387387 implicit inline def create [T ](inline t : Result [T ])(implicit
388388 inline rw : ReadWriter [T ],
389389 inline ctx : ModuleCtx
390- ): Cached [T ] =
390+ ): Simple [T ] =
391391 $ { Macros .targetResultImpl[T ](' t )(' rw , ' ctx , ' { false }) }
392392
393393 }
@@ -433,7 +433,7 @@ object Task {
433433 val ctx0 : mill.define.ModuleCtx ,
434434 val writer : upickle.default.Writer [? ],
435435 val isPrivate : Option [Boolean ]
436- ) extends Cached [T ] {
436+ ) extends Simple [T ] {
437437 val inputs = Nil
438438 override def sideHash : Int = util.Random .nextInt()
439439 // FIXME: deprecated return type: Change to Option
@@ -495,8 +495,8 @@ object Task {
495495 rw : Expr [ReadWriter [T ]],
496496 ctx : Expr [mill.define.ModuleCtx ],
497497 persistent : Expr [Boolean ]
498- ): Expr [Cached [T ]] = {
499- val expr = appImpl[Cached , T ](
498+ ): Expr [Simple [T ]] = {
499+ val expr = appImpl[Simple , T ](
500500 (in, ev) =>
501501 ' { new Task .Computed [T ]($in, $ev, $ctx, $rw, $ { taskIsPrivate() }, $persistent) },
502502 t
@@ -511,8 +511,8 @@ object Task {
511511 values : Expr [Result [Seq [PathRef ]]]
512512 )(
513513 ctx : Expr [mill.define.ModuleCtx ]
514- ): Expr [Cached [Seq [PathRef ]]] = {
515- val expr = appImpl[Cached , Seq [PathRef ]](
514+ ): Expr [Simple [Seq [PathRef ]]] = {
515+ val expr = appImpl[Simple , Seq [PathRef ]](
516516 (in, ev) => ' { new Sources ($ev, $ctx, $ { taskIsPrivate() }) },
517517 values,
518518 allowTaskReferences = false
@@ -524,9 +524,9 @@ object Task {
524524 Quotes
525525 )(value : Expr [Result [PathRef ]])(
526526 ctx : Expr [mill.define.ModuleCtx ]
527- ): Expr [Cached [PathRef ]] = {
527+ ): Expr [Simple [PathRef ]] = {
528528
529- val expr = appImpl[Cached , PathRef ](
529+ val expr = appImpl[Simple , PathRef ](
530530 (in, ev) => ' { new Source ($ev, $ctx, $ { taskIsPrivate() }) },
531531 value,
532532 allowTaskReferences = false
@@ -540,9 +540,9 @@ object Task {
540540 )(value : Expr [Result [T ]])(
541541 w : Expr [upickle.default.Writer [T ]],
542542 ctx : Expr [mill.define.ModuleCtx ]
543- ): Expr [Cached [T ]] = {
543+ ): Expr [Simple [T ]] = {
544544
545- val expr = appImpl[Cached , T ](
545+ val expr = appImpl[Simple , T ](
546546 (in, ev) => ' { new Input [T ]($ev, $ctx, $w, $ { taskIsPrivate() }) },
547547 value,
548548 allowTaskReferences = false
0 commit comments