Skip to content

fix: use postflight_steps instead of deprecated postflight - #1

Open
audreyt wants to merge 1 commit into
mnemon-dev:mainfrom
audreyt:fix/postflight-steps
Open

audreyt wants to merge 1 commit into
mnemon-dev:mainfrom
audreyt:fix/postflight-steps

Conversation

@audreyt

@audreyt audreyt commented Sep 13, 2026

Copy link
Copy Markdown

Homebrew now warns on every brew command that touches this cask:

Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the mnemon-dev/homebrew-tap tap
  /opt/homebrew/Library/Taps/mnemon-dev/homebrew-tap/Casks/mnemon.rb:36

This keeps the same quarantine strip (xattr -dr com.apple.quarantine on the staged mnemon binary) but uses postflight_steps + on_macos + run, which is the current Homebrew DSL. The macOS-only guard is unchanged so a Linux brew install still does not invoke /usr/bin/xattr.

Verified locally: brew info --cask mnemon-dev/tap/mnemon with this stanza emits no postflight deprecation warning.

GoReleaser still emits postflight from homebrew_casks.hooks.post.install (goreleaser/goreleaser#6873 is open). A companion change in mnemon-dev/mnemon will stop the next release from regenerating the old stanza.

Homebrew warns on every command that loads this cask because `postflight`
is deprecated. Keep the macOS quarantine xattr strip, expressed as
declarative install steps with an on_macos guard so Linux installs still
skip /usr/bin/xattr.
Copilot AI lite review requested due to automatic review settings September 13, 2026 20:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues were identified.

Pull request overview

Updates the Homebrew cask to use the current postflight_steps DSL while preserving macOS quarantine removal.

Changes:

  • Replaces deprecated postflight syntax.
  • Uses macOS-only on_macos and run steps.
File summaries
File Summary
Casks/mnemon.rb Migrates the quarantine-removal hook to the supported DSL.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants