Merge pull request #16231 from Bo98/vendor-gem-workaround

dev-cmd/vendor-gems: workaround Dependabot removing lockfile platforms
This commit is contained in:
Mike McQuaid 2023-11-17 17:02:07 +00:00 committed by GitHub
commit 78b7d7e2d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,11 @@ module Homebrew
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