Elixir: Force disable warnings_as_errors for dependencies

Created on 30 Jun 2016  路  6Comments  路  Source: elixir-lang/elixir

Warnings as errors causes more harm than good when it's enabled for dependencies. We should disable it for both the elixir and erlang compilers.

For makefiles we already added the IS_DEP=1 env var to disable it for erlang.mk. I will investigate how to do it for rebar3, I've got some ideas from the rebar3 team already. With mix we, of course, have full control over the options.

Mix Enhancement

Most helpful comment

You can't filter deps warnings and this by design so that you will not be surprised when your deps break when you update elixir.

All 6 comments

I have fixed this for mix too. So just rebar/rebar3 left. :)

@ericmj and i am almost sure you can do it for rebar3 by using overrides?

This is pending a new Rebar 3 release.

Reopening to remind me of updating mix local.rebar.

@ericmj Sorry for bothering in a 1 year old closed issue. 馃槃
How I can run mix compile while completely filtering all deps warnings?

You can't filter deps warnings and this by design so that you will not be surprised when your deps break when you update elixir.

Was this page helpful?
0 / 5 - 0 ratings