Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix phx.gen.release ecto_sql check (phoenixframework#4796)
Sometimes in a project where everything is already compiled, The `mix phx.gen.release` task cannot correctly detect if ecto_sql is already installed or not. This is because the ecto_sql is in fact not loaded yet. To resolve this we can either try to load ecto_sql using `Application.load(:ecto_sql)` before fetching the loaded apps or simply use the `Mix.Project.deps_apps` to see if `ecto_sql` is there. This commit implemented the latter.
- Loading branch information