From 58ff22eb558a2818437425945f0eadabe2565e15 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 17 Nov 2023 16:51:03 +0000 Subject: [PATCH] dev-cmd/vendor-gem: workaround Dependabot removing lockfile platforms --- Library/Homebrew/dev-cmd/vendor-gems.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/dev-cmd/vendor-gems.rb b/Library/Homebrew/dev-cmd/vendor-gems.rb index e11cc54e3e277..ef07ee13c33e6 100644 --- a/Library/Homebrew/dev-cmd/vendor-gems.rb +++ b/Library/Homebrew/dev-cmd/vendor-gems.rb @@ -54,6 +54,11 @@ def vendor_gems ohai "bundle pristine" safe_system "bundle", "pristine" + # Workaround Bundler 2.4.21 issue where platforms may be removed. + # Although we don't use 2.4.21, Dependabot does as it currently ignores your lockfile version. + # https://github.com/rubygems/rubygems/issues/7169 + safe_system "bundle", "lock", "--add-platform", "aarch64-linux", "arm-linux" + if args.non_bundler_gems? %w[ mechanize