aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2015-07-15 12:57:32 -0500
committerTristan Sloughter <[email protected]>2015-07-15 12:57:46 -0500
commit15eac7dab9cfa20a3d1f23942a4a381075925260 (patch)
tree3bdd861f6c59a1ccf6715d788061cd2cc848ba20
parenta8d0e5b2ef1237d4458ee480e6294a6ea2f70d05 (diff)
downloadrelx-15eac7dab9cfa20a3d1f23942a4a381075925260.tar.gz
relx-15eac7dab9cfa20a3d1f23942a4a381075925260.tar.bz2
relx-15eac7dab9cfa20a3d1f23942a4a381075925260.zip
run overlay after release not before
-rw-r--r--rebar.lock2
-rw-r--r--src/rlx_prv_assembler.erl5
2 files changed, 4 insertions, 3 deletions
diff --git a/rebar.lock b/rebar.lock
index 287e3b0..74bbb41 100644
--- a/rebar.lock
+++ b/rebar.lock
@@ -1,4 +1,4 @@
[{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.0.3">>},0},
{<<"providers">>,{pkg,<<"providers">>,<<"1.4.1">>},0},
- {<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"0.14.0">>},0},
+ {<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"0.15.0">>},0},
{<<"getopt">>,{pkg,<<"getopt">>,<<"0.8.2">>},0}].
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl
index a3715e5..3f8a8c2 100644
--- a/src/rlx_prv_assembler.erl
+++ b/src/rlx_prv_assembler.erl
@@ -31,7 +31,7 @@
-include("relx.hrl").
-define(PROVIDER, release).
--define(DEPS, [overlay]).
+-define(DEPS, [resolve_release]).
%%============================================================================
%% API
@@ -40,7 +40,8 @@
init(State) ->
State1 = rlx_state:add_provider(State, providers:create([{name, ?PROVIDER},
{module, ?MODULE},
- {deps, ?DEPS}])),
+ {deps, ?DEPS},
+ {hooks, {[], [overlay]}}])),
{ok, State1}.
%% @doc recursively dig down into the library directories specified in the state