pnpm / pnpm/action-setup

pnpm logs two different content-addressable store paths

Open
#71 2 comments 0 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

When pnpm/action-setup installs pnpm, the logs show:

Content-addressable store is at: /home/runner/.pnpm-store/v3

image

But when pnpm installs the dependencies, it logs another path:

Content-addressable store is at: /home/runner/setup-pnpm/node_modules/.bin/store/v3

image

The second one is correct. Is it because PNPM_HOME is set after the installation of pnpm instead of before?

I'm not passing anything special to the actions:

- name: Install pnpm ⚙️
  uses: pnpm/action-setup@v2
  with:
    version: 7.x

- name: Install dependencies ⚙️
  run: pnpm install --frozen-lockfile

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 pnpm/action-setup@v2 workflow step and compare its installation environment with the following pnpm install --frozen-lockfile step. Trace when PNPM_HOME and the content-addressable store path are set; the work is done when both log messages report the same intended store path.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.