Skip to content

Conversation

nathanwhit
Copy link
Member

Basically just update deno_lockfile, deno_npm, and eszip, and then adapt to those changes. The main changes were the removal of the lockfile v4 resolution snapshot loading, and a terser formatting for the os and cpu fields in the lockfile.

@nathanwhit nathanwhit requested review from dsherret and Copilot April 22, 2025 00:25
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the lockfile-related modules to adapt to the latest changes in deno_lockfile, deno_npm, and eszip. It removes the legacy lockfile v4 snapshot loading, adopts a terser lockfile formatting for the os and cpu fields, and updates dependency versions accordingly.

  • Updated lockfile initialization to use Lockfile::new with an async npm package info provider.
  • Removed legacy error handling related to lockfile snapshot integrity checks.
  • Upgraded dependency versions and added the async-trait dependency for test suites.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/integration/jsr_tests.rs Updated lockfile initialization and added async test npm provider.
tests/integration/check_tests.rs Applied similar lockfile initialization update with async provider.
tests/Cargo.toml Added async-trait to dev-dependencies.
cli/npm/mod.rs Removed unused types and updated default tarball URL usage.
cli/npm/managed.rs Removed legacy error method and updated snapshot API usage.
cli/npm/installer/resolution.rs Updated default tarball URL call to use the new API signature.
cli/main.rs Simplified error handling by removing custom integrity check logic.
cli/args/lockfile.rs Revised lockfile construction to match the updated API.
Cargo.toml Upgraded deno_lockfile, deno_npm, and eszip to the newer versions.
Comments suppressed due to low confidence (1)

cli/main.rs:425

  • The removal of differentiated error code handling for integrity check errors now results in all errors exiting with code 1. Please verify that this change is intentional, ensuring that specific integrity check failures are not inadvertently masked.
exit_with_message(&error_string, 1);

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nathanwhit nathanwhit enabled auto-merge (squash) April 22, 2025 00:27
@nathanwhit nathanwhit merged commit de3ce49 into denoland:main Apr 22, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants