From b92d0167b27b80a35bca749163e50a52992d42f5 Mon Sep 17 00:00:00 2001 From: Kyle J Strand Date: Wed, 26 Aug 2026 14:42:28 -0600 Subject: [PATCH] fix: stop a piped install.sh from silently skipping the install install.sh is documented to be run as `curl ... | bash`, where the script text is itself standard input. A child process that reads stdin therefore consumes the rest of the script, after which bash reaches EOF and exits 0 -- having skipped everything that had not been read yet, and reporting success. That is what `sudo -u "$SUDO_USER" brew install` did. With --install-deps on macOS the prerequisites were installed, the script ended there, and libquil was never downloaded. The step passed; the failure surfaced later and elsewhere, as HeaderNotFound in libquil-sys's build script, because /usr/local/include/libquil did not exist. See rigetti/libquil-sys#68. Every command that could read stdin now gets /dev/null 2>&1 || missing+=("${formula}") + "${brew_cmd[@]}" list --formula "${formula}" >/dev/null 2>&1