Refactor macdeploycheck formula to use direct script installation and improve error handling in install_brew_deps.sh

This commit updates the `macdeploycheck` formula to install the script directly from the tapped repository, ensuring consistency with the tapped revision. Additionally, the `install_brew_deps.sh` script is modified to provide clearer error messages when loading formulae fails, enhancing the overall user experience during dependency checks.
This commit is contained in:
David Helkowski
2026-01-23 00:09:11 +09:00
parent 08fe6d7ebb
commit 0f071c8b31
2 changed files with 7 additions and 7 deletions

View File

@@ -94,10 +94,10 @@ run_with_heartbeat "Refreshing strawberry/local tap clone" bash -lc '
'
for f in kdsingleapplication-qt6 qtsparkle-qt6 sparkle-framework libgpod macdeploycheck; do
if ! brew info "strawberry/local/${f}" >/dev/null 2>&1; then
echo "Error: Missing formula strawberry/local/${f} in the tapped repo." >&2
if ! info_out="$(brew info "strawberry/local/${f}" 2>&1 >/dev/null)"; then
echo "Error: Unable to load formula strawberry/local/${f} from the tapped repo (brew info failed)." >&2
echo "Details (brew info):" >&2
brew info "strawberry/local/${f}" >&2 || true
echo "$info_out" >&2
echo "If you recently added/changed formulae, ensure they are committed, then refresh the tap:" >&2
echo " git -C \"$(brew --repo strawberry/local)\" pull --ff-only" >&2
exit 1