diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-03 12:13:58 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-03 12:13:58 -0800 |
commit | a1da8036f6d6744dc0a9c34cc12f8fb26f6d3daa (patch) | |
tree | 6ba322a81a3f48ad12a80220f8867d51b9eb49f6 /core | |
parent | 8c360c652902b9ccf13060ea1fd050bf473bf2d8 (diff) | |
download | mill-a1da8036f6d6744dc0a9c34cc12f8fb26f6d3daa.tar.gz mill-a1da8036f6d6744dc0a9c34cc12f8fb26f6d3daa.tar.bz2 mill-a1da8036f6d6744dc0a9c34cc12f8fb26f6d3daa.zip |
Split overriden enclosing path on `#` in addition to `.`, since `#` behaves badly in URIs and other places
Diffstat (limited to 'core')
-rw-r--r-- | core/src/mill/eval/Evaluator.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/mill/eval/Evaluator.scala b/core/src/mill/eval/Evaluator.scala index b3fcde2c..4bc11338 100644 --- a/core/src/mill/eval/Evaluator.scala +++ b/core/src/mill/eval/Evaluator.scala @@ -70,7 +70,7 @@ case class Evaluator[T](outPath: Path, val additional = if (finalTaskOverrides == t.ctx.overrides) Nil - else Seq(Segment.Label("overriden")) ++ t.ctx.enclosing.split('.').map(Segment.Label) + 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) |