Commit f303279
committed
Migrate goreleaser config off deprecated keys
`goreleaser check` against v2.15.4 flagged two deprecations:
* `archives.format: tar.gz` → `archives.formats: [tar.gz]`
(renamed in v2.6; still accepts a string but plural is the
forward-compatible shape).
* `brews:` → `homebrew_casks:` (renamed in v2.10). For a CLI
binary the cask handles binary placement implicitly via
`binary "atlas"`, so the `install: bin.install "atlas"` line
was dropped.
Because atlas binaries aren't signed/notarized, the cask needs a
`hooks.post.install` step that strips the macOS quarantine
xattr — otherwise `brew install` succeeds but Gatekeeper refuses
to launch the binary. The hook is guarded by `OS.mac?` so it's a
no-op on Linuxbrew.
Verified with `goreleaser check` (exits 0) and `goreleaser
release --snapshot --clean --skip=publish` (four archives,
checksums match, generated cask validates against checksums.txt
and renders the expected per-platform url/sha256 + postflight
xattr block).1 parent a2797e2 commit f303279
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
0 commit comments