erlware / relx

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

error including erts in cross platform release #578

Closed danturn closed 7 years ago

danturn commented 7 years ago

Hi guys,

I'm on Linux but i want to build a release for windows. I have a windows erlang distribution and my relx.config looks like this:

{include_erts, "/home/dan/erl7.3_win/erl7.3"}.

** (MatchError) no match of right hand side value: {:error, :enoent} /home/dan/src/dataanywhere/deps/relx/src/rlx_prv_assembler.erl:624: :rlx_prv_assembler.include_erts/4 /home/dan/src/dataanywhere/deps/relx/src/rlx_prv_assembler.erl:59: :rlx_prv_assembler.do/1 /home/dan/src/dataanywhere/deps/relx/src/relx.erl:308: :relx.run_provider/2 (stdlib) lists.erl:1263: :lists.foldl/3 /home/dan/src/dataanywhere/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

Looking at the code it looks like it is trying to remove the erl file. however as its a windows erlang distro it doesn't have one.

dan

lrascao commented 7 years ago

540 should take care of this