question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ENHANCEMENT] Avoid GitHub action failure due to broken pnpm-lock.yaml

See original GitHub issue

I noticed a few errors occurred in the GitHub Actions because the pnpm-lock.yaml file was broken. This may have happened due to merges of different branches while both updated the lockfile.

There are two consequences that emerge from this:

  1. Broken pnpm-lock.yaml on master
  2. GitHub action fails and components are not published

In order to fix #2, we can add the --fix-lockfile tag to avoid the action failure.

For #1, I think the lockfile would eventually be corrected after some merges, but we may think of a way to automatically update and commit after (or before) merging with master.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
andrewjschuangcommented, Jul 15, 2022

Could we also run pnpm install with the --fix-lockfile option in the pre-push/post-merge git hooks so the lockfile is automatically fixed when master is merged into a branch?

Yep, done

1reaction
js07commented, Jul 15, 2022

Could we also run pnpm install with the --fix-lockfile option in the pre-push/post-merge git hooks so the lockfile is automatically fixed when master is merged into a branch?

Read more comments on GitHub >

github_iconTop Results From Across the Web

turbo prune produces a broken pnpm-lock.yaml lockfile with ...
I updated the PR to now have better error messaging and it should handle injected dev and optional dependencies now.
Read more >
"Broken lockfile: no entry for" when 'pnpm install --no-optional'
I'm having this issue as well, pnpm complains about not finding a dep on the lock file but the lock file has that...
Read more >
Faulty exception message when using pnpm #7182 - GitHub
For missing packages when using pnpm the error message says to remove package-lock.json, also to perhaps execute npm install both of which ...
Read more >
Stop pnpm from generating pnpm-lock.yaml #4970 - GitHub
I want to use pnpm to save space but don't want to rewrite other people's repositories to use pnpm. Is there a way...
Read more >
`pnpm i` followed by `pnpm i --frozen-lockfile` complains about ...
The error occurs in the projects that have peerDependencies in the package.json. When I remove peerDependencies , the install succeeds. I even ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found