From d717ce9aa8ade5a549369df92aafbcc8d42ccc3c Mon Sep 17 00:00:00 2001 From: Gabriel Lesperance <611342+glesperance@users.noreply.github.com> Date: Mon, 12 Aug 2024 18:06:21 -0400 Subject: [PATCH] fix: Allows symlink when loading app pkg from disk --- vespa/deployment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vespa/deployment.py b/vespa/deployment.py index acbf8f55..5b1492cd 100644 --- a/vespa/deployment.py +++ b/vespa/deployment.py @@ -48,7 +48,7 @@ def read_app_package_from_disk(self, application_root: Path) -> bytes: orig_dir = os.getcwd() zipf = zipfile.ZipFile(tmp_zip, "w", zipfile.ZIP_DEFLATED) os.chdir(application_root) # Workaround to avoid the top-level directory - for root, dirs, files in os.walk("."): + for root, dirs, files in os.walk(".", followlinks=True): for file in files: zipf.write(os.path.join(root, file)) zipf.close()