Repository navigation
feat(rush): preserve existing autoinstaller lockfiles on request - #6137
Draft
Bharat Middha (bmiddha) wants to merge 2 commits into
Draft
Bharat Middha (bmiddha) wants to merge 2 commits into
Bharat Middha (bmiddha) wants to merge 2 commits into
Conversation
Add an opt-in PNPM reconciliation mode that keeps the existing wanted and internal lockfiles and uses a non-frozen install. Preserve the default full-update behavior and reject unsupported managers or missing locks. Cover CLI forwarding, failure propagation, and actual-manager retention and fresh-install behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: bedb50cb-fcd4-4dc4-83b9-dba6064e5498
Regenerate the help text and CLI specification snapshots for the new opt-in flag. Preserve the command behavior and all real-manager fixture assertions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: bedb50cb-fcd4-4dc4-83b9-dba6064e5498
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
rush update-autoinstaller --name <name> --preserve-lockfilefor PNPM.This option preserves the lockfile as an input, not a guarantee that every resolution remains unchanged. The documentation explicitly requires reviewing the resulting dependency diff.
Validation
The rebased source passed the normal dependency build, TypeScript, ESLint, API Extractor, Webpack, and all 10 mocked CLI/default/error-handling tests. Its four implementation/test files are byte-identical to the previously verified source that passed all 11 cases with actual pnpm 8.14.0 and native pnpm 12.11.2, including lock-retaining reconciliation, compatible dependency retention, and a fresh frozen installation.
The real-manager fixture uses a loopback registry and an isolated child environment.
PNPM_TEST_EXECUTABLEcan select a different executable without changing the repository's package-manager pin.This PR is independent of the native-support stack and does not change the repository's package-manager version or approve any downstream lockfile delta.