Skip to content

Cargo should check for windows-reserved filenames when extracting a package. #8055

Closed
@Skgland

Description

@Skgland

EDIT (ehuss): The issue is that navi includes a file named aux.rs which is not a valid filename on windows. Cargo should check for these reserved filenames while extracting and provide a better error message.

Problem

On Windows Cargo failes to install a package because it fails to set mtime fo a file.
The package where the error occourse is navi version 2.2.0

Console Log

Steps

  1. On windows run cargo install navi

Possible Solution(s)

Notes

Output of cargo version:
cargo 1.44.0-nightly (7019b3ed3 2020-03-17)

cargo 1.42.0 (86334295e 2020-01-31) has the same problem under Windows but gives shorter error trace.

Same package and cargo versions work under Linux Mint.
Also I currently cannot reproduce this with other packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-bugCategory: bugE-easyExperience: EasyO-windowsOS: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions