Skip to content

fix(release): drop deprecated Homebrew cask syntax in tap template - #30

Merged
imfing merged 1 commit into
mainfrom
fix/homebrew-cask-deprecations
Sep 14, 2026
Merged

imfing merged 1 commit into
mainfrom
fix/homebrew-cask-deprecations

Conversation

@imfing

@imfing imfing commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Homebrew started warning on the generated cask:

Warning: Calling the `verified` parameter in the `url` stanza is deprecated! Use the default URL verification behaviour instead.
Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.

This updates the cask template in the release workflow so future releases generate warning-free casks:

  • Drop verified: from the url stanza — the release URLs are on the same domain as the homepage, so the default URL verification behaviour covers it.
  • Migrate postflightpostflight_steps — uses the new install-steps DSL: run with the {{staged_path}} template token, guarded by on_macos (replacing the if OS.mac? check).

The current casks in imfing/homebrew-tap were already patched directly (imfing/homebrew-tap@1543d1c); the new syntax parses cleanly with brew info locally. This PR only affects casks generated by future releases.

Homebrew now warns on the generated cask:

- the `verified:` parameter in the `url` stanza is deprecated in favor
  of the default URL verification behaviour; the release URLs share the
  homepage domain, so it can simply be removed
- `postflight` blocks are deprecated in favor of `postflight_steps`,
  using the new install-steps DSL (`run` with the `{{staged_path}}`
  template token, guarded by `on_macos`)

The tap casks were already patched directly in imfing/homebrew-tap;
this keeps future releases from regenerating the deprecated syntax.
@imfing
imfing marked this pull request as ready for review September 14, 2026 23:46
@imfing
imfing merged commit 8e3ea3f into main Sep 14, 2026
8 checks passed
@imfing
imfing deleted the fix/homebrew-cask-deprecations branch September 14, 2026 23:46
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.

1 participant