Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Create global_prefix inside the JULIA_DEPOT as a fallback #208

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "BinaryProvider"
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
version = "0.6.0"
version = "0.6.1"

[deps]
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Expand Down
6 changes: 5 additions & 1 deletion src/BinaryProvider.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ function __init__()
global global_prefix

# Initialize our global_prefix
global_prefix = Prefix(joinpath(@__DIR__, "..", "global_prefix"))
try
global_prefix = Prefix(joinpath(@__DIR__, "..", "global_prefix"))
catch e
global_prefix = Prefix(joinpath(Pkg.depots1(), "global_prefix"))
end

# Find the right download/compression engines for this platform
probe_platform_engines!()
Expand Down