Skip to content
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 the way known locations are generated on windows #4805

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

darinf
Copy link
Contributor

@darinf darinf commented Jul 31, 2023

Use GetAllUsersProfileDirectoryW and GetProfilesDirectoryW instead of hardcoding paths.

Previously, the known locations were treated as UNC paths, which would typically fail to be read after ~5 second timeout.

Also fixes memory leak of username string.

Use GetAllUsersProfileDirectoryW and GetProfilesDirectoryW instead of
hardcoding paths.

Previously, the known locations were treated as UNC paths, which would
typically fail to be read after ~5 second timeout.
@compnerd
Copy link
Member

@swift-ci please test

@compnerd
Copy link
Member

@swift-ci please test Linux platform

@compnerd
Copy link
Member

@swift-ci please test macOS platform

@compnerd
Copy link
Member

@swift-ci please test Linux platform

@compnerd
Copy link
Member

@swift-ci please clean test macOS platform

@compnerd
Copy link
Member

compnerd commented Aug 1, 2023

@swift-ci please test macOS platform

@compnerd
Copy link
Member

compnerd commented Aug 2, 2023

This is a windows only path change, and the failure is an infrastructure failure on the macOS side.

@compnerd compnerd merged commit 8ff7ba3 into swiftlang:main Aug 2, 2023
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.

2 participants