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

Keep implicit taps #1495

Merged
merged 5 commits into from
Nov 15, 2024
Merged

Keep implicit taps #1495

merged 5 commits into from
Nov 15, 2024

Conversation

tt
Copy link
Contributor

@tt tt commented Nov 11, 2024

I have a Brewfile that contains the following line:

brew "heroku/brew/heroku"

Running brew bundle cleanup --verbose includes the following output:

Would untap:
heroku/brew

However, this tap can't be removed as the fomula depends on it.

Considering you can install formulae without explicitly adding a tap declaration, it seems that these should be respected when computing which taps to keep.

This change does that: Any tap found in a brew declaration will automatically be kept.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Thanks @tt! Good idea. Looking good so far.

lib/bundle/commands/cleanup.rb Outdated Show resolved Hide resolved
spec/stub/formula.rb Show resolved Hide resolved
@tt tt requested a review from MikeMcQuaid November 14, 2024 10:26
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @tt! One small tweak and we should be good to go.

lib/bundle/commands/cleanup.rb Outdated Show resolved Hide resolved
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Thanks so much for your great, first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @tt!

@MikeMcQuaid MikeMcQuaid merged commit 144757e into Homebrew:master Nov 15, 2024
5 checks passed
@tt tt deleted the keep-implicit-taps branch November 15, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants