-
Notifications
You must be signed in to change notification settings - Fork 604
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
[rush] Rush fails to install under pnpm v5.0.0. #1892
Comments
I fixed the issue with the option but I think pnpm v5 will not work with current Rush. I did some optimizations and skipped a workaround that was added for Rush: https://github.com/pnpm/pnpm/blob/acf3dbc570131359ce3a731f0178c3a0058c3137/packages/supi/test/install/local.ts#L167
|
With pnpm 5.0.1 rush projects works fine. You only get a warning. |
what about, when you change the dependencies in one of the projects? |
This seems like incorrect behavior for PNPM. (A
We are working on this in #1897 . But there are a number of steps before it will reach feature parity with the old way. And it will take time for all users to migrate to the new thing. In the meantime, it doesn't look good to be stranded on PNPM 4 permanently. We need get it fixed.
I don't see how this can work. But maybe I am misunderstanding something. |
ok, it will work the same in v5 |
@octogonz @zkochan We filed issues with tarball handling on pnpm repo last year: pnpm/pnpm#1882, pnpm/pnpm#1889 |
Just a quick update (I know things are being worked out and actively discussed):
PNPM does run the little “A newer version of PNPM is available, upgrade to 5.1.2,” script every so often. |
Got this error trying to update to
|
The --resolution-strategy option is deprecated in pnpm v5. It doesn't fail the installation but it should be written as --resolution-strategy=<value>. Otherwise, pnpm cannot tell that the argument is the value of the deprecated option. ref microsoft#1892
Thanks @zkochan for making this fix! 👍👍 Please test Rush 5.24.4 and confirm that PNPM 5 is working with these changes. If nobody has further issues, we'll close this issue. |
For our 3k+ dependencies, 40 packages, 400k+ loc project it works so far. |
@octogonz:
|
I agree with the above. If it cannot be quickly removed, we may need another ticket to have Rush not pass those flags when using PNPM >= v5. |
Issue for the warnings on pnpm v5: #1937 |
Hi @ALL Thanks in advance |
Closing this ticket as the original issue has been fixed. Regarding the additional question:
Rush always installs its own copy of PNPM, as specified in |
Is this a feature or a bug?
Please describe the actual behavior.
pnpm v5.0.0 has removed
--no-lock
as a flag, which now raises an error if used. As a result, Rush will fail to install if a user configures their rush.json file to use pnpm v5.0.0.I noticed that pnpm v5.0.0 came out of release candidacy, but may still be a pre-release version. In any case, if it is released in its current form and users upgrade, they'll encounter the error. v5 seems to have some great features, so I would expect eager teams to want to test.
Release Notes: pnpm v5.0.0 where it references the following:
An issue on pnpm/pnpm was raised, more so for awareness.
If the issue is a bug, how can we reproduce it? Please provide detailed steps and include a GitHub branch if applicable. Your issue will get resolved faster if you can make it easy to investigate.
The error received is:
The fix seems relatively straightforward. Remove the --no-lock flag during the install process.
What is the expected behavior?
Rush should install the dependencies normally.
If this is a bug, please provide the tool version, Node.js version, and OS.
The text was updated successfully, but these errors were encountered: