I’m trying to use the EctoInterval package but I get the following error when attempting to compile the dependency:
Because "the lock" specifies **postgrex 0.17.5** and **ecto_interval >= 0.2.5** depends on **postgrex ~> 0.14.0 or ~> 0.15.0 or ~> 0.16.0**, **the lock** is incompatible with **ecto_interval >= 0.2.5**.
And because **your app** depends on **the lock**, **ecto_interval >= 0.2.5** is forbidden.
So, because **your app** depends on **ecto_interval ~> 0.2.5**, version solving failed.
** **(Mix) Hex dependency resolution failed**
How would I use Postgres interval types without this library?
According to this PR, it doesn’t require any changes other than bumping the version the package’s mix.exs:
Alternatively, the necessary part of the library is one .ex file (two if you count the corresponding tests). You could copy them directly into your project