Skip to content

Commit

Permalink
Merge pull request #16144 from Bo98/pr-upload-gem-fix
Browse files Browse the repository at this point in the history
dev-cmd/pr-upload: fix gems not being installed with --upload-only
  • Loading branch information
Bo98 committed Oct 26, 2023
2 parents 295dda3 + 1af3980 commit ce63b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/dev-cmd/pr-upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def pr_upload
odie "No bottle JSON files found in the current working directory" if json_files.blank?
bottles_hash = bottles_hash_from_json_files(json_files, args)

Homebrew.install_bundler_gems!(groups: ["pr_upload"])

unless args.upload_only?
bottle_args = ["bottle", "--merge", "--write"]
bottle_args << "--verbose" if args.verbose?
Expand Down Expand Up @@ -125,8 +127,6 @@ def pr_upload

check_bottled_formulae!(bottles_hash)

Homebrew.install_bundler_gems!(groups: ["pr_upload", "style"])

safe_system HOMEBREW_BREW_FILE, *bottle_args

json_files = Dir["*.bottle.json"]
Expand Down

0 comments on commit ce63b7c

Please sign in to comment.