You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I think the original use case in Mill is valid, while a proper support in OS-Lib is probably not the right approach. I did a experimental POC PR #382. I looks like enabling the literal "." would also allow it when composing paths via segments. E.g. the following would be no longer an error: root / "src" / ".", which is IMHO not a design goal of os.Path.
lefou
added a commit
to lefou/os-lib
that referenced
this issue
Apr 3, 2025
Uh oh!
There was an error while loading. Please reload this page.
This limitation is hitting Mill in its
Task.Source
which is accepting aos.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
:While specifying a sub-directory works:
Using the base dir does not:
The text was updated successfully, but these errors were encountered: