Skip to content

Commit

Permalink
fix the right temp dir (#4181)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Mar 2, 2025
1 parent 6fa32d5 commit 61115be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,7 @@ function install_archive(
tmp_objects = String[]
url_success = false
for (url, top) in urls
# the temp dir should be in the same depot because the `rename` operation in `mv_temp_dir_retries`
# is possible only if the source and destination are on the same filesystem
path = tempname(depot_temp) * randstring(6)
path = tempname() * randstring(6)
push!(tmp_objects, path) # for cleanup
url_success = true
try
Expand All @@ -733,7 +731,9 @@ function install_archive(
url_success = false
end
url_success || continue
dir = joinpath(tempdir(), randstring(12))
# the temp dir should be in the same depot because the `rename` operation in `mv_temp_dir_retries`
# is possible only if the source and destination are on the same filesystem
dir = tempname(depot_temp) * randstring(6)
push!(tmp_objects, dir) # for cleanup
# Might fail to extract an archive (https://github.com/JuliaPackaging/PkgServer.jl/issues/126)
try
Expand Down

0 comments on commit 61115be

Please sign in to comment.