mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
refactor: upgrade to deno_npm 0.6 (#19244)
This commit is contained in:
parent
114ec3c1f7
commit
91ca9904b5
9 changed files with 46 additions and 64 deletions
|
@ -64,7 +64,7 @@ pub async fn cache_packages(
|
|||
if sync_download {
|
||||
// we're running the tests not with --quiet
|
||||
// and we want the output to be deterministic
|
||||
packages.sort_by(|a, b| a.pkg_id.cmp(&b.pkg_id));
|
||||
packages.sort_by(|a, b| a.id.cmp(&b.id));
|
||||
}
|
||||
|
||||
let mut handles = Vec::with_capacity(packages.len());
|
||||
|
@ -73,7 +73,7 @@ pub async fn cache_packages(
|
|||
let registry_url = registry_url.clone();
|
||||
let handle = spawn(async move {
|
||||
cache
|
||||
.ensure_package(&package.pkg_id.nv, &package.dist, ®istry_url)
|
||||
.ensure_package(&package.id.nv, &package.dist, ®istry_url)
|
||||
.await
|
||||
});
|
||||
if sync_download {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue