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 error message when it runs out of versions due to --strict --patch filtering out everything #7527

Merged
merged 11 commits into from Apr 1, 2024

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Mar 21, 2024

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

In some resolver edge cases, we end up giving a confusing error message.

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

Refactor the resolver to detect the situation and give a better error. While figuring things out, I also included several resolver improvements like avoiding version sorting when not necessary, and sorting in descending order directly instead of sorting in ascending order and then reversing.

Fixes #7369.
Supersedes #7376.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the resolver-improvements branch 2 times, most recently from abbba71 to dd62e13 Compare March 27, 2024 11:52
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review March 28, 2024 15:36
@deivid-rodriguez deivid-rodriguez changed the title Improve resolver error message when it runs out of versions due to --strict --patch filtering out everything Fix resolver error message when it runs out of versions due to --strict --patch filtering out everything Mar 28, 2024
@deivid-rodriguez deivid-rodriguez merged commit a384c33 into master Apr 1, 2024
83 checks passed
@deivid-rodriguez deivid-rodriguez deleted the resolver-improvements branch April 1, 2024 15:03
deivid-rodriguez added a commit that referenced this pull request Apr 4, 2024
Fix resolver error message when it runs out of versions due to `--strict --patch` filtering out everything

(cherry picked from commit a384c33)
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 unable to lock new gem version even after publication
1 participant