Skip to content
This repository was archived by the owner on Jun 21, 2019. It is now read-only.

Commit e3e5451

Browse files
committed
Fix loading checksums from Cargo
Looks like rust-lang/cargo#6500 accidentally broke the previous logic, so let's load the checksums from elsewhere!
1 parent 6c0cdb6 commit e3e5451

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ fn sync(
246246
}
247247
}
248248

249+
let mut checksums = HashMap::new();
250+
249251
for ws in workspaces {
250252
let main_pkg = ws.current().map(|x| x.name().as_str()).unwrap_or("");
251253
let (packages, resolve) =
@@ -271,6 +273,8 @@ fn sync(
271273
.chain_err(|| "failed to fetch package")?
272274
.clone(),
273275
);
276+
277+
checksums.insert(pkg.clone(), resolve.checksums().get(&pkg).cloned());
274278
}
275279
}
276280

@@ -388,7 +392,7 @@ fn sync(
388392

389393
// Finally, emit the metadata about this package
390394
let json = serde_json::json!({
391-
"package": pkg.summary().checksum(),
395+
"package": checksums.get(id),
392396
"files": map,
393397
});
394398

0 commit comments

Comments
 (0)