diff options
author | Stu Tomlinson <stu@nosnilmot.com> | 2020-09-21 12:49:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 13:49:58 +0200 |
commit | d9feed54a984350d9eac4e5a5dd3bb6f1b2ea2b6 (patch) | |
tree | ae51764719aa0efdf8b1e222f2924862e00dfe50 /rebar.config.script | |
parent | Use os time instead of system time in values returned by mod_time (diff) |
Add 'gitonly_deps' list to rebar config/script (#3391)
Add list of dependencies that should only be built from git, to support
building with rebar3 where deps do not have hex packages (or where the
package versions do not directly map to git tags).
This is required for elixir and luerl deps.
Diffstat (limited to 'rebar.config.script')
-rw-r--r-- | rebar.config.script | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/rebar.config.script b/rebar.config.script index c09380d7..e08eb60f 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -196,9 +196,14 @@ AppendList2 = fun(Append) -> end, Rebar3DepsFilter = -fun(DepsList) -> - lists:map(fun({DepName, _, {git, _, {tag, Version}}}) -> - {DepName, Version}; +fun(DepsList, GitOnlyDeps) -> + lists:map(fun({DepName, _, {git, _, {tag, Version}}} = Dep) -> + case lists:member(DepName, GitOnlyDeps) of + true -> + Dep; + _ -> + {DepName, Version} + end; (Dep) -> Dep end, DepsList) @@ -367,8 +372,8 @@ Rules = [ AppendList2(ProcssXrefExclusions), [], []}, {[deps], [floating_deps], true, ProcessFloatingDeps, [], []}, - {[deps], IsRebar3, - Rebar3DepsFilter, []}, + {[deps], [gitonly_deps], IsRebar3, + Rebar3DepsFilter, [], []}, {[deps], SystemDeps /= false, GlobalDepsFilter, []} ], |