-
-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Description
If you use Pkg.Registry.add to add an already existing registry the entire registry will be downloaded first before the conflict is noticed:
$ mkdir -p /tmp/julia-depot
$ export JULIA_DEPOT_PATH=/tmp/julia-depot JULIA_PKG_SERVER=""
$ time julia -e 'using Pkg; Pkg.Registry.add("General")'
Cloning registry from "https://github.com/JuliaRegistries/General.git"
Added registry `General` to `/tmp/julia-depot/registries/General`
julia -e 'using Pkg; Pkg.Registry.add("General")' 26.10s user 7.72s system 80% cpu 41.826 total
$ time julia -e 'using Pkg; Pkg.Registry.add("General")'
Cloning registry from "https://github.com/JuliaRegistries/General.git"
Registry `General` already exists in `/tmp/julia-depot/registries/General`.
julia -e 'using Pkg; Pkg.Registry.add("General")' 26.37s user 11.05s system 86% cpu 43.262 totalOctogonapus and Socob
Metadata
Metadata
Assignees
Labels
No labels