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

Drop -- in pnpm invocation for pnpm 7+ #1432

Merged
merged 7 commits into from
Jun 23, 2022
Merged

Conversation

gsoltis
Copy link
Contributor

@gsoltis gsoltis commented Jun 23, 2022

pnpm handling of -- changed for v7.

This is not the ideal way to implement this check, but our current abstraction of backends doesn't really allow for anything stateful (e.g. version). Rather than make a new backend for pre- and post-pnpm@7, I added a check for the version that runs once per turbo run when pnpm is being used.

A better implementation might in the future include a stateful version field in the backend and the ability to check semver constraints.

@vercel
Copy link

vercel bot commented Jun 23, 2022

Deployment failed with the following error:

Creating the Deployment Timed Out.

@vercel
Copy link

vercel bot commented Jun 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
turbo-site ⬜️ Ignored (Inspect) Jun 23, 2022 at 10:49PM (UTC)

@gsoltis gsoltis changed the title Drop -- in pnpm invocation Drop -- in pnpm invocation for pnpm 7+ Jun 23, 2022
Copy link
Contributor

@jaredpalmer jaredpalmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super annoying that we even have to do this, but good for now.

@jaredpalmer jaredpalmer merged commit 11e7a87 into main Jun 23, 2022
@jaredpalmer jaredpalmer deleted the gsoltis/fix_pnpm_invocation branch June 23, 2022 22:49
@nathanhammond
Copy link
Contributor

This is the upstream change: pnpm/pnpm#4290
This is the description of that change: pnpm/pnpm#4652 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants