pnpm / pnpm/action-setup

Partial cache re-use on pnpm install --frozen-lockfile

Open
#153 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
217
Avg merge
8h 42m
Merged PRs (30d)
1

Description

👋 I have an issue using this action with the following github action setup

runs:
    using: composite
    steps:
        - name: Install pnpm
          uses: pnpm/action-setup@4 # v4
        - name: Install Node & NPM
          uses: actions/setup-node@4 # v4
          with:
              node-version-file: '.nvmrc'
              cache: 'pnpm'
        - name: Install dependencies
          shell: bash
          run: pnpm install --frozen-lockfile

The issue is the cache is restored but it isn't fully re-used.

When the installation happening, I see only about half of the packages. are reused:

Screenshot 2024-12-20 at 15 07 01

Progress: resolved 2359, reused 1037, downloaded 141, added 1171

Locally, all the packages are reusued.

What could be causing this? how can I debug it?

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 with the workflow configuration in the issue and the pnpm install output, then compare the restored GitHub Actions cache with the local installation's reuse counts. Determine what causes the partial reuse and document a reproducible debugging path or configuration change that makes the expected cache behavior clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, nodejs, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.