瀏覽代碼

do not include dir . in relx lib paths it will break lib discovery

pull/93/head
Tristan Sloughter 10 年之前
父節點
當前提交
f1ed8ed36c
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. +2
    -1
      src/rebar_prv_release.erl
  2. +2
    -1
      src/rebar_prv_tar.erl

+ 2
- 1
src/rebar_prv_release.erl 查看文件

@ -34,7 +34,8 @@ init(State) ->
do(State) ->
Options = rebar_state:command_args(State),
DepsDir = rebar_dir:deps_dir(State),
LibDirs = lists:usort(rebar_utils:filtermap(fun ec_file:exists/1, [DepsDir | ?DEFAULT_PROJECT_APP_DIRS])),
LibDirs = rebar_utils:filtermap(fun ec_file:exists/1,
[DepsDir | lists:delete(".", ?DEFAULT_PROJECT_APP_DIRS)]),
OutputDir = filename:join(rebar_dir:base_dir(State), ?DEFAULT_RELEASE_DIR),
AllOptions = string:join(["release" | Options], " "),
try

+ 2
- 1
src/rebar_prv_tar.erl 查看文件

@ -34,7 +34,8 @@ init(State) ->
do(State) ->
Options = rebar_state:command_args(State),
DepsDir = rebar_dir:deps_dir(State),
LibDirs = lists:usort(rebar_utils:filtermap(fun ec_file:exists/1, [DepsDir | ?DEFAULT_PROJECT_APP_DIRS])),
LibDirs = rebar_utils:filtermap(fun ec_file:exists/1,
[DepsDir | lists:delete(".", ?DEFAULT_PROJECT_APP_DIRS)]),
OutputDir = filename:join(rebar_dir:base_dir(State), ?DEFAULT_RELEASE_DIR),
AllOptions = string:join(["release", "tar" | Options], " "),
case rebar_state:get(State, relx, []) of

Loading…
取消
儲存