File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ defmodule Protox do
241
241
case Keyword . pop ( opts , :schema ) do
242
242
{ << text :: binary >> , opts } ->
243
243
filename = "#{ Base . encode16 ( :crypto . hash ( :sha , text ) ) } .proto"
244
- filepath = [ Mix.Project . build_path ( ) , filename ] |> Path . join ( ) |> Path . expand ( )
244
+ filepath = [ System . tmp_dir! ( ) , filename ] |> Path . join ( ) |> Path . expand ( )
245
245
File . write! ( filepath , text )
246
246
{ [ filepath ] , opts }
247
247
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ defmodule Protox.Protoc do
25
25
26
26
defp do_run ( proto_files , args ) do
27
27
outfile_name = "protox_#{ random_string ( ) } "
28
- outfile_path = Path . join ( [ Mix.Project . build_path ( ) , outfile_name ] )
28
+ outfile_path = Path . join ( [ System . tmp_dir! ( ) , outfile_name ] )
29
29
30
30
cmd_args = [ "--include_imports" , "-o" , outfile_path ] ++ args ++ proto_files
31
31
You can’t perform that action at this time.
0 commit comments