Sfoglia il codice sorgente

Merge pull request #178 from rebar/merge-lock-fix

Fix lock merging for nonexistant lock files.
pull/180/head
Tristan Sloughter 10 anni fa
parent
commit
e05f483043
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      src/rebar_config.erl

+ 5
- 0
src/rebar_config.erl Vedi File

@ -60,8 +60,13 @@ consult_file(File) ->
end
end.
%% no lockfile
merge_locks(Config, []) ->
Config;
%% empty lockfile
merge_locks(Config, [[]]) ->
Config;
%% lockfile with entries
merge_locks(Config, [Locks]) ->
{deps, ConfigDeps} = lists:keyfind(deps, 1, Config),
%% We want the top level deps only from the lock file.

Caricamento…
Annulla
Salva