Skip to content

--manifest-path path/to/NonCargo.toml fails #6690

Open
@gnzlbg

Description

@gnzlbg
cargo build --manifest-path=NotCargo.toml 

fails with

the manifest-path must be a path to a Cargo.toml file

but my NotCargo.toml is a manifest file.

So either the option needs to be called --cargo-toml-path, or it should IMO accept any TOML file that's a valid manifest path.

Motivation: working around cargo bugs often requires having many manifests files and using different ones depending on what one is trying to do (e.g. build for two different editions, build without dev-dependencies in the dependency graph, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cliArea: Command-line interface, option parsing, etc.C-bugCategory: bugS-propose-closeStatus: A team member has nominated this for closing, pending further input from the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions