Skip to content

fix: replace deprecated Homebrew cask postflight stanza #111

Closed

Description

@yvonnedevlinrh

Problem

Installing Replicator via Homebrew succeeds, but Homebrew emits repeated deprecation warnings:

Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.

The warning originates from the generated replicator.rb cask published in unbound-force/homebrew-tap.

Root Cause

.goreleaser.yaml currently generates the cask using the legacy postflight stanza:

postflight do
  ...
end

Homebrew now requires the structured postflight_steps stanza.

Proposed Fix

Update the GoReleaser Homebrew cask configuration to emit:

postflight_steps do
  if OS.mac?
    system_command "/usr/bin/xattr",
      args: ["-dr", "com.apple.quarantine", "#{staged_path}/replicator"]
  end
end

Also update the generated cask regression fixture and related tests.

Acceptance Criteria

  • New Replicator releases publish a cask using postflight_steps.
  • brew install unbound-force/tap/replicator produces no deprecation warning.
  • macOS quarantine-removal behavior remains unchanged.
  • Existing cask integrity tests pass.
  • The generated cask is validated with current Homebrew syntax.

Activity

  1. fullsend-ai-triage commented on Sep 18, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 8:15 AM UTC · Completed 8:19 AM UTC

    Commit: 3e527a5 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $0.81

  2. added
    bug
    github_actions
    ready-to-code
    on Sep 18, 2026
  3. fullsend-ai-triage commented on Sep 18, 2026

    @fullsend-ai-triage

    Severity: medium — deprecation warning only; quarantine removal still works, but the stanza may be dropped in a future Homebrew release.

    Related work

    Files to change

    File Change
    .goreleaser.yaml Update homebrew_casks[0].hooks to emit postflight_steps
    .github/scripts/testdata/replicator-v0.5.0.rb Update fixture from postflight do to postflight_steps do
    .github/scripts/patch-homebrew-cask_test.sh Verify all cases pass with updated fixture

    Implementation note

    Check whether GoReleaser's homebrew_casks config natively supports postflight_steps. If not, a custom cask template may be required.

    Proposed test

    # Verify generated cask does not use deprecated stanza
    if grep -q 'postflight do' dist/homebrew/Casks/replicator.rb; then
      echo "FAIL: cask still uses deprecated postflight stanza"
      exit 1
    fi
    # Verify it uses the new stanza
    grep -q 'postflight_steps do' dist/homebrew/Casks/replicator.rb

    Labels: This is a bug fix for the release/distribution pipeline — matches the bug + github_actions pattern used on similar cask issues (e.g., #89).


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. fullsend-ai-coder commented on Sep 18, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 8:20 AM UTC · Completed 8:33 AM UTC

    Commit: 3e527a5 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.46

  5. added a commit that references this issue on Sep 28, 2026
  6. added 4 commits that reference this issue on Oct 1, 2026
  7. added 2 commits that reference this issue on Oct 9, 2026
  8. added a commit that references this issue on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buggithub_actionsready-to-code

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions