Przeglądaj źródła

fix for rebar deps dir path in hooks, making it absolute

pull/112/head
Tristan Sloughter 10 lat temu
rodzic
commit
3a7490aa9f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/rebar_hooks.erl

+ 1
- 1
src/rebar_hooks.erl Wyświetl plik

@ -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 ->

Ładowanie…
Anuluj
Zapisz