# Discrepancy between julia 1.0 and 1.1 while installing a package

**URL:** <https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248>\
**Category:** Internals & Design\
**Tags:** pkg\
**Created:** [January 29, 2019, 9:48pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248 "2019-01-29T21:48:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piotr\_Gawron](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piotr_gawron/32/18615_2.png) [@Piotr\_Gawron](https://discourse.julialang.org/u/Piotr_Gawron)\
**Post date:** [January 29, 2019, 9:48pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248/1 "2019-01-29T21:48:40Z")

</div>

Installing package QuantumInformation on julia 1.0 causes the newest version of the package 0.4.3 to be installed. Performing the same installation on julia 1.1 yields the package version 0.4.1. I am the package developer, so it seams to be my mistake which I do not know how to fix.

Can anybody point to me to a solution?

---

<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:** [January 29, 2019, 10:37pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248/2 "2019-01-29T22:37:57Z")

</div>

This is because your REQUIRE file states that it does not support Julia 1.1: [https://github.com/ZKSI/QuantumInformation.jl/blob/f7b081d7e6f8397a665650a82f54ee5fac9deeab/REQUIRE#L1](https://github.com/ZKSI/QuantumInformation.jl/blob/f7b081d7e6f8397a665650a82f54ee5fac9deeab/REQUIRE#L1) and thus: [https://github.com/JuliaRegistries/General/blob/1f3ec3048af2e7f282f415967c189a5920485d42/Q/QuantumInformation/Compat.toml#L19](https://github.com/JuliaRegistries/General/blob/1f3ec3048af2e7f282f415967c189a5920485d42/Q/QuantumInformation/Compat.toml#L19)

---

<div class="post-metadata">

**Author:** ![Piotr\_Gawron](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piotr_gawron/32/18615_2.png) [@Piotr\_Gawron](https://discourse.julialang.org/u/Piotr_Gawron)\
**Post date:** [January 29, 2019, 11:17pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248/3 "2019-01-29T23:17:38Z")

</div>

Thanks for your response.

I was unable to find the semantics of the REQUIRE files so I assumed that writing  
`julia 1.0 1.1` will mean that both of the versions are supported. How do I change the requirements in order to support both of the versions?

The revolution that was brought by `Pkg3` confuses me a lot. And I can not find good documentation how to write REQUIRE and Project.toml files.

---

<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:** [January 29, 2019, 11:19pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248/4 "2019-01-29T23:19:51Z")

</div>

> [@Piotr\_Gawron](#):
>
> I assumed that writing  
> `julia 1.0 1.1` will mean that both of the versions are supported.

Yea, one would think so, but that means `[1.0, 1.1)`. You can just update it to say `julia 1` for example.

> [@Piotr\_Gawron](#):
>
> The revolution that was brought by `Pkg3` confuses me a lot. And I can not find good documentation how to write REQUIRE and Project.toml files.

Yea, it is unfortunate that we are still in between systems.

---

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [January 29, 2019, 11:53pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248/5 "2019-01-29T23:53:20Z")

</div>

Here’s the old `REQUIRE` file documentation from Julia 0.6: [Packages · The Julia Language](https://docs.julialang.org/en/v0.6/manual/packages/#REQUIRE-speaks-for-itself-1).

---

<div class="post-metadata">

**Author:** ![00vareladavid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/00vareladavid/32/23521_2.png) [@00vareladavid](https://discourse.julialang.org/u/00vareladavid)\
**Post date:** [January 30, 2019, 12:03am UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248/6 "2019-01-30T00:03:18Z")

</div>

The docs for `Pkg` are here: [1. Introduction · Pkg.jl](https://julialang.github.io/Pkg.jl/v1/).

Is there anything specific that confuses you?

---

<div class="post-metadata">

**Author:** ![Piotr\_Gawron](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piotr_gawron/32/18615_2.png) [@Piotr\_Gawron](https://discourse.julialang.org/u/Piotr_Gawron)\
**Post date:** [January 30, 2019, 6:50pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248/7 "2019-01-30T18:50:50Z")

</div>

> [@tkoolen](#):
>
> Here’s the old `REQUIRE` file documentation from Julia 0.6: [Packages · The Julia Language](https://docs.julialang.org/en/v0.6/manual/packages/#REQUIRE-speaks-for-itself-1).

Thanks. It is not obvious that in order to develop packages for Julia 1.0/1.1 one should look at the documentation for Julia 0.6.

---

<div class="post-metadata">

**Author:** ![Piotr\_Gawron](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piotr_gawron/32/18615_2.png) [@Piotr\_Gawron](https://discourse.julialang.org/u/Piotr_Gawron)\
**Post date:** [January 30, 2019, 6:52pm UTC](https://discourse.julialang.org/t/discrepancy-between-julia-1-0-and-1-1-while-installing-a-package/20248/8 "2019-01-30T18:52:35Z")

</div>

> [@00vareladavid](#):
>
> The docs for `Pkg` are here: [1. Introduction · Pkg.jl](https://julialang.github.io/Pkg.jl/v1/).
> 
> Is there anything specific that confuses you?

There is a lack of good tutorial how to port packages from Julia 0.6 to 1.0. When REQUIRE file is needed and when Project.toml. This information can be found but is scattered in various places.
