-
Notifications
You must be signed in to change notification settings - Fork 13k
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
install::sanitize_sh(Path)
breaks paths in Windows 10
#132507
Comments
If the shell is provided by MinGW I think |
Mine is cygwin64 |
Ah, it seems like cygwin expects paths in the format |
Could you check if #134023 works for you? @Houtamelo |
handle cygwin environment in `install::sanitize_sh` Resolves rust-lang#132507
handle cygwin environment in `install::sanitize_sh` Resolves rust-lang#132507
handle cygwin environment in `install::sanitize_sh` Resolves rust-lang#132507
Sadly no, I'm using Linux now. |
handle cygwin environment in `install::sanitize_sh` Resolves rust-lang#132507
handle cygwin environment in `install::sanitize_sh` Resolves rust-lang#132507
Rollup merge of rust-lang#134023 - onur-ozkan:132507, r=jieyouxu handle cygwin environment in `install::sanitize_sh` Resolves rust-lang#132507
When running
x install
, I was getting the following error:I found that the source of the issue was inside the function
sanitize_sh
, located in: "src/bootstrap/src/core/build_steps/install.rs":change_drive
turns paths such as "C:/user/foo" into "/C/user/foo", which makes those paths invalid, resulting in "No such file or directory" errors.In my fork, I commented the call to
change_drive
and returnedpath
directly:Which fixed the issue,
x install
then ran without any problems, everything was installed correctly.Meta
OS: Windows 10 x64
rust-lang commit: ef972a3
The text was updated successfully, but these errors were encountered: