Conversation
Both setup workflows died in `brew bundle`, for unrelated reasons.
macOS: homebrew-core deleted tflint on 2026-05-13 over its BUSL relicense,
so `brew 'tflint'` now resolves to nothing ("No available formula"). The
upstream tap only ships a cask, which would be macOS-only and needs
`brew trust` for a third-party tap. Installing it with `go install`
instead keeps tflint on Linux too and matches how terraform-ls and tfsec
are already installed a few lines away.
Ubuntu/WSL: the runners ship a preinstalled Homebrew with auto-update
disabled. When it is older than the formula JSON API's schema it aborts
mid-pour with "unknown install step: run", which took out tmux and gnupg.
The scripts ran `brew upgrade` but never `brew update`, so Homebrew itself
stayed stale; update_homebrew() now does both.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
macOS / Ubuntu / WSL の setup workflow が揃って
brew bundleで落ちていた。原因は無関係な2つ。Changes
macOS:
tflintが homebrew-core から消えたhomebrew-core が 2026-05-13 に BUSL 再ライセンスを理由に tflint を削除しており、
brew 'tflint'はNo available formula with the name "tflint"になる(formula API も 404)。upstream の
terraform-linters/tapは cask しか提供しておらず、これを使うとRefusing to load cask ... from untrusted tapを確認)。CI は非対話なのでbrew trustを仕込まない限り落ちるそのため
go install github.com/terraform-linters/tflint@latestに変更した。すぐ数行上のterraform-ls/tfsecと同じ方式で、Linux でも tflint が復活する。ローカルで v0.64.0(cask と同版)の動作を確認済み。Ubuntu / WSL: Homebrew 自体が古い
runner にプリインストールされた Homebrew は auto-update が無効で、formula JSON API のスキーマより古いと
unknown install step: runでca-certificatesの pour 中に落ちる。これでtmuxとgnupgが巻き添えになっていた。スクリプトは
brew upgradeは呼ぶがbrew updateを呼んでいなかったため Homebrew 本体が更新されない。update_homebrew()をcommon.shに追加し、3つの platform script から呼ぶようにした。その他
zsh/alias.zshのupdate-allにも tflint を追加(init script のコメントが「このリストと揃えろ」と指示しているため)。Concerns
bin/lint-shell(CI と同じコマンド)とbrew bundle listによるパース確認、およびgo installした tflint の実行確認まで。実際に通るかは CI の結果待ち。tflintformula が残っている可能性がある。go 版を PATH で優先させる前にbrew uninstall tflintが必要。References