Skip to content

Commit a55a2fc

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Reset existing specs when using Bundler::SpecSet#[]=
We have a flaky failure where to equal Bundler specs sneak into the same SpecSet. This seems like a vector where that could happen so trying this in case it fixes the flaky. ruby/rubygems@a33aeb3c4d
1 parent a64c697 commit a55a2fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/bundler/spec_set.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def [](key)
8383
end
8484

8585
def []=(key, value)
86+
delete_by_name(key)
87+
8688
add_spec(value)
8789
end
8890

0 commit comments

Comments
 (0)