Merge pull request #20201 from Homebrew/fix-dry-run-install

Fix "undefined method 'name' for an instance of FormulaInstaller"
This commit is contained in:
Issy Long 2025-07-03 10:47:12 +00:00 committed by GitHub
commit 4b85b24531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,7 +327,7 @@ module Homebrew
end end
if dry_run if dry_run
if (formulae_name_to_install = formula_installers.map(&:name)) if (formulae_name_to_install = formula_installers.map { |fi| fi.formula.name })
ohai "Would install #{Utils.pluralize("formula", formulae_name_to_install.count, ohai "Would install #{Utils.pluralize("formula", formulae_name_to_install.count,
plural: "e", include_count: true)}:" plural: "e", include_count: true)}:"
puts formulae_name_to_install.join(" ") puts formulae_name_to_install.join(" ")