formula_installer: ignore bottle_tab_runtime_dependencies errors

This commit is contained in:
Bo Anderson 2025-07-20 16:02:43 +01:00
parent e8048606d1
commit 65853d9bab
No known key found for this signature in database

View File

@ -331,10 +331,14 @@ class FormulaInstaller
Tab.clear_cache
# Setup bottle_tab_runtime_dependencies for compute_dependencies
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?