Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

homebrew_casks hook emits Homebrew deprecated postflight stanza

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
yaml

調査の方向性

.goreleaser.yaml から始め、GoReleaser PR #6873 およびその v2.19.0 マイルストーンと併せて、homebrew_casks の hooks.post.install 設定を確認します。サポートされる構文が利用可能になったら、生成された cask が置き換え後のインストールステップ形式を使用し、非推奨の postflight セクションや Homebrew の警告を出力しなくなっていることを検証します。

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

説明

Homebrew deprecated the postflight stanza that GoReleaser emits for homebrew_casks[].hooks.post.install. Every brew command that loads openstatushq/homebrew-cli/openstatus now prints:

Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the openstatushq/homebrew-cli tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/openstatushq/homebrew-cli/Casks/openstatus.rb:37

The generated cask is produced from this repo's .goreleaser.yaml:

homebrew_casks:
  - hooks:
      post:
        install: |
          if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
            system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/openstatus"]
          end

GoReleaser wraps that body in postflight do, and postflight_steps is not a rename of the same Ruby DSL. A tap-only edit will be overwritten on the next release.

Once goreleaser/goreleaser#6873 ships (milestone v2.19.0), this config should become something like:

hooks:
  post:
    install_steps: |
      on_macos do
        run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/openstatus"], must_succeed: false
      end

I reported this on the tap as well. Related: goreleaser/goreleaser#6870, terraform-linters/tflint#2643.

主要言語
Go
スター
4
フォーク
3
平均マージ
13時間 46分
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

似ている issue

Go の issue をもっと見る

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

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