瀏覽代碼

set app's dir before setting app_info deps (#1928)

pull/1929/head
Tristan Sloughter 6 年之前
committed by GitHub
父節點
當前提交
0f6f163017
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/rebar_app_discover.erl

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

@ -280,7 +280,8 @@ find_apps(LibDirs, SrcDirs, Validate, State) ->
-spec find_app(file:filename_all(), valid | invalid | all) -> {true, rebar_app_info:t()} | false. -spec find_app(file:filename_all(), valid | invalid | all) -> {true, rebar_app_info:t()} | false.
find_app(AppDir, Validate) -> find_app(AppDir, Validate) ->
{Config, SrcDirs} = find_config_src(AppDir, ["src"]), {Config, SrcDirs} = find_config_src(AppDir, ["src"]),
AppInfo = rebar_app_info:update_opts(rebar_app_info:new(), dict:new(), Config),
AppInfo = rebar_app_info:update_opts(rebar_app_info:dir(rebar_app_info:new(), AppDir),
dict:new(), Config),
find_app_(AppInfo, AppDir, SrcDirs, Validate). find_app_(AppInfo, AppDir, SrcDirs, Validate).
%% @doc check that a given app in a directory is there, and whether it's %% @doc check that a given app in a directory is there, and whether it's

Loading…
取消
儲存