File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,11 @@ defmodule Mix.Tasks.Local.Rebar do
48
48
49
49
case argv do
50
50
[ "rebar" , path | _ ] ->
51
+ if file_url? ( path ) , do: warn_install_over_http_deprecated ( :rebar , path )
51
52
install_from_path ( :rebar , path , opts )
52
53
53
54
[ "rebar3" , path | _ ] ->
55
+ if file_url? ( path ) , do: warn_install_over_http_deprecated ( :rebar3 , path )
54
56
install_from_path ( :rebar3 , path , opts )
55
57
56
58
[ ] ->
@@ -68,8 +70,6 @@ defmodule Mix.Tasks.Local.Rebar do
68
70
defp install_from_path ( manager , path , opts ) do
69
71
local = Mix.Rebar . local_rebar_path ( manager )
70
72
71
- if file_url? ( path ) , do: warn_install_over_http_deprecated ( manager , path )
72
-
73
73
if opts [ :force ] || Mix.Generator . overwrite? ( local ) do
74
74
case Mix.Utils . read_path ( path , opts ) do
75
75
{ :ok , binary } ->
You can’t perform that action at this time.
0 commit comments