Skip to content

Commit 34dc246

Browse files
author
José Valim
committed
Remove warnings from rebar3 safe install
1 parent fad48c4 commit 34dc246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/lib/mix/tasks/local.rebar.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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} ->

0 commit comments

Comments
 (0)