You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm building pjy.1 file into the repo root dir. Then for some reason hatch-build-scripts tries to copy the built file $/pjy.1 into out dir $/pjy.1, which obviously fails:
File "/tmp/1000/build-env-pvakc__9/lib/python3.13/site-packages/hatch_build_scripts/plugin.py", line 60, in initialize
shutil.copyfile(src_file, out_file)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/shutil.py", line 240, in copyfile
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: PosixPath('/tmp/1000/release-pjy.fbWHAl/pjy.1') and PosixPath('/tmp/1000/release-pjy.fbWHAl/pjy.1') are the same file
ERROR Backend subprocess exited when trying to invoke build_sdist
Proposed Actions
Either
don't call copyfile if the source is the same as the destination
or propose an option not to copy artifacts
The text was updated successfully, but these errors were encountered:
hydrargyrum
added a commit
to hydrargyrum/hatch-build-scripts
that referenced
this issue
Apr 6, 2025
Current Situation
I have this config
So I'm building
pjy.1
file into the repo root dir. Then for some reasonhatch-build-scripts
tries to copy the built file$/pjy.1
into out dir$/pjy.1
, which obviously fails:Proposed Actions
Either
The text was updated successfully, but these errors were encountered: