You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 7.15 changed the behavior of the ":zip" command. In version 7.14, it zipped the path specified in the "path" attribute; In version 7.15 it zips the current working directory. This is a non-backward-compatible change.
The issue is caused by setting the _path variable to None in Version 7.15, while it previously contained the path attribute:
In version 7.14, this leads to a builds/plan.json file with this step:
[
"zip:embedded",
"application/src",
null
],
In version 7.15, this results in the following step:
[
"zip:embedded",
null,
null
],
Steps to reproduce the behavior: -
Expected behavior
The provided path is respected and only that is zipped. This is also shown in the README.md:
path = "src/python-app3",
commands = [
"npm install",
":zip"
],
patterns = [
"!.*/.*\\.txt", # Skip all txt files recursively
"node_modules/.+", # Include all node_modules
],
Actual behavior
The current working directory is zipped. In combination with Terragrunt, it results in a 5GB large Zip file, which cannot be zipped in a reasonable time.
Terminal Output Screenshot(s)
Additional context
The text was updated successfully, but these errors were encountered:
Description
Version 7.15 changed the behavior of the ":zip" command. In version 7.14, it zipped the path specified in the "path" attribute; In version 7.15 it zips the current working directory. This is a non-backward-compatible change.
The issue is caused by setting the _path variable to None in Version 7.15, while it previously contained the path attribute:
This was introduced by PR 640.
Versions
Module version [Required]: 7.15.0
Terraform version:
Terraform v1.9.8
Provider version:
Reproduction Code [Required]
Assume the following Lambda module
source_path
configuration:In version 7.14, this leads to a builds/plan.json file with this step:
In version 7.15, this results in the following step:
Steps to reproduce the behavior: -
Expected behavior
The provided
path
is respected and only that is zipped. This is also shown in the README.md:Actual behavior
The current working directory is zipped. In combination with Terragrunt, it results in a 5GB large Zip file, which cannot be zipped in a reasonable time.
Terminal Output Screenshot(s)
Additional context
The text was updated successfully, but these errors were encountered: