-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Migrate to Yarn v2 to resolve duplicate dependency issues #3164
Comments
I've looked at migrating to yarn v2 before - one major problem for us is the lack of support from some of the tools we use right now; for example, Dependabot only supports npm and yarn v1; we'd need to find another tool to use to do that. See dependabot/dependabot-core#1297 (comment) - GitHub says that yarn 2 adoption is low; and cites it as the primary reason for them to delay implementing support for it; though yarn maintainers disagree. https://github.com/renovatebot/renovate does support yarn however; its a discussion on if it would be worth switching tools for it to work. In addition, vscode is still on yarn 1, and "re-migrating" everytime we pull the VSCode tree may not be worth the effort; we'd end up having a split between yarn 2 for our main package and yarn 1 inside I also looked at moving to npm v7 (which does support reading It's ultimately a question if the migration has benefits that outweigh the cost (potential confusion because v1/v2 mix; migrating from dependabot to renovatebot) |
Another important note that I didn't add above; npm v7 currently doesn't have an alternative to yarn's |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
Removed stale label as I think this still applies |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
In #3161, @scinos suggested we use
yarn-deduplicate
to fix duplicate dependencies in our lockfile (link to comment). The yarn-deduplicate project README says:So it seems like we could consider migrating to v2 as an alternative way to avoid this problem. The yarn documentation mentions that it's intended to be installed on a per-project basis (rather than globally) so we should be able to progressively upgrade our projects. There is also a migration guide that provides step-by-step instructions.
The text was updated successfully, but these errors were encountered: