-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-filesystemArea: issues with filesystemsArea: issues with filesystemsC-bugCategory: bugCategory: bugO-windowsOS: WindowsOS: Windows
Description
Problem
When trying to build a project over a WSL mount, cargo is unable to lock Cargo.lock and generates an error
Steps
- Install rust in Windows
- Checkout a simple rust project in WSL (such as /tmp/testing)
- In powershell, change directories to
\\wsl$\<Distro>\tmp\testing
, then runcargo build
PS Microsoft.PowerShell.Core\FileSystem::\wsl$\Ubuntu\tmp\testing> cargo build --release
error: failed to lock file: \wsl$\Ubuntu\tmp\testing\Cargo.lock
Caused by:
Incorrect function. (os error 1)
PS Microsoft.PowerShell.Core\FileSystem::\wsl$\Ubuntu\tmp\testing>
Possible Solution(s)
Notes
Output of cargo version
:
cargo 1.40.0-nightly (a429e8c 2019-10-04)
Metadata
Metadata
Assignees
Labels
A-filesystemArea: issues with filesystemsArea: issues with filesystemsC-bugCategory: bugCategory: bugO-windowsOS: WindowsOS: Windows