Elixir: Compiling of erlware_commons fails after upgrade to Elixir 1.5.0

Created on 28 Jul 2017  路  1Comment  路  Source: elixir-lang/elixir

Environment

  • Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:10] [hipe] [kernel-poll:false]
  • Elixir 1.5.0
  • Operating system: Ubuntu 14.04.5 LTS
  • rebar 3.3.6 on Erlang/OTP 20 Erts 9.0
  • erlware_commons 0.22.0
  • cf 0.2.2

First recompile of phoenix app after update to 1.5.0 fails with:

** (Mix) Could not compile dependency :erlware_commons, "/home/stefan/.mix/rebar3 bare compile --paths "/home/stefan/phoenix_deployment/pan/_build/prod/lib/*/ebin"" command failed. 
You can recompile this dependency with "mix deps.compile erlware_commons", 
update it with "mix deps.update erlware_commons" 
or clean it with "mix deps.clean erlware_commons"

I believe to have seen this earlier and tried several ways to fix it:

  • updating rebar mix do local.rebar
  • deleted _build and dev and compiled again MIX_ENV=prod mix do deps.get, compile
  • updating erlware_commons using MIX_ENV=prod deps.update erlware_commons
  • cleaning and recompile using MIX_ENV=prod mix deps.clean erlware_commons && MIX_ENV=prod mix do deps.get, compile
  • compile it as a seperate task MIX_ENV=prod mix deps.compile erlware_commons

the last step gives a bit more output:

===> Compiling erlware_commons
===> Compiling src/ec_semver_parser.erl failed
src/ec_semver_parser.erl:15: export_all flag enabled - all functions will be exported

Any tipps how I could proceed or what I am doing wrong are welcome!

Most helpful comment

OK, so this has nothing todo with Elixir.
The solution finally was to update erlware_commons, this was held back by relx.

So updating both in mix.exs helped:

{:relx, "~>3.23.1"}, 
{:erlware_commons, "~> 1.0"},

>All comments

OK, so this has nothing todo with Elixir.
The solution finally was to update erlware_commons, this was held back by relx.

So updating both in mix.exs helped:

{:relx, "~>3.23.1"}, 
{:erlware_commons, "~> 1.0"},
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericmj picture ericmj  路  3Comments

jdeisenberg picture jdeisenberg  路  4Comments

andrewcottage picture andrewcottage  路  3Comments

ckampfe picture ckampfe  路  3Comments

GianFF picture GianFF  路  3Comments