From c7e2b0a9605697f68c3c0fbf6b0a90bc66fa0417 Mon Sep 17 00:00:00 2001 From: Greg Hurrell Date: Wed, 10 Jun 2026 12:22:50 +0200 Subject: [PATCH] fix(homebrew): wrap macOS version dependency in on_macos block GoReleaser's Homebrew template always emits a bare `depends_on :macos` for macOS-only formulae. Combining that with the `depends_on :macos => :sequoia` line injected via custom_block triggers a Homebrew deprecation warning on `brew upgrade`: Warning: Calling `depends_on :macos` with `depends_on macos:` is deprecated! Use `depends_on :macos` with `depends_on macos:` inside an `on_macos` block instead. Please report this issue to the cirruslabs/homebrew-cli tap (not Homebrew/* repositories), or even better, submit a PR to fix it: /opt/homebrew/Library/Taps/cirruslabs/homebrew-cli/softnet.rb:18 Declaring the version constraint inside an `on_macos` block is the form Homebrew recommends and silences the warning without changing behavior (still macOS-only, Sequoia or newer). --- .goreleaser.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 9d90c75..de558c3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -30,4 +30,6 @@ brews: description: Software networking with isolation for Tart skip_upload: auto custom_block: | - depends_on :macos => :sequoia + on_macos do + depends_on :macos => :sequoia + end