mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-26 09:14:56 +02:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user