-
Notifications
You must be signed in to change notification settings - Fork 125
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
[windows] path: drop the trailing backslash before invoking PathCchRe… #479
Conversation
…moveFileSpec to compute the dirname PathCchRemoveFileSpec's is documented to not remove the file spec if it comes with a backslash suffix. Thus, we should remove the trailing backslashes before calling this API, to ensure we actually drop the current file/directory name
@swift-ci please test |
@swift-ci please tset |
@swift-ci please test |
@swift-ci please test Windows platform |
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.
Thank you! @rintaro and I spent some time today figure out what is going on with Windows build of swiftpm to find this exact problem.
@swift-ci please test Windows platform |
1 similar comment
@swift-ci please test Windows platform |
Thanks, I will cherry-pick this into swift 6. |
swift 6 PR: #480 |
…moveFileSpec to compute the dirname
PathCchRemoveFileSpec's is documented to not remove the file spec if it comes with a backslash suffix. Thus, we should remove the trailing backslashes before calling this API, to ensure we actually drop the current file/directory name.
This regressed after adoption of new swift-foundation, as it's filesystemRepresentation no longer drops the trailing backslash.