Open
Description
This limitation is hitting Mill in its Task.Source
which is accepting a os.SubPath
. Since the idea is to provide a directory relative to an implicitly provided base directory, it is currently not possible to refer to that exact same directory without using it explicitly.
Definition of Task.Source
:
inline def Source(inline value: os.SubPath)(implicit inline ctx: mill.define.Ctx)
While specifying a sub-directory works:
Task.Source("src")
Using the base dir does not:
Task.Source(".")
// |Task.Source(".")
//
// [error] │ ^^^
// [error] │Exception occurred while executing macro expansion.
// [error] │os.PathError$InvalidSegment: [.] is not a valid path segment. Literal path sequence [.] doesn't affect path being formed, please remove it
// [error] │ at os.PathError$InvalidSegment$.apply(Path.scala:268)
// [error] │ at os.PathChunk$.segmentsFromStringLiteralValidation(Path.scala:43)
// [error] │ at os.Macros$.stringSubPathValidatedImpl(Macros.scala:58)
Metadata
Metadata
Assignees
Labels
No labels