You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
yarn upgrade gives different lock file randomly #2467
If I run yarn upgrade repeatedly, I sometimes get the result that one dependency changed (correct behavior), sometimes I get a lot of dependencies removed (not expected).
If the current behavior is a bug, please provide the steps to reproduce.
The files in the gist are attempt1.diff, attempt1.lock, attempt2.diff and attempt2.lock. I put the diffs in there for making it easier to see the difference. They're the diff from the state of my repo from last time dependencies changed. Only one dependency really changed (object-assign) but as you can see in attempt1.diff it removed a bunch of dependencies.
What is the expected behavior?
The same result every time I run yarn upgrade (assuming external dependencies weren't changed in the meantime).
Please mention your node.js, yarn and operating system version.
I just retested this with 0.19.1 and in about 1/10 times I get the following diff after running yarn upgrade (the other times I get a clean diff because no dependencies really changed):
Activity
blixt commentedon Jan 17, 2017
I just retested this with 0.19.1 and in about 1/10 times I get the following diff after running
yarn upgrade(the other times I get a clean diff because no dependencies really changed):https://gist.github.com/blixt/ccfbc8ebea437e3d6109bc28ea8059cb
paul-soporan commentedon Jan 2, 2021
Closing as fixed in the v2.
https://yarnpkg.com/getting-started/migration