Skip to content

TSCBasic: correct resolvingSymlinks on Windows #347

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

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

compnerd
Copy link
Member

The function is not meant to resolve a symbolic link in the terminal arc
but rather anywhere along the path. More specifically, it is meant to
behave similar to realpath on Unix. The moral equivalent operation on
Windows is GetFinalPathNameByHandle which takes a handle to the file
and retrieves the actual location resolving any junctions in the path.
This repairs the behaviour of the function which is important for
SourceKit-LSP's test suite.

The function is not meant to resolve a symbolic link in the terminal arc
but rather anywhere along the path.  More specifically, it is meant to
behave similar to `realpath` on Unix.  The moral equivalent operation on
Windows is `GetFinalPathNameByHandle` which takes a handle to the file
and retrieves the actual location resolving any junctions in the path.
This repairs the behaviour of the function which is important for
SourceKit-LSP's test suite.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit 0220fc3 into swiftlang:main Aug 30, 2022
@compnerd compnerd deleted the resolve branch August 30, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants