diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-11-20 13:38:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 13:38:21 -0500 |
commit | 26d30a95fa8ecba5d40a4627a7b436f58b53cb0e (patch) | |
tree | ce94a202a011dcceae7161f7c191caafcfe176a1 | |
parent | eff06dd9ed9f32befde46578853ec6e0f29a1205 (diff) | |
parent | 64056bf9f9fee47227c60609a7684b04d8df577a (diff) |
Merge pull request #1664 from liamjjmcnamara/quiet_dep_skipping
Allow silencing skip warnings when fetching deps
-rw-r--r-- | src/rebar_prv_install_deps.erl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 65aabff..b735ed0 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -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) -> |