Skip to content

ci(homebrew): fix Ruby interpolation in formula test block#1339

Merged
hahwul merged 1 commit intomainfrom
fix/homebrew-formula-test-interpolation
May 4, 2026
Merged

ci(homebrew): fix Ruby interpolation in formula test block#1339
hahwul merged 1 commit intomainfrom
fix/homebrew-formula-test-interpolation

Conversation

@hahwul
Copy link
Copy Markdown
Member

@hahwul hahwul commented May 4, 2026

Summary

  • The current homebrew-releaser config emits a formula whose test block reads system "{bin}/noir", "-v" — a literal path, which breaks brew test and brew audit.
  • Switched to #{bin} so Homebrew interpolates the formula's bin path.
  • Next published release will regenerate Formula/noir.rb correctly.

Same fix as hahwul/hwaro#518 — caught while sweeping siblings for the same pattern.

Test plan

  • After next release, verify the published formula contains system "#{bin}/noir", "-v" and brew test noir succeeds

The published formula renders the test as `system "{bin}/noir", "-v"`,
a literal path that breaks `brew test` / `brew audit`. Use `#{bin}` so
Homebrew interpolates the formula's bin path.

Same fix as hahwul/hwaro#518.
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@github-actions github-actions Bot added 🦺 github-action Issue for GitHub actions 🛥️ workflow Issue for Workflows labels May 4, 2026
@hahwul hahwul merged commit 3f45890 into main May 4, 2026
2 checks passed
@hahwul hahwul deleted the fix/homebrew-formula-test-interpolation branch May 4, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🦺 github-action Issue for GitHub actions 🛥️ workflow Issue for Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant