From 7ee35c6a0c79259c16c48bfe5a77bf4e26b4c85a Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Tue, 6 Sep 2022 12:59:13 -0400 Subject: [PATCH] Allow developers to use dev commands and `HOMEBREW_INSTALL_FROM_API` --- Library/Homebrew/brew.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb index 44168b4dc1..81258f27e1 100644 --- a/Library/Homebrew/brew.rb +++ b/Library/Homebrew/brew.rb @@ -86,7 +86,8 @@ begin end if internal_cmd || Commands.external_ruby_v2_cmd_path(cmd) - if Commands::INSTALL_FROM_API_FORBIDDEN_COMMANDS.include?(cmd) && Homebrew::EnvConfig.install_from_api? + if Commands::INSTALL_FROM_API_FORBIDDEN_COMMANDS.include?(cmd) && + Homebrew::EnvConfig.install_from_api? && !Homebrew::EnvConfig.developer? odie "This command cannot be run while HOMEBREW_INSTALL_FROM_API is set!" end