Skip to content

fix(release): generate postflight_steps in the homebrew cask - #177

Open
isaacsokari wants to merge 1 commit into
mainfrom
fix/homebrew-postflight-steps
Open

isaacsokari wants to merge 1 commit into
mainfrom
fix/homebrew-postflight-steps

Conversation

@isaacsokari

@isaacsokari isaacsokari commented Nov 7, 2026 •

Copy link
Copy Markdown

Description

Homebrew deprecated the cask postflight block, so brew update now warns Calling postflight is deprecated! Use postflight_steps instead. and points at our runware.rb.

file-51a6da80f99aac406e9b6869988eec16

This PR moves the quarantine hook to GoReleaser's install_steps (v2.19+; CI's ~> v2 resolves to v2.20.0), which renders the declarative postflight_steps stanza. The warning clears once the next release regenerates the tap's cask.

Checked locally against Homebrew: the rendered cask loads without the warning, passes brew style, and its step strips com.apple.quarantine from a staged binary.

Changes made

  • Replaced the hooks.post.install Ruby block with hooks.post.install_steps in the goreleaser config, so the cask emits postflight_steps instead of postflight.
  • Rewrote the quarantine hook in Homebrew's step DSL (on_macos + run with {{ .StagedPath }}), keeping the same xattr -dr behaviour and fail-on-error semantics.

Homebrew deprecated the cask `postflight` block, so `brew update` warns
about runware.rb. Move the quarantine hook to `install_steps`, which
GoReleaser v2.19+ renders as the declarative `postflight_steps` stanza.
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include coderabbit-review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dd1a25dc-92f2-42a5-8a6a-d3e98f18b036

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@isaacsokari isaacsokari changed the title Fix Homebrew Deprecated postflight Warning fix(release): generate postflight_steps in the homebrew cask Nov 7, 2026
@isaacsokari
isaacsokari marked this pull request as ready for review November 7, 2026 11:20
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.

1 participant