Skip to content

ci: make generated cask pass brew style#253

Merged
ethanndickson merged 1 commit into
mainfrom
fix/cask-style
May 28, 2026
Merged

ci: make generated cask pass brew style#253
ethanndickson merged 1 commit into
mainfrom
fix/cask-style

Conversation

@ethanndickson
Copy link
Copy Markdown
Member

The cask emitted by scripts/update-cask.sh (invoked from the update-cask job in .github/workflows/release.yml) currently fails brew test-bot --only-tap-syntax on the homebrew-coder side. See this run, which blocked coder/homebrew-coder#360 for the v0.8.1 release.

Two autocorrectable brew style offenses, both originating from the heredoc in scripts/update-cask.sh:

  • Homebrew/OSDependsOn: prefer the symbol form depends_on macos: :sonoma over ">= :sonoma" (semantically equivalent — still means "Sonoma or newer").
  • Cask/ArrayAlphabetization: the zap delete: array must be ordered alphabetically, so coder-darwin-amd64 belongs before coder-darwin-arm64.

The corresponding open PR on coder/homebrew-coder has already been amended directly with the same two-line fix to unblock the v0.8.1 release. This PR ensures future releases generate a cask that passes brew style without manual cleanup.

The cask generated by `scripts/update-cask.sh` failed
`brew test-bot --only-tap-syntax` on the homebrew-coder side with two
autocorrectable offenses:

- `Homebrew/OSDependsOn`: use the symbol form `depends_on macos: :sonoma`
  instead of `">= :sonoma"` (still means "Sonoma or newer").
- `Cask/ArrayAlphabetization`: the `zap delete:` array must be sorted,
  so `coder-darwin-amd64` goes before `coder-darwin-arm64`.

This regenerates a cask that passes `brew style` on the next release.
@ethanndickson ethanndickson changed the title fix(scripts): make generated cask pass brew style ci: make generated cask pass brew style May 27, 2026
@ethanndickson ethanndickson requested a review from jakehwll May 27, 2026 14:05
@ethanndickson ethanndickson merged commit 4e62ff4 into main May 28, 2026
3 checks passed
@ethanndickson ethanndickson deleted the fix/cask-style branch May 28, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants