dub
dub copied to clipboard
Fails to expand ~ in path
If I have a dependency in dub.sdl
like this:
dependency "vibe-d" path="~/development/d/vibe.d"
Dub fails to expand ~
to the home directory. The error message I get is something like:
No package file found in /Users/jacob/development/d/foo/~/development/d/vibe.d/, expected one of dub.json/dub.sdl/package.json
~
is a bashism, and I am not sure we should implement it. For reference, this is the behavior:
https://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html
To properly implement it, we need to support ~
, ~-
, ~+
, ~name
, etc...
I would close this as WONTFIX.
I would go with a minimal implementation of just ~/
, we have std.path:expandTilde after all, and then just call it done. Definitely think it's worth supporting it for users.