Skip to content

Commit

Permalink
rebar_dir: return _checkouts path in a canonical form
Browse files Browse the repository at this point in the history
This enables relative paths for checkouts_dir configuration variable.
  • Loading branch information
max-au committed Feb 13, 2020
1 parent 8cb76f4 commit 02c2028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rebar_dir.erl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ root_dir(State) ->
%% @doc returns the expected location of the `_checkouts' directory.
-spec checkouts_dir(rebar_state:t()) -> file:filename_all().
checkouts_dir(State) ->
filename:join(root_dir(State), rebar_state:get(State, checkouts_dir, ?DEFAULT_CHECKOUTS_DIR)).
rebar_file_utils:canonical_path(filename:join(root_dir(State), rebar_state:get(State, checkouts_dir, ?DEFAULT_CHECKOUTS_DIR))).

%% @doc returns the expected location of a given app in the checkouts
%% directory for the project.
Expand Down

0 comments on commit 02c2028

Please sign in to comment.