summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrey Baker <greysteil@gmail.com>2018-08-06 17:57:17 +0100
committerGrey Baker <greysteil@gmail.com>2018-08-15 01:01:45 +0100
commit750012c382b90b44ce44937a759f562e1b340725 (patch)
tree29527f8e81e337cf4f3357df01b1566188d83b25
parent33166ba1c8cc95f7585bc6e8d594014dc6dc8d29 (diff)
downloadbundler-750012c382b90b44ce44937a759f562e1b340725.tar.gz
Don't mutate original error trees when determining version_conflict_message
-rw-r--r--lib/bundler/resolver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb
index 3fd1706371..a6c26ffc6b 100644
--- a/lib/bundler/resolver.rb
+++ b/lib/bundler/resolver.rb
@@ -317,7 +317,7 @@ module Bundler
:possibility_type => possibility_type,
:reduce_trees => lambda do |trees|
# called first, because we want to reduce the amount of work required to find maximal empty sets
- trees.uniq! {|t| t.flatten.map {|dep| [dep.name, dep.requirement] } }
+ trees = trees.uniq {|t| t.flatten.map {|dep| [dep.name, dep.requirement] } }
# bail out if tree size is too big for Array#combination to make any sense
return trees if trees.size > 15