Skip to content

Commit

Permalink
Fix env when running retry
Browse files Browse the repository at this point in the history
  • Loading branch information
dvic committed Jul 21, 2024
1 parent 121389a commit 3087047
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/ex_check/check/compiler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ defmodule ExCheck.Check.Compiler do
end

defp process_compiler(tools, opts) do
compiler = List.keyfind(tools, :compiler, 0) || raise("compiler tool definition missing")
compiler = prepare(compiler, opts)
{:compiler, tool_opts} =
List.keyfind(tools, :compiler, 0) || raise("compiler tool definition missing")

case compiler do
{:pending, _} -> compiler
_ -> {:pending, {:compiler, ["mix", "compile"], []}}
case prepare({:compiler, tool_opts}, opts) do
{:pending, _} = result -> result
_ -> {:pending, {:compiler, ["mix", "compile"], [env: Keyword.get(tool_opts, :env, %{})]}}
end
end

Expand Down

0 comments on commit 3087047

Please sign in to comment.