From 474656ffaa99932d06e8f67abdbb889bc8033452 Mon Sep 17 00:00:00 2001 From: apainintheneck Date: Fri, 4 Aug 2023 19:08:22 -0700 Subject: [PATCH] dev-cmd/bump : stop using API to load formulae/casks Even though the command already sets without_api that only affects how named args are loaded. In this command, we used to load many formulae and casks all at once using the API according to user settings. Now we just mandate that all loading must skip the API. --- Library/Homebrew/dev-cmd/bump.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index 9b85b10d1c..da8140a4f0 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -79,10 +79,12 @@ module Homebrew end end - if formulae_and_casks.present? - handle_formula_and_casks(formulae_and_casks, args) - else - handle_api_response(args) + Homebrew.with_no_api_env do + if formulae_and_casks.present? + handle_formula_and_casks(formulae_and_casks, args) + else + handle_api_response(args) + end end end