# Bizarre Pkg bug reports: different versions when testing to make tests pass?

**URL:** <https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946>\
**Category:** General Usage\
**Tags:** package\
**Created:** [August 23, 2018, 3:31pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946 "2018-08-23T15:31:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [August 23, 2018, 3:31pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946/1 "2018-08-23T15:31:56Z")

</div>

Has anyone seen this behavior where you can get different versions of a package when testing than when you `using`? I haven’t gotten it, but I am getting bug reports about it and am not sure how to tell users how to handle it. Reference:

[https://github.com/JuliaDiffEq/DifferentialEquations.jl/issues/338](https://github.com/JuliaDiffEq/DifferentialEquations.jl/issues/338)

It seems to be Linux related, maybe. I reported it upstream but didn’t find out much:

[https://github.com/JuliaLang/julia/issues/28851](https://github.com/JuliaLang/julia/issues/28851)

so I am hoping I can crowd-source some more information here.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [August 23, 2018, 3:34pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946/2 "2018-08-23T15:34:43Z")

</div>

There is a bug right now that makes Pkg update too much. From that issue it looks like ForwardDiff gets updated when the tests are run so they pass, while the local version he has installed is not 1.0 ready.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [August 23, 2018, 3:44pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946/3 "2018-08-23T15:44:36Z")

</div>

But why would the local version not use ForwardDiff v0.8.5 if the tests do?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [August 23, 2018, 4:15pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946/4 "2018-08-23T16:15:52Z")

</div>

Because it spuriously upgraded when testing.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [August 23, 2018, 4:22pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946/5 "2018-08-23T16:22:21Z")

</div>

How is the upgrade when testing spurious? That’s what we want.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [August 23, 2018, 4:25pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946/6 "2018-08-23T16:25:37Z")

</div>

No, we want to use the same version as when you are using the package (the one in the Manifest).

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [August 23, 2018, 4:33pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946/7 "2018-08-23T16:33:48Z")

</div>

But why is it grabbing the older version when `using`? That’s the actual issue. It’s getting the right one when testing. We don’t have an upper bound on it so I’m not sure why a few people on one operating system aren’t getting the right version (Pkg3’s environments stop conflicts in this kind of case?)

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [August 23, 2018, 4:41pm UTC](https://discourse.julialang.org/t/bizarre-pkg-bug-reports-different-versions-when-testing-to-make-tests-pass/13946/8 "2018-08-23T16:41:42Z")

</div>

Something is holding ForwardDiff.jl back?
