Skip to content

Commit

Permalink
Don't use shared pkg .cache directory any more on Windows
Browse files Browse the repository at this point in the history
The directory junctions created by `symlink` are proving too problematic with respect to network drives.
This essentially reverts #7361. Ref #14026 and #14205.
  • Loading branch information
tkelman committed Dec 2, 2015
1 parent 88527fa commit 61d1087
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions base/pkg/cache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,13 @@ function mkcachedir()
return
end

@windows_only if Base.windows_version() < Base.WINDOWS_VISTA_VER
mkdir(cache)
return
end
if Dir.isversioned(pwd())
@unix_only if Dir.isversioned(pwd())
rootcache = joinpath(realpath(".."), ".cache")
if !isdir(rootcache)
mkdir(rootcache)
end
try
symlink(rootcache, cache)
return
end
symlink(rootcache, cache)
return
end
mkdir(cache)
end
Expand Down

0 comments on commit 61d1087

Please sign in to comment.