Skip to content

Commit bd28f94

Browse files
committed
handle arguments=None in actions_run
1 parent eba18ed commit bd28f94

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

python/private/common.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,6 @@ def actions_run(
539539

540540
tools = kwargs.pop("tools", None)
541541
tools = list(tools) if tools else []
542-
arguments = kwargs.pop("arguments", [])
543542

544543
action_arguments = []
545544
action_env = {
@@ -596,7 +595,9 @@ def actions_run(
596595

597596
# Give precedence to caller's env.
598597
action_env.update(kwargs.pop("env", None) or {})
599-
action_arguments.extend(arguments)
598+
599+
# Handle arguments=None
600+
action_arguments.extend(list(kwargs.pop("arguments", None) or []))
600601

601602
ctx.actions.run(
602603
executable = action_exe,

0 commit comments

Comments
 (0)