Преглед изворни кода

add comment about resetting opts

pull/233/head
Tristan Sloughter пре 10 година
родитељ
комит
0399b0eeb3
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      src/rebar_app_discover.erl

+ 2
- 0
src/rebar_app_discover.erl Прегледај датотеку

@ -38,6 +38,8 @@ merge_deps(AppInfo, State) ->
CurrentProfiles = rebar_state:current_profiles(State), CurrentProfiles = rebar_state:current_profiles(State),
Name = rebar_app_info:name(AppInfo), Name = rebar_app_info:name(AppInfo),
C = rebar_config:consult(rebar_app_info:dir(AppInfo)), C = rebar_config:consult(rebar_app_info:dir(AppInfo)),
%% We reset the opts here to default so no profiles are applied multiple times
AppState = rebar_state:apply_overrides( AppState = rebar_state:apply_overrides(
rebar_state:apply_profiles( rebar_state:apply_profiles(
rebar_state:new(rebar_state:opts(State, Default), C, rebar_app_info:dir(AppInfo)), CurrentProfiles), Name), rebar_state:new(rebar_state:opts(State, Default), C, rebar_app_info:dir(AppInfo)), CurrentProfiles), Name),

Loading…
Откажи
Сачувај