Skip to content

Commit

Permalink
tar: don't add recursively
Browse files Browse the repository at this point in the history
files and directories are already listed individually, recursive causes duplicate files to be added
  • Loading branch information
manics committed Sep 15, 2024
1 parent bf618ef commit 36670f3
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 36670f3

Please sign in to comment.