From 983128522a4bd9e66cda6e8647e29701e6be04fe Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Wed, 8 Nov 2023 01:25:19 +0000 Subject: [PATCH] flows: Fixes default DefaultInfo usage Bazel is going to remove this soon, so upgrading now. Signed-off-by: Ethan Mahintorabi --- flows/flows.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flows/flows.bzl b/flows/flows.bzl index f31e7430..1701c29a 100644 --- a/flows/flows.bzl +++ b/flows/flows.bzl @@ -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