Repository navigation
Bootstrap cannot remove host symlink on Windows if created from WSL2 #112544
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: WindowsT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Description
Activity
- addedO-windowsOperating system: WindowsOperating system: WindowsT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)C-bugCategory: This is a bug.Category: This is a bug.
on Jun 12, 2023 - added 2 commits that reference this issue
on Aug 17, 2024 - added 2 commits that reference this issue
on Aug 18, 2024 - added 2 commits that reference this issue
on Aug 18, 2024 - added 2 commits that reference this issue
on Aug 20, 2024 - added 2 commits that reference this issue
on Aug 21, 2024 - added a commit that references this issue
on Aug 21, 2024 - added a commit that references this issue
on Aug 22, 2024 - added a commit that references this issue
on Aug 22, 2024 Re-opening due to revert #129413.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: WindowsT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
If I use
./xin WSL2 it will create a host symlink in the build directory. If I then switch to the Windows host using the same build directory I get this error:The simplest solution here would be to detect
ERROR_DIRECTORY(aka os error 267) and fallback tofs::remove_file.