-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(pnpm): lockfile v6 is supported as low as version 7.24.2 #22562
fix(pnpm): lockfile v6 is supported as low as version 7.24.2 #22562
Conversation
Won't we need to change the install command as well? As mentioned in the release you linked. |
The specific issue we're hitting is this when renovate runs:
The 7.33.0 comes from our package.json file:
My assumption is that the 8 is coming from this code and that with no further changes renovate will be willing to install and use 7.32.x once it's not being asked to fulfill an impossible constraint |
Or was the question here whether pnpm is willing to read a lockfile and keep the version even pre-pnpm 8? I think it'd happily read a v6 lockfile from 7.x even if it defaults to writing a lower lockfile version sometimes for new lockfiles |
I mean the writing part. If it reads a v6 lockfile and we use the existing command Cause in the release its mentioned that to generate a v6 lockfile, we need to:
|
hopefully if the existing lock file is v6 it retains v6. But lock file maintenance in this case would probably fail |
I think it will depend on whether we delete the lockfile prior to regenerating it. I tried on replit, and when existing lockfile has v6 the version is retained but when creating a new one v5.4 was generated. |
Here's a unit test from the lockfile implementation PR for that release (https://github.com/pnpm/pnpm/pull/5810/files#diff-7a5adfdd88aa5f07a6a1565961975b0b31d34186446382fa34e98b219d0b78c9):
It looks to me like |
Hi there, Get your issue fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. To get started, please read our guide on creating a minimal reproduction. We may close the issue if you, or someone else, haven't created a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment. Good luck, The Renovate team |
🎉 This PR is included in version 35.110.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
can you create a minimal reproduction repo and open a discussion with it? it seems we need to add additional checks, when the |
I think we need to use "subset" from semver |
Yes |
Changes
Allow pnpm versions as low as 7.24.2 with pnpm lockfile version 6 (https://github.com/pnpm/pnpm/releases/tag/v7.24.2)
Context
We haven't upgraded to pnpm 8 yet but we do have a v6 lockfile, which is hitting trouble with the renovate-assumed pnpm version constraint.
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: