From 3146a285fb1c9e0028a9c09977c6da11df76d6e6 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Sat, 10 Feb 2018 23:02:32 +0100 Subject: [PATCH] sort-as: force an order on multiple profiles --- src/rebar_dir.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_dir.erl b/src/rebar_dir.erl index d7be4235..ee4d3d4b 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