Skip to content

Homebrew warning: deprecated string comparison in brew-browser cask #64

@ChrisLauinger77

Description

@ChrisLauinger77

Problem

Running brew upgrade emits this warning from the tap:

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

The cask currently contains:

depends_on macos: ">= :ventura"

Proposed fix

Change it to:

depends_on macos: :ventura

Current Homebrew parses the symbol form using the depends_on macos: DSL default comparator of >=, so :ventura means Ventura or newer, not Ventura exactly. brew style also reports this as an autocorrectable Homebrew/OSDependsOn offense.

The comment above the stanza currently says the symbol pins to Ventura exactly; that comment should be removed or updated along with the code change.

Environment

  • Homebrew: 5.1.15-217-g0d56d56
  • Architecture: Apple Silicon (arm64)
  • Observed: June 9, 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions