# Package won't update to most recent version

**URL:** <https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197>\
**Category:** General Usage\
**Created:** [April 16, 2019, 10:27am UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197 "2019-04-16T10:27:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [April 16, 2019, 10:27am UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/1 "2019-04-16T10:27:20Z")

</div>

Hi-

I am trying to update a package called MCMCChains to its most recent release version. For some reason, it does not work. The latest version is [0.3.7](https://github.com/TuringLang/MCMCChains.jl/releases).

```julia
(v1.1) pkg> update
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.1/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.1/Manifest.toml`
 [no changes]

(v1.1) pkg> st
    Status `~/.julia/environments/v1.1/Project.toml`
  [c52e3926] Atom v0.8.5
  [593b3428] CmdStan v5.0.1
  [0c46a032] DifferentialEquations v6.3.0
  [31c24e10] Distributions v0.18.0
  [e5e0dc1b] Juno v0.7.0
  [c7f686f2] MCMCChains v0.3.6
  [429524aa] Optim v0.18.1
  [d96e819e] Parameters v0.10.3
  [91a5bcdd] Plots v0.24.0
  [295af30f] Revise v2.1.2
  [2913bbd2] StatsBase v0.29.0
  [4c63d2b9] StatsFuns v0.8.0
  [f3b207a7] StatsPlots v0.10.2
  [fce5fe82] Turing v0.6.14

(v1.1) pkg> 

```

I tried the following:  
] gc followed by ] update  
] resolve followed by ] update  
] add MCMCChains @v0.3.7  
adding only MCMCChains to a fresh install of Julia

---

<div class="post-metadata">

**Author:** ![goedman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goedman/32/217_2.png) [@goedman](https://discourse.julialang.org/u/goedman)\
**Post date:** [April 16, 2019, 11:59am UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/2 "2019-04-16T11:59:48Z")

</div>

Chris, the version number in Project.toml is set to 0.3.6 so that is what will be displayed.

I would for now use `add MCMCChains#master`. If you want to test it, `] test MCMCChains` should return:

```julia
Test Summary: | Pass Total
MCMCChains | 124 124
   Testing MCMCChains tests passed 

```

The master version by the way includes the data frame based summary updates, e.g.:

```julia
using Turing

N=50
θ = .6
k = rand(Binomial(N,θ))
@model model(N,k) = begin
    θ ~ Beta(5,5)
    k~ Binomial(N,θ)
end
Nsamples = 2000
Nadapt = 1000
δ = .85
specs = NUTS(Nsamples,Nadapt,δ)
chainarray = map(x->sample(model(N,k),specs),1:4)

x = []
for (i,ch) in enumerate(chainarray)
    print(i, " ")
    push!(x, summarize(ch[1001:end,:,:], sections=[:parameters]) )
end
println()

x[[1, 3, 4]]

```

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [April 16, 2019, 12:03pm UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/3 "2019-04-16T12:03:27Z")

</div>

Thanks, Rob. Is there a reason 0.3.7 has been released but the Project.toml has not been updated?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [April 16, 2019, 12:07pm UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/4 "2019-04-16T12:07:55Z")

</div>

> [@Christopher\_Fisher](#):
>
> The latest version is [0.3.7](https://github.com/TuringLang/MCMCChains.jl/releases).

This release never made it to the registry: [Tag MCMCChains.jl v0.3.7 by attobot · Pull Request #22777 · JuliaLang/METADATA.jl · GitHub](https://github.com/JuliaLang/METADATA.jl/pull/22777) so as far as Pkg knows 0.3.6 is the latest release.

> [@goedman](#):
>
> Chris, the version number in Project.toml is set to 0.3.6 so that is what will be displayed.

This is not true unless you are in a checked out state (i.e. have added a branch or similar).

> [@Christopher\_Fisher](#):
>
> Is there a reason 0.3.7 has been released but the Project.toml has not been updated?

The maintainers forgot, and thats probably why [Tag MCMCChains.jl v0.3.7 by attobot · Pull Request #22777 · JuliaLang/METADATA.jl · GitHub](https://github.com/JuliaLang/METADATA.jl/pull/22777) had failing tests and thus never merged.

I would file an issue with the package asking for a new release using the new system.

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [April 16, 2019, 12:09pm UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/5 "2019-04-16T12:09:24Z")

</div>

Thanks. That sounds like good advice. I’ll file an issue unless Rob has an objection (he is one of the maintainers).

---

<div class="post-metadata">

**Author:** ![goedman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goedman/32/217_2.png) [@goedman](https://discourse.julialang.org/u/goedman)\
**Post date:** [April 16, 2019, 12:11pm UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/6 "2019-04-16T12:11:21Z")

</div>

Over the next couple of days we will figure all of this out, but I think it might be an oversight from our side as the Pkg3 stuff was only very recently added to MCMCChains (last week). As Attobot is now gone I think we have to tag the release ourselves and, as before, update the version number, but I haven’t tried that yet.

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [April 16, 2019, 12:12pm UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/7 "2019-04-16T12:12:49Z")

</div>

Would filing an issue be helpful or is this already on the agenda (I suspect)?

---

<div class="post-metadata">

**Author:** ![goedman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goedman/32/217_2.png) [@goedman](https://discourse.julialang.org/u/goedman)\
**Post date:** [April 16, 2019, 12:18pm UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/8 "2019-04-16T12:18:19Z")

</div>

Filing an issue would be great! Thanks.

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [April 16, 2019, 12:20pm UTC](https://discourse.julialang.org/t/package-wont-update-to-most-recent-version/23197/9 "2019-04-16T12:20:55Z")

</div>

No problem. I filed the [issue](https://github.com/TuringLang/MCMCChains.jl/issues/88).
