From 1af398068cbb0b551b898ff3a25478b7d0d75fe4 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Thu, 26 Oct 2023 20:20:53 +0100 Subject: [PATCH] dev-cmd/pr-upload: fix gems not being installed with --upload-only --- Library/Homebrew/dev-cmd/pr-upload.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/pr-upload.rb b/Library/Homebrew/dev-cmd/pr-upload.rb index 6dbab64852..971a191e72 100644 --- a/Library/Homebrew/dev-cmd/pr-upload.rb +++ b/Library/Homebrew/dev-cmd/pr-upload.rb @@ -92,6 +92,8 @@ module Homebrew 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? @@ -125,8 +127,6 @@ module Homebrew 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"]