Browse Source

Merge pull request #1664 from liamjjmcnamara/quiet_dep_skipping

Allow silencing skip warnings when fetching deps
pull/1656/head
Fred Hebert 7 years ago
committed by GitHub
parent
commit
26d30a95fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      src/rebar_prv_install_deps.erl

+ 7
- 2
src/rebar_prv_install_deps.erl View File

@ -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) ->

Loading…
Cancel
Save