# LocalRegistry mess: git object xxx could not be found

**URL:** <https://discourse.julialang.org/t/localregistry-mess-git-object-xxx-could-not-be-found/121362>\
**Category:** General Usage\
**Tags:** question, registry\
**Created:** [October 16, 2024, 6:59am UTC](https://discourse.julialang.org/t/localregistry-mess-git-object-xxx-could-not-be-found/121362 "2024-10-16T06:59:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [October 16, 2024, 6:59am UTC](https://discourse.julialang.org/t/localregistry-mess-git-object-xxx-could-not-be-found/121362/1 "2024-10-16T06:59:03Z")

</div>

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

Unfortunately I am running into

```julia
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.

---

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [October 17, 2024, 8:52am UTC](https://discourse.julialang.org/t/localregistry-mess-git-object-xxx-could-not-be-found/121362/2 "2024-10-17T08:52:06Z")

</div>

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.
