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

Đang mở Phù hợp với người mới
#386 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, go
Lĩnh vực
ci-cd, cli, release

Hướng nghiên cứu

Đọc .goreleaser.yaml và tìm hook cài đặt Homebrew cask; so sánh phần thân của hook với tài liệu DSL postflight_steps của GoReleaser. Sau đó, gỡ ghim GoReleaser v2.18 và chạy job Validate goreleaser config với v2.19 trở lên. Hoàn tất khi cấu hình được xác thực mà không gặp lỗi ngừng hỗ trợ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
29
Fork
24
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
111

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của harness/cli

Tất cả issue của harness/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.