Browse Source

add comment about resetting opts

pull/233/head
Tristan Sloughter 10 years ago
parent
commit
0399b0eeb3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/rebar_app_discover.erl

+ 2
- 0
src/rebar_app_discover.erl View File

@ -38,6 +38,8 @@ merge_deps(AppInfo, State) ->
CurrentProfiles = rebar_state:current_profiles(State),
Name = rebar_app_info:name(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(
rebar_state:apply_profiles(
rebar_state:new(rebar_state:opts(State, Default), C, rebar_app_info:dir(AppInfo)), CurrentProfiles), Name),

Loading…
Cancel
Save