# Setting correctly package dependencies

**URL:** https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703
**Category:** General Usage
**Created:** [November 24, 2020, 5:51pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703 "2020-11-24T17:51:29Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)
#### Post date: [November 24, 2020, 5:51pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/1 "2020-11-24T17:51:29Z")

</div>

Hey,

I’m starting the developpement of a package, and i have errors in the CI that i dont get on my machine, without me understanding how to fix them.

Look at the log [there](https://github.com/lrnv/ThorinDistributions.jl/runs/1448813965). Seems like some package ‘Artifacts’ has contradictory dependencies on the version, and hence none left to install, but i dont get why.

Could someone dig into the .toml files of the repo and eventually tell me what is happening ? Or just point me to the right documentation for this kind of thing 🙂

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [November 24, 2020, 6:00pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/2 "2020-11-24T18:00:23Z")

</div>

Those error are appearing on the nightly build of Julia. Have you tried that in your machine?

Probably not related, but you probably can set the Julia dependency to “1.5” for the moment, not “1.5.2”, which is likely too strict.

---

<div class="post-metadata">

### Author: ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)
#### Post date: [November 24, 2020, 6:02pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/3 "2020-11-24T18:02:17Z")

</div>

No im’ not on the nightly builds on my machine. The github actions I setted up through `PkgTemplates.jl` work with nightly builds of julia ? In that case, all i have to do is wait, right ?

Btw, Is there a way to have more github action on “stable” AND “nightly” ?

I’ll switch the dependency to julia for 1.5 instead of 1.5.2.

Edit: Indeed, github actions names says ‘nightly’… i should have catch that.

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [November 24, 2020, 6:05pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/4 "2020-11-24T18:05:26Z")

</div>

Actually I don’t know why your CI run does not run with the stable release of Julia as well. It may be because of that Julia dependency. My package CIs always run on both.

Concerning the nightly build error, I had one experience with that and, at some point, I checked what was going on to see if that was something I had to solve or, perhaps, inform some other package developer. In my case, it was “my fault”, and the error would persist when the nightly build becomes stable.

---

<div class="post-metadata">

### Author: ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)
#### Post date: [November 24, 2020, 6:06pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/5 "2020-11-24T18:06:28Z")

</div>

> [@lmiq](#):
>
> Actually I don’t know why your CI run does not run with the stable release of Julia as well. It may be because of that Julia dependency. My package CIs always run on both.

Could you point me to your package, so i can look at the github actions files and find how to setup runs for both nightly and stable ?

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [November 24, 2020, 6:07pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/6 "2020-11-24T18:07:28Z")

</div>

[https://github.com/m3g/ComplexMixtures](https://github.com/m3g/ComplexMixtures)

---

<div class="post-metadata">

### Author: ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)
#### Post date: [November 24, 2020, 6:09pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/7 "2020-11-24T18:09:39Z")

</div>

Thanks, now i have actions on both 1.5 and nightly.

So if it still bugs on 1.5, which we will know in a few minuts, how should i proceed to fix this kind of dependency bugs ?

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [November 24, 2020, 6:18pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/8 "2020-11-24T18:18:54Z")

</div>

Apparently they are passing in the Julia stable. You might do nothing and wait, or test the Julia nightly on your machine to localize the problem better and, perhaps, do something about it (as warning the developers of some package).

But, for example, you package will fail with that dependency on Julia 1.5 when the new stable version comes out, if someone tries to install it from Julia 1.6, and that might be the case of some package you depend upon. (Thus, it might be worth seeing if your package runs fine in Julia 1.0, if so, you can simplify your requirement to “1”, and you will be safe from your side until Julia 2).

---

<div class="post-metadata">

### Author: ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)
#### Post date: [November 24, 2020, 6:21pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/9 "2020-11-24T18:21:22Z")

</div>

> [@lmiq](#):
>
> ut, for example, you package will fail with that dependency on Julia 1.5 when the new stable version comes out, if someone tries to install it from Julia 1.6, and that might be the case of some package you depend upon. (Thus, it might be worth seeing if your package runs fine in Julia 1.0, if so, you can simplify your requirement to “1”, and you will be safe from your side until Julia 2).

So if i understood you correctly, it might be worth to run my CI on julia 1 instead of 1.5 (which for the moment is 1.5, but will soon be 1.6) ?

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [November 24, 2020, 6:24pm UTC](https://discourse.julialang.org/t/setting-correctly-package-dependencies/50703/10 "2020-11-24T18:24:44Z")

</div>

No, I think it will run on 1.5.3 anyway if you put `Jula = "1"` as a requirement (you can test if you need 1.5 or greater in your machine, installing Julia 1.0 locally).

There may be some CI command to chose the Julia version (I don’t know). With the default CI file it seems that it will either run on the latest stable if that is compatible with your requirement, or will only run on the nightly build.
