I have a dep that might need recompiling when the host app configuration changes. That requires a forced compile since by design deps aren’t automatically recompiled (which is the right strategy).
At the command line I can force recompile fine. But from IEx calling
Mix.Task.run/2 I cannot. From the command line:
$ mix deps.compile ex_cldr --force ==> ex_cldr Compiling 2 files (.erl) Compiling 31 files (.ex) Generating Cldr for 6 locales named ["en-001", "it", "pl", "root", "ru", ...] with a default locale named "en-001" Generated ex_cldr app
From IEx shell:
$ iex -S mix Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace] iex(1)> Mix.Task.run "deps.compile", [:ex_cldr, "--force"] :ok
…but no compilation takes place.
Any advice on how I specify the args to
Mix.Task.run/2 so that it force compiles would be most appreciated.