LocalRegistry mess: git object xxx could not be found

Hi there,
I am using a local registry to maintain a couple of forks with extra uuid.

Unfortunately I am running into

ERROR: MyPackage: git object xxx could not be found

despite the xxx tree hash is indeed the last commit which is also upstream…

(EDIT: This happens when I deleted the existing Manifest.toml and run julia --project=. -e "import Pkg; Pkg.resolve()" in another package which depends on MyPackage)

I already deleted .julia/clones, but nothing helps. The error seems to happen actually before MyPackage is cloned at all, as if there is another outdated cache…

I changed the uuid recently - so this may be the main reason why the caching fails. Any help and hints about what to delete is highly appreciated.

I found the answer:
when doing LocalRegistry.register(MyPackage, ..., repo="...") I needed to use the repo key because my local checkout has two remotes. Here I messed it up, specifying the wrong remote which then lead to this error.

Fixing it directly in MyLocalRegistry made it work.

3 Likes