From 0ee33f8e7a52b3acf7d24373f2df8f3ef5b31986 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 7 Jul 2026 09:01:37 -0700 Subject: [PATCH] tools/check.sh: skip the Linux pkg-config shim on macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The alsa/libudev .pc shim queries ldconfig, which does not exist on macOS; under 'set -euo pipefail' the failed command substitution aborted the whole gate with exit 127 before the clippy/bevy steps ever ran. Guard the shim behind 'command -v ldconfig' — on macOS Bevy links system frameworks and needs no pkg-config help. Process-only fix; no game behavior touched. --- tools/check.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/check.sh b/tools/check.sh index d56e631..60e519a 100755 --- a/tools/check.sh +++ b/tools/check.sh @@ -43,6 +43,12 @@ setup_local_pkg_config() { # distro dev .pc files. CI does the same small shim explicitly; keeping the # fallback here makes "./tools/check.sh" the real one-command gate instead # of a tiny pkg-config scavenger hunt. + # + # Linux-only: the shim exists for images missing distro dev .pc files. + # macOS has no ldconfig (and Bevy links system frameworks there); without + # this guard the ldconfig pipeline aborts the whole gate under + # `set -euo pipefail` with exit 127. + command -v ldconfig >/dev/null 2>&1 || return 0 pcdir=$(mktemp -d) local pclibdir="$pcdir/lib" mkdir -p "$pclibdir" -- knotmirror 0.0.1