Replies: 2 comments
-
|
There are only two different semver versions referenced in the lock file:
Wondering why a dedupe would fail. Is it trying to downgrade the |
Beta Was this translation helpful? Give feedback.
-
|
Your instinct is right — this is a false positive, and it's a known issue tracked in pnpm/pnpm#10202. Why semver@6.3.1 triggers it The trust check is date-based, not semver-based. pnpm looks at all published versions of the package (across all majors) and asks: "did any version published before this one have stronger trust evidence?" It doesn't restrict that comparison to the same major version.
Why dedupe fails but install doesn't
How to fix it If you're on pnpm v10.22+, # pnpm-workspace.yaml
trustPolicy: no-downgrade
trustPolicyExclude:
- 'semver@6'If you're on v10.27+, # pnpm-workspace.yaml
trustPolicy: no-downgrade
trustPolicyIgnoreAfter: 525600 # 1 year in minutesIf you'd rather not set The underlying cross-major comparison behavior was flagged in the issue above and closed without changing the logic (the fix was only to improve the error message). So |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
commands:
AFAIK there was no other version prior to 6.3.1 which had attestation.
Do I miss something here or why would 6.3.1 fail to install?
Update: Actually it's the
dedupecommand which fails after theupdatecommand.Beta Was this translation helpful? Give feedback.
All reactions