# Very fancy package updating 1.6

**URL:** <https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227>\
**Category:** General Usage\
**Created:** [December 3, 2020, 11:31pm UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227 "2020-12-03T23:31:26Z")\
**Posts on this page:** 8\
**Page:** 2

<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:** [December 6, 2020, 12:47am UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227/21 "2020-12-06T00:47:43Z")

</div>

I’m certain that if in the environment there aren’t compatibility bounds that prevent installation of a newer version, the package will be updated. If in your environment you’re saying “this is compatible only with version 0.8 of package ABC” then no, package ABC will not be update to v0.9, because that would be breaking according to semver. Again, this has to do with compatibility bounds, not `Pkg.update` not knowing that a new version has been released

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [December 6, 2020, 12:49am UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227/22 "2020-12-06T00:49:21Z")

</div>

It may be that I’m not using the versions correctly. My project says

```julia
LoopVectorization = "^0.8"

```

What should it say so that I would have gotten 0.9 if that was available?

---

<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:** [December 6, 2020, 12:50am UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227/23 "2020-12-06T00:50:39Z")

</div>

```nohighlight
LoopVectorization = "0.8, 0.9"

```

If this is for a package, you should probably look into [https://github.com/JuliaRegistries/CompatHelper.jl](https://github.com/JuliaRegistries/CompatHelper.jl), which does exactly this for you 🙂

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [December 6, 2020, 12:52am UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227/24 "2020-12-06T00:52:10Z")

</div>

Okay, but you understand that when the package was tested last, there was no 0.9. Hence, my requirement was 0.8 since that was the latest. Now when I switch to 1.6, 0.9 becomes the latest. However, the package update will not inform me that there is a newer version to which I should upgrade if I want to run a 1.6. That is my point.

---

<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:** [December 6, 2020, 12:56am UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227/25 "2020-12-06T00:56:36Z")

</div>

> [@PetrKryslUCSD](#):
>
> However, the package update will not inform me that there is a newer version to which I should upgrade if I want to run a 1.6. That is my point.

I know that the package manager doesn’t do that and I’m not convinced it’s _always_ a good idea to show this kind of updates, casual users will probably see _a lot_ of them and ignore them anyway. Package developers might find such feature more useful, but what I’m trying to tell you is that if you’re a package developer, `CompatHelper` does exactly this with an automatic pull request to your package 🙂

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [December 6, 2020, 12:59am UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227/26 "2020-12-06T00:59:13Z")

</div>

I see what you’re saying. I will check it out. Thanks!

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [December 6, 2020, 4:41am UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227/27 "2020-12-06T04:41:13Z")

</div>

There is also [https://github.com/xiaodaigh/PkgVersionHelper.jl](https://github.com/xiaodaigh/PkgVersionHelper.jl) but I have not used it. I just remember seeing it posted here.

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [December 6, 2020, 9:38am UTC](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227/28 "2020-12-06T09:38:15Z")

</div>

[https://github.com/GunnarFarneback/PackageCompatUI.jl](https://github.com/GunnarFarneback/PackageCompatUI.jl) is also useful for this purpose. Packages that have newer versions than specified by `[compat]` are shown in yellow and you can update `Project.toml` directly from the UI.

(This package is Julia 1.6 only and won’t be registered until 1.6 has been released.)

[Previous page](https://discourse.julialang.org/t/very-fancy-package-updating-1-6/51227.md?page=1)
