Skip to content

Cargo is broken on Windows Docker since #7137 #7313

Closed
@zeevm

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:

  1. Create a new crate source tree (cargo new) on Windows
  2. Create a Windows container
  3. Start the container and bind mount the source tree inside the container
  4. Build the source tree inside the container

Result: build fails

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-filesystemArea: issues with filesystemsC-bugCategory: bugO-windowsOS: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions