Be more explicit that we want the formula name

This commit is contained in:
Issy Long 2025-07-03 11:29:50 +01:00 committed by GitHub
parent 5310c5e730
commit c7af63488d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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