From 3a0825435f800fbac5306109ab62841579bd0c24 Mon Sep 17 00:00:00 2001 From: piekstra Date: Wed, 28 Oct 2026 09:49:06 -0400 Subject: [PATCH] fix(release): write the cask postflight as install steps The release workflow installs GoReleaser `~> v2`, which now resolves to 2.19. That version deprecates `homebrew_casks.hooks.post.install`, and the workflow's `goreleaser check` fails on any deprecated property, so the next release would fail before building. Move the postflight to `install_steps` with `{{ .StagedPath }}`. GoReleaser renders it as a `postflight_steps` block with the absolute `{{staged_path}}` token, which the shared modernizer passes through unchanged. GoReleaser pins in workflows move to v2.19.0, which reads `install_steps`. Twapp-Session: f18916e9-4ebc-4371-a3db-eb58d9daed7d --- .github/workflows/arch-package.yml | 2 +- .goreleaser.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/arch-package.yml b/.github/workflows/arch-package.yml index 24c62f0..03d9765 100644 --- a/.github/workflows/arch-package.yml +++ b/.github/workflows/arch-package.yml @@ -31,7 +31,7 @@ jobs: go-version-file: ${{ matrix.go-mod }} - uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3 with: - version: v2.18.2 + version: v2.19.0 args: release --snapshot --clean --skip=before --config ${{ matrix.config }} - name: Verify both Arch architectures were rendered shell: bash diff --git a/.goreleaser.yaml b/.goreleaser.yaml index aa8a29b..4cc78b6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -151,8 +151,8 @@ homebrew_casks: binaries: [gro] hooks: post: - install: | - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/gro"] + install_steps: | + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/gro"] caveats: | gro has been installed. Run 'gro init' to configure. On macOS, your token is stored securely in the system Keychain. @@ -167,8 +167,8 @@ homebrew_casks: binaries: [grw] hooks: post: - install: | - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/grw"] + install_steps: | + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/grw"] caveats: | grw has been installed. Run 'grw init' to configure. On macOS, your token is stored securely in the system Keychain.