fix: install mode works with force mode

This commit is contained in:
Stefanuk12 2025-04-25 19:36:45 +01:00
parent ae9da1307c
commit faedef0c81
No known key found for this signature in database
GPG key ID: 7E19B1E4C83A2A35

View file

@ -250,9 +250,6 @@ impl Project {
let mut downloaded_graph = DependencyGraph::new();
let graph_to_download = if force {
Cow::Borrowed(graph)
} else {
let mut queue = graph
.iter()
.filter(|(_id, node)| {
@ -269,6 +266,9 @@ impl Project {
.for_each(|x| queue.push_back(x));
}
let graph_to_download = if force {
Cow::Borrowed(&correct_deps)
} else {
let mut tasks = correct_deps
.into_iter()
.map(|(id, node)| {