Skip to content

fix: trust third-party Brewfile formulae before using them - #44

Merged
wu-json merged 1 commit into
mainfrom
fix/ci-brew-trust
Nov 1, 2026
Merged

wu-json merged 1 commit into
mainfrom
fix/ci-brew-trust

Conversation

@wu-json

@wu-json wu-json commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Problem

The `Test setup` workflow started failing (e.g. on #43):

Error: Refusing to load formula oven-sh/bun/bun from untrusted tap oven-sh/bun.
Run `brew trust --formula oven-sh/bun/bun` or `brew trust oven-sh/bun` to trust it.

Homebrew now requires third-party tap formulae to be trusted before it loads them. scripts/bootstrap.sh already trusted the Tinycast cask but not the tapped Brewfile formulae (oven-sh/bun/bun, wu-json/asahi/mast), so a fresh just bootstrap brew would fail the same way.

Fix

  • scripts/bootstrap.sh: before brew bundle, trust every owner/tap/formula entry listed in the Brewfile.
  • tests/integration.py: trust the same formulae after tapping and before brew info, since the test uses a disposable home with an empty trust store.

Both read the list from the Brewfile, so adding or removing a tap needs no further changes.

Testing

  • bash -n + shellcheck on the bootstrap script; py_compile on the test.
  • Locally: the Brewfile scan finds exactly oven-sh/bun/bun and wu-json/asahi/mast, and brew trust --formula writes both to an isolated XDG_CONFIG_HOME trust store.
  • CI on this PR runs the full integration test.

🤖 Generated with Claude Code

Homebrew now refuses to load formulae from untrusted taps, which broke
the setup integration test on oven-sh/bun/bun and would break a fresh
bootstrap the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wu-json
wu-json merged commit 8da1ce9 into main Nov 1, 2026
1 check passed
@wu-json
wu-json deleted the fix/ci-brew-trust branch November 1, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant