Skip to content

rustbuild: support paths created by tab-completing in Powershell #51071

Closed
@QuietMisdreavus

Description

@QuietMisdreavus

Currently, if you give a path to bootstrap to build or test, it works perfectly if you have a Unix-style relative path - no prefix, forward-slashes to separate directories. However, when tab-completing files in Powershell, it currently inserts a .\ at the front to force parsing as a relative path, and (due to being Windows) uses back-slashes for directory separators. This causes bootstrap to fail parsing the path:

> python x.py test .\src\test\run-pass\issue-38226.rs
[...snipping out the "building bootstrap and dependencies" lines...]
Error: thread 'main' panicked at 'No rules matched .\src\test\run-pass\issue-38226.rs'.

> python x.py test src/test/run-pass/issue-38226.rs
[...begins compiling as normal...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions