Skip to content

Commit

Permalink
If Base.DEPOT_PATH is empty, Pkg.PlatformEngines.get_server_dir s…
Browse files Browse the repository at this point in the history
…hould return `nothing` (instead of erroring) (#2808)

(cherry picked from commit 5823469)
  • Loading branch information
DilumAluthge authored and IanButterworth committed Nov 11, 2021
1 parent 7fe5600 commit f604384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PlatformEngines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function get_server_dir(url::AbstractString, server=pkg_server())
@warn "malformed Pkg server value" server
return
end
isempty(Base.DEPOT_PATH) && return
joinpath(depots1(), "servers", String(m.captures[1]))
end

Expand Down

0 comments on commit f604384

Please sign in to comment.