Skip to content

Commit

Permalink
Fix invalid platform removal missing adjacent platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Nov 17, 2023
1 parent d38522f commit 518ca87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bundler/lib/bundler/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ def additional_base_requirements_for_resolve(resolution_packages, last_resolve)
def remove_invalid_platforms!(dependencies)
return if Bundler.frozen_bundle?

platforms.each do |platform|
platforms.dup.each do |platform|
next if local_platform == platform ||
(@new_platform && platforms.last == platform) ||
@path_changes ||
Expand Down
1 change: 1 addition & 0 deletions bundler/spec/install/gemfile/specific_platform_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@
sorbet-static (0.5.10696-x86_64-linux)
PLATFORMS
aarch64-linux
arm-linux
x86_64-linux
Expand Down

0 comments on commit 518ca87

Please sign in to comment.