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
Hi again,
I got the same issue with dub as I did with vibe (for the record: vibe-d/vibe.d#410 ).
But unlike in vibe, I consider this as a bug rather than a possible enhancement.
So:
root@noraj:/var/lib/jenkins/bin# /var/lib/jenkins//debug_test//build/dub/bin/dub add-local /var/lib/jenkins//debug_test/ ~master
Error: Empty path entries not allowed.
Run 'dub help' for usage information.
root@noraj:/var/lib/jenkins/bin# /var/lib/jenkins//debug_test//build/dub/bin/dub add-local /var/lib/jenkins/debug_test/ ~master
Registered package: vibe-d (version: ~master)
This is an issue when you are shell scripting, and you sometimes put more '/' than necessary, eg you don't know if the variable hold "/path/to/folder" or "/path/to/folder/".
Thanks !
The text was updated successfully, but these errors were encountered:
It seems like you are right, at least for *NIX it seems to be ubiquitously supported. My take on it so far was to disallow it where possible (and in case of the URLRouter that probably won't change as it would require additional logic and IMO that logic is better spent in the URL rewriting routine).
The best bet seems to be to change the Path parser to ignore successive '/' (but not '') or insert '.' between them. UNC paths will have to be handled separately. That would fix DUB and allow additional slashes when using serveStaticFiles.
Hi again,
I got the same issue with dub as I did with vibe (for the record: vibe-d/vibe.d#410 ).
But unlike in vibe, I consider this as a bug rather than a possible enhancement.
So:
This is an issue when you are shell scripting, and you sometimes put more '/' than necessary, eg you don't know if the variable hold "/path/to/folder" or "/path/to/folder/".
Thanks !
The text was updated successfully, but these errors were encountered: