# Why is this dependency not allowed?

**URL:** https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180
**Category:** General Usage
**Created:** [February 25, 2023, 11:47am UTC](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180 "2023-02-25T11:47:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [February 25, 2023, 11:47am UTC](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180/1 "2023-02-25T11:47:07Z")

</div>

I tried to register a package that contains:

```julia
[compat]
DiffEqBase = "<6.116.0"
Sundials = "~4.11"

```

and get the error message:

```julia
The following dependencies do not have a [compat] entry that is upper-bounded 
and only includes a finite number of breaking releases: DiffEqBase

```

What is the best way to fix that? DiffEqBase 6.116.0 is broken, but older versions work. How can  
I define this such that Julia registrator accepts it?

---

<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: [February 25, 2023, 11:52am UTC](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180/2 "2023-02-25T11:52:59Z")

</div>

Probably something like `6.0.0-6.115` works. (You probably don’t want to support major versions lower than 6, do you?)

Ps. All versions after 6.116 are broken? In what sense? Wouldn’t it be better to fill a bug report in that case?

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [February 25, 2023, 12:08pm UTC](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180/3 "2023-02-25T12:08:35Z")

</div>

Thanks!

I filed a bug report [Release v6.116.0 breaks Sundials v4.11.4 · Issue #880 · SciML/DiffEqBase.jl · GitHub](https://github.com/SciML/DiffEqBase.jl/issues/880) but it is still open…

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [February 25, 2023, 12:17pm UTC](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180/4 "2023-02-25T12:17:03Z")

</div>

This doesn’t work:

```julia
DiffEqBase = "6.0.0-6.115"

```

But this works:

```julia
DiffEqBase = "6.0.0 - 6.115"

```

(Spaces are important).

---

<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: [February 25, 2023, 12:23pm UTC](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180/5 "2023-02-25T12:23:05Z")

</div>

Uhm… Maybe add some spaces?

> [@ufechner7](#):
>
> `DiffEqBase = "6.0.0 - 6.115"`

I understand that should work, though.

This is from [the manual](https://pkgdocs.julialang.org/v1/compatibility/#Hyphen-specifiers):

```julia
PkgA = "1.2.3 - 4.5" # 1.2.3 - 4.5.*

```

---

<div class="post-metadata">

### Author: ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)
#### Post date: [February 25, 2023, 5:45pm UTC](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180/6 "2023-02-25T17:45:40Z")

</div>

Yes, we require the spaces before and after the hyphen.
