You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
write!(help,"--tag=v{version} will Announce: ").unwrap();
letmut multi_package = false;
for&pkg_id in packages {
let info = graph.workspaces.package(pkg_id);
if multi_package {
write!(help,", ").unwrap();
}else{
multi_package = true;
}
write!(help,"{}", info.name).unwrap();
}
writeln!(help).unwrap();
}
Example in the wild:
Potential solution:
Instead of printing everything immediately, put the names into a HashSet and print the contents of that. That way each name is guaranteed to only be printed once.
The text was updated successfully, but these errors were encountered:
cargo_dist::announce::tag_help()
has a loop offor &pkg_id in packages { ... }
that is sometimes very redundant.My suspicion is it's printing each target for each platform, or something along those lines. Not verified that yet, though.
Relevant code:
cargo-dist/cargo-dist/src/announce.rs
Lines 800 to 813 in 9b00b0b
Example in the wild:
Potential solution:
Instead of printing everything immediately, put the names into a HashSet and print the contents of that. That way each name is guaranteed to only be printed once.
The text was updated successfully, but these errors were encountered: