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

Yarn Berry: Ensure multiple requirements are parsed correctly #5839

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

jurre
Copy link
Member

@jurre jurre commented Oct 6, 2022

When the lockfile contains multiple entries for a dependency that are resolved to a single version, the lockfile will contain an entry like so:

postcss@npm:^8.4.14, postcss@npm:^8.4.17, postcss@npm:^8.4.4":
  version: 8.4.17

This resulted in the requirements not matching, which would result in us picking the wrong version for that dependency in some cases.

By ensuring we match these correctly, that issue is resolved.

@jurre jurre requested a review from a team as a code owner October 6, 2022 11:23
@jurre jurre mentioned this pull request Oct 6, 2022
@jurre jurre force-pushed the jurre/yarn-berry-multiple-reqs branch from f0debcd to 99f713f Compare October 6, 2022 12:10
When the lockfile contains multiple entries for a dependency that are
resolved to a single version, the lockfile will contain an entry like
so:

```
postcss@npm:^8.4.14, postcss@npm:^8.4.17, postcss@npm:^8.4.4":
  version: 8.4.17
```

This resulted in the requirements not matching, which would result in us
picking the wrong version for that dependency in some cases.

By ensuring we match these correctly, that issue is resolved.
@jurre jurre force-pushed the jurre/yarn-berry-multiple-reqs branch from 99f713f to 95f118e Compare October 6, 2022 12:28
@jurre jurre merged commit 97ae98c into main Oct 6, 2022
@jurre jurre deleted the jurre/yarn-berry-multiple-reqs branch October 6, 2022 14:34
@pavera pavera mentioned this pull request Oct 31, 2022
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.

None yet

2 participants