Skip to content

Conversation

@cfunkhouser
Copy link
Collaborator

Since we do not have an Apple developer account or signing certificate, binaries published via Homebrew are quarantined by default. This change adds a post-install hook to un-quarantine the installed restish binary.

For reference, this is suggested by the GoReleaser documentation: https://goreleaser.com/customization/homebrew_casks/#signing-and-notarizing

The locally-generated restish.rb file output after this change looks like:

$ cat restish.rb
# This file was generated by GoReleaser. DO NOT EDIT.
cask "restish" do
  name "restish"
  desc "Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in."
  homepage "https://rest.sh"
  version "v0.0.0-next"

# ...

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

  # No zap stanza required
end

@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cfunkhouser cfunkhouser merged commit f570b33 into main Dec 12, 2025
6 checks passed
@cfunkhouser cfunkhouser deleted the cfunkhouser/unquarantine-homebrew branch December 12, 2025 01:19
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