Skip to content

Commit

Permalink
refactor: update deno_lockfile to 0.19.0 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Feb 15, 2024
1 parent d542393 commit 47d145d
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 121 deletions.
195 changes: 77 additions & 118 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license = "MIT"
anyhow = "1.0.70"
async-trait = "0.1.68"
deno_semver = "0.5.4"
deno_lockfile = "0.18.0"
deno_lockfile = "0.19.0"
monch = "0.5.0"
log = "0.4"
serde = { version = "1.0.130", features = ["derive", "rc"] }
Expand Down
7 changes: 5 additions & 2 deletions src/resolution/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,10 @@ pub async fn snapshot_from_lockfile<'a>(
if registry_integrity != snapshot_package.integrity {
return Err(
IntegrityCheckFailedError {
package_display_id: snapshot_package.id.as_serialized(),
package_display_id: format!(
"npm:{}",
snapshot_package.id.as_serialized()
),
expected: snapshot_package.integrity.clone(),
actual: registry_integrity,
filename: incomplete_snapshot
Expand Down Expand Up @@ -1336,7 +1339,7 @@ mod tests {
assert_eq!(err.actual, "sha512-integrity1-bad");
assert_eq!(err.expected, "sha512-integrity1");
assert_eq!(err.filename, "/deno.lock");
assert_eq!(err.package_display_id, "[email protected]");
assert_eq!(err.package_display_id, "npm:[email protected]");
}
_ => unreachable!(),
}
Expand Down

0 comments on commit 47d145d

Please sign in to comment.