Repository navigation
Commit a7e8e77
authored
fix(release): write the cask postflight as install steps (#53)
## Summary
The release workflow installs GoReleaser `~> v2`, which now resolves to
2.19. That version deprecates `homebrew_casks.hooks.post.install`, and
the workflow's `goreleaser check` fails on any deprecated property, so
the next release would fail before building.
- The cask postflight moves to `install_steps` with `{{ .StagedPath }}`.
GoReleaser renders it as a `postflight_steps` block with the absolute
`{{staged_path}}` token, which the shared alias job's modernizer passes
through unchanged.
- GoReleaser pins in workflows move to v2.19.0, which reads
`install_steps`.
## Verification
- `goreleaser check` with 2.19.0 passes for `.goreleaser.yml`; on `main`
it fails with the deprecation.
- `goreleaser release --snapshot --clean
--skip=publish,before,sign,validate` renders each cask's
`postflight_steps` block as `run "/usr/bin/xattr", args: ["-dr",
"com.apple.quarantine", "{{staged_path}}/<binary>"]`.
<!-- twapp-session: b7acef9e-0a9c-4af5-8ab8-775953bbc6e1 -->
Model: Claude Opus 5.5 (1M context, xhigh effort) in Claude Code.1 parent c753e16 commit a7e8e77
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments