Skip to content

Commit 239c4f5

Browse files
authored
Merge pull request #1371 from manics/tarfile-not-recursive
TarFile.add: don't add recursively
2 parents 4302a97 + 36670f3 commit 239c4f5

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)