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

[vcpkg] Continue on malformed paths in PATH #8129

Merged
merged 2 commits into from
Sep 17, 2019

Conversation

PhoebeHui
Copy link
Contributor

For issue #8116, when add ;; to PATH, it consider it’s a path and add quota to it( change to “;;” in PATH); In vcpkg, it use ; to split the PATH, so it will split “;;” to “ , empty , “ ,
So the base value becomes “\cmake.bat, it’s illegal path, and exit in this->exists(VCPKG_LINE_INFO, p).

In this case I think we shouldn’t exit when environment variable ‘PATH’ contains illegal path(eg ;;).

@PhoebeHui PhoebeHui added the info:internal This PR or Issue was filed by the vcpkg team. label Sep 11, 2019
@cbezault cbezault self-requested a review September 11, 2019 16:56
@cbezault cbezault self-assigned this Sep 11, 2019
@cbezault cbezault changed the title fix vcpkg parse path issue [vcpkg] Continue on malformed paths in PATH Sep 17, 2019
@cbezault cbezault merged commit b4a0c8d into microsoft:master Sep 17, 2019
@PhoebeHui PhoebeHui deleted the dev/Phoebe/fixparsepath branch May 26, 2020 06:51
strega-nil pushed a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
Previously vcpkg would exit on malformed paths. We now will continue and ignore the malformed path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants