Merge pull request #15701 from MikeMcQuaid/bump_install_bundler

dev-cmd/bump-*-pr: avoid installing gems when unneeded.
This commit is contained in:
Mike McQuaid 2023-07-18 11:08:09 +01:00 committed by GitHub
commit 1423543e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -59,9 +59,9 @@ module Homebrew
def bump_cask_pr
args = bump_cask_pr_args.parse
# This will be run by `brew style` later so run it first to not start
# spamming during normal output.
Homebrew.install_bundler_gems!
# This will be run by `brew audit` or `brew style` later so run it first to
# not start spamming during normal output.
Homebrew.install_bundler_gems! if args.no_audit? && args.no_style?
# As this command is simplifying user-run commands then let's just use a
# user path, too.

View File

@ -117,7 +117,7 @@ module Homebrew
# This will be run by `brew audit` later so run it first to not start
# spamming during normal output.
Homebrew.install_bundler_gems!
Homebrew.install_bundler_gems! unless args.no_audit?
tap_remote_repo = formula.tap.full_name || formula.tap.remote_repo
remote = "origin"