pnpm / action-setup

Install pnpm package manager
https://github.com/marketplace/actions/setup-pnpm
MIT License
899 stars 87 forks source link

pnpm logs two different content-addressable store paths #71

Open axelboc opened 1 year ago

axelboc commented 1 year ago

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
zkochan commented 1 year ago

It is hard to fix. The whole action should be rewritten.

offizium-berndstorath commented 2 months ago

@zkochan Whats the status on this?