Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
call out ecto optional dependency (#164)
Under elixir 1.15 code paths are pruned much more precisely when compiling deps. When a top-level project calls out ecto and geo_postgis, elixir will see the lack of an ecto dependency here and possibly compile geo_postgis before ecto is built. if Code.ensure_loaded?(Ecto.Type) do defmodule Geo.PostGIS.Geometry do would sometimes leave out Geo.PostGis.Geometry in elixir 1.15 and you'd get compile errors like the following in your application compile: module Geo.PostGIS.Geometry is not available or is yet to be defined This change calls out this optional ecto dependency. This can be reproduced very reliably by running: - mix compile - mix deps.compile --force geo_postgis - mix compile --force Co-authored-by: Tyler A. Young <tyler@tylerayoung.com>
- Loading branch information