Skip to content

Commit

Permalink
flows: Fixes default DefaultInfo usage
Browse files Browse the repository at this point in the history
Bazel is going to remove this soon, so upgrading now.

Signed-off-by: Ethan Mahintorabi <[email protected]>
  • Loading branch information
QuantamHD committed Nov 8, 2023
1 parent 2d6c21f commit ad164f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flows/flows.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _run_step_with_inputs(ctx, step, inputs_dict, outputs_step_dict):

constants_env = {}
for c in step[FlowStepInfo].constants:
s = ctx.attr.constants.get(c)
s = ctx.attr.constants[DefaultInfo].get(c)
if s == None:
fail("Required constant", c, "not found in constants dictionary", ctx.attr.constants)
constants_env["CONSTANT_" + c.upper()] = s
Expand Down

0 comments on commit ad164f0

Please sign in to comment.