dlang / dub

Package and build management system for D
MIT License
670 stars 230 forks source link

absolute paths shown as relative #958

Open timotheecour opened 7 years ago

timotheecour commented 7 years ago

moved from https://github.com/dlang/dub-registry/issues/178

"targetPath":"/abspath/bar",

calling dub shows:

Running ../../../../../abspath/bar/exe

it should show: /abspath/bar/exe

(using appropriate std.path functions)

timotheecour commented 7 years ago

ping on this?

s-ludwig commented 6 years ago

The above case should be fixed already: 5c051bb19e622178bf457f68051694b80454224d

The idea is to work around path length limitations. #1379 would introduce a regression in that regard.

s-ludwig commented 6 years ago

So to elaborate, a typical scanario is to have a project in %USERPROFILE%/dev/foo and dependencies in %USERPROFILE%/AppData/Roaming/dub/packages. Using a relative path allows to replace %USERPROFILE% with ../../, which is usually quite a bit shorter.

Once everything in the Windows build chain is UNC path aware, we can drop this workaround and then I'd also favor the approach in #1379.