From edca7600a3ea478689209b03e2a4c7056ffd7355 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Fri, 17 Nov 2023 14:49:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magefiles/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magefiles/common.go b/magefiles/common.go index a1862e3..577cf7c 100644 --- a/magefiles/common.go +++ b/magefiles/common.go @@ -77,11 +77,11 @@ func makeGoBuildArgs() (goBuildArgs, error) { if Global.OS == "win" { args.OutputExt = ".exe" - args.Env["CGO_ENABLE"] = "0" + args.Env["CGO_ENABLED"] = "0" args.Env["GOOS"] = "windows" } else if Global.OS == "linux" { args.OutputExt = "" - args.Env["CGO_ENABLE"] = "0" + args.Env["CGO_ENABLED"] = "0" args.Env["GOOS"] = "linux" } else if Global.OS != "" {