Skip to content

Commit

Permalink
fix(lambda-python): asset bundling fails on windows
Browse files Browse the repository at this point in the history
The output directory should always use posix paths since this directory
is being used within a linux docker container.

fixes #18861
  • Loading branch information
corymhall committed Mar 7, 2022
1 parent 0f59ead commit 030c623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda-python/lib/bundling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Bundling implements CdkBundlingOptions {
image,
} = props;

const outputPath = path.join(AssetStaging.BUNDLING_OUTPUT_DIR, outputPathSuffix);
const outputPath = path.posix.join(AssetStaging.BUNDLING_OUTPUT_DIR, outputPathSuffix);

const bundlingCommands = this.createBundlingCommand({
entry,
Expand Down

0 comments on commit 030c623

Please sign in to comment.