Skip to content
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

Raise expected errors when unsupported PNPM versions are used #8147

Merged
merged 4 commits into from
Nov 1, 2023

Conversation

deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented Oct 6, 2023

Closes #7500.

I expect this to fix a bunch of errors in our internal board, but of course will also break for repos where it's actually working.

I don't think this needs a deprecation changelog since we have documented v7 and v8 as the only supported versions from the beginning.

#7298 would make transition easier for users but I think pnpm v6 is old enough so that this PR does not need to block on that feature.

@deivid-rodriguez deivid-rodriguez requested a review from a team as a code owner October 6, 2023 06:37
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/raise-on-old-pnpm branch from f7a99bc to b3207fd Compare October 6, 2023 06:41
@deivid-rodriguez deivid-rodriguez marked this pull request as draft October 6, 2023 07:09
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/raise-on-old-pnpm branch 3 times, most recently from c14f810 to a7b7ecb Compare October 6, 2023 14:10
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review October 6, 2023 14:34
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/raise-on-old-pnpm branch 2 times, most recently from 133fc35 to 62d2982 Compare October 12, 2023 07:16
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/raise-on-old-pnpm branch 3 times, most recently from 1e4fe03 to ffc5bb5 Compare November 1, 2023 11:53
The locked_version name wrongly suggests that the version is picked up
from the lockfile.
Unless `packageManager` is used in `package.json`, using `pnpm
--version` will always return the latest version we have installed, so
we won't be able to detect unsupported versions unless the
version is requested explicitly in `package.json` file.

This way we'll be able to detect running the latest PNPM against very
old lockfiles and raise an error in those situations.
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/raise-on-old-pnpm branch from ffc5bb5 to 907b518 Compare November 1, 2023 15:18
@deivid-rodriguez deivid-rodriguez merged commit 5a21b49 into main Nov 1, 2023
80 checks passed
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/raise-on-old-pnpm branch November 1, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raise an error if we find unsupported PNPM versions
4 participants