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

feat: ignore-compatibility-db #5140

Merged
merged 1 commit into from Aug 1, 2022
Merged

feat: ignore-compatibility-db #5140

merged 1 commit into from Aug 1, 2022

Conversation

zkochan
Copy link
Member

@zkochan zkochan commented Aug 1, 2022

close #5132

hooks.push(createPackageExtender(fromPairs(compatPackageExtensions)))
if (!ignoreCompatibilityDb) {
hooks.push(createPackageExtender(fromPairs(compatPackageExtensions)))
}
Copy link
Member

Choose a reason for hiding this comment

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

#5132 (comment) :

It's also worth considering whether these fixups should be applied earlier, since pnpmfile.cjs is less useful if it is not the final authority about version selections.

(This part could maybe be a separate PR since it doesn't affect our use case with ignoreCompatibilityDb=true. But I do suspect that users would be surprised to learn that the input to pnpmfile.cjs does not reflect some hooks, and the actions of pnpmfile.cjs may get overridden by compatibility db fixups.)

Copy link
Member

@octogonz octogonz left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix! 🙏

@zkochan Could we backport this to PNPM 6?

@zkochan zkochan merged commit 29a8159 into main Aug 1, 2022
@zkochan zkochan deleted the ignore-compatibility-db branch August 1, 2022 22:47
zkochan added a commit that referenced this pull request Aug 1, 2022
@zkochan
Copy link
Member Author

zkochan commented Aug 1, 2022

Could we backport this to PNPM 6?

yes

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.

PNPM mysteriously installs unrelated packages
2 participants