diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-08-24 10:32:38 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-09-12 22:13:30 +0900 |
commit | 03d1962703a5c5eb137d25bf382861157605e6e1 (patch) | |
tree | 8a9540be02f2d5dec8633d24707c7387819be101 /lib/bundler/resolver.rb | |
parent | dce73c8616eb2e91cb0330c9b32f3edf8e771a67 (diff) | |
download | ruby-03d1962703a5c5eb137d25bf382861157605e6e1.tar.gz |
[rubygems/rubygems] Remove unnecessary sorting
Already done by the gem version promoter.
https://github.com/rubygems/rubygems/commit/aae2cc9fe0
Diffstat (limited to 'lib/bundler/resolver.rb')
-rw-r--r-- | lib/bundler/resolver.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index 86b7177624..f70e1a3395 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -127,13 +127,6 @@ module Bundler results = results_for(dependency) + locked_results results = results.select {|spec| requirement_satisfied_by?(locked_requirement, nil, spec) } if locked_requirement - if !@prerelease_specified[name] && locked_results.empty? - # Move prereleases to the beginning of the list, so they're considered - # last during resolution. - pre, results = results.partition {|spec| spec.version.prerelease? } - results = pre + results - end - if results.any? results = @gem_version_promoter.sort_versions(dependency, results) |