We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb7ba3d commit f929619Copy full SHA for f929619
src/bin/cargo/commands/install.rs
@@ -75,13 +75,16 @@ pub fn cli() -> App {
75
}
76
77
pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
78
+ let workspace;
79
if let Some(path) = args.value_of_path("path", config) {
80
config.reload_rooted_at(path)?;
81
+ // Only provide worksapce information for local crate installation
82
+ workspace = args.workspace(config).ok();
83
} else {
84
config.reload_rooted_at(config.home().clone().into_path_unlocked())?;
85
+ workspace = None;
86
87
- let workspace = args.workspace(config).ok();
88
let mut compile_opts = args.compile_options(
89
config,
90
CompileMode::Build,
0 commit comments