# Can I make \`build\` skip the cloning from Github step?

**URL:** <https://discourse.julialang.org/t/can-i-make-build-skip-the-cloning-from-github-step/20530>\
**Category:** New to Julia\
**Created:** [February 7, 2019, 4:50am UTC](https://discourse.julialang.org/t/can-i-make-build-skip-the-cloning-from-github-step/20530 "2019-02-07T04:50:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [February 7, 2019, 4:50am UTC](https://discourse.julialang.org/t/can-i-make-build-skip-the-cloning-from-github-step/20530/1 "2019-02-07T04:50:32Z")

</div>

I copied my Julia packages from a computer to another computer. The computer I copied it to doesn’t have internet access. But I need to re-build some packages. When I run `] build PkgName` it fails with

> ERROR: failed to clone from [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git), error: GitError(Code:ERROR, Class:Net, curl error: Could not resolve host: [github.com](http://github.com)  
> )

Is there a way to skip the cloning from Github step?

---

<div class="post-metadata">

**Author:** ![c42f](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c42f/32/52842_2.png) [@c42f](https://discourse.julialang.org/u/c42f)\
**Post date:** [February 8, 2019, 12:46am UTC](https://discourse.julialang.org/t/can-i-make-build-skip-the-cloning-from-github-step/20530/2 "2019-02-08T00:46:30Z")

</div>

I’m not sure whether there’s an official way to do this. As an ugly workaround you could perhaps try

```julia
using Pkg
Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true

```

and see whether that helps.

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [February 8, 2019, 3:26am UTC](https://discourse.julialang.org/t/can-i-make-build-skip-the-cloning-from-github-step/20530/3 "2019-02-08T03:26:58Z")

</div>

> [@c42f](#):
>
> Pkg.UPDATED\_REGISTRY\_THIS\_SESSION = true

No cigar.
