Skip to content

Commit

Permalink
Merge pull request #1371 from manics/tarfile-not-recursive
Browse files Browse the repository at this point in the history
TarFile.add: don't add recursively
  • Loading branch information
minrk authored Sep 16, 2024
2 parents 4302a97 + 36670f3 commit 239c4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo2docker/buildpacks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def _filter_tar(tarinfo):

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

0 comments on commit 239c4f5

Please sign in to comment.