goreleaser check fails on v2.19: homebrew_casks.hooks.post.install is deprecated

オープン 初心者向け
#386 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
半日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, go
領域
ci-cd, cli, release

調査の方向性

.goreleaser.yamlを読み、Homebrew caskのインストールフックを見つけます。その本体をGoReleaserのpostflight_steps DSLドキュメントと比較します。次にGoReleaser v2.18の固定を削除し、v2.19以降でValidate goreleaser configジョブを実行します。設定が非推奨による失敗なしで検証されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Problem

GoReleaser v2.19.0 (released 2026-10-22) deprecates homebrew_casks.hooks.post.install, which .goreleaser.yaml uses for the Homebrew cask. goreleaser check treats deprecated properties as a failure, so the Validate goreleaser config job in the post-merge workflow fails whenever it runs v2.19 or later.

What changed upstream

  • Homebrew deprecated the cask postflight stanza in favour of a declarative postflight_steps DSL (Homebrew/brew#23366).
  • GoReleaser v2.19 mirrors this: hooks.pre.install / hooks.post.install are deprecated, and the hook bodies must be rewritten in the new DSL rather than arbitrary Ruby.
  • Details: https://goreleaser.com/deprecations#homebrew_caskshookspostinstall

Impact

  • The release workflows use goreleaser/goreleaser-action@v7 with the default ~> v2 version, so they float to the latest v2.x.
  • Until the cask hook is migrated, the repo is pinned to v2.18 to keep post-merge checks green; it cannot move to v2.19+ until then.
  • Release runs use the same config and will hit the same deprecation (and eventually breakage if Homebrew removes postflight).

Needed

Upgrade the repo to GoReleaser v2.19+ and remove the pin.

主要言語
Go
スター
29
フォーク
24
平均マージ
1日 9時間
マージ済み PR(30日)
111

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

harness/cli のほかの issue

harness/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。