Skip to content

Commit c947c57

Browse files
authored
Fix missing chdir when building (#706)
1 parent f446d54 commit c947c57

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

rustler_mix/lib/rustler/compiler.ex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ defmodule Rustler.Compiler do
5252
end
5353

5454
compile_result =
55-
System.cmd(cmd, args, env: config.env, into: %Rustler.BuildResults{}, lines: 1024)
55+
System.cmd(
56+
cmd,
57+
args,
58+
cd: config.path,
59+
env: config.env,
60+
into: %Rustler.BuildResults{},
61+
lines: 1024
62+
)
5663

5764
artifacts =
5865
case compile_result do

0 commit comments

Comments
 (0)