Skip to content

postflight deprecated in poke-token-bar cask #385

Open

Description

@atilio-ts

Description

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

  1. Have chattymin/homebrew-tap tapped with poke-token-bar cask installed
  2. Run brew upgrade
  3. 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.

Activity

  1. Borisserz commented on Oct 3, 2026

    @Borisserz
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions