How to add registry with LocalRegistry

Christopher_Fisher
Tue, 21 Mar 2023 09:08:38 +0000
General Usage

Hi all,

I am trying to setup a local registry for packages that are on a private server with git. I have completed the following steps:

1. I installed LocalRegistry

2. I created a local registry with create_registry, which created a folder in .julia/registries/my_local_registry

3. I pushed the the changes in .julia/registries/my_local_registry to a dedicated repo on the private server

The registry contains a single file called Registry.toml, which contains fields for name, uuid, repo description and a blank block [packages].

The README instructs users to add the local registry with

using Pkg
pkg"registry add <repository url>"

However, I receive the following error:

     Cloning git-repo `https://xxxx`
    Updating git-repo `https://xxxx`
ERROR: could not find project file (Project.toml or JuliaProject.toml) in package at `https:/xxxx` maybe `subdir` needs to be specified

I redacted the URL. Why did it create Registry.toml but looks for Project.toml?

Thank you in advance for your help.

6 posts - 2 participants