From ad164f01f5743feaf51d9f04e045b13a0a9e8f70 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 50f5b3fd..478708f9 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