Skip to content

Commit

Permalink
Disable escriptize build hook
Browse files Browse the repository at this point in the history
When building the cuttlefish library as a dependency through `mix`, the
build fails when attempting to run the `escriptize` hook.

Comment the hook out to make building with `mix` work.

The problem has been mentioned on the [Elixir forum][1], and technical
discussion can be found [on Github][2].

  [1]: https://elixirforum.com/t/erlang-dependency-doesnt-compile-with-mix/7043
  [2]: erlang/rebar3#1568
  • Loading branch information
linduxed committed Aug 1, 2019
1 parent 6948112 commit 2fab35a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
{escript_incl_apps, [goldrush, getopt, lager, cuttlefish]}.
{escript_main_app, cuttlefish}.

{provider_hooks, [{post, [{compile, {default, escriptize}}]}]}.
% The following hook breaks compilation through `mix`.
% Commenting out for compatibility.
%
% See the following thread for more information:
%
% https://github.com/erlang/rebar3/issues/1568

% {provider_hooks, [{post, [{compile, {default, escriptize}}]}]}.

{eunit_opts, [verbose]}.
{cover_enabled, true}.
Expand Down

0 comments on commit 2fab35a

Please sign in to comment.