Skip to content

Commit 9831285

Browse files
QuantamHDmithro
authored andcommitted
flows: Fixes default DefaultInfo usage
Bazel is going to remove this soon, so upgrading now. Signed-off-by: Ethan Mahintorabi <[email protected]>
1 parent 8c58491 commit 9831285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flows/flows.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def _run_step_with_inputs(ctx, step, inputs_dict, outputs_step_dict):
199199

200200
constants_env = {}
201201
for c in step[FlowStepInfo].constants:
202-
s = ctx.attr.constants.get(c)
202+
s = ctx.attr.constants[DefaultInfo].get(c)
203203
if s == None:
204204
fail("Required constant", c, "not found in constants dictionary", ctx.attr.constants)
205205
constants_env["CONSTANT_" + c.upper()] = s

0 commit comments

Comments
 (0)