Skip to content

Do not lowercase executable paths returned by Windows path locator #15483

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 2 commits into from
Feb 23, 2021

Conversation

karrtikr
Copy link

@karrtikr karrtikr commented Feb 23, 2021

Closes #15289

@karrtikr karrtikr added no-changelog No news entry required skip tests Updates to tests unnecessary labels Feb 23, 2021
@karrtikr karrtikr removed the skip tests Updates to tests unnecessary label Feb 23, 2021
@karrtikr karrtikr marked this pull request as ready for review February 23, 2021 01:29
Copy link

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@kimadeline kimadeline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, although I don't understand why normalizeFilename (called by normalizePath) needs to return a lowercased version of the path instead of using path.normalize directly.

@karrtikr
Copy link
Author

@kimadeline Yes, it wasn't clear by the name normalizeFilename. normCaseFilename would probably be a better name. @ericsnowcurrently Do you agree? If so, I can take of it in a separate PR.

@karrtikr karrtikr merged commit 66da3ac into microsoft:main Feb 23, 2021
@karrtikr karrtikr deleted the windows branch February 23, 2021 20:39
@ericsnowcurrently
Copy link

@kimadeline Yes, it wasn't clear by the name normalizeFilename. normCaseFilename would probably be a better name. @ericsnowcurrently Do you agree? If so, I can take of it in a separate PR.

The responsibility of normalizeFilename() is to provide a consistent, unique representation for a given filename, hence "normalize". Case (for Windows) is only part of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filenames identified by WindowsPathEnvVarLocator have an unexpected format.
3 participants