homebrew_casks hook emits Homebrew deprecated postflight stanza
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- yaml
- 領域
- build-system, release
調査の方向性
.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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
slavakurilyak/awesome-ai-agents#888 ·
メンテナーはふだん 1 日以内に返信
-
enhancement nav-pilot
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
feat(gmail): make gmail get --format raw text output the exact message, like drafts get --format rawオープンclawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openclaw/gogcli#1276 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Seed a JRNYAx price before the last close so asset-detail S1.3 doesn't fail from 08:00Z to the openオープンbug tests
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
lognorman20/monaco#7231 ·