浏览代码

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

pull/112/head
Tristan Sloughter 10 年前
父节点
当前提交
3a7490aa9f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_hooks.erl

+ 1
- 1
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 ->

正在加载...
取消
保存