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(resolver): Only optimize patterns in flat mode #4613

Merged
merged 1 commit into from
Oct 3, 2017

Conversation

BYK
Copy link
Member

@BYK BYK commented Oct 3, 2017

Summary

Fixes #4550. The optimization introduced in #4488 should only
apply to flat installations since even if a single pattern can
satisfy all resolved versions, it is not guaranteed that it is
strict enough for resolving correctly for all patterns under all
circumstances.

Test plan

Manual verification.

**Summary**

Fixes #4550. The optimization introduced in #4488 should only
apply to flat installations since even if a single pattern can
satisfy all resolved versions, it is not guaranteed that it is
strict enough for resolving correctly for all patterns under all
circumstances.

**Test plan**

Manual verification.
@BYK BYK requested a review from arcanis October 3, 2017 11:27
@BYK
Copy link
Member Author

BYK commented Oct 3, 2017

I'm not happy that we don't have a test case for this but I have tried so hard to create a minimal test case and I've failed. I also couldn't get tests work properly with the provided package.json file or even a reduced version of it. I think it is a combination of too many dependencies and our ad-hoc request cache so we need to look into that later.

@arcanis arcanis merged commit e3a1fe3 into master Oct 3, 2017
@BYK BYK deleted the optimization-flat branch October 3, 2017 15:35
joaolucasl pushed a commit to joaolucasl/yarn that referenced this pull request Oct 27, 2017
**Summary**

Fixes yarnpkg#4550. The optimization introduced in yarnpkg#4488 should only
apply to flat installations since even if a single pattern can
satisfy all resolved versions, it is not guaranteed that it is
strict enough for resolving correctly for all patterns under all
circumstances.

**Test plan**

Manual verification.
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.

can't seem to install request@^2.82.0 and request-promise-native@^1.0.5 together
2 participants