diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index f71354f0895ae89ec2f77c63d3199e9e87cdf97e..0eb089b14922db2ef6f1552ed34f79e4e0a42b9a 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -175,7 +175,7 @@ module Formulary def get_formula(spec, force_bottle: false, flags: [], **) contents = Utils::Bottles.formula_contents @bottle_filename, name: name formula = begin - Formulary.from_contents(name, @bottle_filename, contents, spec, force_bottle: force_bottle, flags: flags) + Formulary.from_contents(name, path, contents, spec, force_bottle: force_bottle, flags: flags) rescue FormulaUnreadableError => e opoo <<~EOS Unreadable formula in #{@bottle_filename}: