New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frozen-lockfile fails in CI environment using the latest pnpm version #5187
Comments
Do you use |
No, auto-install-peers is not set. |
So the issue is that we added the publishDirectory field to the lockfile. You probably just need to update your lockfile. |
Hm...ok. Our CI usually uses the latest PNPM 7.x version. I assume this is then not recommended as the build might suddenly fail? Would you suggest always using a fixed version of pnpm in CI environments? |
It is your choice. I try to not cause such issues but of course pinning the version is the most reliable solution. |
Thanks, this issue can be considered solved. |
- utilize pnpm/action-setup in conjunction with actions/setup-node to be able to cache - pin used pnpm version to avoid build problems in case the lockfile format has changed (see pnpm/pnpm#5187)
Changing the |
- utilize pnpm/action-setup in conjunction with actions/setup-node to be able to cache - pin used pnpm version to avoid build problems in case the lockfile format has changed (see pnpm/pnpm#5187)
Possibly related to #5124 but the problem is not fixed for us. Maybe this is even intended?
pnpm version:
7.9.0
Code to reproduce the issue:
Expected behavior:
The installation works. No error or non-zero exit code.
Actual behavior:
Lockfile is up to date, resolution step is skipped
ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json
Exit Code: 1
Additional information:
node -v
prints: v16.15.0The text was updated successfully, but these errors were encountered: