New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install, upgrade: recompute dependencies before installation #12004
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! A naming suggestion. Another option would be recompute:
or similar.
@@ -358,7 +358,7 @@ def install | |||
raise UnbottledError, [formula] if !pour_bottle? && !formula.bottle_unneeded? && !DevelopmentTools.installed? | |||
|
|||
unless ignore_deps? | |||
deps = compute_dependencies | |||
deps = compute_dependencies(force: true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deps = compute_dependencies(force: true) | |
deps = compute_dependencies(use_cache: false) |
def compute_dependencies(force: false) | ||
@compute_dependencies = nil if force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def compute_dependencies(force: false) | |
@compute_dependencies = nil if force | |
def compute_dependencies(use_cache: true) | |
@compute_dependencies = nil unless use_cache |
536eebe
to
06041f7
Compare
Thanks again @FnControlOption! |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Fix for #11989
#11940 and #11963 cause the method
compute_dependencies
to be invoked before any formulae have been installed, so dependencies must be recomputed at installation.