-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
yarn 1.10.0 is really slow (compared to 1.9.4) #6430
Comments
I just tried upgrading, I use yarn workspaces and yarn never correctly resolved all of my workspace packages, I could just keep running |
I believe this is because yarn >=1.10.0 will try to add Unfortunately yarn seems to do this extra work, even when using In your case, have you tried committing the updated |
not sure if you are talking to me, but I am doing this locally so version control doesn't matter here and I am not using |
@edmorley Yes, that was exactly it, thank you! Once I committed the lockfile changes, yarn stopped doing all the extra work. Maybe there could be a helpful message to the user in this scenario? Otherwise it's really not clear why yarn is suddenly struggling to do its normal business. |
Even after updating and committing the |
meanwhile, any workarounds besides using an older version of yarn? |
This is fixed with yarn 1.12 (don't know about 1.11) |
I'm running version 1.10.0 on Windows 10, after having just upgraded from 1.9.4. All yarn operations are taking noticeably longer than they should. I tried clearing my cache, but that hasn't helped.
As a concrete example, if I run
yarn install --pure-lockfile
over and over, subsequent invocations take a really long time to complete, even though there's nothing to be done. Version 1.9.4 did not work like this; it always finished within a second or two, saying that there was nothing to be done.Here's what I see with 1.10.0:
Those runtimes (nearly 5 minutes!) are pretty ridiculous considering nothing has to be done. If I downgrade to 1.9.4, the bad behavior goes away:
Even clearing the cache takes a lot longer in the new version. I think something is very broken here.
The text was updated successfully, but these errors were encountered: