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: fail early for top level deps out of sync pnpm and updated tests #249

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

gemaxim
Copy link
Contributor

@gemaxim gemaxim commented Aug 13, 2024

What this does

We should throw OutOfSync early if top level deps were not found in extracted lockfile packages.

Updated tests for pnpm/npm/yarn: we shouldn't use try-catch to test a failing scenario because if if the function doesn't fail as expected the test still passes

@gemaxim gemaxim requested a review from a team as a code owner August 13, 2024 12:53
@gemaxim gemaxim self-assigned this Aug 13, 2024
@@ -34,15 +34,6 @@ export const getPnpmChildNode = (
resolvedVersion = pkgData.version;
}
if (!pkgs[childNodeKey]) {
if (lockfileParser.isWorkspaceLockfile()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed anymore because workspace importers are added to extracted packages and we should fail with OutOfSync if not found there

@gemaxim gemaxim merged commit 097c766 into main Aug 15, 2024
2 checks passed
@gemaxim gemaxim deleted the fix/out-of-sync-pnpm branch August 15, 2024 15:34
@snyksec
Copy link

snyksec commented Aug 15, 2024

🎉 This PR is included in version 1.58.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants