-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: mismatched pnpm lockfile version resolution (#3611)
Fixes #3564 I created a regression when adding support for pnpm `lockfileVersion: 6` that caused us to not include some indirect dependencies of a workspace. A package would be missing only if a workspace had a direct dependency on the package that was also included as an indirect dependency where the version ranges didn't overlap. See the new test fixture for a basic version of how this could occur. Huge thanks to @shawnmcknight for providing a reproduction!
- Loading branch information
1 parent
68aed07
commit 6f91b4b
Showing
3 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
lockfileVersion: 5.4 | ||
|
||
importers: | ||
packages/a: | ||
specifiers: | ||
ci-info: ^2.0.0 | ||
is-ci: ^3.0.1 | ||
dependencies: | ||
ci-info: 2.0.0 | ||
is-ci: 3.0.1 | ||
|
||
packages: | ||
/ci-info/2.0.0: | ||
resolution: | ||
{ | ||
integrity: sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==, | ||
} | ||
dev: false | ||
|
||
/ci-info/3.7.1: | ||
resolution: | ||
{ | ||
integrity: sha512-4jYS4MOAaCIStSRwiuxc4B8MYhIe676yO1sYGzARnjXkWpmzZMMYxY6zu8WYWDhSuth5zhrQ1rhNSibyyvv4/w==, | ||
} | ||
engines: { node: ">=8" } | ||
dev: false | ||
|
||
/is-ci/3.0.1: | ||
resolution: | ||
{ | ||
integrity: sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==, | ||
} | ||
hasBin: true | ||
dependencies: | ||
ci-info: 3.7.1 | ||
dev: false |