Skip to content
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

Merged
merged 2 commits into from Jul 30, 2022

Conversation

carlocab
Copy link
Member

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Closes #12748.

This will probably require a bunch of changes in Homebrew/core.

@BrewTestBot
Copy link
Member

Review period will end on 2022-01-24 at 14:37:11 UTC.

@BrewTestBot BrewTestBot added the waiting for feedback Merging is blocked until sufficient time has passed for review label Jan 21, 2022
@@ -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.
Copy link
Member

@Rylan12 Rylan12 Jan 21, 2022

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:

Suggested change
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.

Copy link
Member

@Rylan12 Rylan12 Jan 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or, I guess:

Suggested change
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}).

Copy link
Member Author

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.

@BrewTestBot BrewTestBot added waiting for feedback Merging is blocked until sufficient time has passed for review and removed waiting for feedback Merging is blocked until sufficient time has passed for review labels Jan 23, 2022
@BrewTestBot
Copy link
Member

Review period ended.

@github-actions
Copy link

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.

@github-actions github-actions bot added the stale No recent activity label Feb 15, 2022
@carlocab carlocab removed the stale No recent activity label Feb 17, 2022
@@ -289,6 +289,12 @@ def audit_deps

next unless @core_tap

if dep_f.deprecated? && !formula.deprecated?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if dep_f.deprecated? && !formula.deprecated?
if dep_f.deprecated? && !formula.deprecated? && !formula.disabled?

Copy link
Member

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?

Copy link
Member Author

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"?

@Bo98 Bo98 added the in progress Maintainers are working on this label Mar 14, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 29, 2022
carlocab added a commit to carlocab/homebrew-core that referenced this pull request Jul 29, 2022
@carlocab
Copy link
Member Author

php@7.4 error fixed in Homebrew/homebrew-core#106849.

ykclient error waiting for Homebrew/homebrew-core#106860. Once that's merged this should be ready to go.

BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 30, 2022
Needed for Homebrew/brew#12770.

Missed from #106848.

Closes #106860.

Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
carlocab added a commit to carlocab/homebrew-core that referenced this pull request Jul 30, 2022
This formula still has two dependents. Needed for Homebrew/brew#12770.
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Jul 30, 2022
This formula still has two dependents. Needed for Homebrew/brew#12770.

Closes #106888.

Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
@carlocab carlocab enabled auto-merge July 30, 2022 05:15
@carlocab carlocab merged commit e217fd3 into Homebrew:master Jul 30, 2022
@carlocab carlocab deleted the deprecated-dependencies branch July 30, 2022 05:27
@github-actions github-actions bot added the outdated PR was locked due to age label Aug 30, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in progress Maintainers are working on this outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audit deprecated formulae for undeprecated dependents
6 participants