Skip to content

Commit

Permalink
dev-cmd/vendor-gem: workaround Dependabot removing lockfile platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Nov 17, 2023
1 parent 25d1f10 commit 58ff22e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Library/Homebrew/dev-cmd/vendor-gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58ff22e

Please sign in to comment.