Skip to content

Fix deprecated depends_on macos: string-comparison format#3

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

Fix deprecated depends_on macos: string-comparison format#3
schloerke wants to merge 1 commit into
drcursor:mainfrom
schloerke:schloerke/fix-cask-depends-on-macos

Conversation

@schloerke

Copy link
Copy Markdown

Problem

Tapping/installing the cask emits a deprecation warning on every run:

Warning: Calling string comparison format for `depends_on macos:` is deprecated! Use `depends_on macos: :sequoia` instead.
  /opt/homebrew/Library/Taps/drcursor/homebrew-hushscribe/Casks/hushscribe.rb:10

Fix

A bare :sequoia symbol already means "Sequoia or newer", so the ">= :sequoia" string form is redundant and deprecated. This swaps it for the symbol form Homebrew recommends.

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

No change in behavior (still requires macOS Sequoia or newer); just clears the warning.

A bare :sequoia symbol already means ">= sequoia", so the
">= :sequoia" string-comparison form is both redundant and
deprecated in newer Homebrew, which emits a warning on every
tap/install:

  Calling string comparison format for `depends_on macos:` is
  deprecated! Use `depends_on macos: :sequoia` instead.
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.

1 participant