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:
parent
943bd1eb85
commit
29722c2044
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue