Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
https://github.com/abejfehr/pnpm-skip-build-issue-repro
Reproduction steps
- Create a new project with a
pnpm-workspace.yaml file with strictDepBuilds: true
- Run
pnpm add sqlite3, and observe that this fails because an ignored build
- Add
'sqlite3': false to the pnpm-workspace.yaml file under allowBuilds
- Run
pnpm install, observe that it still fails for the same reason
- Run
rm node_modules/.modules.yaml
- Run
pnpm install and everything is fine now
Describe the Bug
It feels like skipping a build in pnpm-workspace.yaml doesn't invalidate the cache.
If you allow the build with true, then it does.
Expected Behavior
I would expect to have been able to run pnpm install without failure after adding 'sqlite3': false to my allowBuilds
Which Node.js version are you using?
25.5.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
https://github.com/abejfehr/pnpm-skip-build-issue-repro
Reproduction steps
pnpm-workspace.yamlfile withstrictDepBuilds: truepnpm add sqlite3, and observe that this fails because an ignored build'sqlite3': falseto thepnpm-workspace.yamlfile underallowBuildspnpm install, observe that it still fails for the same reasonrm node_modules/.modules.yamlpnpm installand everything is fine nowDescribe the Bug
It feels like skipping a build in
pnpm-workspace.yamldoesn't invalidate the cache.If you allow the build with
true, then it does.Expected Behavior
I would expect to have been able to run
pnpm installwithout failure after adding'sqlite3': falseto myallowBuildsWhich Node.js version are you using?
25.5.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response