Skip to content

Commit 2eec6a4

Browse files
authored
Fix warning about already existing symlink when mounting depende… (#629)
1 parent 9f4fd35 commit 2eec6a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Prefix.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ function symlink_tree(src::AbstractString, dest::AbstractString)
221221
dest_file = joinpath(dest, relpath(root, src), f)
222222
if isfile(dest_file)
223223
# Find source artifact that this pre-existent destination file belongs to
224-
dest_artifact_source = abspath(dest_file)
225-
while occursin(".artifacts", dest_artifact_source) && basename(dirname(dest_artifact_source)) != ".artifacts"
224+
dest_artifact_source = realpath(dest_file)
225+
while occursin("artifacts", dest_artifact_source) && basename(dirname(dest_artifact_source)) != "artifacts"
226226
dest_artifact_source = dirname(dest_artifact_source)
227227
end
228228
@warn("Symlink $(f) from artifact $(basename(src)) already exists in artifact $(basename(dest_artifact_source))")

0 commit comments

Comments
 (0)