Closed nhz2 closed 5 months ago
@staticfloat does this look ok to you?
Given you have a reproducer in https://github.com/JuliaLang/Pkg.jl/issues/3643#issuecomment-1905048298 could that be added as a test?
Yes, I'll try and add a test. I should be able to reproduce the issue on Linux using the right environment variables and artifacts.
Followup to https://github.com/JuliaLang/Pkg.jl/pull/3764 Fixes bug reported in https://github.com/JuliaLang/Pkg.jl/issues/3643#issuecomment-1905048298
This PR modifies
download_artifact
to avoid callingmv(src, dst; force=true)
wheresrc
anddst
are both possible valid artifacts.The main steps of
download_artifact
aretrue
if the artifact already exists.download_verify_unpack
into the temporary directory.If steps 4 to 7 throw an error, that error gets returned, otherwise
true
is returned.