-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
formula_auditor: audit for deprecated dependencies #12770
Conversation
Review period will end on 2022-01-24 at 14:37:11 UTC. |
Library/Homebrew/formula_auditor.rb
Outdated
@@ -289,6 +289,12 @@ def audit_deps | |||
|
|||
next unless @core_tap | |||
|
|||
if dep_f.deprecated? && !formula.deprecated? | |||
problem <<~EOS | |||
Dependency '#{dep.name}' is deprecated. Formulae with dependents should not be deprecated. |
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.
I think it would be good to clarify that the formula with the audit problem isn't the one that needs changing (probably). Maybe something like this:
Dependency '#{dep.name}' is deprecated. Formulae with dependents should not be deprecated. | |
Dependency '#{dep.name}' should be un-deprecated because it has dependents that are not deprecated. |
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.
Or, I guess:
Dependency '#{dep.name}' is deprecated. Formulae with dependents should not be deprecated. | |
Dependency '#{dep.name}' is deprecated but has un-deprecated dependents. Either un-deprecate '#{dep.name}' or deprecate its dependents (including '#{formula.name}). |
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.
Added a variation of your second suggestion.
Review period ended. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Library/Homebrew/formula_auditor.rb
Outdated
@@ -289,6 +289,12 @@ def audit_deps | |||
|
|||
next unless @core_tap | |||
|
|||
if dep_f.deprecated? && !formula.deprecated? |
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.
if dep_f.deprecated? && !formula.deprecated? | |
if dep_f.deprecated? && !formula.deprecated? && !formula.disabled? |
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.
Wouldn't we want to know when formula are more than deprecated?
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.
What do you mean by "more than deprecated"?
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770.
Needed for Homebrew/brew#12770. Missed from Homebrew#106848.
|
Needed for Homebrew/brew#12770. Missed from #106848. Closes #106860. Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
This formula still has two dependents. Needed for Homebrew/brew#12770.
This formula still has two dependents. Needed for Homebrew/brew#12770. Closes #106888. Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Closes #12748.
This will probably require a bunch of changes in Homebrew/core.