diff options
author | Jesse Gumm <gumm@sigma-star.com> | 2016-03-20 09:18:06 -0500 |
---|---|---|
committer | Jesse Gumm <gumm@sigma-star.com> | 2016-03-20 10:58:20 -0500 |
commit | 3b345046bde490641866e6098d9145c360b04205 (patch) | |
tree | 8eb49a3153980e6f9de9f06c1756f26578d9d023 /src | |
parent | ef73556df92dd3b31daaf1cc6d97fb220dfcaa0c (diff) | |
download | rebar-3b345046bde490641866e6098d9145c360b04205.tar.gz |
Support rebar3-style deps
Example: {git, {appname, "git://something/something", {branch, master}}}
^
|
|---- Notice the lack of a version Regex
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_deps.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index 995ce97..def703b 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -268,10 +268,16 @@ info_help(Description) -> {rebar, "1.0.*"}, {rebar, ".*", {git, "git://github.com/rebar/rebar.git"}}, + {rebar, + {git, "git://github.com/rebar/rebar.git"}}, {rebar, ".*", {git, "git://github.com/rebar/rebar.git", "Rev"}}, + {rebar, + {git, "git://github.com/rebar/rebar.git", "Rev"}}, {rebar, "1.0.*", {git, "git://github.com/rebar/rebar.git", {branch, "master"}}}, + {rebar, + {git, "git://github.com/rebar/rebar.git", {branch, "master"}}}, {rebar, "1.0.0", {git, "git://github.com/rebar/rebar.git", {tag, "1.0.0"}}}, {rebar, "", @@ -371,6 +377,8 @@ find_deps(Config, read, [], Deps) -> {Config, lists:reverse(Deps)}; find_deps(Config, Mode, [App | Rest], Acc) when is_atom(App) -> find_deps(Config, Mode, [{App, ".*", undefined} | Rest], Acc); +find_deps(Config, Mode, [{App, Source} | Rest], Acc) when is_tuple(Source) -> + find_deps(Config, Mode, [{App, ".*", Source} | Rest], Acc); find_deps(Config, Mode, [{App, VsnRegex} | Rest], Acc) when is_atom(App) -> find_deps(Config, Mode, [{App, VsnRegex, undefined} | Rest], Acc); find_deps(Config, Mode, [{App, VsnRegex, Source} | Rest], Acc) -> |