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 452ba40 commit c3e903fCopy full SHA for c3e903f
lib/mix/lib/mix/release.ex
@@ -672,9 +672,10 @@ defmodule Mix.Release do
672
673
def copy_erts(release) do
674
destination = Path.join(release.path, "erts-#{release.erts_version}")
675
+ erts_source_contents = File.ls!(release.erts_source)
676
File.mkdir_p!(destination)
677
- for dir <- ~w(bin include lib src) do
678
+ for dir <- ~w(bin include lib src), dir in erts_source_contents do
679
source = Path.join(release.erts_source, dir)
680
target = Path.join(destination, dir)
681
File.cp_r!(source, target, fn _, _ -> false end)
0 commit comments