Skip to content

Commit 7614b6c

Browse files
author
José Valim
committed
Rename _build to _build/shared
1 parent 1da1f8c commit 7614b6c

File tree

23 files changed

+76
-64
lines changed

23 files changed

+76
-64
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(1): lib/$(1)/ebin/Elixir.$(2).beam lib/$(1)/ebin/$(1).app
2121

2222
lib/$(1)/ebin/$(1).app: lib/$(1)/mix.exs
2323
$(Q) cd lib/$(1) && ../../bin/elixir -e "Mix.Sup.start_link()" -r mix.exs -e "Mix.Task.run('compile.app')"
24-
$(Q) cp lib/$(1)/_build/lib/$(1)/ebin/$(1).app lib/$(1)/ebin/$(1).app
24+
$(Q) cp lib/$(1)/_build/shared/lib/$(1)/ebin/$(1).app lib/$(1)/ebin/$(1).app
2525
$(Q) rm -rf lib/$(1)/_build
2626

2727
lib/$(1)/ebin/Elixir.$(2).beam: $(wildcard lib/$(1)/lib/*.ex) $(wildcard lib/$(1)/lib/*/*.ex) $(wildcard lib/$(1)/lib/*/*/*.ex)

lib/mix/lib/mix/project.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ defmodule Mix.Project do
184184
## Examples
185185
186186
Mix.Project.build_path
187-
#=> "/path/to/project/_build"
187+
#=> "/path/to/project/_build/shared"
188188
189189
"""
190190
def build_path(config // config()) do
191-
config[:build_path] || Path.expand("_build")
191+
config[:build_path] || Path.expand("_build/shared")
192192
end
193193

194194
@doc """
@@ -201,7 +201,7 @@ defmodule Mix.Project do
201201
## Examples
202202
203203
Mix.Project.manifest_path
204-
#=> "/path/to/project/_build/lib/app"
204+
#=> "/path/to/project/_build/shared/lib/app"
205205
206206
"""
207207
def manifest_path(config // config()) do
@@ -215,7 +215,7 @@ defmodule Mix.Project do
215215
## Examples
216216
217217
Mix.Project.app_path
218-
#=> "/path/to/project/_build/lib/app"
218+
#=> "/path/to/project/_build/shared/lib/app"
219219
220220
"""
221221
def app_path(config // config()) do
@@ -235,7 +235,7 @@ defmodule Mix.Project do
235235
## Examples
236236
237237
Mix.Project.compile_path
238-
#=> "/path/to/project/_build/lib/app/priv"
238+
#=> "/path/to/project/_build/shared/lib/app/priv"
239239
240240
"""
241241
def compile_path(config // config()) do

lib/mix/test/fixtures/deps_status/_build/lib/invalidapp/ebin/invalidapp.app renamed to lib/mix/test/fixtures/deps_status/_build/shared/lib/invalidapp/ebin/invalidapp.app

File renamed without changes.

lib/mix/test/fixtures/deps_status/_build/lib/invalidvsn/ebin/invalidvsn.app renamed to lib/mix/test/fixtures/deps_status/_build/shared/lib/invalidvsn/ebin/invalidvsn.app

File renamed without changes.

lib/mix/test/fixtures/deps_status/_build/lib/ok/ebin/ok.app renamed to lib/mix/test/fixtures/deps_status/_build/shared/lib/ok/ebin/ok.app

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{application,rebar_dep,[{registered,[]},{vsn,"0.1.0"},{modules,[rebar_dep]}]}.
780 Bytes
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ sub_dirs, ["from_apps_another"] }.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{application, rebar_dep,
2+
[
3+
{vsn, "0.1.0"}
4+
]}.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-module(rebar_dep).
2+
3+
-export ([any_function/0]).
4+
5+
any_function() ->
6+
ok.

0 commit comments

Comments
 (0)