Skip to content
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

fix(core): handle alias in LegacyMigrationResolver #2570

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Mar 5, 2021

What's the problem this PR addresses?

The LegacyMigrationResolver doesn't preserve aliases when migrating Yarn v1 projects.

Fixes #2012

How did you fix it?

When creating the locator check if the range contains a valid descriptor, if it does, use it as the basis for the locator.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@merceyz merceyz requested a review from arcanis as a code owner March 5, 2021 21:55
@merceyz merceyz force-pushed the merceyz/legacy-migration-alias branch from 14e92c6 to b214de0 Compare March 5, 2021 21:59
@arcanis arcanis merged commit 63bc091 into master Mar 8, 2021
@arcanis arcanis deleted the merceyz/legacy-migration-alias branch March 8, 2021 15:26
@kinow kinow mentioned this pull request Apr 28, 2021
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] LegacyMigrationResolver fails to handle aliases
2 participants