From 2e0c91c295862338c7d8b7e932304e7270278718 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 24 Dec 2024 17:21:34 -0800 Subject: [PATCH] uv from brew doesn't have self update --- tools/install_python_dependencies.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/install_python_dependencies.sh b/tools/install_python_dependencies.sh index 267577d712..b0bb835e64 100755 --- a/tools/install_python_dependencies.sh +++ b/tools/install_python_dependencies.sh @@ -10,8 +10,11 @@ cd "$ROOT" # updating uv on macOS results in 403 sometimes function update_uv() { - for i in $(seq 1 5); - do + if ! uv self update --help >/dev/null 2>&1; then + return 0 + fi + + for i in $(seq 1 5); do if uv self update; then return 0 else