Repository navigation
Conversation
… matches Casks are matched to apps by file name only. That misses apps whose file name is not in the cask data and mismatches apps with generic names: Studio.app (BrickLink Studio) was matched to the unrelated wordpresscom-studio cask. - If the file name finds nothing, fall back to the cask's bundle identifiers (taken from its zap/uninstall data). A cask is only accepted when its token or display name also resembles the app's name, because identifiers appear in other casks' cleanup lists (Safari under raindropio, Word under bookends). Ties resolve to an exact name, then to the base cask over its variants. Apple apps are never matched. - A name-only match is rejected when the cask lists identifiers that share neither the exact identifier nor the vendor with the app, unless the cask's token or display name equals the app's name. - Entry now decodes the cask's display names. Relates to mangerlahn#297. Adds tests for the matching rules; they construct a repository from entries through a new internal initializer. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Relates to #297 (false positives for Homebrew casks).
Matching is by app file name only today, so generic names match unrelated casks (for example BrickLink's
Studio.appmatcheswordpresscom-studio), and renamed apps match nothing. This change:zoomoverzoom-for-it-admins).Tests (
UpdateRepositoryTest): a renamed app matched by identifier, base cask preferred over variants, identifier-only matches rejected without a resembling name (Safari, an unrelated app), generic-name match rejected on conflicting identifiers, and whole-component vendor comparison.It touches the same area as #584 (empty OS version strings); I'm happy to rebase on whichever lands first.
Written with Claude's help. I have been running this on my own machine. The only failure in the suite is
VersionParserTest.testEmptyVersionParsing, which already fails onmain.🤖 Generated with Claude Code