<p dir="auto"><code class="notranslate">Pkg.clone</code> supports cloning a package via a registered package name. If you supply a package name that is not registered the following occurs in Julia v0.4</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; Pkg.clone(&quot;Foo&quot;)
INFO: Cloning Foo from Foo
fatal: repository 'Foo' does not exist
ERROR: unlink: no such file or directory (ENOENT)
 in unlink at fs.jl:102
 in rm at file.jl:59
 in clone at pkg/entry.jl:162
 in clone at pkg/entry.jl:186
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in clone at pkg.jl:34"><pre class="notranslate">julia<span class="pl-k">&gt;</span> Pkg<span class="pl-k">.</span><span class="pl-c1">clone</span>(<span class="pl-s"><span class="pl-pds">"</span>Foo<span class="pl-pds">"</span></span>)
INFO<span class="pl-k">:</span> Cloning Foo from Foo
fatal<span class="pl-k">:</span> repository <span class="pl-s"><span class="pl-pds">'</span>Foo<span class="pl-pds">'</span></span> does not exist
ERROR<span class="pl-k">:</span> unlink<span class="pl-k">:</span> no such file or directory (ENOENT)
 <span class="pl-k">in</span> unlink at fs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">102</span>
 <span class="pl-k">in</span> rm at file<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">59</span>
 <span class="pl-k">in</span> clone at pkg<span class="pl-k">/</span>entry<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">162</span>
 <span class="pl-k">in</span> clone at pkg<span class="pl-k">/</span>entry<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">186</span>
 <span class="pl-k">in</span> anonymous at pkg<span class="pl-k">/</span>dir<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">31</span>
 <span class="pl-k">in</span> cd at file<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">22</span>
 <span class="pl-k">in</span> cd at pkg<span class="pl-k">/</span>dir<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">31</span>
 <span class="pl-k">in</span> clone at pkg<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">34</span></pre></div>
<p dir="auto">In Julia v0.5.0-rc3 this succeeds with no warning or error:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; Pkg.clone(&quot;Foo&quot;)
INFO: Cloning Foo from Foo
INFO: Computing changes..."><pre class="notranslate">julia<span class="pl-k">&gt;</span> Pkg<span class="pl-k">.</span><span class="pl-c1">clone</span>(<span class="pl-s"><span class="pl-pds">"</span>Foo<span class="pl-pds">"</span></span>)
INFO<span class="pl-k">:</span> Cloning Foo from Foo
INFO<span class="pl-k">:</span> Computing changes<span class="pl-k">...</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".julia/v0.5 » julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type &quot;?help&quot; for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.1 (2015-11-08 10:33 UTC)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |  x86_64-apple-darwin15.0.0

julia&gt; Pkg.clone(&quot;WTF&quot;)
INFO: Cloning WTF from WTF
fatal: repository 'WTF' does not exist
ERROR: unlink: no such file or directory (ENOENT)
 in unlink at fs.jl:102
 in rm at file.jl:59
 in clone at pkg/entry.jl:162
 in clone at pkg/entry.jl:186
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in clone at pkg.jl:34"><pre class="notranslate"><code class="notranslate">.julia/v0.5 » julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.1 (2015-11-08 10:33 UTC)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |  x86_64-apple-darwin15.0.0

julia&gt; Pkg.clone("WTF")
INFO: Cloning WTF from WTF
fatal: repository 'WTF' does not exist
ERROR: unlink: no such file or directory (ENOENT)
 in unlink at fs.jl:102
 in rm at file.jl:59
 in clone at pkg/entry.jl:162
 in clone at pkg/entry.jl:186
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in clone at pkg.jl:34
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type &quot;?help&quot; for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+1351 (2015-11-18 15:34 UTC)
 _/ |\__'_|_|_|\__'_|  |  jcb/findlib/2277b09* (fork: 1 commits, 0 days)
|__/                   |  x86_64-apple-darwin15.0.0

julia&gt; Pkg.clone(&quot;WTF&quot;)
INFO: Cloning WTF from WTF
INFO: Computing changes...

julia&gt; using WTF
ERROR: ArgumentError: WTF not found in path.
Run Pkg.add(&quot;WTF&quot;) to install the WTF package
 in require at ./loading.jl:321
 in eval at ./boot.jl:263"><pre class="notranslate"><code class="notranslate">               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+1351 (2015-11-18 15:34 UTC)
 _/ |\__'_|_|_|\__'_|  |  jcb/findlib/2277b09* (fork: 1 commits, 0 days)
|__/                   |  x86_64-apple-darwin15.0.0

julia&gt; Pkg.clone("WTF")
INFO: Cloning WTF from WTF
INFO: Computing changes...

julia&gt; using WTF
ERROR: ArgumentError: WTF not found in path.
Run Pkg.add("WTF") to install the WTF package
 in require at ./loading.jl:321
 in eval at ./boot.jl:263
</code></pre></div>