Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hatch_build_scripts/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def initialize(
src_file = work_dir / work_file
out_file = out_dir / work_file
log.debug("Copying %s to %s", src_file, out_file)
if src_file not in created:
if src_file not in created and src_file != out_file:
out_file.parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(src_file, out_file)
shutil.copystat(src_file, out_file)
Expand Down