Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
[SpecSet] Sort by name in #tsort
Browse files Browse the repository at this point in the history
This is required for backwards compatibility, see
issue #5696 for an example
  • Loading branch information
segiddins committed Jun 6, 2017
1 parent 28ab085 commit 0c8cbfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bundler/spec_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def lookup
end

def tsort_each_node
@specs.each {|s| yield s }
# MUST sort by name for backwards compatibility
@specs.sort_by(&:name).each {|s| yield s }
end

def spec_for_dependency(dep, match_current_platform)
Expand Down

0 comments on commit 0c8cbfd

Please sign in to comment.