Homebrew warning: `postflight` is deprecated; use `postflight_steps`
Author: atacanCreated Sep 6, 2026Updated Sep 7, 2026
Labelsarea: releasing
Description
Homebrew emits the following deprecation warning for the go-task cask:
Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the go-task/homebrew-tap tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/go-task/homebrew-tap/Casks/go-task.rb:40This appears to come from Casks/go-task.rb around line 40, where the cask still uses the deprecated postflight stanza.
Expected behavior: Installing or upgrading the cask should not emit Homebrew deprecation warnings.
Suggested fix: Migrate the cask from postflight to postflight_steps per the current Homebrew Cask DSL.
Version
3.53.1
Operating system
macOS
Experiments Enabled
No response
Example Taskfile
Source: go-task/task