New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Issue 22738 - std.file.tempDir adds an addition / even when it already has one #8373
Conversation
Thanks for your pull request and interest in making D better, @rikkimax! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
|
This is a regression against master and not stable. The stable branch doesn't have this code in it, which causes said bug. It appears that this particular issue may have been encountered in that PR as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Delphi has
IncludeTrailingPathDelimiter
, maybestd.path
should have an equivalent. - Consecutive slashes have no effect on Linux, so it's surprising that it was a problem in Dub. Perhaps the Dub breakage is its own bug that needs to be addressed.
LGTM otherwise
Co-authored-by: Vladimir Panteleev <CyberShadow@users.noreply.github.com>
Dub's CI breakage I have resolved (once PR is merged), so at least we can get PR's merging again once that is done. I'm not sure if it needs further work on dub's side, my main concern was getting CI passing not necessarily cleaning up garbage input. |
Bug https://issues.dlang.org/show_bug.cgi?id=22738
Discovered due to dub CI being broken due to 17488 adding an additional path separator when it can on some platforms already have it at the end.
Workaround to get dub passing CI dlang/dub#2208