Skip to content

Commit

Permalink
fix: change Go path
Browse files Browse the repository at this point in the history
  • Loading branch information
0.618 committed Mar 27, 2024
1 parent 088f957 commit ef0b948
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const buildResource = async ({ buildType, srcRoot, lastBuildTimeStamp }:
// for [email protected], dependencies must be manually installed
executeCommand(['mod', 'tidy', '-v'], true, envVars, srcDir);
// Execute the build command, cwd must be the source file directory (Windows requires it)
executeCommand(['build', '-o', 'bootstrap', executablePath, '.'], true, envVars, srcDir);
executeCommand(['build', '-o', 'bootstrap', 'main.go'], true, envVars, srcDir);
// Compress this binary into a ZIP file deployment package, ready to deploy to Lambda
if (isWindows) {
executeCommand(['%USERPROFILE%Go\bin\build-lambda-zip.exe', '-o', 'lambda-handler.zip', 'bootstrap'], true, envVars, srcDir);
Expand Down

0 comments on commit ef0b948

Please sign in to comment.