From 54204f31ec22d17712791d12699baa47addd810d Mon Sep 17 00:00:00 2001 From: Redjon Zaci Date: Wed, 22 May 2024 17:33:43 +0200 Subject: [PATCH] fix: remove go.exe as argument to go command --- packages/amplify-go-function-runtime-provider/src/runtime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-go-function-runtime-provider/src/runtime.ts b/packages/amplify-go-function-runtime-provider/src/runtime.ts index 707c75215ea..7e2403d2485 100644 --- a/packages/amplify-go-function-runtime-provider/src/runtime.ts +++ b/packages/amplify-go-function-runtime-provider/src/runtime.ts @@ -93,7 +93,7 @@ export const buildResource = async ({ buildType, srcRoot, lastBuildTimeStamp }: if (isWindows) { envVars.CGO_ENABLED = 0; - executeCommand(['go.exe', 'install', 'github.com/aws/aws-lambda-go/cmd/build-lambda-zip@latest'], true, envVars, srcDir); + executeCommand(['install', 'github.com/aws/aws-lambda-go/cmd/build-lambda-zip@latest'], true, envVars, srcDir); } // for go@1.16, dependencies must be manually installed