pnpm / pnpm/setup

Error: The installed pnpm reports version 11.21.0, expected 11.22.0

Open
#34 6 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
140
Forks
19
Avg merge
13h 19m
Merged PRs (30d)
3

Description

Summary

pnpm/setup@v2 (pinned 84cb39b, tag v2.0.2) resolved a devEngines.packageManager range of >=11 to pnpm 11.22.0, downloaded it via get-pnpm, but the extracted binary reported version 11.21.0 when run with --version — failing the action's post-download sanity check.

Where it happened

Failed run: https://github.com/hyunbinseo/neis-school-info/actions/runs/31900129059
Failed step: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 (v2.0.2)

package.json

"devEngines": {
  "packageManager": { "name": "pnpm", "version": ">=11", "onFail": "download" }
}

Log

Installing pnpm...
Downloading pnpm 11.22.0 from the npm registry
==> Downloading pnpm 11.22.0
Error: The installed pnpm reports version 11.21.0, expected 11.22.0

Timing

  • pnpm@11.22.0 published to npm at 2026-08-15T17:15:57.450Z.
  • This run's pnpm/setup step started at 2026-08-15T18:04:51Z, ~49 minutes later.

Hypothesis

The download passed get-pnpm's signature/checksum verification, so this isn't corruption — likely a propagation race between the registry packument and the served binary shortly after release.

Suggestion

Retry with backoff when the post-download version check fails for a range/dist-tag spec (not an exact pin), since that mismatch is more likely transient than real corruption.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the pnpm/setup@v2 post-download sanity check and trace how get-pnpm resolves range or dist-tag specifications. Reproduce the reported 11.22.0-to-11.21.0 mismatch if possible, then verify that retries with backoff apply to non-exact specs while exact pins still fail on a version mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.