chore(release): automate Homebrew formula updates via GoReleaser#109
Conversation
Add `brews` section to .goreleaser.yaml so that the Homebrew tap (datadog-labs/homebrew-pack) is automatically updated whenever a new release is published. This eliminates the manual formula update step that currently causes the tap to lag behind GitHub releases. - Add brews config targeting datadog-labs/homebrew-pack Formula directory - Pass HOMEBREW_TAP_GITHUB_TOKEN to GoReleaser in release workflow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
f378c60 to
a04b769
Compare
platinummonkey
left a comment
There was a problem hiding this comment.
hey sorry we cannot do this specific change, as the github organization rules we apply must create PRs that are approved, we have a flow for automatic approvals and merges, but working on adding the support internally to support this new datadog-labs github org first
if possible can you elaborate? this phrasing seems to point that no opensource contribution is allowed cause only your own PR\s will get approved is that correct? just want to double check on that |
|
Totally happy to explain more: It's github ruleset policies that are set at the github organization level. goreleaser brews/homebrews_casks assumes it can directly push to Where this breaks down with the rulesets:
|
|
curious if we explore https://release-plz.dev/ for this? it is pretty awesome for rust releases. |
That's neat, hadn't used it myself prior, I had mostly left the goreleaser stuff since it had rust support and pup used to be written in golang, but converted over a weekend to rust. I'll write a blog about that and how I pulled it off. |
What does this PR do?
Adds GoReleaser's native
brewsintegration so the Homebrew tap (datadog-labs/homebrew-pack) is automatically updated on every release — eliminating the manual formula update step that currently causes the tap to lag behind GitHub releases.Motivation
As of today,
brew install datadog-labs/pack/pupinstalls v0.19.1 while the latest GitHub release is v0.22.0. The Homebrew formula is updated manually, which leads to version drift. GoReleaser already supports automatic Homebrew tap updates natively, making this a minimal addition to the existing release pipeline.Additional Notes
HOMEBREW_TAP_GITHUB_TOKENsecret must be added to the repository settings. This should be a PAT (or fine-grained token) with write access todatadog-labs/homebrew-pack. Without this secret, the brew step will be skipped gracefully by GoReleaser.brewsconfig uses a dedicated token (separate fromGITHUB_TOKEN) because the defaultGITHUB_TOKENcannot push to a different repository.Checklist
Related Issues
Closes #108
🤖 Generated with Claude Code