pnpm lock file update
See original GitHub issueAffected Packages
Not sure.
Problem
When using pnpm with changesets in a monorepo, after merging the “Update Versions” PR from the changesets action, CI breaks on the “Install” step since changesets has updated the versions in linked packages but has not updated the pnpm-lock.yaml
.
Proposed solution
I think after changesets updates linked package versions to the new/upcoming version, it should run pnpm install -r
(recursive) to update the lock file. Not sure if there is a better solution or how pnpm itself is handling this issue. Thoughts @zkochan ?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:15 (8 by maintainers)
Top Results From Across the Web
pnpm install
pnpm install is used to install all dependencies for a project. In a CI environment, installation fails if a lockfile is present but...
Read more >pnpm install doesn't refresh lock file · Issue #2807 - GitHub
Run pnpm i Scope: all 2 workspace projects Lockfile is up-to-date, resolution step is skipped ERROR Cannot install with "frozen-lockfile" ...
Read more >@pnpm/lockfile-file - npm
Start using @pnpm/lockfile-file in your project by running `npm i @pnpm/lockfile-file`. There are 30 other projects in the npm registry ...
Read more >npm - How to have `pnpm install` install everything exactly to ...
Running pnpm install --frozen-lockfile will work again, but not update the installed version.
Read more >Migrating to rules_js - Aspect's Bazel Documentation
rules_js uses the pnpm lockfile to declare dependency versions as well as a deterministic layout for the node_modules tree.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
On our side, we ended up using a custom sh script as temp fix:
Just making a note regarding Yarn Berry behaviour, maybe of interest or help with Googling this issue for others … commonly on CI we run
yarn install --immutable
but this will fail on the Version Packages PR since that has amended the dependency versions without updating the lockfile and outputs the following failure: