fix(endurain): pin uv to the version required by the project

Add UV_VERSION support to setup_uv and install the required uv release
before backend setup so poetry/uv venv no longer fails on version drift.
This commit is contained in:
MickLesk
2026-06-22 21:39:24 +02:00
parent 6b931ef4d4
commit 05b563ed00
3 changed files with 21 additions and 15 deletions
+2
View File
@@ -81,6 +81,8 @@ msg_ok "Built Frontend"
msg_info "Setting up Backend"
cd /opt/endurain/backend
UV_VERSION=$(grep -Po 'required-version\s*=\s*"\K[^"]+' pyproject.toml 2>/dev/null || echo "0.11.18")
UV_VERSION="$UV_VERSION" setup_uv
$STD uv tool install poetry
$STD uv tool update-shell
export PATH="/root/.local/bin:$PATH"