Skip to content

Commit d44d71c

Browse files
committed
Do not install rebar bundled with elixir
1 parent fb49aa1 commit d44d71c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,11 @@ defmodule Mix.Tasks.Local.Rebar do
1818
def run(argv) do
1919
{_, argv, _} = OptionParser.parse(argv)
2020
do_install(case argv do
21-
[] -> rebar_path
21+
[] -> @rebar_url
2222
[path|_] -> path
2323
end)
2424
end
2525

26-
defp rebar_path do
27-
bundled_with_elixir = Path.join(:code.lib_dir(:mix), "../../rebar")
28-
if File.regular?(bundled_with_elixir), do: bundled_with_elixir, else: @rebar_url
29-
end
30-
3126
defp do_install(path) do
3227
rebar = Mix.Utils.read_path!(path)
3328
local_rebar_path = Mix.Rebar.local_rebar_path

0 commit comments

Comments
 (0)