-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Verify latest release
- I verified that the issue exists in the latest pnpm release
pnpm version
9.12.2
Which area(s) of pnpm are affected? (leave empty if unsure)
Store
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
- Install a pinned dependency in a new clean environment using 9.12.1
- Take a snapshot of the store
- Install a pinned dependency in a new clean environment using 9.12.2
- Take a snapshot of the store
- Compare store contents
Describe the Bug
9.12.2 (specifically #8625) caused existing stores to become out-of-date as some executables were renamed to include a -exec suffix. This caused pnpm install --offline to fail, as it tried to redownload affected packages.
Expected Behavior
At Nixpkgs/NixOS we rely on the store being reproducible within a major version of pnpm and because of this minor change to the store, we had to revalidate all cached instances of pnpm stores in Nixpkgs (affecting 34 stores). (See NixOS/nixpkgs#349093)
While we can handle this happening sometimes within a major revision of pnpm, we would like to keep these to a minimum to reduce resource usage.
We would like a change of the Store version (i.e. v3 -> v4) and some backwards compatibility with old stores or even a major bump (i.e. pnpm 10) in these cases, but this issue shall serve as a discussion starter around what is considered breaking and what isn't.
(Sorry if I picked the wrong issue template)
Which Node.js version are you using?
22.9.0
Which operating systems have you used?
- macOS
- Windows
- Linux
If your OS is a Linux based, which one it is? (Include the version if relevant)
NixOS