Merge pull request #20501 from Homebrew/formula-no-tab-fix

Fix formula installs without a tab
This commit is contained in:
Bo Anderson 2025-08-18 20:23:33 +00:00 committed by GitHub
commit a7e338d520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1591,7 +1591,7 @@ on_request: installed_on_request?, options:)
keg = Keg.new(formula.prefix)
skip_linkage = formula.bottle_specification.skip_relocation?
keg.replace_placeholders_with_locations(tab.changed_files, skip_linkage:) if tab.changed_files
keg.replace_placeholders_with_locations(tab.changed_files, skip_linkage:)
cellar = formula.bottle_specification.tag_to_cellar(Utils::Bottles.tag)
return if [:any, :any_skip_relocation].include?(cellar)

View File

@ -167,7 +167,7 @@ class Keg
relocation
end
sig { params(files: T::Array[Pathname], skip_linkage: T::Boolean).void }
sig { params(files: T.nilable(T::Array[Pathname]), skip_linkage: T::Boolean).void }
def replace_placeholders_with_locations(files, skip_linkage: false)
relocation = prepare_relocation_to_locations.freeze
relocate_dynamic_linkage(relocation) unless skip_linkage