Skip to content

Commit bdbdf52

Browse files
committed
Disable consolidation on archive.install
1 parent 7ff97fb commit bdbdf52

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: lib/mix/lib/mix/tasks/archive.build.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ defmodule Mix.Tasks.Archive.Build do
6161
project = Mix.Project.get()
6262

6363
if project && Keyword.get(opts, :compile, true) do
64-
Mix.Task.run(:compile, args)
64+
Mix.Task.run(:compile, ["--no-protocol-consolidation" | args])
6565
end
6666

6767
source =

Diff for: lib/mix/test/mix/tasks/archive_test.exs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ defmodule Mix.Tasks.ArchiveTest do
3232
message = "Generated archive \"archive-0.1.0.ez\" with MIX_ENV=dev"
3333
assert_received {:mix_shell, :info, [^message]}
3434
assert File.regular?(~c"archive-0.1.0.ez")
35+
assert to_charlist(Mix.Project.consolidation_path()) not in :code.get_path()
3536

3637
assert_archive_content_default()
3738
refute has_in_zip_file?(~c"archive-0.1.0.ez", ~c"archive-0.1.0/priv/.dot_file")

0 commit comments

Comments
 (0)