Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Dumb-tap refactor: remove in-tap automation#3

Merged
sgerlach merged 1 commit into
mainfrom
refactor/dumb-tap
Apr 22, 2026
Merged

Dumb-tap refactor: remove in-tap automation#3
sgerlach merged 1 commit into
mainfrom
refactor/dumb-tap

Conversation

@sgerlach
Copy link
Copy Markdown
Contributor

Summary

Mirrors the stackhawk/homebrew-cli pattern. That tap has no workflows,
no scripts — just hawk.rb, hawk@X.Y.Z.rb files, and a README. All
commits come from runner with messages like "Updating brew's hawk.rb
to version 5.5.0", pushed directly by the releaseCliBrewFormula
gradle task in stackhawk/hawkscan:build.gradle.kts.

This PR aligns homebrew-hawkop with that model:

  • .github/workflows/update-formula.yml and test.ymlremoved.
    The release runs in the producer repo, not here.
  • scripts/formula-template.rbremoved. The template already
    lives at stackhawk/hawkop:brew/hawkop.rb.template; the gradle task
    reads from there.
  • scripts/update-formula.sh and scripts/test-update-formula.bats
    removed. Rendering happens in the gradle task.
  • README.md — rewritten to describe the maintenance model and the
    pinned-version install syntax (hawkop@X.Y.Z).

Net: -402 lines of automation that were solving the wrong problem.

Why the revert

PR #1 built an in-tap workflow triggered by workflow_dispatch /
repository_dispatch. That's a reasonable pattern but not the one
StackHawk already standardized on. Moving to the hawkscan pattern means
one fewer auth boundary (no cross-repo token needed) and one rendering
code path instead of two.

What lands in this tap after this merges

Nothing — just this cleanup. Formula/hawkop.rb gets pushed by the
first stackhawk/hawkop prod release that has the new gradle task
wired up. That's a follow-up PR in stackhawk/hawkop.

Test plan

  • Merge, then brew untap stackhawk/hawkop; brew tap stackhawk/hawkop
    — tap should clone cleanly even with no formula present (users will
    just get "No available formula" until the first release lands it,
    which matches reality).
  • After the follow-up in stackhawk/hawkop and a prod release,
    brew install stackhawk/hawkop/hawkop works end-to-end.

The release pipeline in stackhawk/hawkop now owns rendering and pushing
of Formula/*.rb, mirroring how stackhawk/hawkscan's build.gradle.kts
drives stackhawk/homebrew-cli via JGit. This tap becomes a passive
destination — just Formula/*.rb files plus a README.

Removed:
- .github/workflows/update-formula.yml and test.yml — the release runs
  in the hawkop repo, so there's nothing for this repo's CI to gate on.
- scripts/formula-template.rb — the template lives upstream at
  stackhawk/hawkop:brew/hawkop.rb.template.
- scripts/update-formula.sh and its bats tests — the gradle task in
  hawkop handles rendering directly.

Rewrote README to describe the maintenance model and the pinned-version
install syntax (hawkop@X.Y.Z).

Formula/hawkop.rb lands here when hawkop v0.6.2 (or later) releases.
@sgerlach sgerlach merged commit 9298283 into main Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant