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
{{ message }}
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
The resulting packages only contain the installed requirements, but not any of the lambda handler itself.
This is caused by the isfile check in aws_lambda.build. It assumes that the current directory is the source directory since it does not join the directory and filename (as done 6 lines below).
possible fix:
--- /tmp/a 2018-08-07 11:28:35.000000000 +0200+++ /tmp/b 2018-08-07 11:28:40.000000000 +0200@@ -327,16 +327,17 @@
files = []
for filename in os.listdir(src):
- if os.path.isfile(filename):+ abs_filename = os.path.join(src, filename)+ if os.path.isfile(abs_filename):
if filename == '.DS_Store':
continue
if filename == config_file:
continue
print('Bundling: %r' % filename)
- files.append(os.path.join(src, filename))+ files.append(abs_filename)
elif os.path.isdir(filename) and filename in source_directories:
print('Bundling directory: %r' % filename)
- files.append(os.path.join(src, filename))+ files.append(abs_filename)
# "cd" into `temp_path` directory.
os.chdir(path_to_temp)