Closed
Description
7137 introduced using fs::canonicalize in fingerprint.rs (4f6553a)
canonicalize on Windows is implemented using GetFinalPathNameByHandleW which fails on directories that are bind mounted, result being Cargo fails building inside Windows containers when building a source tree that is bind mounted from the host.
To reproduce:
- Create a new crate source tree (cargo new) on Windows
- Create a Windows container
- Start the container and bind mount the source tree inside the container
- Build the source tree inside the container
Result: build fails
Activity