-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-rust-versionArea: rust-version in Cargo.tomlArea: rust-version in Cargo.tomlC-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`E-easyExperience: EasyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Description
Problem
Subcommands like build allow to ignore the minimum rust version of dependencies by the --ignore-rust-version flag.
Because build is a step of cargo install, this flag should be available there too.
Proposed Solution
Index: cargo/src/bin/cargo/commands/install.rs
===================================================================
--- cargo.orig/src/bin/cargo/commands/install.rs
+++ cargo/src/bin/cargo/commands/install.rs
@@ -78,6 +78,7 @@ pub fn cli() -> App {
.conflicts_with_all(&["git", "path", "index"]),
)
.arg_message_format()
+ .arg_ignore_rust_version()
.arg_timings()
.after_help("Run `cargo help install` for more detailed information.\n")Notes
No response
Metadata
Metadata
Assignees
Labels
A-rust-versionArea: rust-version in Cargo.tomlArea: rust-version in Cargo.tomlC-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`E-easyExperience: EasyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review