Skip to content

Retry resolution with transitive prereleases - #10110

Merged
hsbt merged 1 commit into
ruby:masterfrom
hsbt:retry-transitive-prereleases
Nov 20, 2026
Merged

hsbt merged 1 commit into
ruby:masterfrom
hsbt:retry-transitive-prereleases

Conversation

@hsbt

@hsbt hsbt commented Nov 20, 2026

Copy link
Copy Markdown
Member

bundle install and bundle lock can report that every version of a dependency conflicts even when a prerelease would work. Bundler can miss that prerelease when the dependency appears only on the satisfier side of a PubGrub conflict.

When the usual retries are exhausted, check that side for gems with filtered prereleases and retry resolution with those candidates.

Fixes #10080.

A compatible prerelease can appear only on the satisfier side of a PubGrub conflict. Check that side when the usual retries are exhausted so Bundler can resolve the bundle while preserving existing lock and source preferences.
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.

bundle install / bundle lock fails without considering a transitive prerelease dependency when a conflicting stable release exists

1 participant