We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8303a6 commit 67bad49Copy full SHA for 67bad49
package_python_function/packager.py
@@ -46,7 +46,8 @@ def zip_all_dependencies(self, target_path: Path) -> None:
46
47
with ZipFile(target_path, "w", ZIP_DEFLATED) as zip_file:
48
def zip_dir(path: Path) -> None:
49
- for item in path.iterdir():
+ # use sorted to make sure files are always written in a deterministic order
50
+ for item in sorted(path.iterdir(), key=lambda i: i.name):
51
if item.is_dir():
52
if item.name not in self.DIRS_TO_EXCLUDE:
53
zip_dir(item)
0 commit comments