summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-17 23:41:39 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-17 23:45:43 -0800
commit0013898d7628980f920dba7eed68153b36fd26fb (patch)
tree04306367d8e1a95817dcaf39ae4302d51b629432 /core/src
parent6c66864dd45cb1f12524f9645b2c9158e5e0b592 (diff)
downloadmill-0013898d7628980f920dba7eed68153b36fd26fb.tar.gz
mill-0013898d7628980f920dba7eed68153b36fd26fb.tar.bz2
mill-0013898d7628980f920dba7eed68153b36fd26fb.zip
Update resolution tests in `MainTests.scala`
Added test cases for new "Did you mean...", "Try `mill.resolve ...`" hints
Diffstat (limited to 'core/src')
-rw-r--r--core/src/mill/eval/Evaluator.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/mill/eval/Evaluator.scala b/core/src/mill/eval/Evaluator.scala
index 0a2ec6d8..23a06cc2 100644
--- a/core/src/mill/eval/Evaluator.scala
+++ b/core/src/mill/eval/Evaluator.scala
@@ -71,7 +71,7 @@ case class Evaluator[T](outPath: Path,
val additional =
if (finalTaskOverrides == t.ctx.overrides) Nil
- else Seq(Segment.Label("overriden"), Segment.Label(t.ctx.enclosing))
+ else Seq(Segment.Label("overriden")) ++ t.ctx.enclosing.split('.').map(Segment.Label)
Right(Labelled(t, segments ++ additional))
case t if goals.contains(t) => Left(t)