# Fail to update my own Package

**URL:** <https://discourse.julialang.org/t/fail-to-update-my-own-package/78677>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [March 29, 2022, 12:31pm UTC](https://discourse.julialang.org/t/fail-to-update-my-own-package/78677 "2022-03-29T12:31:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philippe\_Maincon1](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Post date:** [March 29, 2022, 12:31pm UTC](https://discourse.julialang.org/t/fail-to-update-my-own-package/78677/1 "2022-03-29T12:31:28Z")

</div>

Hi,

I have created the package `EspyInsideFunction.jl`, which is publicly available on GIT and is in the Julia registry.

I have updated `EspyInsideFunction.jl`: a new commit of `master`, with tag ``0.1.2`. Pushed, and checked that the new version is out there on GITHUB.

Then I’m ggod to go, right?

```julia
(@v1.7) pkg> add EspyInsideFunction.jl
    Updating registry at `C:\Users\philippem\.julia\registries\JuliaComputingRegistry`
    Updating registry at `C:\Users\philippem\.julia\registries\General.toml`
   Resolving package versions...
ERROR: expected package `EspyInsideFunction [2b54c6b0]` to be registered

```

What is it I forgot to do?

Philippe

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [March 29, 2022, 12:47pm UTC](https://discourse.julialang.org/t/fail-to-update-my-own-package/78677/2 "2022-03-29T12:47:40Z")

</div>

> [@Philippe\_Maincon1](#):
>
> `EspyInsideFunction.jl`

In the last commit, you need to comment `@JuliaRegistrator register` to trigger the registraton of the updated version.

---

<div class="post-metadata">

**Author:** ![Philippe\_Maincon1](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Post date:** [March 29, 2022, 12:58pm UTC](https://discourse.julialang.org/t/fail-to-update-my-own-package/78677/3 "2022-03-29T12:58:10Z")

</div>

Oh thank you! Muito obrigado! 😀

---

<div class="post-metadata">

**Author:** ![Philippe\_Maincon1](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Post date:** [March 30, 2022, 5:11am UTC](https://discourse.julialang.org/t/fail-to-update-my-own-package/78677/4 "2022-03-30T05:11:16Z")

</div>

Thanks to Imiq’s solution, I can now successfully update `EspyInsideFunction` in Julia’s default project environment.  
The next step for is to do the same within another environment, that of my (unpublished) `Lithe` project. But there `update` is followed by a failed compilation (by the way, `Lithe` is not expected to work with `EspyInsideFunction v0.1.0`). I think I get more information by removing then adding `EspyInsideFunction`:

```julia
(Lithe) pkg> add EspyInsideFunction
   Resolving package versions...
    Updating `C:\Users\philippem\Documents\GIT\lithe\Project.toml`
  [d6b55740] + EspyInsideFunction v0.1.0
    Updating `C:\Users\philippem\Documents\GIT\lithe\Manifest.toml`
  [d6b55740] + EspyInsideFunction v0.1.0
Precompiling project...
  ✗ Lithe
  0 dependencies successfully precompiled in 5 seconds (217 already precompiled)       
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` 
or load the package

```

Still that old version!

So I take my gloves off, remove the package again and point explicitly to GITHUB and success!:

```julia
(Lithe) pkg> add "https://github.com/PhilippeMaincon/EspyInsideFunction.jl"
    Updating git-repo `https://github.com/PhilippeMaincon/EspyInsideFunction.jl`
   Resolving package versions...
    Updating `C:\Users\philippem\Documents\GIT\lithe\Project.toml`
  [2b54c6b0] + EspyInsideFunction v0.1.2 `https://github.com/PhilippeMaincon/EspyInsideFunction.jl#master`
    Updating `C:\Users\philippem\Documents\GIT\lithe\Manifest.toml`
  [2b54c6b0] + EspyInsideFunction v0.1.2 `https://github.com/PhilippeMaincon/EspyInsideFunction.jl#master`
Precompiling project...
  1 dependency successfully precompiled in 14 seconds (217 already precompiled)  

```

So my question: commenting `@JuliaRegistrator register ` in my espy commit made it possible to update espy in the base environment. But in my `Lithe` environment I had to bypass the Julia registry (I think that’s what I did by providing my repo’s URL). Why the difference? What did I miss?

🙄 😀

---

<div class="post-metadata">

**Author:** ![Philippe\_Maincon1](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Post date:** [March 30, 2022, 7:25am UTC](https://discourse.julialang.org/t/fail-to-update-my-own-package/78677/5 "2022-03-30T07:25:23Z")

</div>

And just to prove that I am still not understanding the system:  
I zip the code from `Lithe`, transfer it to a greenfield computer (with Julia 1.7.2 installed). There, I intend to `dev` it, and I point to the local copy of the code.

My intention is that `Pkg` will find that `Lithe v0.3.1` has dependendy `EspyInsideFunction v1.2.0`, look up the package registry, go to espy’s GIT repo and install it.

But I get:

```julia
(@v1.7) pkg> dev "C:\Users\philippem\C home\GIT\lithe"
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package EspyInsideFunction [2b54c6b0]:
EspyInsideFunction [2b54c6b0] log:
├─EspyInsideFunction [2b54c6b0] has no known versions!
└─restricted to versions * by Lithe [f328f230] — no versions left
   └─Lithe [f328f230] log:
     ├─possible versions are: 0.3.1 or uninstalled
     └─Lithe [f328f230] is fixed to version 0.3.1

```

which I fail to understand

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 30, 2022, 8:38am UTC](https://discourse.julialang.org/t/fail-to-update-my-own-package/78677/6 "2022-03-30T08:38:41Z")

</div>

> [@Philippe\_Maincon1](#):
>
> `EspyInsideFunction [2b54c6b0] has no known versions!`

You have a corrupted registry, delete it and reinstall it:

```julia
]registry rm General
registry add General

```

---

<div class="post-metadata">

**Author:** ![Philippe\_Maincon1](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Post date:** [March 30, 2022, 1:02pm UTC](https://discourse.julialang.org/t/fail-to-update-my-own-package/78677/7 "2022-03-30T13:02:10Z")

</div>

Hi,

YES, that was it!!! Thank you

: )

Philippe
