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 <ethanmoon@google.com>
  • Loading branch information
QuantamHD authored and mithro committed Dec 19, 2023
1 parent 8c58491 commit 9831285
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 9831285

Please sign in to comment.