Browse Source

sort-as: force an order on multiple profiles

pull/1716/head
Pierre Fenoll 7 years ago
parent
commit
3146a285fb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rebar_dir.erl

+ 1
- 1
src/rebar_dir.erl View File

@ -49,7 +49,7 @@ profile_dir(Opts, Profiles) ->
%% of profiles to match order passed to `as` %% of profiles to match order passed to `as`
["default"|Rest] -> {rebar_opts:get(Opts, base_dir, ?DEFAULT_BASE_DIR), Rest} ["default"|Rest] -> {rebar_opts:get(Opts, base_dir, ?DEFAULT_BASE_DIR), Rest}
end, end,
ProfilesDir = rebar_string:join(ProfilesStrings, "+"),
ProfilesDir = rebar_string:join(lists:sort(ProfilesStrings), "+"),
filename:join(BaseDir, ProfilesDir). filename:join(BaseDir, ProfilesDir).
%% @doc returns the directory where dependencies should be placed %% @doc returns the directory where dependencies should be placed

Loading…
Cancel
Save