diff --git a/src/Pkg.jl b/src/Pkg.jl index d4053782f9..f7bdafb7e9 100644 --- a/src/Pkg.jl +++ b/src/Pkg.jl @@ -12,10 +12,10 @@ export UpgradeLevel, UPLEVEL_MAJOR, UPLEVEL_MAJOR, UPLEVEL_MINOR, UPLEVEL_PATCH export PreserveLevel, PRESERVE_TIERED, PRESERVE_ALL, PRESERVE_DIRECT, PRESERVE_SEMVER, PRESERVE_NONE export Registry, RegistrySpec -depots() = Base.DEPOT_PATH +depots() = Base.depot_path() function depots1() d = depots() - isempty(d) && Pkg.Types.pkgerror("no depots found in DEPOT_PATH") + isempty(d) && Pkg.Types.pkgerror("no depots found in Base.depot_path()") return d[1] end diff --git a/src/REPLMode/REPLMode.jl b/src/REPLMode/REPLMode.jl index 372d0a8bec..4dffed74cd 100644 --- a/src/REPLMode/REPLMode.jl +++ b/src/REPLMode/REPLMode.jl @@ -486,7 +486,7 @@ function projname(project_file::String) else name = project.name end - for depot in Base.DEPOT_PATH + for depot in Base.depot_path() envdir = joinpath(depot, "environments") if startswith(abspath(project_file), abspath(envdir)) return "@" * name diff --git a/src/REPLMode/completions.jl b/src/REPLMode/completions.jl index dfb045e1c8..024f753895 100644 --- a/src/REPLMode/completions.jl +++ b/src/REPLMode/completions.jl @@ -3,7 +3,7 @@ ######################## function _shared_envs() possible = String[] - for depot in Base.DEPOT_PATH + for depot in Base.depot_path() envdir = joinpath(depot, "environments") isdir(envdir) || continue append!(possible, readdir(envdir))