params
params copied to clipboard
Elixir 1.11 Compiler Warning
When compiling this library using Elixir v 1.11 you get the following warning:
warning: Ecto.Changeset.validate_required/2 defined in application :ecto is used by the current application but the current application does not depend on :ecto. To fix this, you must do one of:
1. If :ecto is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs
2. If :ecto is a dependency, make sure it is listed under "def deps" in your mix.exs
3. In case you don't want to add a requirement to :ecto, you may optionally skip this warning by adding [xref: [exclude: [Ecto.Changeset]]] to your "def project" in mix.exs
lib/params.ex:145: Params.changeset/2
This can be solved by changing
def application do
[applications: [:logger]]
end
to
def application do
[extra_applications: [:logger]]
end
in mix.exs. Please see here for more info: https://hexdocs.pm/mix/1.11.4/Mix.Tasks.Compile.App.html
I will submit a pull request to fix this.