# Forbid Pkg to try and download artifact from outside world?

**URL:** <https://discourse.julialang.org/t/forbid-pkg-to-try-and-download-artifact-from-outside-world/87357>\
**Category:** General Usage\
**Tags:** artifacts\
**Created:** [September 16, 2022, 8:52am UTC](https://discourse.julialang.org/t/forbid-pkg-to-try-and-download-artifact-from-outside-world/87357 "2022-09-16T08:52:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [September 16, 2022, 8:52am UTC](https://discourse.julialang.org/t/forbid-pkg-to-try-and-download-artifact-from-outside-world/87357/1 "2022-09-16T08:52:03Z")

</div>

I just managed to add an artifact to one of my packages, however while attempting that I had some address issues to my local storage. This resulted in `Pkg` errors during `instantiate`.

The error prompted that `Pkg` tried to download the artifact from `https://pkg.julialang.org/artifact/...`.  
Given that my artifacts are limited to a local network, is there a way to restrict that behavior e.g. by adding something about the `Platform` in the artifact description ?  
Also why is `Pkg` attempting to reach a domain that is not referenced in the `Artifacts.toml` ?

My `Artifacts.toml` looks like the following (1 artifact / 1 rule)

```julia
[[<myartifactname>]]
arch = "x86_64"
git-tree-sha1 = "<artifacthash>"
os = "windows"

    [[<myartifactname>.download]]
    sha256 = "<artifactdownloadhash>"
    url = "<artifactlocalurl>"

```
