From a6c562950bf288aea3862704a8da439c02073837 Mon Sep 17 00:00:00 2001 From: DTTerastar Date: Fri, 6 Nov 2026 10:53:03 -0500 Subject: [PATCH] goreleaser: use cask install_steps instead of deprecated install hook GoReleaser v2.19+ emits Homebrew's postflight_steps stanza only from hooks.post.install_steps; the old install hook still generates the deprecated postflight stanza, which warns on every brew command. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01CP5PymEM8y5ik8S89BbSwD --- .goreleaser.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7a9379a..7b59e5f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -39,9 +39,9 @@ homebrew_casks: license: MIT hooks: post: - install: | - if OS.mac? - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/crono-export"] + install_steps: | + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/crono-export"] end release: