From d73bf2a4fbaf816e66a4c4f237acd65567b98fcd Mon Sep 17 00:00:00 2001 From: Zylquinal Date: Sat, 22 Mar 2025 13:10:11 +0000 Subject: [PATCH] MINGW64_NT detect as windows --- release/platform/platform.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/platform/platform.go b/release/platform/platform.go index 4dcfca75c..cf7a68dc1 100644 --- a/release/platform/platform.go +++ b/release/platform/platform.go @@ -118,7 +118,7 @@ func DetectLocal() (Platform, error) { kernelName := pieces[0] archName := Arch(pieces[1]) - if strings.HasPrefix(kernelName, "CYGWIN") || strings.HasPrefix(kernelName, "MSYS_NT") { + if strings.HasPrefix(kernelName, "CYGWIN") || strings.HasPrefix(kernelName, "MSYS_NT") || strings.HasPrefix(kernelName, "MINGW64_NT") { pf, ok := GetByVariant("windows") if !ok { panic("windows platform name changed")