From 65853d9bab7e99d7698c4615ce4db14971704ded Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sun, 20 Jul 2025 16:02:43 +0100 Subject: [PATCH] formula_installer: ignore bottle_tab_runtime_dependencies errors --- Library/Homebrew/formula_installer.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 29ffe24071..b1f7d3db99 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -331,10 +331,14 @@ class FormulaInstaller Tab.clear_cache # Setup bottle_tab_runtime_dependencies for compute_dependencies - @bottle_tab_runtime_dependencies = formula.bottle_tab_attributes - .fetch("runtime_dependencies", []).then { |deps| deps || [] } - .each_with_object({}) { |dep, h| h[dep["full_name"]] = dep } - .freeze + begin + @bottle_tab_runtime_dependencies = formula.bottle_tab_attributes + .fetch("runtime_dependencies", []).then { |deps| deps || [] } + .each_with_object({}) { |dep, h| h[dep["full_name"]] = dep } + .freeze + rescue Resource::BottleManifest::Error + # If we can't get the bottle manifest, assume a full dependencies install. + end verify_deps_exist unless ignore_deps?