Skip to content

Commit

Permalink
build: Fix macOS intel based release. (#470)
Browse files Browse the repository at this point in the history
This commit fixes the macOS intel based home brew release. The overview
is that GoReleaser sets these variables and expects them all to exist.
However, when we switch to the prebuilt mode, most assumptions
GoReleaser makes goes out the window. The docs do say that these
variables will not be set and we have to define them ourselves, but the
list of targets felt just fine at the time. The issue is, the hombrew
logic expects these variables to exist and not just a list of targets. I
added back the old format and added in the defaults of the other
variables that are no longer set.
  • Loading branch information
betterengineering authored Nov 1, 2022
1 parent 7064dab commit 2add46f
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@ builds:
- builder: prebuilt
binary: pixlet

targets:
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- windows_amd64
goarch:
- amd64
- arm64

goos:
- darwin
- linux
- windows

goarm:
- 7

goamd64:
- v1

ignore:
- goos: windows
goarch: arm64

prebuilt:
path: build/{{ .Os }}_{{ .Arch }}/pixlet{{ .Ext }}
Expand Down

0 comments on commit 2add46f

Please sign in to comment.