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
4848
4949 case argv do
5050 [ "rebar" , path | _ ] ->
51+ if file_url? ( path ) , do: warn_install_over_http_deprecated ( :rebar , path )
5152 install_from_path ( :rebar , path , opts )
5253
5354 [ "rebar3" , path | _ ] ->
55+ if file_url? ( path ) , do: warn_install_over_http_deprecated ( :rebar3 , path )
5456 install_from_path ( :rebar3 , path , opts )
5557
5658 [ ] ->
@@ -68,8 +70,6 @@ defmodule Mix.Tasks.Local.Rebar do
6870 defp install_from_path ( manager , path , opts ) do
6971 local = Mix.Rebar . local_rebar_path ( manager )
7072
71- if file_url? ( path ) , do: warn_install_over_http_deprecated ( manager , path )
72-
7373 if opts [ :force ] || Mix.Generator . overwrite? ( local ) do
7474 case Mix.Utils . read_path ( path , opts ) do
7575 { :ok , binary } ->
You can’t perform that action at this time.
0 commit comments