从 Julia 1.1 开始, pkg 新增了个 registry 选项. 也就意味着我们之前使用镜像的基础还得先 clone 一遍 General, 现在连这个步骤都不需要啦!

这里演示我用的是 1.2.0-DEV的版本(因为镜像站latest的就是这个版本).

-> % /Applications/Julia-1.2.app/Contents/Resources/julia/bin/julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0-DEV.85 (2019-01-02)
 _/ |\__'_|_|_|\__'_|  |  Commit 9731ee7ab1 (2 days old master)
|__/                   |

(v1.2) pkg> registry add https://mirrors.ustc.edu.cn/julia/registries/General.git/
   Cloning registry from "https://mirrors.ustc.edu.cn/julia/registries/General.git/"
     Added registry `General` to `~/.julia/registries/General`

(v1.2) pkg> add DebuggerFramework#master
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://mirrors.ustc.edu.cn/julia/registries/General.git/`
   Cloning git-repo `https://github.com/Keno/DebuggerFramework.jl.git`
  Updating git-repo `https://github.com/Keno/DebuggerFramework.jl.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.2/Project.toml`
  [67417a49] + DebuggerFramework v0.1.2+ #master (https://github.com/Keno/DebuggerFramework.jl.git)
  Updating `~/.julia/environments/v1.2/Manifest.toml`
  [67417a49] + DebuggerFramework v0.1.2+ #master (https://github.com/Keno/DebuggerFramework.jl.git)
  [2a0f44e3] + Base64
  [b77e0a4c] + InteractiveUtils
  [d6f4376e] + Markdown
  [3fa0cd96] + REPL
  [6462fe0b] + Sockets

(v1.2) pkg>