From 0399b0eeb30d531360faa888c7d64b5d0b2f09ce Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 6 Mar 2015 09:12:05 -0600 Subject: add comment about resetting opts --- src/rebar_app_discover.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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), -- cgit v1.1