Skip to content

fix(cli): repair the broken pnpm lockfile - #542

Merged
blafourcade merged 1 commit into
nextfrom
fix/broken-pnpm-lockfile
Jul 28, 2026
Merged

blafourcade merged 1 commit into
nextfrom
fix/broken-pnpm-lockfile

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

🎯 What & why

cli/pnpm-lock.yaml on next has [email protected] duplicated verbatim in both the packages section (lines 2440/2444) and the snapshots section (4898/4900). pnpm rejects the file outright:

ERR_PNPM_BROKEN_LOCKFILE  The lockfile at ".../cli/pnpm-lock.yaml" is broken:
duplicated mapping key (2444:3)

Every CI job on every PR currently fails at the install step because of this — Lint, Typecheck, Test, Build, Knip, JSCPD all die in ~10s before running anything. It is not those PRs' contents.

🛠️ How it works

Regenerated with pnpm install --lockfile-only.

No dependency version changed. The diff touches zero resolution: lines — it is the duplicate removal plus reordering. I checked this specifically rather than regenerating and hoping, because a lockfile refresh can silently bump anything a caret range allows.

🧪 How to verify

pnpm install --frozen-lockfile exits 0 (it fails on next today).

Duplicate entries: 4 → 2, the 2 remaining being the legitimate one-per-section.

⚠️ Merge this first

Nothing else can go green until it lands. #541 is currently red purely from this and needs a re-run afterwards.

cli/pnpm-lock.yaml had [email protected] duplicated verbatim in both the
packages section (2440/2444) and the snapshots section (4898/4900). pnpm
rejects it outright:

  ERR_PNPM_BROKEN_LOCKFILE  ... broken: duplicated mapping key (2444:3)

Every CI job on every PR failed at the install step because of it, not
because of their own contents.

Regenerated with `pnpm install --lockfile-only`. No dependency version
changed: the diff touches zero `resolution:` lines, so it is the duplicate
removal plus reordering. `pnpm install --frozen-lockfile` now succeeds.
@blafourcade
blafourcade merged commit bd05a0d into next Jul 28, 2026
14 checks passed
blafourcade added a commit that referenced this pull request Jul 31, 2026
cli/pnpm-lock.yaml had [email protected] duplicated verbatim in both the
packages section (2440/2444) and the snapshots section (4898/4900). pnpm
rejects it outright:

  ERR_PNPM_BROKEN_LOCKFILE  ... broken: duplicated mapping key (2444:3)

Every CI job on every PR failed at the install step because of it, not
because of their own contents.

Regenerated with `pnpm install --lockfile-only`. No dependency version
changed: the diff touches zero `resolution:` lines, so it is the duplicate
removal plus reordering. `pnpm install --frozen-lockfile` now succeeds.
blafourcade added a commit that referenced this pull request Jul 31, 2026
cli/pnpm-lock.yaml had [email protected] duplicated verbatim in both the
packages section (2440/2444) and the snapshots section (4898/4900). pnpm
rejects it outright:

  ERR_PNPM_BROKEN_LOCKFILE  ... broken: duplicated mapping key (2444:3)

Every CI job on every PR failed at the install step because of it, not
because of their own contents.

Regenerated with `pnpm install --lockfile-only`. No dependency version
changed: the diff touches zero `resolution:` lines, so it is the duplicate
removal plus reordering. `pnpm install --frozen-lockfile` now succeeds.
@aidd-bot aidd-bot Bot mentioned this pull request Jul 31, 2026