Skip to content

Cargo gives precedence to configs without .toml suffix #946

@a-ovchinnikov

Description

@a-ovchinnikov

As per https://doc.rust-lang.org/cargo/reference/config.html :

Note: Cargo also reads config files without the .toml extension, such as .cargo/config. Support for the .toml extension was added in version 1.39 and is the preferred form. If both files exist, Cargo will use the file without the extension.

There exist older projects that seem to rely on this feature. As a measure of precaution the alternative config should be renamed prior to running prefetch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cargoPull requests/issues related to our cargo handling module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions