Unregistered dependencies do not work with unregistered package

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):


(@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:

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

In a previous post, 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.

The better solution is to create your own registry and register your packages there. The LocalRegistry package provides tools for this.

1 Like

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