Skip to content

Commit

Permalink
Merge pull request #16231 from Bo98/vendor-gem-workaround
Browse files Browse the repository at this point in the history
dev-cmd/vendor-gems: workaround Dependabot removing lockfile platforms
  • Loading branch information
MikeMcQuaid authored Nov 17, 2023
2 parents b2716f0 + 58ff22e commit 78b7d7e
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 78b7d7e

Please sign in to comment.