summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_dir.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_dir.erl b/src/rebar_dir.erl
index d7be423..ee4d3d4 100644
--- a/src/rebar_dir.erl
+++ b/src/rebar_dir.erl
@@ -49,7 +49,7 @@ profile_dir(Opts, Profiles) ->
%% of profiles to match order passed to `as`
["default"|Rest] -> {rebar_opts:get(Opts, base_dir, ?DEFAULT_BASE_DIR), Rest}
end,
- ProfilesDir = rebar_string:join(ProfilesStrings, "+"),
+ ProfilesDir = rebar_string:join(lists:sort(ProfilesStrings), "+"),
filename:join(BaseDir, ProfilesDir).
%% @doc returns the directory where dependencies should be placed