We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb49aa1 commit d44d71cCopy full SHA for d44d71c
lib/mix/lib/mix/tasks/local.rebar.ex
@@ -18,16 +18,11 @@ defmodule Mix.Tasks.Local.Rebar do
18
def run(argv) do
19
{_, argv, _} = OptionParser.parse(argv)
20
do_install(case argv do
21
- [] -> rebar_path
+ [] -> @rebar_url
22
[path|_] -> path
23
end)
24
end
25
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
-
31
defp do_install(path) do
32
rebar = Mix.Utils.read_path!(path)
33
local_rebar_path = Mix.Rebar.local_rebar_path
0 commit comments