goreleaser: emit non-deprecated depends_on macos: form

The current Homebrew formula generated for cirruslabs/homebrew-cli
emits a deprecation warning on every brew run:

  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.

This is caused by the `custom_block` injecting the legacy hash-rocket
form `depends_on :macos => :sequoia` into the generated formula.
Replacing it with the equivalent `on_macos do ... end` block makes
the generated softnet.rb conform to current Homebrew syntax and
silences the warning.
This commit is contained in:
Tariq West 2026-06-16 02:10:16 -04:00
parent 943bd1eb85
commit 29722c2044
1 changed files with 3 additions and 1 deletions

View File

@ -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