From a72f6c49731a66da955f70fd7d58927b0264b3fe Mon Sep 17 00:00:00 2001 From: Kimmo Lehto Date: Wed, 14 Apr 2021 11:51:32 +0300 Subject: [PATCH] Fix Windows 2019 detection (#21) --- os/windows/windows2019.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/windows/windows2019.go b/os/windows/windows2019.go index 74585323..e81b6bdc 100644 --- a/os/windows/windows2019.go +++ b/os/windows/windows2019.go @@ -14,7 +14,7 @@ type Windows2019 struct { func init() { registry.RegisterOSModule( func(os rig.OSVersion) bool { - return os.ID == "windows-10.0.17763" + return os.ID == "windows" && os.Version == "10.0.17763" }, func() interface{} { return Windows2019{}