summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-01-24 12:45:32 -0600
committerTristan Sloughter <t@crashfast.com>2015-01-24 13:15:39 -0600
commit3a7490aa9f9501cd9e7f64b7b67e7853eac8e932 (patch)
tree4515cd185110f2baf0ef026b0b7142ae560f150c /src
parent98ae221265887e309d1a3b4bae7b640b4201da61 (diff)
fix for rebar deps dir path in hooks, making it absolute
Diffstat (limited to 'src')
-rw-r--r--src/rebar_hooks.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_hooks.erl b/src/rebar_hooks.erl
index fbc207e..a1a363e 100644
--- a/src/rebar_hooks.erl
+++ b/src/rebar_hooks.erl
@@ -4,7 +4,7 @@
run_compile_hooks(Dir, Type, Command, State) ->
Hooks = rebar_state:get(State, Type, []),
- Env = [{"REBAR_DEPS_DIR", rebar_dir:deps_dir(State)}],
+ Env = [{"REBAR_DEPS_DIR", filename:absname(rebar_dir:deps_dir(State))}],
lists:foreach(fun({_, C, _}=Hook) when C =:= Command ->
apply_hook(Dir, Env, Hook);
({C, _}=Hook) when C =:= Command ->