Преглед изворни кода

Merge remote-tracking branch 'origin/master' into develop

QMK Bot пре 1 недеља
родитељ
комит
00a110fa3c
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      util/env-bootstrap.sh

+ 7 - 0
util/env-bootstrap.sh

@@ -440,6 +440,13 @@ __EOT__
     install_uv() {
         # Install `uv` (or update as necessary)
         download_url https://astral.sh/uv/install.sh - | TMPDIR="$(posix_ish_path "${TMPDIR:-}")" UV_INSTALL_DIR="$(windows_ish_path "${UV_INSTALL_DIR:-}")" sh
+
+        # Workaround for UV installer not pushing UV_TOOL_BIN_DIR into the env when used with their installer
+        if [ "$(uname -o 2>/dev/null || true)" = "Msys" ]; then
+            if [ "${UV_NO_MODIFY_PATH:-}" != "1" ]; then
+                echo -e "#!/bin/sh\n# Workaround for UV installer not pushing UV_TOOL_BIN_DIR into the env when used with their installer\nexport PATH=\"${UV_TOOL_BIN_DIR}:\$PATH\"" > /etc/profile.d/qmk-uv-env.sh
+            fi
+        fi
     }
 
     setup_paths() {