Skip to content

Commit dfc4070

Browse files
committed
Use Mix.Rebar as module for project pushing
1 parent f06f151 commit dfc4070

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

lib/mix/lib/mix/deps.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ defmodule Mix.Deps do
110110
def in_dependency(Mix.Dep[opts: opts], post_config, fun) do
111111
# Use post_config for rebar deps
112112
Mix.Project.post_config(post_config)
113-
Mix.Project.push(Mix.Rebar.Mixproject)
113+
Mix.Project.push(Mix.Rebar)
114114
try do
115115
File.cd!(opts[:dest], fn -> fun.(nil) end)
116116
after

lib/mix/lib/mix/rebar.ex

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
defmodule Mix.Rebar do
22
@moduledoc false
33

4+
@doc false
5+
def project, do: []
6+
47
@doc """
58
Loads the rebar.config and evaluates rebar.config.script if it exists in the
69
given directory.
@@ -114,11 +117,3 @@ defmodule Mix.Rebar do
114117
end)
115118
end
116119
end
117-
118-
# Used when pushing a rebar dependency to the project stack
119-
defmodule Mix.Rebar.Mixproject do
120-
@moduledoc false
121-
122-
@doc false
123-
def project, do: []
124-
end

0 commit comments

Comments
 (0)