Merge pull request #20282 from Homebrew/bottle_tab_runtime_dependencies-fix

formula_installer: ignore bottle_tab_runtime_dependencies errors
This commit is contained in:
Bo Anderson 2025-07-20 16:58:48 +00:00 committed by GitHub
commit d0959bbd02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -331,10 +331,14 @@ class FormulaInstaller
Tab.clear_cache Tab.clear_cache
# Setup bottle_tab_runtime_dependencies for compute_dependencies # Setup bottle_tab_runtime_dependencies for compute_dependencies
begin
@bottle_tab_runtime_dependencies = formula.bottle_tab_attributes @bottle_tab_runtime_dependencies = formula.bottle_tab_attributes
.fetch("runtime_dependencies", []).then { |deps| deps || [] } .fetch("runtime_dependencies", []).then { |deps| deps || [] }
.each_with_object({}) { |dep, h| h[dep["full_name"]] = dep } .each_with_object({}) { |dep, h| h[dep["full_name"]] = dep }
.freeze .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? verify_deps_exist unless ignore_deps?