Skip to content

fix: brew formula follows Homebrew best practices#377

Merged
mchmarny merged 1 commit intomainfrom
fix/brew-formula-best-practices
Mar 12, 2026
Merged

fix: brew formula follows Homebrew best practices#377
mchmarny merged 1 commit intomainfrom
fix/brew-formula-best-practices

Conversation

@mchmarny
Copy link
Copy Markdown
Member

Summary

  • Remove cosign verify-blob-attestation from the install block — Homebrew discourages network access during install, and the which("cosign") check is not a declared dependency, so verification was silently skipped for most users
  • Move full verification command into caveats as a documented post-install step with correct #{opt_bin} paths
  • Add test block (aicr version) so brew test aicr works
  • Expand caveats to explain both provenance verification and trust root update

Note: GoReleaser reports brews is being deprecated in favor of homebrew_casks — that's a separate migration.

Test plan

  • goreleaser check validates config
  • make lint passes
  • make test passes

- Remove cosign verification from install block (no network during install)
- Move verification instructions to caveats as a post-install step
- Add test block with version assertion
- Expand caveats with full cosign verify-blob-attestation command
@mchmarny mchmarny requested a review from a team as a code owner March 12, 2026 11:32
@mchmarny mchmarny self-assigned this Mar 12, 2026
@mchmarny mchmarny added the enhancement New feature or request label Mar 12, 2026
@mchmarny mchmarny added this to the M1 - Repo Opening milestone Mar 12, 2026
@mchmarny mchmarny requested a review from dims March 12, 2026 11:36
@mchmarny mchmarny enabled auto-merge (squash) March 12, 2026 11:39
@mchmarny mchmarny merged commit 109e5b3 into main Mar 12, 2026
16 checks passed
@mchmarny mchmarny deleted the fix/brew-formula-best-practices branch March 12, 2026 11:40
@github-actions
Copy link
Copy Markdown

Coverage Report ✅

Metric Value
Coverage 73.3%
Threshold 70%
Status Pass
Coverage Badge
![Coverage](https://img.shields.io/badge/coverage-73.3%25-green)

No Go source files changed in this PR.

xdu31 pushed a commit to xdu31/aicr that referenced this pull request Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants