3
0
Fork 0
forked from mirrors/nixpkgs

maintainers/scripts/convert-to-import-cargo-lock: don't add duplicate outputHashes

This commit is contained in:
Yureka 2023-03-18 23:25:58 +01:00
parent 7130282976
commit 34c848fe08

View file

@ -114,11 +114,6 @@ fn convert(attr: &str, hashes: &mut HashMap<String, String>) -> anyhow::Result<(
.expect("dependency should have well-formed source url");
if let Some(hash) = hashes.get(original_url) {
git_dependencies.push((
format!("{}-{}", package.name, package.version),
hash.clone(),
));
continue;
}