-
Notifications
You must be signed in to change notification settings - Fork 4
option not to copy files #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hydrargyrum
added a commit
to hydrargyrum/hatch-build-scripts
that referenced
this issue
Apr 6, 2025
If the command generates the artifact in the right place, there's no need to copy it to out directory Closes rmorshea#8
Running into this same issue, for example: [[tool.hatch.build.hooks.build-scripts.scripts]]
out_dir = "src/sshai"
work_dir = "src/sshai/compiled"
commands = [
"CGO_ENABLED=0 go build -tags netgo -o agi_sshd agi_sshd.go",
]
artifacts = [
"agi_sshd",
] $ python -m tarfile -l dist/sshai-0.0.1.tar.gz | grep agi_sshd
sshai-0.0.1/src/sshai/agi_sshd
sshai-0.0.1/src/sshai/compiled/agi_sshd
sshai-0.0.1/src/sshai/compiled/agi_sshd.go Obviously we don't want both compiled artifacts in the dist. Setting The workaround I have is to put stuff in another directory and exclude the artifact that ends up there from the dist [tool.hatch.build]
exclude = [
"src/sshd/agi_sshd",
] |
rmorshea
pushed a commit
that referenced
this issue
May 29, 2025
If the command generates the artifact in the right place, there's no need to copy it to out directory Closes #8
rmorshea
added a commit
that referenced
this issue
May 29, 2025
If the command generates the artifact in the right place, there's no need to copy it to out directory Closes #8 Co-authored-by: hydrargyrum <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: