-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-cargo-apiArea: cargo-the-library API and internal code issuesArea: cargo-the-library API and internal code issuesA-filesystemArea: issues with filesystemsArea: issues with filesystemsA-manifestArea: Cargo.toml issuesArea: Cargo.toml issuesA-workspacesArea: workspacesArea: workspacesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.
Description
See also rust-lang/rfcs#3279
Describe the problem you are trying to solve
In cargo-outdated
we are seeing an issue (we build the project under /tmp
) where if there's a cargo.toml
that was moved to /tmp/
cargo build will fail.
Describe the solution you'd like
Either a seperate find_root()
(link)that we can trigger from workspace::new()
, or a config option to stop the function from crawling upwards (link) in the directory ancestors.
Notes
This was mentioned in #4992 (comment)
I understand this is necessary for cargo and it's the intended function; however, using cargo as an API there should be a way to avoid this :)
Metadata
Metadata
Assignees
Labels
A-cargo-apiArea: cargo-the-library API and internal code issuesArea: cargo-the-library API and internal code issuesA-filesystemArea: issues with filesystemsArea: issues with filesystemsA-manifestArea: Cargo.toml issuesArea: Cargo.toml issuesA-workspacesArea: workspacesArea: workspacesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.