Skip to content

Commit

Permalink
Merge pull request #870 from glesperance/fix/read-app-pkg-symlink
Browse files Browse the repository at this point in the history
fix: Allows symlink when loading app pkg from disk
  • Loading branch information
thomasht86 authored Sep 14, 2024
2 parents b16d657 + 45122eb commit 4e44422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vespa/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,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()
Expand Down

0 comments on commit 4e44422

Please sign in to comment.