Skip to content

gh: fix bump audit failing to resolve core formula dependencies#16

Merged
csparker247 merged 1 commit into
mainfrom
fix/bump-audit-api-mode
Jun 16, 2026
Merged

gh: fix bump audit failing to resolve core formula dependencies#16
csparker247 merged 1 commit into
mainfrom
fix/bump-audit-api-mode

Conversation

@csparker247

Copy link
Copy Markdown
Member

Summary

  • setup-homebrew explicitly sets HOMEBREW_NO_INSTALL_FROM_API= (empty, i.e. API mode) for all non-core-repo workflows via $GITHUB_ENV
  • In API mode, brew audit cannot resolve core formula dependencies like cmake and eigen, causing brew bump to fail with "Can't find dependency"
  • Fix: add core: true to setup-homebrew to clone homebrew-core with actual formula files, and set HOMEBREW_NO_INSTALL_FROM_API: "1" on the bump step so audit uses those files

Test plan

  • Trigger the bump workflow via workflow_dispatch and confirm it no longer fails on audit
  • Confirm a bump PR is opened when a formula is outdated

🤖 Generated with Claude Code

setup-homebrew sets HOMEBREW_NO_INSTALL_FROM_API= (API mode) for all
non-core-repo workflows. In API mode, `brew audit` cannot resolve
dependencies like cmake and eigen, causing the bump to fail. Clone
homebrew-core via core:true and disable API mode for the bump step so
audit has access to formula files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@csparker247 csparker247 merged commit a235d0c into main Jun 16, 2026
4 checks passed
@csparker247 csparker247 deleted the fix/bump-audit-api-mode branch June 16, 2026 10:42
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