Skip to content

Keep resolved prereleases when sorting install requests - #10100

Merged
hsbt merged 1 commit into
ruby:masterfrom
hsbt:sort-resolved-prereleases
Nov 20, 2026
Merged

hsbt merged 1 commit into
ruby:masterfrom
hsbt:sort-resolved-prereleases

Conversation

@hsbt

@hsbt hsbt commented Nov 20, 2026

Copy link
Copy Markdown
Member

gem install and gem install --explain can fail while sorting when two gems share a dependency and one requires a prerelease. The resolver selects a version that satisfies both requirements, but sorting rejects it when checking the dependency that does not explicitly request a prerelease.

Match each dependency against the resolved specification so RubyGems can install the gems in dependency order.

Fixes #10085.

A transitive dependency can require a prerelease that also satisfies another dependency. Checking prerelease eligibility again for each dependency can reject the version the resolver selected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rubygems: bug fix skip old stable Leave out of releases on the old stable line

Projects

None yet

1 participant