Skip to content

cargo build --manifest-path <long-path> doesn't work on Windows #8965

Closed
@stepancheg

Description

@stepancheg
cargo build --manifest-path <very-long-path>

doesn't work on Windows: reports

error: manifest path `<very-long-path>` does not exist

Script which reproduces the problem: https://github.com/stepancheg/test-win-long-paths/blob/master/test.sh
Failed job on GitHub actions: https://github.com/stepancheg/test-win-long-paths/runs/1532597301

Why it is important

rustc has certain problems with long paths on Windows, which I need to reproduce. I tried to reproduce them with cargo and encountered this issue.

In certain build systems and certain CI environments build paths may be quite long. It is constant pain on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions