Implement UV installer path workaround for Msys (#26441)

This commit is contained in:
Joel Challis
2026-09-05 12:25:07 +01:00
committed by GitHub
parent 2a5dd4317a
commit 570401148e
+7
View File
@@ -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() {