# Unregistered dependencies do not work with unregistered package

**URL:** <https://discourse.julialang.org/t/unregistered-dependencies-do-not-work-with-unregistered-package/82340>\
**Category:** General Usage\
**Tags:** pkg, package-manager\
**Created:** [June 6, 2022, 7:00pm UTC](https://discourse.julialang.org/t/unregistered-dependencies-do-not-work-with-unregistered-package/82340 "2022-06-06T19:00:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [June 6, 2022, 7:00pm UTC](https://discourse.julialang.org/t/unregistered-dependencies-do-not-work-with-unregistered-package/82340/1 "2022-06-06T19:00:40Z")

</div>

Hi all,

I have two unregistered packages on a private repo, A and B. A is a dependency of B. When I set up the packages locally, and add the unregistered package to the Project.toml, everything works ok. However, if I remove the package locally and add it back via dev, or someone else tries to use it on a different computer, I receive two errors. First, when I try to dev package, I receive this message (URLs, package names, and IDs removed):

```julia

(@v1.7) pkg> dev url
     Cloning git-repo `url`
Username for 'ur': 
Password for 'url': 
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package A :
 A log:
 ├─A has no known versions!
 └─restricted to versions 0.1 by B — no versions left
   └─B log:
     ├─possible versions are: 0.1.0 or uninstalled
     B is fixed to version 0.1.0

```

If I try to instantiate or update, I receive the following error:

```julia
    Updating registry at `~/.julia/registries/General.toml`
ERROR: expected package `A` to be registered

```

In a previous [post](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/4), the solution was to remove A and add it back. This does work, but isn’t a very good solution because it makes collaboration and version control difficult. Are there any better solutions?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [June 7, 2022, 7:18am UTC](https://discourse.julialang.org/t/unregistered-dependencies-do-not-work-with-unregistered-package/82340/2 "2022-06-07T07:18:43Z")

</div>

The better solution is to create your own registry and register your packages there. The [LocalRegistry](https://github.com/GunnarFarneback/LocalRegistry.jl) package provides tools for this.

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [June 7, 2022, 11:48am UTC](https://discourse.julialang.org/t/unregistered-dependencies-do-not-work-with-unregistered-package/82340/3 "2022-06-07T11:48:20Z")

</div>

Thank you. I will look into your package. It looks promising.
