Skip to content

Cargo-rmc cannot locate workspace Cargo.toml #717

@celinval

Description

@celinval

I tried the following command line invocation:

cd src/test/cargo-rmc/simple-main/src
# Build succeed.
cargo build
# ERROR: Cannot find configuration toml at expected location: Cargo.toml
cargo rmc

with RMC version: 2021-12-27

I expected to see this happen: The command should work the same way as it works from the top folder. Cargo rmc should be able to locate the project Cargo.toml the same way cargo build does.

We should use cargo locate-project to find the correct Cargo.toml instead of trying to find it in the current directory only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-Good First IssueGood for newcomers[C] BugThis is a bug. Something isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions