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

Optimistically exclude prereleases from initial resolution #6246

Merged
merged 3 commits into from
Jan 11, 2023

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Jan 6, 2023

What was the end-user or developer problem that led to this PR?

Sometimes, resolution may end up choosing a prerelease version, but normally end users do not want prereleases at all, unless they explicitly request them.

What is your fix for the problem, implemented in this PR?

Do an optimistic first pass that resolves without prereleases. This should work in most cases, since normally resolutions don't need prereleases. Only if that fails, do a second pass considering prereleases.

This should also speed up most resolutions, since the search space is greatly reduced by default. As an example, Rails has 437 releases as of today, and 162 of them are prereleases.

Fixes #6226.

Make sure the following tasks are checked

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

Successfully merging this pull request may close these issues.

bundler 2.4.1 resolves unexpected version
1 participant