diff options
Diffstat (limited to 'cli/npm/resolvers/common.rs')
-rw-r--r-- | cli/npm/resolvers/common.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/npm/resolvers/common.rs b/cli/npm/resolvers/common.rs index abfdd6371..b352229c1 100644 --- a/cli/npm/resolvers/common.rs +++ b/cli/npm/resolvers/common.rs @@ -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 { |