I’m trying to create a registry. I’m starting with a simple example before I attempt the real thing. My goal here is to make a registry with two packages
TestB which depends on
TestA which is also in the registry. Then I want to install TestB and see that it can find and download
TestA. I’m using GunnarFarneback’s registrator version which allows the use of registrator for local actions, though I’m not 100% sure I’m using it correctly. I believe I created the two packages and the registry, but I can’t figure out how to make one package depend on the other. Also I haven’t got the the point of putting either package on github.
I’m going to paste the full list of commands I ran with some annotation, and then ask my question.
(v1.1) pkg> registry status Registry Status  General (https://github.com/JuliaRegistries/General.git) (v1.1) pkg> add https://github.com/GunnarFarneback/Registrator.jl using Registrator shell> cd julia shell> mkdir reg_test shell> cd reg_test # I'm going to put the registry and both packages in this dir for the test julia> create_registry("TestRegistry","https://github.com/ggggggggg/TestRegistry") # make a github repo at that url shell> cd TestRegistry/ shell> git push -u -f origin master # -f generally not neccesary, I wrote over my first attempt shell> cd .. # /Users/user/Julia/reg_test (v1.1) pkg> generate TestA (v1.1) pkg> generate TestB shell> cd TestA (v1.1) pkg> activate . julia> using TestA # register requires module as argument, must using TestA shell> cd .. # /Users/user/Julia/reg_test (TestA) pkg> add TestRegistry # oops... I guess I added the registry as a package? it seems like that should have failed (TestA) pkg> rm TestRegistry (TestA) pkg> activate . (reg_test) pkg> registry add TestRegistry (TestB) pkg> activate TestB # at this point I believe TestA exist, and is in TestRegistry, and I have added TestRegistry, so I should be able to find TestA from TestB... but clearly not (TestB) pkg> add TestA [ Info: resolving package specifier `TestA` as a directory at `~/Julia/reg_test/TestA`. Cloning git-repo `TestA` ERROR: Git repository not found at 'TestA' (TestB) pkg> registry status # it knows about TestRegistry, so why doesn't this work? Registry Status  General (https://github.com/JuliaRegistries/General.git) [0652d6e2] TestRegistry (https://github.com/ggggggggg/TestRegistry)
I’m not sure what I’m doing wrong, but I guess it has something to do with where my packages and directories are in my filesystem?