瀏覽代碼

add TODO notes about improving checkouts related errors

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

+ 2
- 0
src/rebar_prv_lock.erl 查看文件

@ -40,6 +40,8 @@ do(State) ->
OldLockNames = [element(1,L) || L <- OldLocks],
NewLockNames = [element(1,L) || L <- Locks],
%% TODO: don't output this message if the dep is now a checkout
rebar_utils:info_useless(OldLockNames, NewLockNames),
{ok, State1};

+ 1
- 0
src/rebar_prv_upgrade.erl 查看文件

@ -217,6 +217,7 @@ prepare_locks([Name|Names], Deps, Locks, Unlocks, Dict, AltDeps) ->
false ->
case rebar_utils:tup_find(AtomName, AltDeps) of
false ->
%% TODO: output a different error if the app is a checkout
?PRV_ERROR({unknown_dependency, Name});
_ -> % non-default profile dependency found, pass through
prepare_locks(Names, Deps, Locks, Unlocks, Dict, AltDeps)

Loading…
取消
儲存