Skip to content

fix(cask): use symbol form for depends_on macos (deprecated string comparison)#14

Open
chen86860 wants to merge 1 commit into
HduSy:mainfrom
chen86860:fix/cask-depends-on-macos
Open

fix(cask): use symbol form for depends_on macos (deprecated string comparison)#14
chen86860 wants to merge 1 commit into
HduSy:mainfrom
chen86860:fix/cask-depends-on-macos

Conversation

@chen86860

Copy link
Copy Markdown

Problem

Every brew update / brew install for users of the hdusy/tokenscope tap currently prints:

Warning: Calling string comparison format for `depends_on macos:` is deprecated! Use `depends_on macos: :catalina` instead.
Please report this issue to the hdusy/homebrew-tokenscope tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/hdusy/homebrew-tokenscope/Casks/tokenscope.rb:10

Homebrew has deprecated the string comparison format (depends_on macos: ">= :catalina"). The bare symbol form now means "this macOS version or newer", so depends_on macos: :catalina keeps the exact same semantics without the warning.

Fix

The cask in the tap repo is regenerated from the heredoc template in .github/workflows/release.yml on every release, so the fix belongs here — patching only HduSy/homebrew-tokenscope would get overwritten by the next tag push.

This PR updates the template:

-            depends_on macos: ">= :catalina"
+            depends_on macos: :catalina

Note: the currently-published cask in HduSy/homebrew-tokenscope still 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

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>
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@HduSy

HduSy commented Jul 15, 2026

Copy link
Copy Markdown
Owner

非常感谢能投入时间提这个PR!这个问题之前有大佬提过,说他安装包错,改成了大于等于号。如果只是 WARNING 级别的不影响安装的话,可以忽略,谢谢!
Thank you very much for taking the time to submit this PR! A friend mentioned this problem before, saying that he installed the package incorrectly and i changed it to a greater than or equal sign to fix it. If it is only a WARNING level tip and does not affect the installation, you can ignore it, thank you!

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