Skip to content

fix: skip hidden lockfile save on dry run#9395

Open
puneetdixit200 wants to merge 1 commit into
npm:latestfrom
puneetdixit200:fix/9187-dry-run-hidden-lockfile
Open

fix: skip hidden lockfile save on dry run#9395
puneetdixit200 wants to merge 1 commit into
npm:latestfrom
puneetdixit200:fix/9187-dry-run-hidden-lockfile

Conversation

@puneetdixit200
Copy link
Copy Markdown

Summary

  • stop Arborist from saving node_modules/.package-lock.json during dry-run reification
  • add a regression that keeps both package-lock.json and the hidden lockfile unchanged after update: true, dryRun: true

This addresses the dry-run lockfile mutation part of #9187. The JSON output behavior is separate and already has #8567 open.

Testing

  • ../../node_modules/.bin/tap --no-coverage --no-check-coverage test/arborist/reify.js -g 'dry-run update does not save lockfiles'
  • ../../node_modules/.bin/tap --no-coverage --no-check-coverage test/arborist/reify.js -g 'dry run, do not get anything wet|save complete lockfile on update-all'
  • ../../node_modules/.bin/eslint lib/arborist/reify.js test/arborist/reify.js
  • git diff --check

@puneetdixit200 puneetdixit200 requested review from a team as code owners May 23, 2026 08:13
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.

1 participant