Explorar el Código

Issue #1416: Merge erl_files_first separately and avoid sorting.

The order of the files listed in "erl_files_first" option is
important and should not be sorted. By handling the merge
similarly to mib_files_first, the sort order is preserved.
pull/1544/head
Thomas O'Dowd hace 8 años
cometido por Fred Hebert
padre
commit
a1f4742709
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      src/rebar_opts.erl

+ 4
- 0
src/rebar_opts.erl Ver fichero

@ -118,6 +118,10 @@ merge_opt({plugins, _}, NewValue, _OldValue) ->
NewValue;
merge_opt(profiles, NewValue, OldValue) ->
dict:to_list(merge_opts(dict:from_list(NewValue), dict:from_list(OldValue)));
merge_opt(erl_first_files, Value, Value) ->
Value;
merge_opt(erl_first_files, NewValue, OldValue) ->
OldValue ++ NewValue;
merge_opt(mib_first_files, Value, Value) ->
Value;
merge_opt(mib_first_files, NewValue, OldValue) ->

Cargando…
Cancelar
Guardar