I have a project where I need to use SQLite in a local environment but Postgres on a normal server.
Unfortunately, there is no SQLite adapter for Ecto 3 yet, forcing me to keep the Ecto and some related packages at 2.x
, which caused some problems such as this one: Ecto 2.0 SQL Sandbox Error on tests
I wonder if it would be possible to specify two different versions of Ecto and thus dependencies for the environments :local
and :prod
. Currently it seems impossible since there is only one lockfile per project. The only way to achieve it seems to be to store two different lockfiles in the project directory? e.g. https://elixirforum.com/t/only-fetch-deps-compatible-for-a-specific-version-of-elixir/16213