diff options
| author | Tristan Sloughter <t@crashfast.com> | 2016-03-19 13:14:48 -0500 | 
|---|---|---|
| committer | Tristan Sloughter <t@crashfast.com> | 2016-03-19 13:14:48 -0500 | 
| commit | 3e28d3672ded69c2f4a262817b5cc79ef72b2100 (patch) | |
| tree | 39fed261bf9e22dd526995b392836462a34031f3 /src | |
| parent | 8698299e20f0353339e92d357ee98d86a6098460 (diff) | |
| parent | 9d01c45aeb56f4ec09e86c64b9f2969d04f590c2 (diff) | |
Merge pull request #1125 from ferd/fix-paths-output
Support all deps & locks in rebar3 path
Diffstat (limited to 'src')
| -rw-r--r-- | src/rebar_prv_path.erl | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/src/rebar_prv_path.erl b/src/rebar_prv_path.erl index 37c9834..4e88496 100644 --- a/src/rebar_prv_path.erl +++ b/src/rebar_prv_path.erl @@ -95,10 +95,14 @@ print_paths_if_exist(Paths, State) ->  project_deps(State) ->      Profiles = rebar_state:current_profiles(State), -    List = lists:foldl(fun(Profile, Acc) -> rebar_state:get(State, {deps, Profile}, []) ++ Acc end, [], Profiles), -    Deps = [normalize(Name) || {Name, _} <- List], +    DepList = lists:foldl(fun(Profile, Acc) -> rebar_state:get(State, {deps, Profile}, []) ++ Acc end, [], Profiles), +    LockList = lists:foldl(fun(Profile, Acc) -> rebar_state:get(State, {locks, Profile}, []) ++ Acc end, [], Profiles), +    Deps = [normalize(name(Dep)) || Dep <- DepList++LockList],      lists:usort(Deps). +name(App) when is_tuple(App) -> element(1, App); +name(Name) when is_binary(Name); is_list(Name); is_atom(Name) -> Name. +  normalize(AppName) when is_list(AppName) -> AppName;  normalize(AppName) when is_atom(AppName) -> atom_to_list(AppName);  normalize(AppName) when is_binary(AppName) -> binary_to_list(AppName). | 
