mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
fix: issue with --all when workspace member also exists in dep tree (#3726)
This commit is contained in:
committed by
Seiichi Uchida
parent
3adfb08afe
commit
afc8fbd701
@@ -340,7 +340,7 @@ fn get_targets_recursive(
|
||||
let dependency_package = metadata_with_deps
|
||||
.packages
|
||||
.iter()
|
||||
.find(|p| p.name == dependency.name);
|
||||
.find(|p| p.name == dependency.name && p.source.is_none());
|
||||
let manifest_path = if dependency_package.is_some() {
|
||||
PathBuf::from(&dependency_package.unwrap().manifest_path)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user