Skip to content

Commit d16080a

Browse files
Elad Ben-Israelmergify[bot]
authored andcommitted
fix(s3-deployment): lambda "src" not included in published module (#4430)
As of v1.12.0, we customized the calculation of the custom resource hash to use the contents of the "src" directory instead of the bundle.zip itself in order to keep it deterministic (the bundle is created during build by pulling in external dependencies and includes compiled python files which caused it have a different hash in each build). However, the "lambda/src" directory was explicitly excluded from the module's tarball (in .npmignore), so when this module was used in production, it could not find "lambda/src" in order to calculate the hash. This fixes #4404 by removing `lambda/src` from `.npmignore`.
1 parent 11d18e0 commit d16080a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/@aws-cdk/aws-s3-deployment/.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dist
1313
# Include .jsii
1414
!.jsii
1515

16-
lambda/src
1716
lambda/test
1817
lambda/*.sh
1918
*.snk

0 commit comments

Comments
 (0)