Skip to content

Commit ab8ff84

Browse files
Pedro Piñera Buendíaclaude
authored andcommitted
fix: Dereference symlinks in deploy tarball (-h flag)
Mix creates priv/ directories as symlinks to deps/. Without -h, tar archives the symlink which breaks on the remote (points to a path that doesn't exist). The -h flag follows symlinks and archives the actual files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a2563e1 commit ab8ff84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/terrarium/runtime.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ defmodule Terrarium.Runtime do
221221
end)
222222

223223
try do
224-
case System.cmd("tar", ["czf", tarball_path | file_args], stderr_to_stdout: true) do
224+
case System.cmd("tar", ["czf", tarball_path, "-h" | file_args], stderr_to_stdout: true) do
225225
{_, 0} ->
226226
Logger.debug("Tarball created",
227227
sandbox_id: sandbox.id,

0 commit comments

Comments
 (0)