summaryrefslogtreecommitdiff
path: root/src/rebar_hg_resource.erl
diff options
context:
space:
mode:
authorStuart Thackray <stuart.thackray@gmail.com>2018-12-11 09:12:54 +0200
committerStuart Thackray <stuart.thackray@gmail.com>2018-12-11 09:12:54 +0200
commit1a26a9a71997f6cd7d8286f7ff30626edaf4f903 (patch)
tree5658a95b4cbf39b0ba15e7a52795a69d01d30956 /src/rebar_hg_resource.erl
parentebfa797c1f5d038b99beaf658757d974412a15c7 (diff)
Tidy Deps plugin to provide the download/3
For issue https://github.com/erlang/rebar3/issues/1974
Diffstat (limited to 'src/rebar_hg_resource.erl')
-rw-r--r--src/rebar_hg_resource.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rebar_hg_resource.erl b/src/rebar_hg_resource.erl
index 8139d04..22532b5 100644
--- a/src/rebar_hg_resource.erl
+++ b/src/rebar_hg_resource.erl
@@ -6,6 +6,7 @@
-export([init/2,
lock/2,
+ download/3,
download/4,
needs_update/2,
make_vsn/2]).
@@ -72,6 +73,9 @@ download(TmpDir, AppInfo, State, _) ->
{error, Error}
end.
+download(Dir, AppInfo, State) ->
+ download_(Dir, AppInfo, State).
+
download_(Dir, {hg, Url}, State) ->
?WARN("WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref}, otherwise updating the dep may not work as expected.", []),
download_(Dir, {hg, Url, {branch, "default"}}, State);