diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-03-06 09:12:05 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-03-06 09:12:05 -0600 |
commit | 0399b0eeb30d531360faa888c7d64b5d0b2f09ce (patch) | |
tree | 8dd860b0765bb6a1c0ce47042c18a9d55c6ff050 /src | |
parent | 0638c85634f3f9f51f17f247a3376f72b2f4d2fa (diff) |
add comment about resetting opts
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_app_discover.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl index c720f72..63cf703 100644 --- a/src/rebar_app_discover.erl +++ b/src/rebar_app_discover.erl @@ -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), |