FormulaInstaller: rescue tap unavail for reqs too
Calling `compute_dependencies` will make sure both requirements and dependencies are expanded, so that any referenced taps can be auto-tapped. Prior to this commit only dependencies were expanded for the sake of auto-tapping, so dependencies of requirements would cause installation to fail whenever a tap unavailable exception was encountered. Closes Homebrew/homebrew#50271 Closes Homebrew/homebrew#50281. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
a87eb23a3b
commit
9bbaaca98c
@ -126,7 +126,7 @@ class FormulaInstaller
|
|||||||
|
|
||||||
def verify_deps_exist
|
def verify_deps_exist
|
||||||
begin
|
begin
|
||||||
formula.recursive_dependencies.map(&:to_formula)
|
compute_dependencies
|
||||||
rescue TapFormulaUnavailableError => e
|
rescue TapFormulaUnavailableError => e
|
||||||
if e.tap.installed?
|
if e.tap.installed?
|
||||||
raise
|
raise
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user