diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-07-12 14:55:01 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-07-12 14:55:01 +0200 |
commit | 948578b55be67743c10fac6ac68e973c5f935eff (patch) | |
tree | 01a9e46d1f132404960f0c8efb1e49bc23c71823 /plugins | |
parent | Bump jose version (diff) |
Downgrade jose to version that works with rebar2 and del warning_as_error from it's config
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/override_opts.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/override_opts.erl b/plugins/override_opts.erl index 1d321fc8..818f53e8 100644 --- a/plugins/override_opts.erl +++ b/plugins/override_opts.erl @@ -9,6 +9,11 @@ override_opts(add, Config, Opts) -> lists:foldl(fun({Opt, Value}, Conf) -> V = rebar_config:get_local(Conf, Opt, []), rebar_config:set(Conf, Opt, V ++ Value) + end, Config, Opts); +override_opts(del, Config, Opts) -> + lists:foldl(fun({Opt, Value}, Conf) -> + V = rebar_config:get_local(Conf, Opt, []), + rebar_config:set(Conf, Opt, V -- Value) end, Config, Opts). preprocess(Config, _Dirs) -> @@ -24,6 +29,8 @@ preprocess(Config, _Dirs) -> lists:foldl(fun({Type, AppName2, Opts}, Conf1) when AppName2 == AppName -> override_opts(Type, Conf1, Opts); + ({Type, Opts}, Conf1a) -> + override_opts(Type, Conf1a, Opts); (_, Conf2) -> Conf2 end, C, TopOverrides); |