Skip to content

Commit

Permalink
fix: fix Go project with multiple files (#13765)
Browse files Browse the repository at this point in the history
Co-authored-by: 0.618 <[email protected]>
  • Loading branch information
0618 and 0.618 authored May 6, 2024
1 parent 9acac9d commit bd5dc93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const buildResource = async ({ buildType, srcRoot, lastBuildTimeStamp }:
executeCommand(['mod', 'tidy', '-v'], true, envVars, srcDir);
// Execute the build command, cwd must be the source file directory (Windows requires it)
// Details: https://github.com/aws/aws-lambda-go
executeCommand(['build', '-o', '../bin/bootstrap', 'main.go'], true, envVars, srcDir);
executeCommand(['build', '-o', '../bin/bootstrap', '.'], true, envVars, srcDir);

rebuilt = true;
}
Expand Down

0 comments on commit bd5dc93

Please sign in to comment.