diff options
author | Pierre Fenoll <pierrefenoll@gmail.com> | 2018-02-10 23:02:32 +0100 |
---|---|---|
committer | Pierre Fenoll <pierrefenoll@gmail.com> | 2018-03-02 12:53:22 +0100 |
commit | 3146a285fb1c9e0028a9c09977c6da11df76d6e6 (patch) | |
tree | 6ca077182fd4f4227920c561cc25ea72def83872 /src/rebar_dir.erl | |
parent | 02a02d729545fa08d20402fec6e295a53caae43e (diff) |
sort-as: force an order on multiple profiles
Diffstat (limited to 'src/rebar_dir.erl')
-rw-r--r-- | src/rebar_dir.erl | 2 |
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 |