Skip to content

Commit 78bf146

Browse files
authored
release/homebrew: Publish Cask instead of Formula (#824)
goreleaser is phasing out formula support in favor of Casks. Switch to Cask for Homebrew Tap releases. Ref: https://goreleaser.com/deprecations/#brews Per docs, should add the following manually to the old formula: ``` disable! date: "2025-11-08", because: "was migrated to a cask", replacement_cask: "abhinav/tap/git-spice" ```
1 parent bbc1460 commit 78bf146

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
kind: Changed
2+
body: >-
3+
Homebrew Tap now publishes the package as a Cask.
4+
If you previously installed with 'brew install abhinav/tap/git-spice`,
5+
switch to the cask with `brew install --cask abhinav/tap/git-spice`.
6+
You can ignore this if you installed from homebrew-core
7+
(`brew install git-spice`).
8+
time: 2025-08-24T20:41:37.103982-07:00

.goreleaser.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ aurs:
5555
name: Abhinav Gupta
5656
5757

58-
brews:
58+
homebrew_casks:
5959
- repository:
6060
owner: abhinav
6161
name: homebrew-tap
@@ -68,11 +68,16 @@ brews:
6868
description: "A tool for stacking Git branches."
6969
license: "GPL-3.0-or-later"
7070
skip_upload: auto
71-
install: |
72-
bin.install "gs"
73-
generate_completions_from_executable(bin/"gs", "shell", "completion")
74-
test: |
75-
system "#{bin}/gs --version"
71+
conflicts:
72+
- formula: git-spice
73+
- formula: ghostscript
74+
hooks:
75+
post:
76+
install: |
77+
if OS.mac?
78+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/gs"]
79+
end
80+
7681
7782
checksum:
7883
name_template: 'checksums.txt'

0 commit comments

Comments
 (0)