Closed1
brew install すると「The bottle for wabt has an invalid build provenance attestation.」エラーが出る

概要
brew install xxxx
とすると以下の様なエラーが発生
Warning: Failed to verify attestation. Retrying in 1s...
Warning: Failed to verify attestation. Retrying in 3s...
Warning: Failed to verify attestation. Retrying in 9s...
Warning: Failed to verify attestation. Retrying in 27s...
Warning: Failed to verify attestation. Retrying in 81s...
Error: The bottle for wabt has an invalid build provenance attestation.
This may indicate that the bottle was not produced by the expected
tap, or was maliciously inserted into the expected tap's bottle
Failed to verify the artifact: failed to fetch attestations for subject:
storage.
原因をLLMに聞くと以下
Homebrew が bottle の「build provenance attestation」(ビルド証明書)を検証できなかったために発生するエラーです。一般的な原因としては、GitHub CLI(
gh
)の認証情報が古い、または無効になっていることが考えられます
という事らしい。解決方法で提示してくれたものが以下
- GitHub CLI の再認証
-
gh auth login
を再実施
-
- 検証を一時的に無効にする
HOMEBREW_NO_VERIFY_ATTESTATIONS=1 brew install xxx
- 👆でインストールはできた
👆のissueで色々議論されている
このスクラップは4ヶ月前にクローズされました