Repository navigation
bundle: protect alternate formula names - #24229
Merged
Merged
Conversation
AbdelrahmanHafez
marked this pull request as ready for review
October 12, 2026 19:18
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f5e33379-3df3-4158-92cd-11a971abea24
📒 Files selected for processing (5)
Library/Homebrew/bundle.rbLibrary/Homebrew/bundle/dsl.rbLibrary/Homebrew/test/bundle/bundle_spec.rbLibrary/Homebrew/test/bundle/dsl_spec.rbLibrary/Homebrew/test/cmd/bundle/cleanup_subcommand_spec.rb
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📜 Review details
🧰 Additional context used
📚 Code guidelines (1)
Generated by CodeRabbit — auto-discovered
📓 Path-based instructions (1)
Test command behavior and its observable effects, including stdout, stderr, exit status, and state changes as relevant.
📄 CodeRabbit inference engine (Generated by CodeRabbit)
Files:
Library/Homebrew/test/cmd/bundle/cleanup_subcommand_spec.rb
🔇 Additional comments (3)
Library/Homebrew/bundle/dsl.rb (1)
116-116: LGTM!Library/Homebrew/test/bundle/dsl_spec.rb (1)
193-193: LGTM!Library/Homebrew/test/cmd/bundle/cleanup_subcommand_spec.rb (1)
140-140: LGTM!Also applies to: 200-220
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
re #21350, #21351 and #24222
Receipt protection compares Brewfile entries with installed rack names. Aliases, old names and qualified names can therefore skip protection.
This resolves each entry before selecting its receipt. It keeps the direct write and permission fallback from #21410.
The new unit tests cover each name form.
Reproduce on a disposable Homebrew installation:
Before this change, cleanup removes
kubernetes-clidespite its Brewfile entry. With this change,kubernetes-cliremains installed.brew benchmarkresults.brewcommands to reproduce the bug?brew lgtm(style, typechecking and tests) locally?Astra 6 High generated the solution and the tests. Opus 5.5 High reviewed them independently. Tests reproduced the failure before the fix and passed afterward. I reviewed everything in this PR and believe I have good understanding for the problem and the solution. Will do my best answering without AI. :)