localstack / localstack/homebrew-tap

Cask: Calling `postflight` is deprecated

Open Beginner friendly
#7 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
7
Forks
3
PR merge metrics
No merged PRs in 30d

Description

The postflight command seems to be now deprecated by Homebrew:

$ brew install --cask lstk
Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the localstack/homebrew-tap tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/localstack/homebrew-tap/Casks/lstk.rb:39

==> Would install 1 cask:
localstack/tap/lstk
==> Fetching downloads for: localstack/tap/lstk
✔︎ Cask lstk (1.0.0)                                                     Downloaded    7.8MB/  7.8MB
==> Installing Cask lstk
Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the localstack/homebrew-tap tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/localstack/homebrew-tap/Casks/lstk.rb:39

==> Linking Binary 'lstk' to '/opt/homebrew/bin/lstk'
==> Linking Bash Completion 'lstk.bash' to '/opt/homebrew/etc/bash_completion.d/lstk'
==> Linking Fish Completion 'lstk.fish' to '/opt/homebrew/share/fish/vendor_completions.d/lstk.fish'
==> Linking Zsh Completion 'lstk.zsh' to '/opt/homebrew/share/zsh/site-functions/_lstk'
🍺  lstk was successfully installed!
Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the localstack/homebrew-tap tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/localstack/homebrew-tap/Casks/lstk.rb:39

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open Casks/lstk.rb and inspect line 39, identified by Homebrew as the deprecated postflight declaration. Update that declaration to use postflight_steps, then run brew install --cask lstk and confirm the deprecation warning no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.