setup: fix uv install fail (#36839)

* pipefail

* curl retry
This commit is contained in:
Adeeb Shihadeh
2025-12-11 11:22:08 -08:00
committed by GitHub
parent d8125f50d2
commit 1391434f54
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -euo pipefail
# Increase the pip timeout to handle TimeoutError
export PIP_DEFAULT_TIMEOUT=200
@@ -10,7 +10,7 @@ cd "$ROOT"
if ! command -v "uv" > /dev/null 2>&1; then
echo "installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf --retry 5 --retry-delay 5 --retry-all-errors https://astral.sh/uv/install.sh | sh
UV_BIN="$HOME/.local/bin"
PATH="$UV_BIN:$PATH"
fi

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env bash
set -e
set -euo pipefail
RED='\033[0;31m'
GREEN='\033[0;32m'