Sfoglia il codice sorgente

add TODO notes about improving checkouts related errors

pull/2333/head
Tristan Sloughter 4 anni fa
parent
commit
e903bb9acd
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 6BC93CF674613287
2 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +2
    -0
      src/rebar_prv_lock.erl
  2. +1
    -0
      src/rebar_prv_upgrade.erl

+ 2
- 0
src/rebar_prv_lock.erl Vedi File

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

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

Caricamento…
Annulla
Salva