-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(lambda-python): document that not using a lockfile will not allow transitive dependencies to be updated #14607
Comments
The Python bundling system identifies a bundle based on the hash of the sources and not the hash of the artifact because The recommended solution is commit a lock file, which will be included as part of the source hash calculation. I am not 100% sure what's the best way to do that if you just use I am repurposing this issue to expand about this in our documentation. |
Since python bundles use source hashes (and as a general best practice), add a recommendation to use a dependency lockfile. Fixes #14607
Since python bundles use source hashes (and as a general best practice), add a recommendation to use a dependency lockfile. Fixes #14607
|
Since python bundles use source hashes (and as a general best practice), add a recommendation to use a dependency lockfile. Fixes aws#14607
Built a lambda layer for python runtime, the source is not changed. However the asset artifact is changed after rebuilding it. The cdk deploy(or
cdk-assets
) does not upload the newer asset file to stage bucket without any warning.Reproduction Steps
create a python lambda layer like below,
Has a
requirements.txt
like below,Then build a python layer from above
requirements.txt
,The lambda layer might be varied when one dependency of
awswrangler
is updated(such assix
). The lambda layer zip might be changed, but the hash still is same(therequirements.txt
is not changed).While the asset artifact is cached in stage bucket of cdk, the newer lambda layer won’t be uploaded to stage bucket again.
What did you expect to happen?
or
What actually happened?
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: