Skip to content

Commit cf60a1a

Browse files
committed
goreleaser: include linux builds in homebrew archive
The homebrew archive only included darwin builds, so the generated Homebrew cask had no on_linux blocks. When Linux users tried to install via Linuxbrew, Homebrew couldn't find a download URL, resulting in: Error: attempted to use a `Downloadable` without a URL! Adding linux to the homebrew archive IDs causes GoReleaser to generate on_linux blocks in the cask with proper download URLs for Linux.
1 parent 65d9d5f commit cf60a1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ archives:
104104
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}_homebrew"
105105
ids:
106106
- darwin
107+
- linux
107108
wrap_in_directory: false
108109
formats:
109110
- tar.gz

0 commit comments

Comments
 (0)