From 085118bbe36de61b7f4c92e92d845be7ce24558d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 15 Aug 2026 11:36:02 +0800 Subject: [PATCH] fix: detect Git Bash/MSYS/Cygwin uname output as windows platform On windows-latest runners, bash steps run under Git Bash where uname -s reports MINGW64_NT-10.0-, so platform detection rejected Windows runners with ERR_UNKNOWN_PLATFORM before the download step was even reached. Map mingw*/msys*/cygwin* to windows. Co-Authored-By: Claude Fable 5 --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 3338f6c..3f82968 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,6 +26,8 @@ function detect_client_info() { case "${CLIENT_PLATFORM}" in darwin | linux | windows) ;; + # Git Bash / MSYS2 / Cygwin on Windows runners report e.g. MINGW64_NT-10.0 + mingw* | msys* | cygwin*) CLIENT_PLATFORM="windows" ;; *) log_error "Unknown or unsupported platform: ${CLIENT_PLATFORM}. Supported platforms are Linux, Darwin, and Windows." "${ERR_UNKNOWN_PLATFORM}" ;; esac