diff options
Diffstat (limited to 'core/src/mill/eval/Evaluator.scala')
-rw-r--r-- | core/src/mill/eval/Evaluator.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/mill/eval/Evaluator.scala b/core/src/mill/eval/Evaluator.scala index bb78a020..3d6d253b 100644 --- a/core/src/mill/eval/Evaluator.scala +++ b/core/src/mill/eval/Evaluator.scala @@ -58,7 +58,13 @@ class Evaluator[T](val outPath: Path, } } } - findMatching(c.cls).get.find(_._2.name == c.ctx.segment.pathSegments.head).get._1 + + findMatching(c.cls) match{ + case Some(v) => v.find(_._2.name == c.ctx.segment.pathSegments.head).get._1 + // For now we don't properly support overrides for external modules + // that do not appear in the Evaluator's main Discovered listing + case None => 0 + } case c: mill.define.Worker[_] => 0 } |