Skip to content

Commit bea1c6c

Browse files
committed
Remove :erts from the list of applications, closes #14236
1 parent 4087560 commit bea1c6c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/mix/lib/mix/release.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ defmodule Mix.Release do
153153
version_path: Path.join([path, "releases", version]),
154154
erts_source: erts_source,
155155
erts_version: erts_version,
156-
applications: loaded_apps,
156+
applications: Map.delete(loaded_apps, :erts),
157157
boot_scripts: %{start: start_boot, start_clean: start_clean_boot},
158158
config_providers: config_providers,
159159
options: opts,

lib/mix/test/mix/release_test.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ defmodule Mix.ReleaseTest do
8080
assert release.applications.kernel[:otp_app?]
8181
end
8282

83+
test "does not include erts in applications" do
84+
release = from_config!(nil, config(releases: [foo: [applications: [erts: :permanent]]]), [])
85+
assert release.applications[:erts] == nil
86+
end
87+
8388
test "allows release to be given as an anonymous function" do
8489
release = from_config!(:foo, config(releases: [foo: fn -> [version: "0.2.0"] end]), [])
8590
assert release.name == :foo

0 commit comments

Comments
 (0)