Skip to content

Commit

Permalink
Remove warnings from rebar3 safe install
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Nov 5, 2019
1 parent fad48c4 commit 34dc246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mix/lib/mix/tasks/local.rebar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ defmodule Mix.Tasks.Local.Rebar do

case argv do
["rebar", path | _] ->
if file_url?(path), do: warn_install_over_http_deprecated(:rebar, path)
install_from_path(:rebar, path, opts)

["rebar3", path | _] ->
if file_url?(path), do: warn_install_over_http_deprecated(:rebar3, path)
install_from_path(:rebar3, path, opts)

[] ->
Expand All @@ -68,8 +70,6 @@ defmodule Mix.Tasks.Local.Rebar do
defp install_from_path(manager, path, opts) do
local = Mix.Rebar.local_rebar_path(manager)

if file_url?(path), do: warn_install_over_http_deprecated(manager, path)

if opts[:force] || Mix.Generator.overwrite?(local) do
case Mix.Utils.read_path(path, opts) do
{:ok, binary} ->
Expand Down

0 comments on commit 34dc246

Please sign in to comment.