How long does it take until I can install a new package version?

I updated this package more than an hour ago:

But if I try to install it in an empty project I get an outdated version:

using Pkg
Pkg.add("KitePodModels")

installs version 3.2, not version 3.3

How long can it take until I can install the latest version?

If you run Pkg.Registry.update() you should be able to get the latest version afterwards.

Doesn’t help:

julia> using Pkg

julia> Pkg.Registry.update()
    Updating registry at `~/.julia/registries/General.toml`

(tmp) pkg> up
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/repos/tmp/Project.toml`
  No Changes to `~/repos/tmp/Manifest.toml`

(tmp) pkg> st
Status `~/repos/tmp/Project.toml`
  [9de5dc81] KitePodModels v0.3.2


I don’t know the answer in general, but you can see what commit of the General Registry the package servers are currently serving based on the contents of ~/.julia/registries/General.toml. That first line is the tree hash, and the commit with that hash for me currently (7a149fdb1) is from three hours ago.

1 Like

It’s usually very quick, but sometimes there can be a delay if e.g. the Pkg Servers are processing some large artifacts, or something like that.

If you need the absolute latest version of the registry, you can set the PKG_SERVER_REGISTRY_PREFERENCE environment variable to eager, and then do a Pkg.Registry.update(). This should almost always give you the latest version of the registry.

2 Likes

Now it works. So about 2h. It can be very fast, but it can also take 2h.

Note that the package servers are now serving a commit from 38 minutes ago. It varies.

2 Likes