Skip to content

Commit 82ab358

Browse files
authored
Trust diffblue/cbmc tap so macOS Kani CI survives Homebrew 6.0+ (#688)
## Problem Homebrew 6.0 started refusing to load formulae from untrusted third-party taps. The pinned Kani's `scripts/setup/macos/install_cbmc.sh` runs `brew tap diffblue/cbmc`, which now fails on `macos-latest` runners, so CBMC never gets installed and every macOS Kani job dies with: ``` [Errno 2] No such file or directory: 'cbmc' ``` This is currently red on all macOS jobs (see #685), and the fail-fast cancellation also takes down the ubuntu counterparts. ## Fix Run `brew trust diffblue/cbmc 2>/dev/null || true` in `run-kani.sh` right before it invokes the macOS setup script, so the tap is trusted before Kani taps it — regardless of which Kani commit is pinned. The guard makes it a no-op on older Homebrew that lacks `brew trust`. This mirrors the upstream Kani fix [model-checking/kani#4785](model-checking/kani#4785), applied at the verify-rust-std layer so it does **not** require bumping the pinned Kani commit / toolchain. ## Testing Ubuntu path is unchanged; macOS CI on this PR exercises the fix.
1 parent 4da67dd commit 82ab358

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎scripts/run-kani.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ build_kani() {
162162
if [[ "$os_name" == "Linux" ]]; then
163163
./scripts/setup/ubuntu/install_deps.sh
164164
elif [[ "$os_name" == "Darwin" ]]; then
165+
# Homebrew 6.0+ refuses to load formulae from third-party taps
166+
# unless they are explicitly trusted, which breaks the
167+
# `brew tap diffblue/cbmc` in the pinned Kani's install_cbmc.sh.
168+
# Trust the tap first (no-op on older Homebrew). Mirrors
169+
# model-checking/kani#4785.
170+
brew trust diffblue/cbmc 2>/dev/null || true
165171
./scripts/setup/macos/install_deps.sh
166172
else
167173
echo "Unknown operating system"

0 commit comments

Comments
 (0)