You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running brew upgrade triggers deprecation warning for cask poke-token-bar:
Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the chattymin/homebrew-tap tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/chattymin/homebrew-tap/Casks/poke-token-bar.rb:12
Steps to Reproduce
Have chattymin/homebrew-tap tapped with poke-token-bar cask installed
Run brew upgrade
Warning appears in output
Expected Behavior
No deprecation warning. Cask should use postflight_steps block instead of legacy postflight.
Actual Behavior
Homebrew emits deprecation warning pointing to line 12 of Casks/poke-token-bar.rb.
Environment
Homebrew: (run brew --version)
Tap: chattymin/homebrew-tap
Cask: poke-token-bar
OS: macOS (Darwin 27.0.0)
Suggested Fix
Rename postflight do ... end block to postflight_steps do ... end in Casks/poke-token-bar.rb.
The fix belongs in the tap repo, and there's already a PR for it: chattymin/homebrew-tap#2 (postflight → postflight_steps + run). I verified it locally on Homebrew 7.0.7: main prints the deprecation warning and the PR branch doesn't. It is mergeable on top of 2.5.5 and works with release.sh's cask version bump. Details are in chattymin/homebrew-tap#2.
Activity
Borisserz commentedon Oct 3, 2026
The fix belongs in the tap repo, and there's already a PR for it: chattymin/homebrew-tap#2 (
postflight→postflight_steps+run). I verified it locally on Homebrew 7.0.7:mainprints the deprecation warning and the PR branch doesn't. It is mergeable on top of 2.5.5 and works withrelease.sh's cask version bump. Details are in chattymin/homebrew-tap#2.