Repository navigation
chore: update lockfile, Node.js, and pnpm versions - #12989
Conversation
There was a problem hiding this comment.
zkochan has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe root ChangesPackage manager update
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoUpdate pnpm to 12.0.0-alpha.10 and refresh pnpm lockfile
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. PM specifier mismatch
|
| packageManagerDependencies: | ||
| '@pnpm/exe': | ||
| specifier: 12.0.0-alpha.9 | ||
| version: 12.0.0-alpha.9 | ||
| specifier: next-12 | ||
| version: 12.0.0-alpha.10 | ||
| pnpm: | ||
| specifier: 12.0.0-alpha.9 | ||
| version: 12.0.0-alpha.9 | ||
| specifier: next-12 | ||
| version: 12.0.0-alpha.10 |
There was a problem hiding this comment.
1. Pm specifier mismatch 🐞 Bug ☼ Reliability
pnpm-lock.yaml records packageManagerDependencies.*.specifier as next-12 while package.json pins [email protected], but pacquet considers the env lockfile up-to-date only when both specifier and version exactly match. With --frozen-lockfile, pacquet will fail because it tries to refresh packageManagerDependencies; without it, it will unnecessarily redo package-manager resolution and rewrite the env lockfile.
Agent Prompt
## Issue description
The first (env) document in `pnpm-lock.yaml` now stores `packageManagerDependencies` specifiers as `next-12`, but pacquet derives the wanted specifier from `package.json` (here: `12.0.0-alpha.10`) and requires an exact match (`dep.specifier == wanted_specifier`). This mismatch makes pacquet treat the env lockfile as stale and, in `--frozen-lockfile` mode, error out instead of using the committed lockfile.
## Issue Context
- `package.json` pins pnpm to `12.0.0-alpha.10`.
- pacquet’s env-installer checks both the specifier and version; when stale and `frozen_lockfile` is enabled, it errors.
## Fix Focus Areas
- pnpm-lock.yaml[8-14]
- package.json[63-74]
- pnpm/crates/env-installer/src/resolve_package_manager_integrities.rs[30-42]
- pnpm/crates/env-installer/src/resolve_package_manager_integrities.rs[122-143]
- pnpm/crates/cli/src/cli_args/package_manager.rs[26-51]
## What to change
- Update/regenerate the env lockfile so `packageManagerDependencies.pnpm.specifier` and `packageManagerDependencies['@pnpm/exe'].specifier` match the manifest’s wanted specifier (`12.0.0-alpha.10`), not `next-12`.
- After the change, verify that a pacquet install path that enables `--frozen-lockfile` no longer attempts to mutate `packageManagerDependencies`.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
…pendencies specifier (#12992) `pnpm self-update <dist-tag>` resolved the tag to an exact version and wrote it into devEngines.packageManager.version, but recorded the raw dist-tag as the packageManagerDependencies specifier in pnpm-lock.yaml. pacquet validates that specifier against the manifest under --frozen-lockfile, so the mismatch made a later frozen install fail with FrozenLockfileOutdated (the cause of the invalid lockfile in #12989, hot-fixed in #12990). Both self-update call sites now record the resolved pin: the project-pin path stores the updated devEngines constraint (the value a later install reads back) via a new package_manager_pin_specifier helper, and the global-switch path stores the resolved version. The TypeScript CLI already derived the specifier from the resolved version and is unaffected.
This automated PR refreshes the project's pinned versions:
next-12release (packageManageranddevEngines.packageManager).Created by the update-lockfile workflow.
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit