Skip to content

Commit

Permalink
Use run_shell rather than run.
Browse files Browse the repository at this point in the history
Fixes `Exec format error` on forge due to `/bin/bash` not existing.

Signed-off-by: Tim 'mithro' Ansell <[email protected]>
  • Loading branch information
mithro committed Nov 20, 2023
1 parent a6ef350 commit 13afddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flows/flows.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ def _run_step_with_inputs(ctx, step, inputs_dict, outputs_step_dict):
fail("Required constant", c, "not found in constants dictionary", ctx.attr.constants)
constants_env["CONSTANT_" + c.upper()] = s

ctx.actions.run(
ctx.actions.run_shell(
outputs = outputs,
inputs = inputs,
executable = step[DefaultInfo].files_to_run.executable,
command = step[DefaultInfo].files_to_run.executable.path,
tools = tool_inputs,
arguments = step[FlowStepInfo].arguments,
mnemonic = step[FlowStepInfo].executable_type,
Expand Down

0 comments on commit 13afddc

Please sign in to comment.