Rustc file lock not working on WSL #72157
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
O-windows
Operating system: Windows
WSL1 does not support
fcntl
-based advisory locks, therefore the current src/librustc_data_structures/flock.rs implementation does not work.This issue can be observed by running
cargo doc
on a repository with many crates. Thesearch-index.js
can miss crates.According to my test
libc::flock
is working on WSL. We could replacefcntl
based lock withflock
based lock for Linux. However this will break lock over NFS for Linux 2.6.11 or earlier, I can author a PR if that's okay.Related WSL issue: microsoft/WSL#1927
The text was updated successfully, but these errors were encountered: