fix(cask): use symbol form for depends_on macos (deprecated string comparison)#14
Open
chen86860 wants to merge 1 commit into
Open
fix(cask): use symbol form for depends_on macos (deprecated string comparison)#14chen86860 wants to merge 1 commit into
chen86860 wants to merge 1 commit into
Conversation
Homebrew has deprecated the string comparison format (depends_on macos: ">= :catalina") and now warns on every brew update/install for users of this tap: Warning: Calling string comparison format for `depends_on macos:` is deprecated! Use `depends_on macos: :catalina` instead. The bare symbol form now means "this version or newer", so the semantics are unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
Owner
|
非常感谢能投入时间提这个PR!这个问题之前有大佬提过,说他安装包错,改成了大于等于号。如果只是 WARNING 级别的不影响安装的话,可以忽略,谢谢! |
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.
Problem
Every
brew update/brew installfor users of thehdusy/tokenscopetap currently prints:Homebrew has deprecated the string comparison format (
depends_on macos: ">= :catalina"). The bare symbol form now means "this macOS version or newer", sodepends_on macos: :catalinakeeps the exact same semantics without the warning.Fix
The cask in the tap repo is regenerated from the heredoc template in
.github/workflows/release.ymlon every release, so the fix belongs here — patching onlyHduSy/homebrew-tokenscopewould get overwritten by the next tag push.This PR updates the template:
Note: the currently-published cask in
HduSy/homebrew-tokenscopestill carries the old format; it's worth applying the same one-line change there directly so existing users stop seeing the warning before the next release. I've opened a matching PR against the tap repo as well.🤖 Generated with Claude Code