Jcambass / toxiproxy_ex

ToxiproxyEx is an Elixir API client for the resilience testing tool Toxiproxy.
MIT License
52 stars 3 forks source link

Missing `:mime` and `:mint` warnings? #4

Closed kianmeng closed 4 years ago

kianmeng commented 4 years ago

To reproduce the error.

$ asdf install; rm -rf deps/; mix deps.get; mix compile

Result.

warning: MIME.from_path/1 defined in application :mime is used by the current
application but the current application does not directly depend on :mime. To
fix this, you must do one of:

  1. If :mime is part of Erlang/Elixir, you must include it under
  :extra_applications inside "def application" in you r mix.exs

  2. If :mime 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 :mime, you may optionally
  skip this warning by adding [xref: [exc lude: MIME]] to your "def project" in
  mix.exs

  lib/tesla/multipart.ex:102: Tesla.Multipart.add_file/3

warning: Mint.HTTP.close/1 defined in application :mint is used by the current
application but the current applicatio n does not directly depend on :mint. To
fix this, you must do one of:

  1. If :mint is part of Erlang/Elixir, you must include it under
  :extra_applications inside "def application" in you r mix.exs

  2. If :mint 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 :mint, you may optionally
  skip this warning by adding [xref: [exc lude: Mint.HTTP]] to your "def
  project" in mix.exs

  lib/tesla/adapter/mint.ex:87: Tesla.Adapter.Mint.close/1

...
Jcambass commented 4 years ago

This seams to be fixed by https://github.com/Jcambass/toxiproxy_ex/pull/2.

kianmeng commented 4 years ago

Issue due to Elixir 1.11+?

Jcambass commented 4 years ago

@kianmeng I haven't had time to investigate the underlying problem yet (elixir version or mix of OTP and elixir), but I closed the issue for now since it's fixed for our case.

kianmeng commented 4 years ago

No worry. Just curious. :smile: