From a71c49141b9358c5a40a32e604d27ab90b614232 Mon Sep 17 00:00:00 2001 From: Nathan Cochran Date: Mon, 5 Oct 2026 13:24:53 -0400 Subject: [PATCH] Remove deprecated 'postflight' Homebrew stanza, replace with 'postflight_steps' --- .goreleaser.yaml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 24d7a831..a24b6ec6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -159,14 +159,18 @@ homebrew_casks: skip_upload: auto # Skips prerelease builds url: template: "https://cli.tigerdata.com/releases/{{ .Tag }}/{{ .ArtifactName }}" - hooks: - # TODO: Sign and notarize instead of removing quarantine bit - # See: https://goreleaser.com/customization/homebrew_casks/#signing-and-notarizing - post: - install: | - if OS.mac? - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/tiger"] - end + # TODO: Sign and notarize instead of removing quarantine bit + # See: https://goreleaser.com/customization/homebrew_casks/#signing-and-notarizing + # + # GoReleaser's hooks.post.install renders the `postflight` stanza Homebrew + # has deprecated, so emit `postflight_steps` by hand until GoReleaser can + # (goreleaser/goreleaser#6870). + custom_block: | + postflight_steps do + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ "{{staged_path}}" }}/tiger"] + end + end # Shell completions completions: bash: "completions/tiger.bash"