goreleaser check fails on v2.19: homebrew_casks.hooks.post.install is deprecated
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
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
postflightstanza in favour of a declarativepostflight_stepsDSL (Homebrew/brew#23366). - GoReleaser v2.19 mirrors this:
hooks.pre.install/hooks.post.installare 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@v7with the default~> v2version, 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của harness/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
jordansmall/spindrift#7895 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation priority: medium skill: intermediate status: ready for dev
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
hyperledger-labs/fabric-smart-client#2830 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
P3 tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày