Skip to content

Adopt org-infra reusable Homebrew workflow for formula publishing #805

Description

@sonupreetam

Is your feature request related to a problem? Please describe.

complyctl's Homebrew formula publishing is implemented as an inline step in PR #742 using heredoc + sed placeholder templating. This approach is fragile and will drift from other repos (complypack) that need the same capability. A reusable workflow is being built in org-infra (complytime/org-infra#500) to standardize Homebrew source-build formula publishing.

Describe the solution you'd like

Replace the inline Homebrew job in release.yml with a caller to complytime/org-infra/.github/workflows/reusable_release_homebrew.yml, passing complyctl-specific inputs (tag, project_name, tap_repo, go_main_path, ldflags_module).

This supersedes #787 items 1 (unauthenticated clone), 2 (retry backoff), 3 (double .git guard), and 6 (remote branch pre-flight). Items 4 (GitHub App confirmation) and 5 (Go version alignment) remain valid independently.

Blocked by: complytime/org-infra#500

Describe alternatives you've considered

Merging PR #742 as-is with the inline implementation. This works but creates a maintenance burden when complypack adopts Homebrew and both implementations need to stay in sync.

Additional context

  • complyctl uses a GitHub App (APP_ID_HOMEBREW_FORMULA_PUBLISHER) for cross-repo auth to complytime/homebrew-tap
  • The formula is source-build (user's machine compiles with Go), avoiding macOS Gatekeeper/signing concerns
  • Shell completions (Bash, Zsh, Fish) are installed by the formula via generate_completions_from_executable
  • Related: #713 (original Homebrew request)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    Priority

    Low

    Effort

    Low

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions