Skip to content

Commit

Permalink
Merge pull request #1664 from liamjjmcnamara/quiet_dep_skipping
Browse files Browse the repository at this point in the history
Allow silencing skip warnings when fetching deps
  • Loading branch information
ferd authored Nov 20, 2017
2 parents eff06dd + 64056bf commit 26d30a9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/rebar_prv_install_deps.erl
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,13 @@ warn_skip_deps(AppInfo, State) ->
Args = [rebar_app_info:name(AppInfo),
rebar_app_info:source(AppInfo)],
case rebar_state:get(State, deps_error_on_conflict, false) of
false -> ?WARN(Msg, Args);
true -> ?ERROR(Msg, Args), ?FAIL
false ->
case rebar_state:get(State, deps_warning_on_conflict, true) of
true -> ?WARN(Msg, Args);
false -> ok
end;
true ->
?ERROR(Msg, Args), ?FAIL
end.

not_needs_compile(App) ->
Expand Down

0 comments on commit 26d30a9

Please sign in to comment.