-
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 upgrade fails to use latest version in deep dependency case #3115
Comments
@alivedise you are taking about this is issue right? its the same problem I'm having I think 🤔 |
👍 |
@OmerHerera one other suggestion I have that does seem to work is you can find and delete the entry in the lockfile for the dependency you want to upgrade, before running |
@gpoole The problem deleting the entry in the |
Oh yep, I can see an integrity check warning but for me removing a single entry didn't cause the any other entries to be updated, just the missing entry was re-added with a newer version. I also deleted the lockfile to compare results and a whole bunch of entries were changed in the regenerated version, so it does seem to work in 0.23.3. |
I'll close this issue in favor of #2394, since it includes a very useful test git repository. I've also shared some thoughts there :) |
Do you want to request a feature or report a bug?
bug or feature..it depends.
What is the current behavior?
My app depends on package A, and package A depends package B
so in app's package.json it only has package A.
in package A's package.json it is having package B.
Now if package B upgrades from 0.0.1 to 0.0.2,
then we do
package A will still use 0.0.1; if we open yarn.lock to check what happened:
there're two versions of package B in yarn.lock:
B 0.0.1
B 0.0.2
A does not specify the version of B, so it should use 0.0.2, but it does not.
yarn still installs 0.0.1 in B's folder.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
If version is not specified, whenever upgrading, using the latest tag.0
Please mention your node.js, yarn and operating system version.
yarn 0.22.0
The text was updated successfully, but these errors were encountered: