[rubygems/rubygems] Fix invalid platform removal missing adjacent platforms

https://github.com/rubygems/rubygems/commit/4ce66c41a2
This commit is contained in:
Bo Anderson 2023-11-17 04:27:24 +00:00 committed by git
parent 5e16003eec
commit 57fa69f26f
2 changed files with 2 additions and 1 deletions

View File

@ -972,7 +972,7 @@ module Bundler
def remove_invalid_platforms!(dependencies)
return if Bundler.frozen_bundle?
platforms.each do |platform|
platforms.reverse_each do |platform|
next if local_platform == platform ||
(@new_platform && platforms.last == platform) ||
@path_changes ||

View File

@ -746,6 +746,7 @@ RSpec.describe "bundle install with specific platforms" do
sorbet-static (0.5.10696-x86_64-linux)
PLATFORMS
aarch64-linux
arm-linux
x86_64-linux