From 3f60654a2ad1aa5afb852cee0c5fa0aa0fa17bec Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Sun, 25 Jan 2026 12:29:13 -0600 Subject: [PATCH] Fix Homebrew formula for newer Homebrew versions Updated the install section in the brews configuration to use the new Homebrew formula syntax for directory creation. Changes: - Changed `etc.mkdir "unpoller"` to `(etc/"unpoller").mkpath` The old syntax was causing errors with newer Homebrew versions: TypeError: no implicit conversion of String into Integer This fix ensures compatibility with Homebrew 4.3+ while maintaining backward compatibility with older versions. Fixes #742 Co-Authored-By: Claude Sonnet 4.5 --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 709db06e..e6e7c008 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -547,7 +547,7 @@ brews: assert_match "unpoller v#{version}", shell_output("#{bin}/unpoller -v 2>&1", 2) install: | bin.install "unpoller" - etc.mkdir "unpoller" + (etc/"unpoller").mkpath etc.install "examples/up.conf" => "unpoller/up.conf.example" post_install: | etc.install "examples/up.conf" => "unpoller/up.conf"