Repository navigation
Add support for \\wsl$\ubuntu path - #10674
Aditya Patwardhan (adityapatwardhan) merged 6 commits into
Conversation
Rob Holt (rjmholt)
left a comment
There was a problem hiding this comment.
Would be nice if we could have tests for this in an image with WSL
Co-Authored-By: Ilya <darpa@yandex.ru>
|
Rob Holt (@rjmholt) It seems your account lost permissions. |
Apparently that's intended since I'm not a maintainer |
|
Rob Holt (@rjmholt) I see the same for Paul account. But previously approve had green label. |
|
Rob Holt (@rjmholt) not a maintainer... yet |
Yeah, the permissions have been updated so that non-maintainers can't give merge-permitting approval, and there are a few of us on the PowerShell team who aren't maintainers (which makes sense to me -- they're different hats to wear). |
|
🎉 Handy links: |
PR Summary
WSL2 introduces a new filesystem path to access the Linux filesystem from Windows. Depending on the distro name, it would look like
\\wsl$\ubuntu. The problem is that this is not a valid UNC path so it gets rejected outright.Fix is to check for this type of path and pass it off as a UNC path so that the filesystemprovider accepts it as a valid filesystem path. The .NET APIs handle this just fine once it makes it that far into the code.
Manually validated
dir \\wsl$\ubuntuandcd \\wsl$\ubuntu; dirPR Context
Fix #10360
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.