From 72963c4626bfd096ba17ce31966472de76319221 Mon Sep 17 00:00:00 2001 From: piekstra Date: Wed, 28 Oct 2026 09:49:23 -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 +- .github/workflows/release-build-check.yml | 2 +- .goreleaser.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/arch-package.yml b/.github/workflows/arch-package.yml index 6caa47e..4494c3d 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/.github/workflows/release-build-check.yml b/.github/workflows/release-build-check.yml index 7ea4b99..b4b50c5 100644 --- a/.github/workflows/release-build-check.yml +++ b/.github/workflows/release-build-check.yml @@ -33,7 +33,7 @@ jobs: - name: Install GoReleaser uses: goreleaser/goreleaser-action@v6 with: - version: v2.17.0 + version: v2.19.0 install-only: true - name: GoReleaser check run: goreleaser check diff --git a/.goreleaser.yml b/.goreleaser.yml index ce5f094..d8d1db9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -102,8 +102,8 @@ homebrew_casks: description: Spotify from the command line hooks: post: - install: | - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/sptfy"] + install_steps: | + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/sptfy"] caveats: | Create a Spotify application, then run: sptfy init --client-id YOUR_CLIENT_ID