Skip to content

fix: replace deprecated postflight with postflight_steps - #2

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

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

Conversation

@audreyt

@audreyt audreyt commented Sep 13, 2026

Copy link
Copy Markdown

Homebrew now deprecates the postflight cask stanza. Every brew command that loads this cask prints:

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

Change

postflight do … endpostflight_steps do … end, using the declarative install-steps DSL:

  • on_macos do … end replaces the if OS.mac? guard (evaluated at install time, same semantics).
  • run "/usr/bin/xattr", args: […] replaces system_command (fails the install on error, same as before).
  • {{staged_path}} is the install-steps template token for the staged binary path.

Verified

brew reinstall --cask mnemon on Homebrew 6.x with this cask: installs cleanly, prints no deprecation warning, and the quarantine attribute is stripped from the staged binary.

Note

This file is generated by GoReleaser (DO NOT EDIT), so the next release will regenerate it. The durable fix is the matching homebrew_casks change in mnemon-dev/mnemon — until GoReleaser ships goreleaser/goreleaser#6873 (which adds hooks.post.install_steps), the config-side fix uses custom_block. This PR fixes the warning for users in the meantime.

Homebrew deprecates the `postflight` stanza; every brew command touching
the cask prints "Calling `postflight` is deprecated! Use
`postflight_steps` instead."

Convert to the declarative install-steps DSL: `on_macos` replaces the
`if OS.mac?` guard and `run` replaces `system_command`, with the
`{{staged_path}}` template token for the staged binary path. Verified
locally with `brew reinstall --cask mnemon`: no warning, quarantine
attribute stripped.

Note: this file is generated by GoReleaser; the durable fix is the
matching homebrew_casks change in mnemon-dev/mnemon (see
goreleaser/goreleaser#6870).
Copilot AI lite review requested due to automatic review settings September 13, 2026 22:44

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 generated Homebrew cask to replace deprecated postflight logic with the declarative install-steps DSL.

Changes:

  • Uses postflight_steps and on_macos.
  • Runs xattr against {{staged_path}}.
File summaries
File Summary
Casks/mnemon.rb Migrates quarantine removal to the current Homebrew 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