From 83eb2da451cd14df3711a47ba4f4397244f246b7 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 25 Aug 2025 14:21:18 +0200 Subject: [PATCH] [core]: uv uses now "update-shell" command (#7172) * [core]: uv uses now "update-shell" command * Improve uv shell integration setup process Refactor uv shell integration setup with improved error handling. --- misc/tools.func | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index 8b25bde0ab..893859cb73 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1329,8 +1329,13 @@ function setup_uv() { return 1 } - rm -rf "$TMP_DIR" + if [[ ":$PATH:" != *":/usr/local/bin:"* ]]; then + export PATH="/usr/local/bin:$PATH" + fi ensure_usr_local_bin_persist + if ! $STD uv python update-shell; then + msg_error "uv shell integration failed – continuing anyway" + fi msg_ok "Setup uv $LATEST_VERSION" # Optional: install specific Python version