Skip to content

Crash when using \\?\ style path on Windows #8626

Open
@philip-peterson

Description

@philip-peterson

Problem
Running a command, e.g. cargo metadata or cargo check with the --manifest-path set to equal an absolute Windows long-style path causes an error:

The filename, directory name, or volume label syntax is incorrect. (os error 123)

Steps

  1. Create a project anywhere and note its path. Let's pretend it's C:\Path
  2. Run a cargo command with mainfest-path set to that path as a long absolute path: cargo metadata --manifest-path \\?\C:\Path\Cargo.toml
  3. Note the failure.

Notes

Output of cargo version: cargo 1.47.0-nightly (ab32ee8 2020-08-10)

May be related to #7986, #7420, #7643

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugE-hardExperience: HardO-windowsOS: WindowsS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions