Repository navigation
Pull invalid path components into a constant - #24418
Merged
Merged
Conversation
- `Tap.fetch`, `Keg#aliases` and `Cask::Artifact::App` each listed `""`, `.` and `..` as path components to reject; share one list as `Utils::INVALID_PATH_COMPONENTS`. Signed-off-by: Patrick Linnane <patrick@linnane.io>
Contributor
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Shared invalid-component checks Library/Homebrew/utils.rb, Library/Homebrew/cask/artifact/app.rb, Library/Homebrew/keg.rb, Library/Homebrew/tap.rb |
Utils::INVALID_PATH_COMPONENTS defines the empty string, "." and "..". The staged-path, alias and tap-name checks use this constant. The alias and tap-name checks retain their slash rejection. |
Merge Risk: 
Minimal · up to 58544
-
No concrete merge-blocking defect was identified in the validation centralization.
Pre-merge checks: 
4
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 1, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 1, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 1, 2026
7 of 8 tasks
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.
Tap.fetch,Keg#aliasesandCask::Artifact::Appeach listed"",.and..as path components to reject, so this shares one list asUtils::INVALID_PATH_COMPONENTS.brew benchmarkresults.brewcommands to reproduce the bug?brew lgtm(style, typechecking and tests) locally?Claude Code (Opus 5.5) wrote the change and ran
brew lgtm --online.