pnpm / pnpm/setup

v2.0.2 failing

Open
#29 2 comments 1 reaction 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

Last week I was using v2.0.0 without issue, but now with v2.0.2 my jobs are getting this error:

Installing pnpm...
  Downloading pnpm 11.13.0 from the npm registry
  ==> Downloading pnpm 11.13.0
Error: ENOENT: no such file or directory, rename '/github/home/setup-pnpm/.unpack/@pnpm-linux-x64/package/pnpm' -> '/github/home/setup-pnpm/pnpm'
    at Object.renameSync (node:fs:1013:11)
Error: Error: ENOENT: no such file or directory, rename '/github/home/setup-pnpm/.unpack/@pnpm-linux-x64/package/pnpm' -> '/github/home/setup-pnpm/pnpm'
    at SCe (/__w/_actions/pnpm/setup/v2/dist/index.js:326:843)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async xCe (/__w/_actions/pnpm/setup/v2/dist/index.js:328:146)
    at async sNt (/__w/_actions/pnpm/setup/v2/dist/index.js:328:1546)
    at async aNt (/__w/_actions/pnpm/setup/v2/dist/index.js:338:421)
    at async BNt (/__w/_actions/pnpm/setup/v2/dist/index.js:338:3917)
    at async CNt (/__w/_actions/pnpm/setup/v2/dist/index.js:338:3802) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'rename',
  path: '/github/home/setup-pnpm/.unpack/@pnpm-linux-x64/package/pnpm',
  dest: '/github/home/setup-pnpm/pnpm'
}

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 by reproducing the v2.0.2 GitHub Actions installation with the pnpm version that triggers the ENOENT error. Inspect the generated dist/index.js around the stack location at line 326 and compare the v2.0.0 and v2.0.2 behavior. Done means pnpm installs successfully in the affected job without the rename error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, node.js, typescript
Domain
ci-cd, tooling
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.