Project

General

Profile

« Previous | Next » 

Revision 674c9605

Added by deivid (David Rodríguez) over 2 years ago

[rubygems/rubygems] Fix incorrect removal of "ruby" platform from lockfile

When dependencies have changed, we'll be re-resolving, and we can't
really know whether the resolution will be valid or invalid for the Ruby
platform, so skip the removal in that case.

The fix worked, but made some other specs fail, and surfaced that the
@dependencies_changed attribute was actually being incorrect set when
explicitly unlocking. Fixed that with an early return.

https://github.com/rubygems/rubygems/commit/20d8f5e5d9