Skip to content

Commit 4332751

Browse files
committed
Do not use private and removed ram_file:compress/1 (#10439)
1 parent 32692f1 commit 4332751

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/mix/lib/mix/release.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -808,11 +808,7 @@ defmodule Mix.Release do
808808
{:ok, {_, chunks}} ->
809809
chunks = for {name, chunk} <- chunks, is_binary(chunk), do: {name, chunk}
810810
{:ok, binary} = :beam_lib.build_module(chunks)
811-
{:ok, fd} = :ram_file.open(binary, [:write, :binary])
812-
{:ok, _} = :ram_file.compress(fd)
813-
{:ok, binary} = :ram_file.get_file(fd)
814-
:ok = :ram_file.close(fd)
815-
{:ok, binary}
811+
{:ok, :zlib.gzip(binary)}
816812

817813
{:error, _, _} = error ->
818814
error

0 commit comments

Comments
 (0)