Skip to content

Commit 0da57da

Browse files
authored
fix(lambda-python): asset bundling fails on windows (#19270)
The output directory should always use posix paths since this directory is being used within a linux docker container. I did not add any tests because it looks like there is no way to mock the `path` platform detection. fixes #18861 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 1e352ca commit 0da57da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-lambda-python/lib/bundling.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class Bundling implements CdkBundlingOptions {
6969
image,
7070
} = props;
7171

72-
const outputPath = path.join(AssetStaging.BUNDLING_OUTPUT_DIR, outputPathSuffix);
72+
const outputPath = path.posix.join(AssetStaging.BUNDLING_OUTPUT_DIR, outputPathSuffix);
7373

7474
const bundlingCommands = this.createBundlingCommand({
7575
entry,

0 commit comments

Comments
 (0)