Skip to content

Commit 36670f3

Browse files
committed
tar: don't add recursively
files and directories are already listed individually, recursive causes duplicate files to be added
1 parent bf618ef commit 36670f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repo2docker/buildpacks/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def _filter_tar(tarinfo):
630630

631631
if files_to_add:
632632
for item in files_to_add:
633-
tar.add(item, f"src/{item}", filter=_filter_tar)
633+
tar.add(item, f"src/{item}", recursive=False, filter=_filter_tar)
634634
else:
635635
# Either the source was empty or everything was filtered out.
636636
# In any case, create an src dir so the build can proceed.

0 commit comments

Comments
 (0)