Skip to content

Yarn Berry: Ensure multiple requirements are parsed correctly#5839

Merged
jurre merged 1 commit intomainfrom
jurre/yarn-berry-multiple-reqs
Oct 6, 2022
Merged

Yarn Berry: Ensure multiple requirements are parsed correctly#5839
jurre merged 1 commit intomainfrom
jurre/yarn-berry-multiple-reqs

Conversation

@jurre
Copy link
Copy Markdown
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.

2 participants