fix(deps): repair broken pnpm-lock.yaml (duplicate mapping key)#296
Merged
Conversation
The lockfile on main had a duplicated mapping key from squash-merging multiple Dependabot JS dependency PRs, breaking pnpm install --frozen-lockfile and failing Web/MCP/SDK CI jobs. Regenerated with pnpm@8.15.1 (lockfileVersion 6.0). Co-authored-by: Cursor <cursoragent@cursor.com>
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
The
pnpm-lock.yamlonmainbecame corrupted with a duplicated mapping key (/@mdx-js/react@3.1.1(@types/react@19.2.17)(react@19.2.7)at line 5599) after squash-merging the batch of Dependabot JS dependency PRs (#280, #285, #283, #286). This brokepnpm install --frozen-lockfile, failing every CI job that installs JS deps.Impact (before fix)
CI→ failure:Web — Lint & Type-check,MCP — Type-check, Test & Build,SDK — TypeScript (vitest)all failed atInstall pnpm dependencieswithERR_PNPM_BROKEN_LOCKFILE ... duplicated mapping key (5599:3)Security Audit→ failure: sameInstall pnpm dependenciesstep exited 1Fix
Regenerated the lockfile with the repo-pinned
pnpm@8.15.1(pnpm install --lockfile-only). Minimal diff: the 26-line duplicate@mdx-js/reactblock is removed,lockfileVersion: '6.0'preserved, andpnpm install --frozen-lockfilepasses locally.Test plan
pnpm install --frozen-lockfilesucceeds locally (pnpm@8.15.1)@mdx-js/react@3.1.1entryMade with Cursor