Importing modules under DUB on Windows

rikki cattermole rikki at cattermole.co.nz
Thu Oct 27 23:11:25 UTC 2022


On 28/10/2022 5:40 AM, DLearner wrote:
> Maybe fewer people use it under Windows, so Windows constructs don't get 
> exercised so much.

I have actively contributed to dub specifically for Windows in the last 
year :)

There is enough of us.

Also UNC paths (those with drives and then the slash) are actually 
absolute, not relative.

There are relative ones, but the path processing in dub is pretty 
simplified.

You have to stick to completely relative, POSIX style.

https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats

You should be working with relatives paths in respect to the 
$PACKAGE_DIR, not the compiler or any root location of your file system 
(such as the drive would indicate).

https://dub.pm/package-format-json.html#environment-variables


More information about the Digitalmars-d-learn mailing list