[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.

https://github.com/rubygems/rubygems/commit/a33aeb3c4d
This commit is contained in:
David Rodríguez 2025-01-31 20:14:52 +01:00 committed by Hiroshi SHIBATA
parent a64c697b22
commit a55a2fc6e8
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -83,6 +83,8 @@ module Bundler
end
def []=(key, value)
delete_by_name(key)
add_spec(value)
end