Parcourir la source

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

pull/112/head
Tristan Sloughter il y a 10 ans
Parent
révision
3a7490aa9f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/rebar_hooks.erl

+ 1
- 1
src/rebar_hooks.erl Voir le fichier

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

Chargement…
Annuler
Enregistrer