-
-
Notifications
You must be signed in to change notification settings - Fork 693
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
Zip command ignores the "source" parameter #581
Comments
This issue has been automatically marked as stale because it has been open 30 days |
I am also affected by this bug, and am hoping it isn't auto-closed. |
+1 on this, all of a sudden the deployment seems to pack the entire folder, not just the build directory on me end too. source_path = [
{
path = "${path.module}/../backend/lambda/my-lambda",
commands = [
"pnpm install",
"pnpm run build",
":zip dist ."
]
}
] |
@tonio-ramirez did you find a workaround for the time being? |
Workaround we had to go with was source_path = [
{
path = "${path.module}/../backend/lambda/my-lambda",
commands = [
"pnpm install",
"pnpm run build",
"cd dist",
":zip"
]
}
] |
Wonder if is a bug introduced in comit: (f786681) in package.py:935 added line -
this is then successfully worked around by @anuradhawick's |
While trying to figure out why the The problem seems to be that ZipContentFilter.filter.apply sets the default return value to I think the fix could look something like this (if there are no rules add the file by default; if there are rules default to not adding it and only add it if there is an explicit match)
|
I finally figured out a nice way to work around this without having to If you set
|
This issue has been automatically marked as stale because it has been open 30 days |
No activity on this? |
This issue has been automatically marked as stale because it has been open 30 days |
ping |
This issue has been automatically marked as stale because it has been open 30 days |
I hate to comment without adding any value, but I really don't want this issue to be closed just because it went stale... |
Maybe this was fixed in: |
Please give it a try using |
Description
Starting with version v7.2.6 ":zip" ignores the
source
parameter.This works as expected on version v7.2.5 - lambda only contains files from the
build
folder in function root /.Starting with v7.2.6 this is not the case anymore, and all files from the
path
are added to the package.Versions
Reproduction Code [Required]
Steps to reproduce the behavior:
Use
:zip
command withsource
anddestination
parameters to copy files from subdirectory.Expected behavior
Function package only contains Files from
source
directory indestination
.Actual behavior
All files from
path
are present in function package.Additional context
Bug introduced in v7.2.6
The text was updated successfully, but these errors were encountered: