erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

** (MatchError) no match of right hand side value: {:error, :enoent} #556

Closed GildedHonour closed 7 years ago

GildedHonour commented 7 years ago

I have an error while generating a release for my Phoenix/Elixir web application, here's a command which causes it:

$ MIX_ENV="prod" LINK_SYS_CONFIG="" LINK_VM_ARGS="" APP="my_web_app123" AUTO_VERSION="" \
  BRANCH="master" SKIP_RELUP_MODIFICATIONS="" RELUP_MODIFICATION_MODULE="" mix  release \
  --no-confirm-missing --verbosity=normal
Building release with MIX_ENV=prod.

** (MatchError) no match of right hand side value: {:error, :enoent}
  /home/my_web_user123/my_web_app123/builds/deps/relx/src/rlx_prv_assembler.erl:510: :rlx_prv_assembler.include_erts/4
  /home/my_web_user123/my_web_app123/builds/deps/relx/src/rlx_prv_assembler.erl:59: :rlx_prv_assembler.do/1
  /home/my_web_user123/my_web_app123/builds/deps/relx/src/relx.erl:308: :relx.run_provider/2
  (stdlib) lists.erl:1263: :lists.foldl/3
  /home/my_web_user123/my_web_app123/builds/deps/relx/src/relx.erl:291: :relx.run_providers_for_actions/2
  lib/exrm/utils/utils.ex:105: ReleaseManager.Utils.relx/5
  lib/mix/tasks/release.ex:339: anonymous fn/4 in Mix.Tasks.Release.do_release/1
  lib/ex_unit/capture_io.ex:146: ExUnit.CaptureIO.do_capture_io/2

So far there has been no error, it began to occur about a week ago. It should be related to the latest commit https://github.com/erlware/relx/pull/551/commits/a231a354c6e9db32832f6346a3fdea10f7996432

Any ideas how to fix it?

cc @drobakowski @lrascao

lrascao commented 7 years ago

in what relx commit are you seeing this error? it seems to be related with the include_erts option, can you try setting it to false on your relx.config?

lrascao commented 7 years ago

closing, please re-open if issue still persists or there's more information