-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0.618
committed
Mar 27, 2024
1 parent
088f957
commit ef0b948
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
|